/* ===================== RESET & BASE ===================== */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

:root {
  --navy: #0c2340;
  --navy-2: #16335a;
  --gold: #bd9b53;
  --gold-d: #a8863f;
  --cream: #f7f4ee;
  --ink: #232b36;
  --muted: #5f6b7a;
  --line: #e7e3d8;
  --wa: #25d366;
  --wa-d: #1da851;
  --radius: 14px;
  --shadow: 0 16px 40px rgba(12, 35, 64, 0.14);
  --shadow-sm: 0 6px 18px rgba(12, 35, 64, 0.08);
  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  color: var(--ink);
  background: #fff;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 22px; }
.container.narrow { max-width: 780px; }

/* ===================== TYPOGRAPHY HELPERS ===================== */
.kicker {
  font-family: var(--sans); font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  font-size: .76rem; color: var(--gold-d); margin-bottom: 10px;
}
.kicker.center { text-align: center; }
.kicker.gold { color: var(--gold); }
.section-title {
  font-family: var(--serif); font-weight: 700; color: var(--navy);
  font-size: clamp(1.7rem, 4.4vw, 2.5rem); line-height: 1.15; letter-spacing: -.01em;
  text-align: center; margin-bottom: 14px;
}
.section-title.left { text-align: left; }

/* ===================== BUTTONS ===================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--sans); font-weight: 700; font-size: 1rem; line-height: 1;
  padding: 15px 26px; border-radius: 10px; border: 2px solid transparent;
  cursor: pointer; transition: transform .12s ease, box-shadow .15s ease, background .15s ease, color .15s ease;
  text-align: center;
}
.btn:active { transform: translateY(1px); }
.btn-lg { padding: 18px 30px; font-size: 1.06rem; }
.btn-sm { padding: 11px 18px; font-size: .92rem; }
.btn-block { width: 100%; }

.btn-primary { background: var(--gold); color: #2a1d00; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--gold-d); color: #fff; }

.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.45); }
.btn-ghost:hover { border-color: #fff; background: rgba(255,255,255,.08); }

.btn-wa { background: var(--wa); color: #fff; box-shadow: 0 10px 24px rgba(37,211,102,.32); }
.btn-wa:hover { background: var(--wa-d); color: #fff; box-shadow: 0 12px 28px rgba(37,211,102,.42); }
.ico-wa { width: 1.32em; height: 1.32em; flex-shrink: 0; }

/* ===================== HEADER ===================== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(12, 35, 64, .98); backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(189,155,83,.25);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 14px; height: 68px; }
.brand { min-width: 0; }
@media (max-width: 430px) {
  .header-inner { gap: 10px; }
  .brand-name { font-size: 1.04rem; }
  .site-header .btn-sm { padding: 11px 13px; }
}
.brand { display: flex; align-items: center; gap: 10px; color: #fff; }
.brand-mark { color: var(--gold); font-size: 1.5rem; }
.brand-logo { width: 30px; height: 30px; color: var(--gold); flex-shrink: 0; }
.brand-name { font-family: var(--serif); font-weight: 700; font-size: 1.2rem; letter-spacing: .01em; }
.main-nav { display: none; gap: 26px; margin-left: auto; }
.main-nav a { color: #d8dee8; font-weight: 500; font-size: .96rem; transition: color .15s; }
.main-nav a:hover { color: var(--gold); }

/* Botón hamburguesa (solo móvil/tablet) */
.nav-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; padding: 0; flex-shrink: 0;
  background: transparent; border: 1px solid rgba(189,155,83,.45);
  border-radius: 9px; color: var(--gold); cursor: pointer;
}
.nav-toggle svg { width: 23px; height: 23px; }
.nav-toggle .ico-close { display: none; }
.nav-toggle[aria-expanded="true"] .ico-burger { display: none; }
.nav-toggle[aria-expanded="true"] .ico-close { display: block; }

/* Menú desplegable en móvil */
@media (max-width: 899px) {
  .main-nav {
    position: fixed; top: 68px; left: 0; right: 0; z-index: 49;
    flex-direction: column; gap: 0; margin: 0;
    background: var(--navy); padding: 6px 22px 16px;
    border-bottom: 1px solid rgba(189,155,83,.3);
    box-shadow: 0 20px 34px rgba(0,0,0,.4);
  }
  .main-nav.is-open { display: flex; }
  .main-nav a {
    color: #eef2f8; font-size: 1.06rem; font-weight: 600;
    padding: 16px 4px; border-top: 1px solid rgba(255,255,255,.09);
  }
  .main-nav a:first-child { border-top: none; }
}

/* ===================== HERO ===================== */
.hero {
  background:
    radial-gradient(1200px 500px at 80% -10%, rgba(189,155,83,.20), transparent 60%),
    linear-gradient(165deg, var(--navy) 0%, var(--navy-2) 100%);
  color: #fff; padding: 64px 0 60px; position: relative; overflow: hidden;
}
.hero-grid { display: grid; grid-template-columns: 1fr; gap: 40px; align-items: center; position: relative; }
.hero-inner { position: relative; z-index: 1; }
.eyebrow { color: var(--gold); font-weight: 600; letter-spacing: .04em; font-size: .92rem; margin-bottom: 14px; }
.hero-title { font-family: var(--serif); font-weight: 800; font-size: clamp(2.3rem, 7vw, 3.8rem); line-height: 1.08; letter-spacing: -.02em; }
.hero-title .hl { color: var(--gold); }
.hero-lead { color: #cfd8e4; font-size: clamp(1.05rem, 2.2vw, 1.22rem); margin-top: 20px; max-width: 560px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
@media (max-width: 559px) {
  .hero-cta { flex-direction: column; align-items: stretch; }
  .hero-cta .btn { width: 100%; }
}
.hero-stats { display: flex; flex-wrap: wrap; gap: 24px 36px; margin-top: 38px; padding-top: 26px; border-top: 1px solid rgba(255,255,255,.14); }
.stat { display: flex; flex-direction: column; gap: 3px; }
.stat-num { font-family: var(--serif); font-weight: 700; font-size: 1.5rem; color: var(--gold); line-height: 1.1; }
.stat-ico { display: inline-flex; align-items: center; height: 1.65rem; }
.stat-ico svg { width: 1.55rem; height: 1.55rem; }
.stat-lbl { color: #aeb9c7; font-size: .88rem; }

/* Foto del banner */
.hero-photo { position: relative; z-index: 1; }
.hero-photo img {
  width: 100%; height: 360px; object-fit: cover; object-position: center 55%;
  border-radius: 18px; position: relative; z-index: 1;
  border: 1px solid rgba(189,155,83,.55);
  box-shadow: 0 26px 60px rgba(0,0,0,.42);
}
.hero-photo::after {
  content: ""; position: absolute; top: 16px; left: 16px; right: -16px; bottom: -16px;
  border: 2px solid var(--gold); border-radius: 18px; opacity: .45; pointer-events: none; z-index: 0;
}
.hero-photo-tag {
  position: absolute; left: 14px; bottom: 14px; z-index: 2;
  display: inline-flex; align-items: center; gap: 7px;
  background: rgba(12,35,64,.82); backdrop-filter: blur(4px);
  color: var(--gold); font-size: .8rem; font-weight: 600; letter-spacing: .02em;
  padding: 8px 13px; border-radius: 999px; border: 1px solid rgba(189,155,83,.4);
}
.hero-photo-tag svg { width: 15px; height: 15px; }
@media (min-width: 900px) {
  .hero { padding: 84px 0 80px; }
  .hero-grid { grid-template-columns: 1.05fr .9fr; gap: 56px; }
  .hero-photo img { height: 520px; }
}

/* ===================== SECTIONS ===================== */
.section { padding: 70px 0; }
.areas { background: var(--cream); }
.estudio { background: #fff; }
.tool { background: var(--navy); color: #fff; }
.steps { background: var(--cream); }
.testimonials { background: #fff; }
.faq { background: var(--cream); }
.areas .kicker, .steps .kicker, .testimonials .kicker, .faq .kicker { text-align: center; }
.section-note { text-align: center; color: var(--muted); font-size: .88rem; margin: -2px 0 30px; }

/* ===================== ÁREAS ===================== */
.areas-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 36px; }
.area-card {
  position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 26px; box-shadow: var(--shadow-sm); transition: transform .15s ease, box-shadow .15s ease;
}
.area-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.area-card.featured { border-color: var(--gold); box-shadow: 0 12px 34px rgba(189,155,83,.22); }
.area-badge {
  position: absolute; top: 16px; right: 16px; background: var(--gold); color: #2a1d00;
  font-size: .72rem; font-weight: 700; padding: 4px 10px; border-radius: 999px; letter-spacing: .03em;
}
.area-ico { display: block; margin-bottom: 16px; color: var(--gold); line-height: 0; }
.area-ico svg { width: 46px; height: 46px; }
.area-card h3 { font-family: var(--serif); color: var(--navy); font-size: 1.35rem; margin-bottom: 8px; }
.area-card p { color: var(--muted); font-size: .98rem; margin-bottom: 16px; }
.area-link { color: var(--gold-d); font-weight: 700; font-size: .96rem; display: inline-flex; align-items: center; min-height: 40px; }
.area-link:hover { color: var(--navy); }

/* ===================== EL ESTUDIO ===================== */
.estudio-grid { display: grid; grid-template-columns: 1fr; gap: 36px; align-items: center; }
.photo-placeholder {
  background: linear-gradient(160deg, #eef1f6, #e2e7ef); border: 2px dashed #c5cedb;
  border-radius: var(--radius); aspect-ratio: 4 / 3; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 12px; text-align: center; color: var(--muted);
}
.photo-placeholder span { font-size: 3rem; }
.photo-placeholder small { font-size: .85rem; max-width: 240px; line-height: 1.5; }
.portrait-frame { border-radius: var(--radius); background: linear-gradient(160deg, #0c2340 0%, #16335a 100%); aspect-ratio: 4 / 5; display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow); border: 1px solid var(--line); overflow: hidden; }
.portrait-illus { width: 72%; color: rgba(189, 155, 83, .9); }
.portrait-photo { width: 100%; height: auto; border-radius: var(--radius); box-shadow: var(--shadow); display: block; }
.estudio-copy p { color: var(--ink); margin-bottom: 14px; }
.values { list-style: none; padding: 0; margin: 18px 0 24px; display: flex; flex-direction: column; gap: 9px; }
.values li { color: var(--ink); font-weight: 500; }

/* ===================== TOOL / CALCULADORA ===================== */
.tool-grid { display: grid; grid-template-columns: 1fr; gap: 36px; align-items: center; }
.tool-intro .section-title { color: #fff; }
.tool-intro p { color: #cfd8e4; margin-bottom: 6px; }
.tool-intro .values li { color: #e7ecf3; }

.calc-card {
  background: #fff; color: var(--ink); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 28px 26px; border-top: 5px solid var(--gold);
}
.calc-title { font-family: var(--serif); font-size: 1.5rem; font-weight: 700; color: var(--navy); }
.calc-sub { color: var(--muted); font-size: .94rem; margin-top: 4px; margin-bottom: 20px; }
.calc-form { display: flex; flex-direction: column; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: .94rem; color: var(--navy); }
.field input {
  font: inherit; font-weight: 600; padding: 14px; border: 1.5px solid var(--line);
  border-radius: 10px; background: #faf9f6; color: var(--ink);
}
.field input:focus { outline: none; border-color: var(--gold); background: #fff; box-shadow: 0 0 0 3px rgba(189,155,83,.15); }
.hint { font-weight: 500; color: var(--muted); font-size: .82rem; }
.checkbox { display: flex; align-items: center; gap: 10px; font-size: .9rem; color: var(--muted); font-weight: 600; cursor: pointer; }
.checkbox input { width: 18px; height: 18px; accent-color: var(--gold); }

.calc-result { margin-top: 24px; padding-top: 22px; border-top: 1px dashed var(--line); animation: fadeIn .35s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.result-label { color: var(--muted); font-weight: 600; font-size: .95rem; }
.result-total { font-family: var(--serif); font-size: clamp(2.6rem, 9vw, 3.4rem); font-weight: 800; color: var(--navy); letter-spacing: -.02em; line-height: 1.1; margin: 2px 0 16px; }
.result-breakdown { list-style: none; padding: 0; margin: 0 0 18px; }
.result-breakdown li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: .95rem; }
.result-breakdown li span:last-child { font-weight: 700; color: var(--navy); white-space: nowrap; }
.result-disclaimer { margin-top: 14px; font-size: .78rem; color: var(--muted); line-height: 1.55; }

/* ===================== STEPS ===================== */
.steps-grid { display: grid; grid-template-columns: 1fr; gap: 20px; margin-top: 36px; }
.step { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 26px; box-shadow: var(--shadow-sm); }
.step-num { width: 46px; height: 46px; border-radius: 50%; background: var(--navy); color: var(--gold); display: flex; align-items: center; justify-content: center; font-family: var(--serif); font-weight: 700; font-size: 1.3rem; margin-bottom: 16px; }
.step h3 { font-family: var(--serif); color: var(--navy); font-size: 1.25rem; margin-bottom: 6px; }
.step p { color: var(--muted); }

/* ===================== GALERÍA ===================== */
.galeria { background: var(--cream); }
.galeria-grid { display: grid; grid-template-columns: 1fr; gap: 16px; margin-top: 36px; }
.galeria-item { margin: 0; border-radius: 12px; overflow: hidden; box-shadow: var(--shadow-sm); }
.galeria-item img { width: 100%; height: 340px; object-fit: cover; object-position: center 38%; display: block; transition: transform .4s ease; }
.galeria-item:hover img { transform: scale(1.03); }
.galeria-item figcaption { background: var(--navy); color: var(--gold); font-size: .82rem; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; padding: 10px 16px; }
@media (min-width: 640px) {
  .galeria-grid { grid-template-columns: repeat(3, 1fr); }
  .galeria-2 { grid-template-columns: repeat(2, 1fr); max-width: 880px; margin-left: auto; margin-right: auto; }
  .galeria-item img { height: 420px; }
}

/* ===================== TESTIMONIOS ===================== */
.testi-grid { display: grid; grid-template-columns: 1fr; gap: 20px; margin-top: 36px; }
.testi { background: var(--cream); border: 1px solid var(--line); border-left: 4px solid var(--gold); border-radius: 10px; padding: 26px; }
.testi p { font-style: italic; color: var(--ink); margin-bottom: 14px; font-size: 1.02rem; }
.testi cite { color: var(--muted); font-weight: 700; font-style: normal; font-size: .9rem; }

/* ===================== FAQ ===================== */
.faq-item { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 4px 20px; margin-bottom: 12px; box-shadow: var(--shadow-sm); }
.faq-item summary { cursor: pointer; font-weight: 700; color: var(--navy); padding: 16px 0; list-style: none; position: relative; padding-right: 30px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; position: absolute; right: 2px; top: 50%; transform: translateY(-50%); font-size: 1.5rem; color: var(--gold); font-weight: 700; }
.faq-item[open] summary::after { content: "–"; }
.faq-item p { color: var(--muted); padding: 0 0 18px; }

/* ===================== CTA BAND ===================== */
.cta-band {
  background:
    radial-gradient(900px 400px at 50% 120%, rgba(189,155,83,.2), transparent 60%),
    var(--navy);
  color: #fff; padding: 72px 0; text-align: center;
}
.cta-inner h2 { font-family: var(--serif); font-size: clamp(1.7rem, 5vw, 2.6rem); font-weight: 700; max-width: 720px; margin: 0 auto 12px; }
.cta-inner > p { color: #cfd8e4; margin-bottom: 26px; font-size: 1.1rem; }

/* ===================== FOOTER ===================== */
.site-footer { background: #081a30; color: #9fb0c4; padding: 40px 0 26px; }
.footer-inner { display: flex; flex-direction: column; gap: 18px; justify-content: space-between; padding-bottom: 24px; border-bottom: 1px solid rgba(255,255,255,.1); }
.footer-brand { font-family: var(--serif); color: #fff; font-weight: 700; font-size: 1.2rem; }
.footer-line { font-size: .92rem; margin-top: 3px; }
.footer-nav { display: flex; gap: 8px 22px; flex-wrap: wrap; }
.footer-nav a { font-weight: 500; font-size: .95rem; display: inline-block; padding: 7px 0; }
.footer-nav a:hover { color: var(--gold); }
.legal-disclaimer { font-size: .77rem; color: #74879d; line-height: 1.6; margin-top: 18px; }

/* ===================== WHATSAPP FLOAT ===================== */
.wa-float {
  position: fixed; right: 18px; bottom: 18px; z-index: 60;
  width: 60px; height: 60px; border-radius: 50%;
  background: var(--wa); color: #fff; display: flex; align-items: center; justify-content: center;
  font-size: 1.7rem; box-shadow: 0 8px 24px rgba(37, 211, 102, .5); animation: pulse 2.4s infinite;
}
.wa-float:hover { background: var(--wa-d); }
.wa-float .ico-wa { width: 30px; height: 30px; }
@keyframes pulse {
  0% { box-shadow: 0 8px 24px rgba(37,211,102,.5), 0 0 0 0 rgba(37,211,102,.5); }
  70% { box-shadow: 0 8px 24px rgba(37,211,102,.5), 0 0 0 16px rgba(37,211,102,0); }
  100% { box-shadow: 0 8px 24px rgba(37,211,102,.5), 0 0 0 0 rgba(37,211,102,0); }
}

/* ===================== RESPONSIVE ===================== */
@media (min-width: 720px) {
  .areas-grid { grid-template-columns: repeat(2, 1fr); }
  .steps-grid { grid-template-columns: repeat(3, 1fr); }
  .testi-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 900px) {
  .main-nav { display: flex; }
  .nav-toggle { display: none; }
  .hero { padding: 96px 0 84px; }
  .areas-grid { grid-template-columns: repeat(4, 1fr); }
  .estudio-grid { grid-template-columns: .9fr 1.1fr; gap: 54px; }
  .tool-grid { grid-template-columns: 1fr 1fr; gap: 54px; }
  .footer-inner { flex-direction: row; align-items: center; }
}

/* ===================== AJUSTES MÓVIL (compactar) ===================== */
@media (max-width: 559px) {
  /* Hero: foto más pequeña */
  .hero-photo img { height: 290px; }

  /* Hero: 3 datos simétricos en una fila */
  .hero-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px 8px; }
  .stat { align-items: center; text-align: center; gap: 4px; }
  .stat-num { font-size: 1.05rem; }
  .stat-ico { justify-content: center; height: 1.2rem; }
  .stat-ico svg { width: 1.2rem; height: 1.2rem; }
  .stat-lbl { font-size: .71rem; line-height: 1.3; }

  /* Áreas: 2x2 compactas */
  .areas-grid { gap: 13px; }
  .area-card { padding: 18px 15px; }
  .area-ico { margin-bottom: 10px; }
  .area-ico svg { width: 36px; height: 36px; }
  .area-card h3 { font-size: 1.05rem; margin-bottom: 6px; }
  .area-card p { font-size: .84rem; margin-bottom: 8px; line-height: 1.45; }
  .area-link { font-size: .86rem; min-height: 32px; }
  .area-badge { font-size: .58rem; padding: 3px 7px; top: 9px; right: 9px; }

  /* Pasos: número junto al texto (más compactos) */
  .steps-grid { gap: 12px; }
  .step { display: grid; grid-template-columns: auto 1fr; column-gap: 14px; row-gap: 2px; padding: 16px; align-items: start; }
  .step-num { grid-column: 1; grid-row: 1 / span 2; align-self: start; width: 38px; height: 38px; font-size: 1.1rem; margin-bottom: 0; }
  .step h3 { grid-column: 2; font-size: 1.06rem; margin-bottom: 2px; }
  .step p { grid-column: 2; font-size: .88rem; }

  /* El Estudio: botón centrado */
  .estudio-copy .btn-primary { display: flex; width: fit-content; margin: 4px auto 0; }
}
