:root {
  --cream: #FBF6EE;
  --cream-2: #F3EADB;
  --sky: #7BA7CC;
  --sky-soft: #E3EEF7;
  --navy: #23476B;
  --navy-2: #1B3956;
  --peach: #F2B48C;
  --ink: #1F3347;
  --muted: #5B6B7B;
  --line: #E6DCCB;
  --white: #fff;
  --font-head: "Fraunces", Georgia, serif;
  --font-body: "Nunito Sans", system-ui, sans-serif;
  --r-lg: 28px;
  --r-md: 20px;

  --bk-surface: #fff;
  --bk-ink: var(--ink);
  --bk-muted: var(--muted);
  --bk-accent: var(--navy);
  --bk-on-accent: #fff;
  --bk-soft: var(--sky-soft);
  --bk-line: #E4E8EC;
  --bk-radius: 32px;
  --bk-radius-sm: 16px;
  --bk-shadow: 0 30px 60px -30px rgba(35, 71, 107, .35);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--cream); color: var(--ink); font-family: var(--font-body); font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-head); font-weight: 600; line-height: 1.12; letter-spacing: -.01em; margin: 0; }
h2 { font-size: clamp(1.85rem, 5.5vw, 2.7rem); }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; }
.wrap { width: min(1160px, 100% - 32px); margin-inline: auto; }

/* Botones */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 24px; border-radius: 999px; font: inherit; font-weight: 700; text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: background .2s, color .2s, transform .2s, box-shadow .2s; }
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--navy); color: #fff; box-shadow: 0 10px 22px -12px rgba(35, 71, 107, .8); }
.btn-primary:hover { background: var(--navy-2); }
.btn-ghost { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn-ghost:hover { background: var(--navy); color: #fff; }
.btn-lg { padding: 16px 28px; font-size: 1.05rem; }
.btn-sm { padding: 8px 16px; font-size: .9rem; }

/* Barra de muestra */
.demo-bar { background: var(--navy-2); color: #DCE7F1; font-size: 12.5px; text-align: center; padding: 7px 16px; line-height: 1.4; }
.demo-bar a { text-decoration: none; }
.demo-bar a:hover { text-decoration: underline; }
.demo-bar b { color: #fff; }

/* Encabezado */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(251, 246, 238, .9); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid transparent; transition: border-color .3s; }
.header-in { display: flex; align-items: center; gap: 12px; height: 68px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; margin-right: auto; }
.logo-mark { width: 40px; height: 40px; flex: none; }
.logo-text { display: flex; flex-direction: column; line-height: 1.1; }
.logo-text b { font-family: var(--font-head); font-size: 1.2rem; font-weight: 700; color: var(--navy); }
.logo-text small { font-size: .72rem; color: var(--muted); letter-spacing: .04em; }
.nav { display: none; }
.nav-toggle { width: 44px; height: 44px; border: 0; border-radius: 14px; background: var(--cream-2); cursor: pointer; display: grid; place-items: center; }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after { display: block; width: 18px; height: 2px; border-radius: 2px; background: var(--navy); position: relative; transition: .25s; }
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; }
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { top: 0; transform: rotate(-45deg); }
.nav.is-open { display: flex; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: var(--cream); padding: 8px 16px 20px; border-bottom: 1px solid var(--line); box-shadow: 0 20px 30px -20px rgba(0, 0, 0, .2); }
.nav.is-open a:not(.btn) { padding: 13px 4px; text-decoration: none; font-weight: 700; border-bottom: 1px solid var(--line); }
.nav.is-open .nav-cta { margin-top: 14px; }
@media (min-width: 900px) {
  .header-in { height: 78px; }
  .nav, .nav.is-open { display: flex; flex-direction: row; position: static; align-items: center; gap: 26px; padding: 0; background: none; border: 0; box-shadow: none; }
  .nav a:not(.btn) { text-decoration: none; font-weight: 600; color: var(--ink); border: 0; padding: 0; }
  .nav a:not(.btn):hover { color: var(--navy); }
  .nav .nav-cta { margin: 0; }
  .nav-toggle, .header-cta { display: none; }
}

/* Portada */
.hero { padding: 18px 0 56px; overflow: hidden; }
.hero-in { display: grid; gap: 30px; }
.eyebrow { font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--sky); margin-bottom: 12px; }
.hero h1 { font-size: clamp(2.35rem, 9vw, 4rem); color: var(--navy); }
.hero h1 em { font-style: italic; font-weight: 500; color: var(--ink); background: linear-gradient(transparent 62%, rgba(242, 180, 140, .55) 62% 90%, transparent 90%); }
.lead { font-size: 1.1rem; color: var(--muted); margin: 18px 0 26px; max-width: 520px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-actions .btn { flex: 1 1 200px; }
.hero-points { list-style: none; padding: 0; margin: 22px 0 0; display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: .92rem; color: var(--muted); }
.hero-points li::before { content: "✓"; color: var(--navy); font-weight: 700; margin-right: 6px; }
.hero-media { position: relative; order: -1; margin: 0 6px; }
.hero-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: 40% center; border-radius: 120px 32px 120px 32px; box-shadow: 0 30px 60px -30px rgba(35, 71, 107, .45); }
.hero-media::before { content: ""; position: absolute; inset: auto -40px -30px auto; width: 70%; height: 70%; border-radius: 50%; background: var(--sky-soft); z-index: -1; }
.hero-badge { position: absolute; background: #fff; border-radius: 18px; padding: 10px 14px; box-shadow: 0 14px 30px -14px rgba(31, 51, 71, .35); font-size: .85rem; font-weight: 700; animation: float 6s ease-in-out infinite; }
.hero-badge-a { left: -6px; top: 18px; display: flex; align-items: center; gap: 8px; }
.hero-badge-b { right: -4px; bottom: 18px; display: flex; flex-direction: column; line-height: 1.25; animation-delay: -3s; }
.hero-badge-b b { color: var(--navy); font-family: var(--font-head); font-size: 1.05rem; }
.hero-badge-b small { color: var(--muted); font-weight: 600; }
.dot { width: 10px; height: 10px; border-radius: 50%; background: #5BBF8A; box-shadow: 0 0 0 4px #DDF3E6; }
@keyframes float { 50% { transform: translateY(-6px); } }
@media (min-width: 900px) {
  .hero { padding: 54px 0 90px; }
  .hero-in { grid-template-columns: 1.02fr 1fr; align-items: center; gap: 56px; }
  .hero-media { order: 0; margin: 0; }
  .hero-media img { aspect-ratio: 1 / 1.02; border-radius: 200px 40px 200px 40px; }
  .hero-badge-a { left: -30px; top: 40px; }
  .hero-badge-b { right: -20px; bottom: 50px; }
  .hero-actions .btn { flex: 0 0 auto; }
}

/* Secciones */
.section { padding: 72px 0; }
.section-soft { background: #fff; border-radius: 48px 48px 0 0; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 38px; }
.section-head h2 { color: var(--navy); }
.section-head > p:last-child:not(.eyebrow) { color: var(--muted); margin-top: 12px; }
.section-head-left { text-align: left; margin-left: 0; }
@media (min-width: 900px) { .section { padding: 104px 0; } .section-head { margin-bottom: 54px; } }

/* Tratamientos */
.cards { display: grid; gap: 18px; }
@media (min-width: 640px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .cards { grid-template-columns: repeat(3, 1fr); gap: 24px; } }
.card { background: #fff; border-radius: var(--r-lg); overflow: hidden; box-shadow: 0 18px 40px -28px rgba(31, 51, 71, .45); display: flex; flex-direction: column; transition: transform .3s, box-shadow .3s; }
.card:hover { transform: translateY(-4px); box-shadow: 0 26px 50px -28px rgba(31, 51, 71, .5); }
.card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
@media (min-width: 640px) { .card img { aspect-ratio: 16 / 10; } }
.card-body { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.card h3 { font-size: 1.3rem; color: var(--navy); margin-bottom: 6px; }
.card p { color: var(--muted); font-size: .96rem; }
.card-foot { margin-top: auto; padding-top: 16px; display: flex; align-items: center; justify-content: space-between; }
.price { font-size: .9rem; color: var(--muted); }
.price b { font-family: var(--font-head); font-size: 1.45rem; color: var(--ink); }
.card-foot a { font-weight: 700; color: var(--navy); text-decoration: none; background: var(--sky-soft); padding: 8px 14px; border-radius: 999px; font-size: .9rem; }
.card-foot a:hover { background: var(--navy); color: #fff; }

/* Por qué elegirnos */
.why { display: grid; gap: 36px; }
.why-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 32px 120px 32px 32px; }
.reasons { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.reasons li { display: flex; gap: 16px; align-items: flex-start; background: var(--cream); border-radius: var(--r-md); padding: 18px; }
.reason-ico { flex: none; width: 48px; height: 48px; border-radius: 16px; background: #fff; display: grid; place-items: center; }
.reason-ico svg { width: 24px; height: 24px; fill: none; stroke: var(--navy); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.reasons h3 { font-size: 1.12rem; color: var(--navy); margin-bottom: 4px; }
.reasons p { color: var(--muted); font-size: .95rem; }
@media (min-width: 900px) { .why { grid-template-columns: 1fr 1.05fr; align-items: center; gap: 64px; } .why-media img { aspect-ratio: 4 / 5; } .reasons { grid-template-columns: 1fr 1fr; } }

/* Equipo */
.team { display: grid; gap: 22px; max-width: 920px; margin: 0 auto; }
@media (min-width: 700px) { .team { grid-template-columns: 1fr 1fr; } .doc img { aspect-ratio: 4 / 3; } }
.doc { background: #fff; box-shadow: 0 18px 40px -30px rgba(31, 51, 71, .45); border-radius: var(--r-lg); overflow: hidden; }
.doc img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.doc-body { padding: 20px 22px 24px; }
.doc h3 { font-size: 1.4rem; color: var(--navy); }
.doc-role { color: #3F78A8; font-weight: 700; font-size: .92rem; margin: 4px 0 10px; }
.doc-body p:last-child { color: var(--muted); font-size: .96rem; }

/* Reseñas */
.rating { display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; font-weight: 700; font-size: .9rem; color: var(--muted); background: var(--cream); padding: 8px 16px; border-radius: 999px; }
.stars { color: #F4B400; letter-spacing: 2px; }
.reviews { display: grid; grid-auto-flow: column; grid-auto-columns: 84%; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; margin-inline: -16px; padding-inline: 16px; scrollbar-width: none; }
.reviews::-webkit-scrollbar { display: none; }
.review { scroll-snap-align: center; }
@media (min-width: 800px) { .reviews { grid-auto-flow: row; grid-template-columns: repeat(3, 1fr); gap: 22px; overflow: visible; margin-inline: 0; padding-inline: 0; } }
.review { background: var(--cream); border: 2px dashed var(--line); border-radius: var(--r-lg); padding: 24px; display: flex; flex-direction: column; gap: 14px; }
.review .stars { font-size: 1.2rem; }
.review p { font-family: var(--font-head); font-size: 1.12rem; font-style: italic; color: var(--ink); }
.review-who { display: flex; align-items: center; gap: 10px; margin-top: auto; }
.avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--sky-soft); }
.line { height: 10px; width: 110px; border-radius: 6px; background: var(--cream-2); }

/* Citas */
.section-book { background: linear-gradient(180deg, var(--sky-soft), var(--cream)); }
.section-book .section-head { max-width: 780px; }
.section-book .section-head h2 { font-size: clamp(2rem, 6.5vw, 3rem); }

/* Ubicación */
.visit { display: grid; gap: 30px; }
.visit h2 { color: var(--navy); margin-bottom: 22px; }
.visit-list { margin: 0; display: grid; gap: 16px; }
.visit-list div { display: grid; gap: 2px; }
.visit-list dt { font-weight: 700; font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: var(--sky); }
.visit-list dd { margin: 0; }
.visit-note { margin-top: 18px; color: var(--muted); font-size: .95rem; background: #fff; border-radius: 16px; padding: 12px 16px; }
.map { position: relative; min-height: 320px; border-radius: var(--r-lg); overflow: hidden; background: #E9EFE6; }
.map-roads { position: absolute; inset: -20%; background:
  linear-gradient(90deg, transparent 47%, #fff 47% 53%, transparent 53%) 0 0 / 160px 100%,
  linear-gradient(0deg, transparent 46%, #fff 46% 54%, transparent 54%) 0 0 / 100% 130px,
  linear-gradient(90deg, transparent 49%, #F7E7C6 49% 51%, transparent 51%) 0 0 / 100% 100%;
  transform: rotate(-12deg); }
.map::after { content: ""; position: absolute; width: 130px; height: 90px; border-radius: 24px; background: #CFE3C8; left: 12%; bottom: 14%; }
.map-pin { position: absolute; left: 50%; top: 46%; transform: translate(-50%, -100%); display: flex; flex-direction: column; align-items: center; z-index: 1; }
.map-pin svg { width: 46px; height: 46px; fill: #D9534F; filter: drop-shadow(0 6px 6px rgba(0, 0, 0, .25)); }
.map-pin span { background: #fff; font-weight: 700; font-size: .85rem; padding: 4px 10px; border-radius: 10px; box-shadow: 0 4px 12px rgba(0, 0, 0, .15); margin-top: 2px; }
.map-label { position: absolute; left: 12px; right: 12px; bottom: 12px; z-index: 1; background: rgba(255, 255, 255, .92); border-radius: 12px; padding: 8px 12px; font-size: .82rem; color: var(--muted); text-align: center; }
@media (min-width: 900px) { .visit { grid-template-columns: 1fr 1.2fr; gap: 56px; align-items: center; } .map { min-height: 440px; } }

/* Preguntas */
.faq-wrap { max-width: 820px; }
.faq { display: grid; gap: 12px; }
.faq details { background: var(--cream); border-radius: var(--r-md); padding: 0 20px; }
.faq summary { cursor: pointer; list-style: none; padding: 18px 34px 18px 0; font-weight: 700; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%); width: 28px; height: 28px; border-radius: 50%; background: #fff; display: grid; place-items: center; color: var(--navy); font-size: 1.2rem; transition: transform .25s; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { padding: 0 0 18px; color: var(--muted); }

/* Pie */
.site-footer { background: var(--navy); color: #DCE7F1; padding: 56px 0 100px; }
.footer-in { display: grid; gap: 30px; }
.logo-light .logo-text b { color: #fff; }
.logo-light .logo-text small { color: #B7CADC; }
.footer-tag { margin: 14px 0 16px; }
.site-footer h3 { font-family: var(--font-body); font-size: .8rem; text-transform: uppercase; letter-spacing: .12em; color: var(--peach); margin-bottom: 10px; }
.site-footer p { font-size: .95rem; }
.footer-in p + p { margin-top: 6px; }
.social { display: flex; gap: 10px; }
.social a { width: 42px; height: 42px; border-radius: 14px; background: rgba(255, 255, 255, .1); display: grid; place-items: center; }
.social a:hover { background: rgba(255, 255, 255, .2); }
.social svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .15); margin-top: 40px; padding-top: 20px; display: flex; flex-wrap: wrap; gap: 6px 24px; justify-content: space-between; font-size: .82rem; color: #A9BDD0; }
@media (min-width: 800px) { .footer-in { grid-template-columns: 1.4fr 1fr 1fr; } .site-footer { padding-bottom: 40px; } }

/* WhatsApp flotante */
.wa-float { position: fixed; right: 16px; bottom: 16px; z-index: 60; display: flex; align-items: center; gap: 8px; background: #25D366; color: #fff; text-decoration: none; font-weight: 700; font-size: .92rem; padding: 12px; border-radius: 999px; box-shadow: 0 12px 26px -8px rgba(0, 0, 0, .35); transition: transform .2s; }
.wa-float:hover { transform: translateY(-2px); }
.wa-float svg { width: 30px; height: 30px; }
.wa-float span { display: none; }
@media (min-width: 900px) { .wa-float { padding: 12px 20px 12px 14px; right: 24px; bottom: 24px; } .wa-float span { display: inline; } }

/* Aparición al hacer scroll */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-in { opacity: 1; transform: none; }
.cards .reveal:nth-child(3n+2), .reviews .reveal:nth-child(2), .team .reveal:nth-child(2) { transition-delay: .08s; }
.cards .reveal:nth-child(3n), .reviews .reveal:nth-child(3) { transition-delay: .16s; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } .hero-badge { animation: none; } }
