/* Fuentes locales (sin pedir nada a Google) */
@font-face { font-family: "Lora"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/lora-latin.woff2") format("woff2"); }
@font-face { font-family: "Lora"; font-style: italic; font-weight: 400; font-display: swap; src: url("fonts/lora-italic-latin.woff2") format("woff2"); }
@font-face { font-family: "Nunito Sans"; font-style: normal; font-weight: 400 500; font-display: swap; src: url("fonts/nunito-sans-latin.woff2") format("woff2"); }

:root {
  --navy: #0E0D2F;
  --aqua: #3185B1;
  --aqua-dark: #256A8F;
  --white: #FFFFFF;
  --tint: #EEF5F9;
  --line: #D9E6EE;
  --muted: #4A4F66;
  --sage: #2F7F74;
  --aqua-strong: #2877A3;
  --serif: "Lora", Georgia, serif;
  --sans: "Nunito Sans", system-ui, sans-serif;
  --radius: 14px;
  --ease: cubic-bezier(.25, 1, .3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.5;
  color: var(--navy);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video { max-width: 100%; display: block; }
img { height: auto; }
a { color: inherit; }
p { margin: 0 0 .9rem; }

.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(760px, 100% - 32px); }
.center { text-align: center; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--navy); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--aqua); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3 { text-wrap: balance; font-family: var(--serif); font-weight: 400; line-height: .97; letter-spacing: -1px; margin: 0 0 1rem; }
h1 { font-size: clamp(2.2rem, 5.2vw, 3.7rem); }
.hero h1 { font-size: clamp(2.7rem, 6.6vw, 4.8rem); line-height: .97; letter-spacing: -1px; }
h2 { font-size: clamp(1.8rem, 3.8vw, 2.7rem); }
h3 { font-size: 1.45rem; line-height: 1.05; }
strong, b { font-weight: 500; }
em { font-style: italic; color: var(--aqua); }

.eyebrow { font-size: .8rem; font-weight: 500; letter-spacing: .09em; text-transform: uppercase; color: var(--aqua-dark); margin-bottom: 1rem; }
.lead { font-size: 1.2rem; line-height: 1.5; }

/* Progress */
.progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; background: var(--aqua); transform: scaleX(0); transform-origin: left; z-index: 70; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 12px 26px;
  background: var(--navy); color: #fff; text-decoration: none;
  font-weight: 500; font-size: 1rem; border-radius: 999px;
  transition: background-color .25s ease, transform .25s var(--ease);
}
.btn:hover { background: var(--aqua); transform: translateY(-2px); }
.btn:active { transform: scale(.98); }
.btn-small { min-height: 44px; padding: 8px 20px; font-size: .95rem; }
.btn-large { min-height: 56px; padding: 14px 34px; font-size: 1.1rem; background: var(--aqua-dark); }
.btn-large:hover { background: var(--navy); }

.pulse { position: relative; }
.pulse::after, .wa-float::after { content: ""; position: absolute; inset: 0; border-radius: inherit; border: 2px solid var(--aqua); pointer-events: none; animation: ring 2.8s ease-out infinite; }
@keyframes ring { 0% { transform: scale(1); opacity: .7; } 100% { transform: scale(1.1, 1.3); opacity: 0; } }

.link-arrow { display: inline-flex; align-items: center; min-height: 44px; font-weight: 500; text-decoration: none; border-bottom: 1px solid var(--aqua); padding-bottom: 2px; }
.link-arrow::after { content: "\2192"; margin-left: 8px; transition: transform .25s var(--ease); }
.link-arrow:hover::after { transform: translateX(5px); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; margin-top: 1.75rem; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 60; background: rgba(255,255,255,.96); border-bottom: 1px solid transparent; transition: border-color .3s, box-shadow .3s; }
.site-header.scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 20px rgba(14,13,47,.05); }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 72px; }
.brand img { height: 46px; width: auto; }
.nav { display: none; gap: 28px; }
.nav a { text-decoration: none; font-weight: 400; font-size: .95rem; padding: 10px 0; position: relative; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 4px; height: 1px; background: var(--aqua); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.nav a:hover::after { transform: scaleX(1); }

/* Reveal & rise (solo con JS, para no ocultar nada si falla) */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .5s var(--ease) var(--d, 0s), transform .5s var(--ease) var(--d, 0s); }
.js .reveal.in { opacity: 1; transform: none; }

.js .rise { opacity: 0; transform: translateY(10px); animation: rise .5s var(--ease) var(--d, 0s) forwards; }
@keyframes rise { to { opacity: 1; transform: none; } }

.line { display: block; overflow: hidden; padding: .1em 0 .18em; margin: -.1em 0 -.14em; }
.l-in { display: inline-block; }
.js .l-in { transform: translateY(110%); animation: line-up .55s var(--ease) var(--d, 0s) forwards; }
@keyframes line-up { to { transform: none; } }

/* Circle reveal */
@keyframes circle-in-center {
  from { clip-path: circle(0%); }
  to { clip-path: circle(125%); }
}
.js .circle, .js .circle-wrap img { clip-path: circle(0%); }
.js .circle.in { animation: 1s var(--ease) circle-in-center both; }
.js .circle-wrap.in img { animation: 1s var(--ease) circle-in-center both; }
.js .circle.done, .js .circle-wrap.done img { clip-path: none; animation: none; }

/* Hero */
.hero { position: relative; min-height: min(92vh, 820px); display: flex; align-items: center; overflow: hidden; background: #E9EEF2; }
.hero-bg { position: absolute; inset: 0; }
.hero-bg { contain: paint; }
.hero-bg video { position: absolute; left: 0; top: -12%; width: 100%; height: 124%; object-fit: cover; object-position: 60% 50%; will-change: transform; }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(255,255,255,.88) 0%, rgba(255,255,255,.72) 55%, rgba(255,255,255,.35) 100%); }
.hero-inner { position: relative; padding: 72px 0 96px; }
.hero-copy { max-width: 720px; }
.hero h1 { margin-bottom: 1.25rem; }
.trust { list-style: none; padding: 0; margin: 2rem 0 0; display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: .92rem; font-weight: 500; }
.trust li { position: relative; padding-left: 22px; }
.trust li::before { content: ""; position: absolute; left: 1px; top: .5em; width: 11px; height: 6px; border-left: 2px solid var(--aqua); border-bottom: 2px solid var(--aqua); transform: rotate(-45deg); }


/* Marquee */
.marquee { background: var(--navy); color: #fff; overflow: hidden; padding: 16px 0; }
.marquee-track { display: flex; width: max-content; align-items: center; gap: 28px; font-family: var(--serif); font-style: italic; font-size: 1.25rem; white-space: nowrap; animation: marquee 38s linear infinite; }
.marquee-track i { width: 6px; height: 6px; border-radius: 50%; background: #8FC6E6; flex: none; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Sections */
.section { padding: 80px 0; }
.tint { background: var(--tint); }
.section-head { max-width: 680px; margin-bottom: 3rem; }

/* Pillar cards: burbuja de color + borde tintado + elevación */
.pillars { list-style: none; margin: 0; padding: 0; display: grid; gap: 20px; }
.pillar { background: #fff; border-radius: 18px; padding: 32px 28px; text-align: center; border: 1px solid var(--bd); transition: transform .4s var(--ease), box-shadow .4s var(--ease), opacity .8s var(--ease) var(--d, 0s); }
.js .pillar.reveal { transition: opacity .5s var(--ease) var(--d, 0s), transform .5s var(--ease) var(--d, 0s), box-shadow .4s var(--ease); }
.pillar:hover { box-shadow: 0 18px 40px rgba(14,13,47,.09); }
.js .pillar.reveal.in:hover { transform: translateY(-6px); }
.c-aqua { --bd: #BCDCEC; --bg: #E3F0F7; --fg: var(--aqua); }
.c-navy { --bd: #CBCBE0; --bg: #E6E6F1; --fg: var(--navy); }
.c-sage { --bd: #BFDFD9; --bg: #E2F2EF; --fg: var(--sage); }
.bubble { display: grid; place-items: center; width: 76px; height: 76px; margin: 0 auto 20px; border-radius: 50%; background: var(--bg); transition: transform .5s var(--ease); }
.pillar:hover .bubble { transform: scale(1.1) rotate(-6deg); }
.bubble svg { width: 30px; height: 30px; fill: none; stroke: var(--fg); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.bubble path, .bubble circle { stroke-dasharray: 1; stroke-dashoffset: 0; }
.js .pillar .bubble path, .js .pillar .bubble circle { stroke-dashoffset: 1; }
.js .pillar.in .bubble path, .js .pillar.in .bubble circle { animation: draw .8s var(--ease) .1s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.pillar h3 { font-size: 1.2rem; margin-bottom: .5rem; }
.pillar p { margin: 0; color: var(--muted); font-size: 1rem; }

/* Options */
.option { display: grid; gap: 28px; align-items: center; margin-bottom: 64px; }
.option:last-child { margin-bottom: 0; }
.pframe { position: relative; overflow: hidden; border-radius: var(--radius); aspect-ratio: 1/1; }
.pframe img { position: absolute; left: 0; top: -9%; width: 100%; height: 118%; object-fit: cover; will-change: transform; }
.price { font-size: 1.05rem; color: var(--aqua-dark); border-bottom: 1px solid var(--line); padding-bottom: 1rem; }
.price strong { font-family: var(--serif); font-weight: 400; font-size: 2.2rem; color: var(--navy); font-variant-numeric: tabular-nums; }
.note { color: var(--muted); font-size: .98rem; margin-bottom: 1.5rem; }

/* Consult band (parallax) */
.consult { position: relative; overflow: hidden; background: #DFE1E3; }
.consult-bg { position: relative; height: 300px; overflow: hidden; }
.consult-bg img { position: absolute; left: 0; top: -12%; width: 100%; height: 124%; object-fit: cover; object-position: 78% 50%; will-change: transform; }
.consult-inner { position: relative; padding: 40px 0 56px; background: var(--tint); width: 100%; max-width: none; margin: 0; }
.consult-copy { width: min(1120px, 100% - 32px); margin-inline: auto; }
.consult-copy > * { max-width: 520px; }

/* Steps */
.steps-band { background: var(--navy); color: #fff; padding: 64px 0 72px; }
.steps-band .eyebrow { color: #8FC6E6; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 28px; }
.steps li { border-top: 1px solid rgba(255,255,255,.22); padding-top: 20px; position: relative; }
.steps li::before { content: ""; position: absolute; left: 0; top: -1px; height: 2px; width: 0; background: #8FC6E6; transition: width .7s var(--ease) calc(var(--d, 0s) + .1s); }
.steps li.in::before { width: 56px; }
.num { font-family: var(--serif); font-style: italic; font-size: 2.4rem; line-height: 1; color: #8FC6E6; display: block; margin-bottom: 12px; }
.steps p { color: #D6DCEB; margin: 0; }

/* About */
.about { display: grid; gap: 40px; align-items: center; }
.about-photo { width: min(340px, 80%); margin-inline: auto; border-radius: 50%; box-shadow: 0 18px 36px rgba(14,13,47,.14); }
.about-photo img { width: 100%; animation: float 7s ease-in-out infinite; }
@keyframes float { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-10px) rotate(1.2deg); } }
.chips { list-style: none; padding: 0; margin: 1.25rem 0 1.75rem; display: flex; flex-wrap: wrap; gap: 10px; }
.chips li { padding: 6px 16px; border: 1px solid var(--aqua); border-radius: 999px; font-size: .9rem; font-weight: 500; color: var(--aqua-dark); background: #fff; }

/* FAQ */
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 22px 40px 22px 0; font-family: var(--serif); font-size: 1.2rem; line-height: 1.05; letter-spacing: -1px; position: relative; min-height: 44px; transition: color .2s; }
.faq summary:hover { color: var(--aqua-dark); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 18px; font-family: var(--sans); font-size: 1.6rem; color: var(--aqua); transition: transform .3s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); padding-right: 40px; margin-top: -6px; animation: fade-down .4s var(--ease); }
@keyframes fade-down { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* Closing */
.closing { position: relative; overflow: hidden; padding: 96px 0; background: var(--tint); }
.closing-glow { position: absolute; width: 560px; height: 560px; left: 50%; top: 50%; margin: -280px 0 0 -280px; border-radius: 50%; background: radial-gradient(circle, rgba(49,133,177,.22), rgba(49,133,177,0) 65%); pointer-events: none; }
.closing .wrap { position: relative; }
.closing .btn { margin: 1rem 0 1.5rem; }
.where { color: var(--muted); margin-bottom: .25rem; }
.phone { font-family: var(--serif); font-size: 1.3rem; margin: 0; }

/* Footer */
.site-footer { padding: 48px 0 100px; border-top: 1px solid var(--line); }
.footer-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.footer-row img { height: 52px; width: auto; }
.social { display: flex; gap: 24px; }
.social a { text-decoration: none; font-weight: 500; padding: 10px 0; }
.social a:hover { color: var(--aqua); }
.legal { color: var(--muted); font-size: .85rem; }
.legal p { margin-bottom: .5rem; }

/* WhatsApp floating */
.wa-float { position: fixed; right: 16px; bottom: 16px; width: 56px; height: 56px; border-radius: 50%; background: #1FA855; display: grid; place-items: center; box-shadow: 0 6px 18px rgba(14,13,47,.25); z-index: 65; transition: transform .25s var(--ease); }
.wa-float::after { border-color: #1FA855; }
.wa-float:hover { transform: scale(1.08); background: #178F46; }
.wa-float svg { width: 28px; height: 28px; fill: none; stroke: #fff; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

@media (min-width: 820px) {
  .nav { display: flex; }
  .brand img { height: 52px; }
  .hero-shade { background: linear-gradient(90deg, rgba(255,255,255,.95) 0%, rgba(255,255,255,.82) 38%, rgba(255,255,255,.12) 72%, rgba(255,255,255,0) 100%); }
  .hero-inner { padding: 96px 0 120px; }
    .section { padding: 112px 0; }
  .pillars { grid-template-columns: repeat(3, 1fr); }
  .option { grid-template-columns: 1fr 1fr; gap: 72px; margin-bottom: 96px; }
  .option.reverse .pframe { order: 2; }
  .consult { min-height: 640px; display: flex; align-items: center; }
  .consult-bg { position: absolute; inset: 0; height: auto; }
  .consult-bg img { object-position: 85% 50%; }
  .consult-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(238,245,249,.92) 0%, rgba(238,245,249,.55) 38%, rgba(238,245,249,0) 62%); }
  .consult-inner { background: none; padding: 96px 0; }
  .steps-band { padding: 88px 0 96px; }
  .steps { grid-template-columns: repeat(4, 1fr); gap: 32px; }
  .about { grid-template-columns: .8fr 1.2fr; gap: 96px; }
  .closing { padding: 128px 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal, .js .rise, .js .l-in { opacity: 1; transform: none; }
  .js .circle, .js .circle-wrap img { clip-path: none; }
  .js .pillar .bubble path, .js .pillar .bubble circle { stroke-dashoffset: 0; }
  .steps li::before { width: 56px; }
  .marquee-track { transform: none; }
}

.js .about-photo.done img { animation: float 7s ease-in-out infinite; }

/* Sección aqua fuerte */
.aqua { background: var(--aqua-strong); color: #fff; }
.aqua .eyebrow { color: #CFE8F5; }
.aqua em { color: #DDF1FB; }
.aqua .section-head p { color: #fff; }
.aqua .pillar { border-color: transparent; box-shadow: 0 10px 28px rgba(8,45,70,.22); }
.aqua .pillar:hover { box-shadow: 0 22px 44px rgba(8,45,70,.32); }

/* Redes sociales: relleno de color desde abajo + etiqueta */
.social-icons { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 16px; }
.social-icons.center-row { justify-content: center; }
.social-icons li { position: relative; }
.social-btn { position: relative; display: flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 50%; background: #fff; color: var(--navy); border: 1px solid var(--line); overflow: hidden; transition: box-shadow .3s var(--ease), color .3s ease, border-color .3s ease; }
.social-btn .fill { position: absolute; left: 0; bottom: 0; width: 100%; height: 0; background: var(--brand); transition: height .3s var(--ease); }
.social-btn svg { position: relative; z-index: 1; width: 24px; height: 24px; }
.social-btn:hover, .social-btn:focus-visible { color: #fff; border-color: var(--brand); box-shadow: 0 8px 18px rgba(14,13,47,.18); }
.social-btn:hover .fill, .social-btn:focus-visible .fill { height: 100%; }
.tip { position: absolute; left: 50%; bottom: -34px; transform: translate(-50%, -4px); padding: 4px 10px; border-radius: 6px; background: var(--brand); color: #fff; font-size: .8rem; font-weight: 500; white-space: nowrap; opacity: 0; visibility: hidden; transition: opacity .25s ease, transform .25s var(--ease); pointer-events: none; z-index: 2; }
.social-icons li:hover .tip, .social-icons li:focus-within .tip { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.follow { margin: 1.75rem 0 .75rem; font-size: .8rem; font-weight: 500; letter-spacing: .09em; text-transform: uppercase; color: var(--aqua-dark); }
.closing { padding-bottom: 120px; }
.foot-brand p { margin: 8px 0 0; font-family: var(--serif); font-style: italic; color: var(--aqua-dark); }
.footer-row { margin-bottom: 56px; }
.aqua .pillar h3 { color: var(--navy); }
.phone a { text-decoration: none; }
.phone a:hover { color: var(--aqua-dark); }

