/* ===== Reset & base ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --ink: #16221f;
  --ink-soft: #45534f;
  --cream: #faf7f1;
  --cream-tint: #f1ece0;
  --teal: #0e4a45;
  --teal-deep: #0a3532;
  --gold: #b98a3d;
  --amber: #c1631f;
  --wa-green: #25d366;
  --wa-green-deep: #128c4a;
  --line: #e3ddd0;
  --radius: 14px;
  --shadow: 0 10px 30px -12px rgba(10, 30, 28, 0.25);
  --maxw: 1180px;
  font-size: 16px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 600;
  color: var(--teal-deep);
  line-height: 1.15;
  letter-spacing: -0.01em;
}

h2 { font-size: clamp(1.4rem, 4vw, 1.9rem); margin-bottom: 1.4rem; }

p { color: var(--ink-soft); }

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 1.25rem; }
.container--narrow { max-width: 720px; }
.container--split { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 2.5rem; align-items: center; }

.section { padding: clamp(2.5rem, 6vw, 4rem) 0; }
.section--tint { background: var(--cream-tint); }

/* ===== Reveal (defensive) ===== */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.5s ease, transform 0.5s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

/* ===== Top bar ===== */
.topbar { position: sticky; top: 0; z-index: 40; background: var(--teal-deep); color: #fff; }
.topbar__inner {
  max-width: var(--maxw); margin: 0 auto; padding: 0.55rem 1.25rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.topbar__brand { font-size: 0.85rem; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar__actions { display: flex; gap: 0.6rem; flex-shrink: 0; }
.topbar__link {
  font-size: 0.82rem; font-weight: 700; padding: 0.4rem 0.75rem; border-radius: 999px;
  background: rgba(255,255,255,0.14); white-space: nowrap;
}
.topbar__link--wa { background: var(--wa-green); }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.85rem 1.5rem;
  border-radius: 999px; font-weight: 700; font-size: 1rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--wa-green); color: #fff; box-shadow: 0 8px 20px -6px rgba(37, 211, 102, 0.55); }
.btn--secondary { background: #fff; color: var(--teal-deep); border: 1.5px solid var(--teal-deep); }
.btn--huge { font-size: 1.15rem; padding: 1.15rem 2rem; width: 100%; justify-content: center; }

/* ===== Hero ===== */
.hero { padding: clamp(1.75rem, 5vw, 3rem) 0 clamp(2rem, 5vw, 3rem); background: linear-gradient(180deg, var(--cream) 0%, var(--cream-tint) 100%); }
.hero__inner {
  max-width: var(--maxw); margin: 0 auto; padding: 0 1.25rem;
  display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 2.5rem; align-items: center;
}
.eyebrow {
  text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.76rem; font-weight: 800;
  color: var(--amber); margin-bottom: 0.6rem;
}
.hero h1 { font-size: clamp(1.7rem, 4.4vw, 2.5rem); margin-bottom: 0.7rem; }
.hero__sub { font-size: 1.05rem; max-width: 46ch; margin-bottom: 1.3rem; }
.hero__cta { display: flex; flex-direction: column; gap: 0.8rem; max-width: 420px; margin-bottom: 1.4rem; }
.hero__cta--center { flex-direction: row; flex-wrap: wrap; justify-content: center; max-width: none; }
.hero__bullets { list-style: none; display: flex; flex-direction: column; gap: 0.45rem; margin-bottom: 1.2rem; }
.hero__bullets li { position: relative; padding-left: 1.5rem; font-weight: 600; color: var(--ink); font-size: 0.95rem; }
.hero__bullets li::before { content: "✓"; position: absolute; left: 0; color: var(--teal); font-weight: 700; }
.hero__location { font-size: 0.85rem; color: var(--ink-soft); font-weight: 600; }

.hero__media {
  position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
  aspect-ratio: 1100 / 733;
}
.hero__media img { width: 100%; height: 100%; display: block; object-fit: cover; }
.hero__caption {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: linear-gradient(0deg, rgba(10,20,18,0.78), transparent);
  color: #fff; font-size: 0.8rem; font-weight: 600; padding: 1.2rem 1rem 0.6rem;
}

/* ===== Beneficios cards ===== */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 1rem; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.2rem 1.1rem; }
.card__icon { font-size: 1.6rem; display: block; margin-bottom: 0.5rem; }
.card p { font-size: 0.92rem; color: var(--ink); font-weight: 500; }

/* ===== Proceso steps ===== */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; margin-bottom: 1.6rem; }
.step { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.3rem 1.1rem; }
.step__num {
  display: inline-flex; align-items: center; justify-content: center; width: 2rem; height: 2rem;
  border-radius: 50%; background: var(--teal); color: #fff; font-family: 'Fraunces', serif;
  font-weight: 600; margin-bottom: 0.7rem;
}
.step p { font-size: 0.92rem; }
.proceso__cta { text-align: center; }

/* ===== Photo frame ===== */
.photo-frame { overflow: hidden; border-radius: var(--radius); box-shadow: var(--shadow); }
.photo-frame img { width: 100%; height: 100%; display: block; object-fit: cover; object-position: top center; }
.photo-frame--portrait { aspect-ratio: 4 / 5; }

/* ===== Por qué elegir ===== */
.checklist { list-style: none; display: flex; flex-direction: column; gap: 0.75rem; margin: 1.2rem 0 1.4rem; }
.checklist li { position: relative; padding-left: 1.6rem; font-size: 0.98rem; color: var(--ink); }
.checklist li::before { content: "🦷"; position: absolute; left: 0; top: 0.05rem; font-size: 0.92rem; }
.credential-note { font-size: 0.86rem; color: var(--ink-soft); border-left: 3px solid var(--gold); padding-left: 0.75rem; }

/* ===== Trust grid ===== */
.trust-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.1rem; margin-bottom: 1.6rem; }
.trust-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.3rem; }
.trust-card p { font-size: 0.9rem; }
.trust-card__note { font-size: 0.82rem; margin-top: 0.5rem; }
.link-inline { display: inline-block; margin-top: 0.4rem; font-weight: 600; color: var(--teal); font-size: 0.88rem; }
.map-embed { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); }
.map-embed iframe { width: 100%; height: 300px; border: 0; display: block; }

/* ===== Testimonials ===== */
.testimonials { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; margin-bottom: 1.6rem; }
.testimonials__rating { display: flex; align-items: center; gap: 0.55rem; font-weight: 700; color: var(--teal-deep); margin-bottom: 1.2rem; }
.testimonials__rating .stars { color: var(--gold); font-size: 1.05rem; letter-spacing: 0.05em; }
.testimonial-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1.1rem; margin-bottom: 1.2rem; }
.testimonial-grid blockquote { margin: 0; }
.testimonial-grid p { font-size: 0.88rem; color: var(--ink); margin-bottom: 0.55rem; }
.testimonial-grid cite { font-style: normal; font-size: 0.82rem; font-weight: 700; color: var(--ink-soft); }

/* ===== FAQ ===== */
.faq-list { display: flex; flex-direction: column; gap: 0.7rem; }
.faq-item { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 0.9rem 1.1rem; }
.faq-item summary {
  cursor: pointer; font-weight: 700; font-size: 0.98rem; color: var(--teal-deep);
  list-style: none; display: flex; justify-content: space-between; align-items: center;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 1.25rem; color: var(--gold); margin-left: 1rem; transition: transform 0.2s ease; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { margin-top: 0.6rem; font-size: 0.9rem; }

/* ===== Cierre CTA ===== */
.cta-final { background: var(--teal-deep); text-align: center; }
.cta-final h2 { color: #fff; }
.cta-final p { color: rgba(255,255,255,0.82); margin-bottom: 1.5rem; font-size: 1rem; }

/* ===== Footer ===== */
.footer { padding: 1.4rem 0 6.5rem; text-align: center; font-size: 0.8rem; background: var(--teal-deep); }
.footer p { color: rgba(255,255,255,0.7); }

/* ===== Botones flotantes dobles (WhatsApp + Llamar) ===== */
.float-stack { position: fixed; right: 1.1rem; bottom: 1.1rem; z-index: 50; display: flex; flex-direction: column; gap: 0.7rem; }
.wa-float, .call-float {
  width: 58px; height: 58px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.wa-float {
  background: var(--wa-green); box-shadow: 0 10px 24px -6px rgba(18, 140, 74, 0.6);
  animation: wa-pulse 2.4s ease-in-out infinite;
}
.call-float { background: var(--amber); box-shadow: 0 10px 24px -6px rgba(193, 99, 31, 0.55); }
@keyframes wa-pulse {
  0%, 100% { box-shadow: 0 10px 24px -6px rgba(18, 140, 74, 0.6); }
  50% { box-shadow: 0 10px 30px -4px rgba(18, 140, 74, 0.9), 0 0 0 8px rgba(37, 211, 102, 0.18); }
}
@media (prefers-reduced-motion: reduce) { .wa-float { animation: none; } }

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__media { order: -1; max-width: 420px; margin: 0 auto; }
  .container--split { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
  .hero__cta { max-width: none; }
  .btn--secondary { width: 100%; justify-content: center; }
  .float-stack { right: 0.8rem; bottom: 0.9rem; }
  .wa-float, .call-float { width: 52px; height: 52px; }
}
