:root {
  --navy: #0f2742;
  --navy-2: #163457;
  --blue: #1f4e79;
  --blue-soft: #e8eef5;
  --bg: #f6f8fb;
  --white: #ffffff;
  --ink: #16202c;
  --ink-soft: #4b5968;
  --rule: #d5dde7;
  --gold: #a88245;
  --gold-light: #d9b872;
  --bad: #8c2f24;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --script: "Caveat", "Segoe Script", cursive;
  --gutter: clamp(1.25rem, 5vw, 3rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 5rem; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--sans); font-size: 1.0625rem; line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
p { margin: 0; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; color: var(--navy); margin: 0; }

.wrap { width: min(100%, 74rem); margin-inline: auto; padding-inline: var(--gutter); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 0; background: var(--navy); color: #fff; padding: .6rem 1rem; z-index: 100; }
.skip:focus { left: 0; }

/* Barra superior */
.topbar { background: var(--navy); color: #cdd8e5; font-size: .85rem; }
.topbar-row { display: flex; justify-content: space-between; gap: .5rem 2rem; flex-wrap: wrap; padding-block: .55rem; }
.topbar a { text-decoration: none; color: #fff; }
.topbar a:hover { text-decoration: underline; }
.topbar-contact { display: flex; gap: .6rem; }

/* Ícono de WhatsApp */
.wa { width: 1.2em; height: 1.2em; vertical-align: -.25em; margin-right: .45em; color: #25d366; flex: none; }

/* Encabezado */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--white); border-bottom: 1px solid var(--rule); }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4.5rem; }
.brand { display: flex; align-items: center; gap: .85rem; text-decoration: none; }
.brand-mark {
  display: grid; place-items: center; width: 2.75rem; height: 2.75rem;
  background: var(--navy); color: var(--gold-light); font-weight: 600; font-size: .95rem; letter-spacing: .02em;
}
.brand-text { display: grid; line-height: 1.2; }
.brand-text strong { font-family: var(--serif); font-weight: 500; font-size: 1.2rem; color: var(--navy); }
.brand-text small { font-size: .72rem; letter-spacing: .06em; color: var(--ink-soft); }
.nav { display: flex; align-items: center; gap: 1.75rem; font-size: .95rem; font-weight: 500; }
.nav a:not(.btn) { text-decoration: none; padding-block: .3rem; border-bottom: 2px solid transparent; }
.nav a:not(.btn):hover { border-bottom-color: var(--gold); }
.nav-toggle { display: none; font: inherit; font-size: .9rem; font-weight: 500; background: none; border: 1px solid var(--navy); color: var(--navy); padding: .45rem .9rem; cursor: pointer; }

/* Botones */
.btn {
  display: inline-block; font: inherit; font-weight: 600; font-size: .95rem;
  background: var(--navy); color: #fff; border: 1px solid var(--navy);
  padding: .9rem 1.7rem; text-decoration: none; border-radius: 2px; cursor: pointer; transition: background-color .2s, border-color .2s, color .2s;
}
.btn:hover { background: var(--blue); border-color: var(--blue); }
.btn-sm { padding: .6rem 1.1rem; font-size: .9rem; }
.btn-ghost { background: transparent; color: var(--navy); }
.btn-ghost:hover { background: var(--navy); color: #fff; border-color: var(--navy); }
.btn-light { background: #fff; color: var(--navy); border-color: #fff; }
.btn-light:hover { background: var(--gold-light); border-color: var(--gold-light); color: var(--navy); }
.btn-gold { background: var(--gold-light); color: var(--navy); border-color: var(--gold-light); }
.btn-gold:hover { background: #fff; border-color: #fff; }

/* Textos comunes */
.kicker {
  font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--blue); margin-bottom: 1.1rem; padding-left: 1rem; border-left: 3px solid var(--gold);
}
.section-navy .kicker { color: var(--gold-light); }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); line-height: 1.15; letter-spacing: -.01em; }
.section-lede { color: var(--ink-soft); max-width: 40rem; margin-top: 1rem; }
.section-lede + .section-lede { margin-top: .9rem; }
.fine { font-size: .82rem; color: var(--ink-soft); }

/* Portada */
.hero { padding-block: clamp(2.5rem, 7vw, 5rem) clamp(2rem, 5vw, 3.5rem); }
.hero-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(2rem, 6vw, 5rem); align-items: start; }
h1 { font-size: clamp(2rem, 4.2vw, 3.1rem); line-height: 1.14; letter-spacing: -.012em; margin-bottom: 1.5rem; }
.lede { font-size: 1.1rem; color: var(--ink-soft); max-width: 38rem; margin-bottom: 2rem; }
.actions { display: flex; flex-wrap: wrap; gap: .85rem; margin-bottom: 1.1rem; }
.reassure { font-size: .9rem; color: var(--ink-soft); }

.note { margin: 2.5rem 0 0; padding-left: 1.25rem; border-left: 1px solid var(--rule); max-width: 34rem; }
.note blockquote { margin: 0; }
.note blockquote p { font-family: var(--serif); font-size: 1.08rem; line-height: 1.5; color: var(--navy); }
.note figcaption { margin-top: .5rem; }
.sign { font-family: var(--script); font-weight: 600; font-size: 1.9rem; line-height: 1; color: var(--gold); display: inline-block; transform: rotate(-2deg); }

/* Tarjeta de servicios (estilo volante) */
.card { background: var(--navy); color: #fff; border-top: 4px solid var(--gold); box-shadow: 0 22px 44px -26px rgba(15,39,66,.6); overflow: hidden; }
.card-body { padding: 1.9rem 1.8rem 1.4rem; }
.card h2 { font-size: 1.6rem; font-weight: 500; color: var(--gold-light); margin: 0 0 .5rem; }
.card-sub { font-size: .98rem; color: #dbe5f0; margin-bottom: 1.4rem; padding-bottom: 1.2rem; border-bottom: 1px solid rgba(255,255,255,.18); }
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: .75rem; }
.checks li { position: relative; padding-left: 2rem; font-size: 1rem; line-height: 1.4; color: #eef3f8; }
.checks li::before {
  content: ""; position: absolute; left: .1rem; top: .28em; width: .5rem; height: .85rem;
  border-right: 2px solid var(--gold-light); border-bottom: 2px solid var(--gold-light); transform: rotate(40deg);
}
.checks strong { font-weight: 600; color: #fff; }
.checks small { display: block; font-size: .85rem; color: #b9c8da; }
.card-photo { display: block; width: 100%; height: auto; aspect-ratio: 1000 / 533; object-fit: cover; margin-top: .4rem; }

/* Franja de respaldo */
.proof {
  list-style: none; margin: clamp(2.5rem, 6vw, 4rem) 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--rule); background: var(--white);
}
.proof li { padding: 1.25rem 1.4rem; border-right: 1px solid var(--rule); display: grid; gap: .15rem; }
.proof li:last-child { border-right: 0; }
.proof strong { font-family: var(--serif); font-weight: 500; font-size: 1.15rem; color: var(--navy); }
.proof span { font-size: .88rem; color: var(--ink-soft); line-height: 1.45; }

/* Secciones */
.section { padding-block: clamp(3.5rem, 8vw, 6rem); }
.section-head { margin-bottom: clamp(2rem, 4vw, 3rem); }
.section-navy { background: var(--navy); color: #dbe5f0; }
.section-navy h2, .section-navy h3 { color: #fff; }
.section-navy .section-lede { color: #cdd8e5; }
.section-tint { background: var(--blue-soft); }

/* Servicios */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.service { background: var(--white); border: 1px solid var(--rule); border-top: 3px solid var(--navy); padding: 1.6rem 1.5rem 1.7rem; }
.service h3 { font-size: 1.25rem; font-weight: 500; margin-bottom: .6rem; }
.service p { font-size: .98rem; color: var(--ink-soft); }
.service-cta { background: var(--navy); border-color: var(--navy); border-top-color: var(--gold); display: flex; flex-direction: column; gap: .75rem; align-items: flex-start; }
.service-cta h3 { color: var(--gold-light); }
.service-cta p { color: #cdd8e5; flex: 1; }

/* Método */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; }
.steps li { border-top: 1px solid rgba(255,255,255,.3); padding-top: 1.25rem; }
.step-n { display: block; font-family: var(--serif); font-size: 2.2rem; color: var(--gold-light); line-height: 1; margin-bottom: 1rem; }
.steps h3 { font-size: 1.3rem; margin-bottom: .6rem; }
.steps p { font-size: .98rem; color: #cdd8e5; }
.note-light { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,.2); max-width: 42rem; font-size: .98rem; color: #cdd8e5; }

/* Informe */
.report-layout { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.report { margin: 0; background: var(--white); border: 1px solid var(--rule); border-top: 4px solid var(--navy); padding: 1.5rem; box-shadow: 0 18px 40px -28px rgba(15,39,66,.4); }
.report-head { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); padding-bottom: .9rem; border-bottom: 1px solid var(--rule); margin-bottom: 1.1rem; }
.callout { border-left: 3px solid var(--bad); background: #f8ecea; padding: .8rem 1rem; font-size: .93rem; margin-bottom: 1.25rem; }
.table-scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .92rem; font-variant-numeric: tabular-nums; }
th { text-align: left; font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); font-weight: 600; padding: .5rem .5rem .5rem 0; border-bottom: 1px solid var(--ink); }
td { padding: .7rem .5rem .7rem 0; border-bottom: 1px solid var(--rule); }
.r { text-align: right; white-space: nowrap; padding-right: 0; padding-left: .75rem; }
.bad { color: var(--bad); font-weight: 600; }
.best td { background: #eaf0e6; font-weight: 600; }
.report .fine { margin-top: 1rem; }

/* Planes */
.section-white { background: var(--white); }
.plans { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; align-items: stretch; }
.plan { display: flex; flex-direction: column; background: var(--navy); color: #fff; border-top: 4px solid var(--gold); box-shadow: 0 22px 44px -30px rgba(15,39,66,.6); }
.plan-head { background: var(--blue); color: #fff; font-family: var(--sans); font-weight: 600; font-size: 1.1rem; text-align: center; padding: 1rem; margin: 0; }
.plan-body { display: flex; flex-direction: column; flex: 1; padding: 1.6rem 1.4rem 1.6rem; }
.plan-price { font-family: var(--serif); font-size: clamp(2.2rem, 3.2vw, 2.8rem); line-height: 1.1; text-align: center; color: #fff; }
.plan-price .cur { font-size: .5em; vertical-align: super; margin-right: .1em; }
.plan-price-text { font-size: clamp(1.8rem, 2.6vw, 2.3rem); padding-block: .45rem; }
.plan-per { text-align: center; font-size: .88rem; color: #b9c8da; margin: .2rem 0 1.4rem; }
.plan-list { list-style: none; margin: 0 0 1.6rem; padding: 0; flex: 1; }
.plan-list li { position: relative; padding: .65rem 0 .65rem 1.9rem; border-top: 1px solid rgba(255,255,255,.16); font-size: .93rem; line-height: 1.4; color: #eef3f8; }
.plan-list li::before { content: ""; position: absolute; left: .15rem; top: .85rem; width: .45rem; height: .8rem; border-right: 2px solid var(--gold-light); border-bottom: 2px solid var(--gold-light); transform: rotate(40deg); }
.plan-list li.warn { color: #f3e3b6; font-size: .86rem; }
.plan-list li.warn::before { content: "!"; width: 1.05rem; height: 1.05rem; left: 0; top: .78rem; border: 1.5px solid var(--gold-light); border-radius: 50%; transform: none; color: var(--gold-light); font-size: .72rem; font-weight: 700; line-height: 1; display: grid; place-items: center; }
.plan .btn { text-align: center; }
.plans-note { margin-top: 1.75rem; max-width: 46rem; font-size: .88rem; color: var(--ink-soft); }

/* Semáforo de urgencia */
.report-sub { font-size: 1.05rem; font-weight: 500; margin: 1.6rem 0 .5rem; padding-top: 1.2rem; border-top: 1px solid var(--rule); }
.legend { display: flex; flex-wrap: wrap; gap: .4rem 1.1rem; font-size: .85rem; color: var(--ink-soft); margin-bottom: .9rem; }
.legend-item { display: inline-flex; align-items: center; gap: .45rem; white-space: nowrap; }
.pill { display: inline-flex; align-items: center; gap: .4rem; font-size: .75rem; font-weight: 600; padding: .1rem .65rem; border-radius: 999px; line-height: 1.6; white-space: nowrap; }
.pill::before { content: ""; width: .55rem; height: .55rem; border-radius: 50%; background: currentColor; }
.pill-alta { background: #fbe4e1; color: #a1261a; }
.pill-media { background: #fdf0cc; color: #8a5a00; }
.pill-baja { background: #e1f1e4; color: #1d6a33; }

/* Nosotros */
.about { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.about-photo { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-bottom: 4px solid var(--gold); }
.values { list-style: none; margin: 1.75rem 0 0; padding: 0; display: grid; gap: 1rem; }
.values li { padding-left: 1.1rem; border-left: 2px solid var(--gold); color: var(--ink-soft); }
.values strong { color: var(--navy); }

/* Equipo */
.team { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
.member { background: var(--white); border: 1px solid var(--rule); border-top: 3px solid var(--navy); padding: 1.75rem 1.6rem 1.9rem; }
.avatar { display: grid; place-items: center; width: 4.25rem; height: 4.25rem; border-radius: 50%; background: #0f2742; color: var(--gold-light); font-family: var(--serif); font-size: 1.45rem; font-weight: 500; letter-spacing: .02em; margin-bottom: 1.1rem; }
.member h3 { font-size: 1.35rem; font-weight: 500; }
.member-role { font-size: .85rem; font-weight: 600; letter-spacing: .04em; color: var(--blue); margin: .25rem 0 .9rem; }
.member-cred { font-size: .88rem; color: var(--ink-soft); margin: -.55rem 0 .9rem; }
.member p:last-child { color: var(--ink-soft); font-size: .98rem; }
.team + .values { margin-top: 2.5rem; max-width: 46rem; }
@media (max-width: 52rem) { .team { grid-template-columns: 1fr; } }

/* Preguntas */
.faq-layout { display: grid; grid-template-columns: 1fr 1.6fr; gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.faq { border-top: 1px solid var(--navy); }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary { list-style: none; cursor: pointer; padding: 1.2rem 2.5rem 1.2rem 0; position: relative; font-family: var(--serif); font-size: 1.2rem; color: var(--navy); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: .25rem; top: 50%; transform: translateY(-50%); font-family: var(--sans); font-size: 1.5rem; color: var(--gold); transition: transform .2s; }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 2.5rem 1.4rem 0; color: var(--ink-soft); }

/* Contacto */
.contact-layout { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.contact-list { list-style: none; margin: 2rem 0 0; padding: 0; border-top: 1px solid rgba(255,255,255,.35); }
.contact-list li { display: grid; grid-template-columns: 6rem 1fr; padding-block: .85rem; border-bottom: 1px solid rgba(255,255,255,.18); color: #fff; }
.contact-list span { font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: #b9c8da; padding-top: .25rem; }
.form { display: grid; gap: 1.25rem; background: var(--white); color: var(--ink); padding: clamp(1.4rem, 3vw, 2.2rem); border-top: 4px solid var(--gold); }
.field label { display: block; font-size: .85rem; font-weight: 600; margin-bottom: .35rem; color: var(--navy); }
.opt { font-weight: 400; color: var(--ink-soft); }
input, select, textarea {
  width: 100%; font: inherit; color: var(--ink); background: var(--bg);
  border: 1px solid var(--rule); border-bottom-color: var(--navy); border-radius: 0; padding: .75rem .85rem;
}
textarea { resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--blue); outline-offset: 0; border-color: var(--blue); }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: var(--bad); }
.err { color: var(--bad); font-size: .85rem; margin: .35rem 0 0; }
.hp { position: absolute; left: -9999px; }
.form .btn { justify-self: start; }
.form .btn-gold { background: var(--navy); color: #fff; border-color: var(--navy); }
.form .btn-gold:hover { background: var(--blue); border-color: var(--blue); }
.form-status { min-height: 1.5em; font-weight: 500; }
.form-status.ok { color: #2f5d3a; }
.form-status.fail { color: var(--bad); }

/* Footer */
.site-footer { background: var(--white); border-top: 1px solid var(--rule); padding-block: 2rem; font-size: .92rem; }
.footer-row { display: flex; flex-wrap: wrap; gap: .75rem 2rem; justify-content: space-between; align-items: baseline; }
.footer-row .fine { max-width: 32rem; }

/* Aparición suave */
.reveal { opacity: 0; transform: translateY(12px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* Responsive */
@media (max-width: 62rem) {
  .nav-toggle { display: inline-block; }
  .nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--white); border-bottom: 1px solid var(--rule); padding: .5rem var(--gutter) 1.25rem;
  }
  .nav.open { display: flex; }
  .nav a:not(.btn) { padding-block: .8rem; border-bottom: 1px solid var(--rule); }
  .nav .btn { margin-top: .9rem; text-align: center; }
  .hero-grid, .report-layout, .about, .faq-layout, .contact-layout { grid-template-columns: 1fr; }
  .card { max-width: 30rem; }
  .proof { grid-template-columns: repeat(2, 1fr); }
  .proof li:nth-child(2) { border-right: 0; }
  .proof li:nth-child(-n+2) { border-bottom: 1px solid var(--rule); }
  .services { grid-template-columns: repeat(2, 1fr); }
  .plans { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 36rem) {
  .topbar-row { justify-content: flex-start; }
  .brand-text small { display: none; }
  .proof, .services, .plans, .steps { grid-template-columns: 1fr; }
  .proof li { border-right: 0; border-bottom: 1px solid var(--rule); }
  .proof li:last-child { border-bottom: 0; }
  .actions .btn { flex: 1 1 100%; text-align: center; }
  .contact-list li { grid-template-columns: 1fr; }
}
