/* =========================================================
   Dermatología Koll — Hoja de estilos principal
   Réplica editable del sitio (antes en Hostinger / Zyro)
   Paleta y tipografías extraídas del sitio original.
   ========================================================= */

:root{
  --teal:#428280;          /* color de marca */
  --teal-text:#35696B;   /* teal oscurecido para TEXTO: 5,85:1 sobre marfil (WCAG AA) */
  --teal-dark:#356b69;
  --teal-soft:#e7f0ef;
  --ink:#1d1e20;           /* texto principal */
  --ink-soft:#3f4448;
  --muted:#6b7177;
  --line:#e6e8ea;
  --bg:#ffffff;
  --bg-alt:#f4f6f8;        /* secciones gris-azulado claro */
  --gold:#e6b800;          /* estrellas */
  --radius:28px;           /* pill */
  --maxw:1224px;
  --serif:'Fraunces', 'Lora', 'Times New Roman', serif;
  --sans:'DM Sans', system-ui, sans-serif;
  --accent:'DM Sans', sans-serif;
}

/* ---------- Reset ---------- */
*{margin:0;padding:0;box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  font-family:var(--sans);
  color:var(--ink);
  background:var(--bg);
  line-height:1.6;
  -webkit-font-smoothing:antialiased;
  overflow-x:hidden;
}
img{max-width:100%;height:auto;display:block}
a{color:inherit;text-decoration:none}
ul{list-style:none}

h1,h2,h3,h4{font-family:var(--serif);font-weight:600;line-height:1.2;color:var(--ink)}
h1{font-size:clamp(2rem,4.5vw,3.4rem)}
h2{font-size:clamp(1.7rem,3.2vw,2.6rem)}
h3{font-size:clamp(1.3rem,2.2vw,1.8rem)}

.container{max-width:var(--maxw);margin:0 auto;padding:0 24px}
.section{padding:84px 0}
.section--alt{background:var(--bg-alt)}
.center{text-align:center}
.eyebrow{
  font-family:var(--serif);font-style:italic;color:var(--teal-text);
  letter-spacing:.04em;font-size:1rem;margin-bottom:14px
}
.lead{font-size:1.12rem;color:var(--ink-soft);max-width:680px}
.center .lead{margin-left:auto;margin-right:auto}
.muted{color:var(--muted)}

/* ---------- Botones ---------- */
.btn{
  display:inline-flex;align-items:center;justify-content:center;gap:8px;
  font-family:var(--accent);font-weight:600;font-size:.95rem;
  padding:15px 34px;border-radius:var(--radius);cursor:pointer;
  border:1.5px solid transparent;transition:.25s ease;letter-spacing:.02em;
}
.btn--primary{background:var(--teal);color:#fff}
.btn--primary:hover{background:var(--teal-dark);transform:translateY(-2px)}
.btn--ghost{background:transparent;color:#fff;border-color:#fff}
.btn--ghost:hover{background:#fff;color:var(--ink)}
.btn--outline{background:transparent;color:var(--teal-text);border-color:var(--teal-text)}
.btn--outline:hover{background:var(--teal);color:#fff}

/* ---------- Barra superior (utilidad) ---------- */
.topbar{background:var(--teal);color:#fff;font-size:.82rem}
.topbar__inner{max-width:1320px;margin:0 auto;padding:8px 24px;display:flex;align-items:center;justify-content:space-between;gap:16px}
.topbar__tag{font-family:var(--serif);font-style:italic;letter-spacing:.04em;color:#eaf3f2}
.topbar__right{display:flex;align-items:center;gap:20px}
.topbar__phone{display:inline-flex;align-items:center;gap:7px;color:#fff;font-weight:600;font-family:var(--accent);font-size:.82rem;transition:opacity .2s}
.topbar__phone:hover{opacity:.82}
.topbar__phone svg{width:14px;height:14px}
.topbar .status-badge{color:#fff;font-size:.8rem;font-weight:600}
.topbar .status-open .status-dot{background:#86efac;box-shadow:0 0 0 3px rgba(134,239,172,.3)}
.topbar .status-closed .status-dot{background:#cdd6d5;box-shadow:none}
.socials--top{gap:14px}
.socials--top a{color:#fff;opacity:.9;transition:opacity .2s,transform .2s}
.socials--top a:hover{opacity:1;transform:translateY(-1px)}
.socials--top svg{width:16px;height:16px}

/* ---------- Header ---------- */
.header{position:sticky;top:0;z-index:70;background:rgba(255,255,255,.97);border-bottom:1px solid var(--line);
  transition:box-shadow .35s ease,background .35s ease,padding .35s ease}
.header__inner{display:flex;align-items:center;justify-content:space-between;gap:28px;padding:10px 24px;max-width:1320px;margin:0 auto}
.logo img{height:82px;width:auto;display:block;transition:height .35s ease}
.nav{display:flex;gap:4px}
.nav>a{font-family:var(--accent);font-weight:600;font-size:.82rem;letter-spacing:.07em;text-transform:uppercase;
  color:var(--ink-soft);padding:10px 16px;border-radius:999px;position:relative;transition:color .2s,background .2s}
.nav>a:hover{color:var(--teal-text);background:var(--teal-soft)}
.nav>a.active{color:var(--teal-text)}
.nav>a.active::after{content:"";position:absolute;left:16px;right:16px;bottom:3px;height:2px;background:var(--teal);border-radius:2px}
.header__right{display:flex;align-items:center;gap:14px}
.btn--header{padding:12px 24px;box-shadow:0 10px 24px -12px rgba(66,130,128,.75)}
.btn--header svg{width:17px;height:17px}
.socials{display:flex;gap:12px}
.socials a{color:var(--ink);transition:.2s}
.socials a:hover{color:var(--teal-text)}
.socials svg{width:19px;height:19px;display:block}

/* Header compacto + vidrio al hacer scroll */
.header.scrolled{background:rgba(255,255,255,.9);box-shadow:0 12px 34px -20px rgba(13,13,13,.4);
  backdrop-filter:blur(14px) saturate(160%);-webkit-backdrop-filter:blur(14px) saturate(160%)}
.header.scrolled .header__inner{padding-top:6px;padding-bottom:6px}
.header.scrolled .logo img{height:62px}

/* menú hamburguesa */
.burger{display:none;background:none;border:0;cursor:pointer;flex-direction:column;gap:5px}
.burger span{width:26px;height:2px;background:var(--ink);transition:.3s}

/* ---------- Hero ---------- */
.hero{position:relative;min-height:88vh;display:flex;align-items:center;color:#fff;overflow:hidden}
.hero__media{position:absolute;inset:0;z-index:0}
.hero__media video,.hero__media img{width:100%;height:100%;object-fit:cover}
.hero__media::after{content:"";position:absolute;inset:0;background:linear-gradient(135deg,rgba(28,40,44,.74),rgba(28,40,44,.5) 55%,rgba(28,40,44,.6))}
.hero__inner{position:relative;z-index:2;max-width:var(--maxw);margin:0 auto;padding:60px 24px;width:100%}
.hero h1{color:#fff;max-width:14ch;text-shadow:0 2px 18px rgba(0,0,0,.25)}
.hero p{font-size:1.18rem;max-width:46ch;margin:22px 0 30px;color:#f2f2f0}
.hero .stars-line{margin-top:26px;font-size:.95rem;display:flex;align-items:center;gap:10px;flex-wrap:wrap}

.stars{color:var(--gold);letter-spacing:2px}

/* tarjetas flotantes del hero */
.hero-cards{display:grid;grid-template-columns:repeat(3,1fr);gap:0;margin-top:46px;border:1px solid rgba(255,255,255,.35);border-radius:8px;overflow:hidden;backdrop-filter:blur(2px)}
.hero-cards .hc{padding:26px 24px;text-align:center;border-right:1px solid rgba(255,255,255,.3);background:rgba(20,30,32,.18)}
.hero-cards .hc:last-child{border-right:0}
.hero-cards .hc h3{color:#fff;text-decoration:underline;text-underline-offset:5px;margin-bottom:8px;font-size:1.25rem}
.hero-cards .hc p{font-size:.92rem;margin:0;color:#eee}

/* ---------- Grid utilidades ---------- */
.split{display:grid;grid-template-columns:1fr 1fr;gap:56px;align-items:center}
.grid-2{display:grid;grid-template-columns:repeat(2,1fr);gap:32px}
.grid-3{display:grid;grid-template-columns:repeat(3,1fr);gap:28px}
.grid-4{display:grid;grid-template-columns:repeat(4,1fr);gap:24px}

.rounded{border-radius:18px;overflow:hidden}
.rounded-top{border-radius:200px 200px 18px 18px;overflow:hidden}

/* lista de checks */
.checks{margin:18px 0;display:grid;gap:12px}
.checks li{position:relative;padding-left:30px;color:var(--ink-soft)}
.checks li::before{content:"✓";position:absolute;left:0;top:0;color:var(--teal-text);font-weight:700}

/* ---------- Tarjetas de tratamiento ---------- */
.treatment{background:#fff;border:1px solid var(--line);border-radius:18px;overflow:hidden;display:flex;flex-direction:column;transition:.3s;box-shadow:0 6px 24px rgba(0,0,0,.04)}
.treatment:hover{transform:translateY(-6px);box-shadow:0 16px 40px rgba(0,0,0,.10)}
.treatment__media{position:relative;aspect-ratio:4/3;overflow:hidden}
.treatment__media img{width:100%;height:100%;object-fit:cover;transition:.5s}
.treatment:hover .treatment__media img{transform:scale(1.05)}
.treatment__media h3{position:absolute;left:0;right:0;bottom:16px;text-align:center;color:#fff;text-shadow:0 2px 12px rgba(0,0,0,.6);text-transform:uppercase;letter-spacing:.03em}
.treatment__body{padding:22px 22px 26px;text-align:center;display:flex;flex-direction:column;gap:16px;flex:1}
.treatment__body p{color:var(--ink-soft);font-size:.97rem;flex:1}

/* pasos numerados */
.steps{display:grid;grid-template-columns:repeat(3,1fr);gap:34px;margin-top:40px}
.step{text-align:center}
.step__num{width:54px;height:54px;border-radius:50%;background:var(--teal-soft);color:var(--teal-text);
  font-family:var(--serif);font-size:1.5rem;font-weight:700;display:flex;align-items:center;justify-content:center;margin:0 auto 16px}
.step h3{font-size:1.2rem;margin-bottom:8px}
.step p{color:var(--ink-soft);font-size:.97rem}

/* cita grande */
.bigquote{background:var(--bg-alt);text-align:center}
.bigquote p{font-family:var(--serif);font-style:italic;font-size:clamp(1.4rem,2.8vw,2.2rem);color:var(--teal-text);max-width:20ch;margin:0 auto;line-height:1.35}

/* estadísticas */
.stats{display:grid;grid-template-columns:repeat(3,1fr);gap:24px;text-align:center}
.stat .num{font-family:var(--serif);font-size:clamp(2.2rem,4vw,3rem);color:var(--teal-text);font-weight:700}
.stat .lbl{color:var(--ink-soft);font-size:1rem}

/* testimonios */
.review{background:#fff;border:1px solid var(--line);border-radius:18px;padding:30px;box-shadow:0 6px 24px rgba(0,0,0,.04)}
.review .stars{font-size:1.1rem}
.review p{margin:14px 0;color:var(--ink-soft)}
.review .who{font-weight:600;color:var(--teal-text);font-family:var(--accent)}

/* franja CTA */
.cta-band{background:var(--teal);color:#fff;text-align:center}
.cta-band h2{color:#fff}
.cta-band p{color:#eaf3f2;max-width:600px;margin:14px auto 28px}

/* FAQ */
.faq{max-width:820px;margin:0 auto;display:grid;gap:14px}
.faq details{border:1px solid var(--line);border-radius:14px;background:#fff;padding:4px 22px}
.faq summary{cursor:pointer;font-family:var(--accent);font-weight:600;padding:18px 0;list-style:none;display:flex;justify-content:space-between;align-items:center;gap:16px}
.faq summary::-webkit-details-marker{display:none}
.faq summary::after{content:"+";color:var(--teal-text);font-size:1.5rem;line-height:1}
.faq details[open] summary::after{content:"–"}
.faq details p{padding:0 0 20px;color:var(--ink-soft)}

/* galería */
.gallery{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}
.gallery img{width:100%;height:100%;object-fit:cover;border-radius:14px;aspect-ratio:1/1}

/* formularios */
.form{display:grid;gap:16px;max-width:520px}
.form label{font-size:.9rem;color:var(--ink-soft);font-family:var(--accent);font-weight:600}
.form input,.form textarea{
  width:100%;padding:14px 16px;border:1px solid var(--line);border-radius:12px;
  font-family:var(--sans);font-size:1rem;background:#fff;color:var(--ink)
}
.form input:focus,.form textarea:focus{outline:none;border-color:var(--teal-text)}
.form textarea{min-height:120px;resize:vertical}
.form-msg{margin-top:6px;font-size:.95rem;font-family:var(--accent);font-weight:600}
.form-msg--ok{color:var(--teal-text)}
.form-msg--err{color:#c0392b}
.hp{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}

/* ---------- Footer ---------- */
.footer{background:#1f2426;color:#cfd4d6;padding:64px 0 28px}
.footer a{color:#cfd4d6}
.footer a:hover{color:#fff}
.footer__grid{display:grid;grid-template-columns:1.5fr 1fr .9fr 1fr;gap:40px;margin-bottom:40px}
@media(max-width:1080px){.footer__grid{grid-template-columns:1fr 1fr}}
.footer h4{color:#fff;font-family:var(--accent);font-weight:700;font-size:1rem;letter-spacing:.04em;text-transform:uppercase;margin-bottom:18px}
.footer p,.footer li{font-size:.93rem;margin-bottom:10px;line-height:1.55}
.footer .brand{font-family:var(--serif);font-size:1.3rem;color:#fff;margin-bottom:14px}
.footer .socials a{color:#cfd4d6}
.footer .socials a:hover{color:#fff}
.footer__bottom{border-top:1px solid #333a3c;padding-top:22px;text-align:center;font-size:.85rem;color:#8b9296}

/* ---------- WhatsApp flotante ---------- */
.wsp{position:fixed;right:22px;bottom:22px;z-index:60;width:58px;height:58px;border-radius:50%;
  background:#25d366;display:flex;align-items:center;justify-content:center;box-shadow:0 6px 20px rgba(0,0,0,.25);transition:.25s}
.wsp:hover{transform:scale(1.08)}
.wsp svg{width:32px;height:32px;fill:#fff}

/* ---------- Animación de aparición ----------
   Por defecto el contenido SIEMPRE es visible. Solo se oculta para animar
   cuando JavaScript está activo (html.js). Así nunca queda nada invisible
   aunque el JS falle o no cargue. */
.reveal{opacity:1;transform:none}
html.js .reveal{opacity:0;transform:translateY(26px);transition:opacity .7s ease,transform .7s ease}
html.js .reveal.in{opacity:1;transform:none}
@media (prefers-reduced-motion: reduce){
  html.js .reveal{opacity:1;transform:none;transition:none}
}

/* ---------- Responsive ---------- */

/* ===== Menú móvil deslizable (estilo Fix) ===== */
.nav-overlay{display:none;position:fixed;inset:0;background:rgba(0,0,0,.45);z-index:65;opacity:0;transition:opacity .35s ease}
.nav-overlay.show{display:block;opacity:1}
.nav-drawer-head,.nav-drawer-foot{display:none}

@media(max-width:900px){
  .split{grid-template-columns:1fr;gap:32px}
  .grid-3,.grid-4,.steps,.stats,.hero-cards{grid-template-columns:1fr}
  .footer__grid{grid-template-columns:1fr;gap:28px}
  .gallery{grid-template-columns:repeat(2,1fr)}
  .header__right .socials{display:none}
  .header__right{gap:12px}
  .section{padding:60px 0}
  .grid-2{grid-template-columns:1fr}
  .logo img{height:64px}
  .header.scrolled .logo img{height:56px}

  /* Botón hamburguesa -> X */
  .burger{display:flex;position:relative;z-index:120}
  .burger.x span:nth-child(1){transform:translateY(7px) rotate(45deg)}
  .burger.x span:nth-child(2){opacity:0}
  .burger.x span:nth-child(3){transform:translateY(-7px) rotate(-45deg)}

  /* Panel deslizable */
  .nav{position:fixed;top:0;right:0;bottom:0;width:min(86vw,360px);height:100vh;height:100dvh;
    background:linear-gradient(180deg,#23282a,#191d1f);display:flex;flex-direction:column;align-items:stretch;
    justify-content:flex-start;gap:0;padding:0;transform:translateX(100%);
    transition:transform .4s cubic-bezier(.2,.8,.2,1);box-shadow:-24px 0 70px -10px rgba(0,0,0,.55);
    z-index:110;overflow-y:auto}
  .nav.open{transform:none}
  .nav>a{display:flex;align-items:center;justify-content:space-between;padding:20px 26px;color:#e9eceb;
    font-family:var(--serif);font-size:1.25rem;border-bottom:1px solid rgba(255,255,255,.08);
    transition:color .25s,padding-left .25s,background .25s}
  .nav>a.active{color:#bfe0db}
  .nav>a.active::after{display:none}
  .nav>a:hover{color:#fff;padding-left:34px;background:rgba(255,255,255,.04)}

  .nav-drawer-head{display:flex;align-items:center;justify-content:space-between;padding:22px 24px;
    border-bottom:1px solid rgba(255,255,255,.1);background:linear-gradient(135deg,rgba(66,130,128,.22),transparent 60%)}
  .nav-drawer-head img{height:64px;width:auto}
  .nav-close{background:rgba(255,255,255,.1);border:0;border-radius:50%;width:40px;height:40px;
    display:grid;place-items:center;color:#fff;cursor:pointer;flex:none;font-size:1.2rem;line-height:1;transition:background .2s}
  .nav-close:hover{background:rgba(255,255,255,.22)}

  .nav-drawer-foot{display:flex;flex-direction:column;gap:14px;padding:24px 26px;margin-top:auto;
    border-top:1px solid rgba(255,255,255,.1)}
  .nav-drawer-foot .btn{width:100%}
  .nav-drawer-info{font-size:.86rem;color:#aeb4b3;line-height:1.6}
  .nav-drawer-info strong{display:block;color:#cfd4d3;font-size:.7rem;letter-spacing:.14em;
    text-transform:uppercase;margin-bottom:4px;font-family:var(--accent)}

  .header__right .btn--header{display:none}
}
@media(max-width:560px){
  .hero{min-height:78vh}
  .hero-cards{margin-top:28px}
  .gallery{grid-template-columns:1fr}
  .gbadge{flex-wrap:wrap;gap:10px 14px}
}

/* =========================================================
   Mejoras de calidad inspiradas en el sitio de Fix
   ========================================================= */

/* (estilos de scroll del header unificados arriba) */

/* Textura sutil tipo papel */
body::before{content:"";position:fixed;inset:0;z-index:9998;pointer-events:none;opacity:.03;mix-blend-mode:multiply;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E")}

/* WhatsApp flotante: píldora con etiqueta y pulso */
.wsp{width:auto;height:auto;border-radius:999px;padding:14px 22px 14px 16px;gap:11px;
  background:linear-gradient(135deg,#25d366,#14a850);animation:wspPulse 3.6s infinite}
.wsp svg{width:26px;height:26px}
.wsp .wsp-label{font-family:var(--accent);font-weight:600;font-size:.95rem;color:#fff;letter-spacing:.01em;white-space:nowrap}
@keyframes wspPulse{
  0%{box-shadow:0 8px 24px rgba(37,211,102,.35),0 0 0 0 rgba(37,211,102,.30)}
  70%{box-shadow:0 8px 24px rgba(37,211,102,.35),0 0 0 16px rgba(37,211,102,0)}
  100%{box-shadow:0 8px 24px rgba(37,211,102,.35),0 0 0 0 rgba(37,211,102,0)}}
@media(max-width:480px){
  .wsp{padding:0;width:60px;height:60px;justify-content:center;gap:0;border-radius:50%}
  .wsp .wsp-label{display:none}.wsp svg{width:30px;height:30px}}
@media(prefers-reduced-motion:reduce){.wsp{animation:none}}

/* Badge de reseñas de Google */
.gbadge{display:inline-flex;align-items:center;gap:14px;background:rgba(255,255,255,.96);
  border:1px solid var(--line);border-radius:16px;padding:14px 20px;
  box-shadow:0 14px 36px -20px rgba(0,0,0,.35);margin-top:28px}
.gbadge .g-left{text-align:center;line-height:1}
.gbadge .g-score{font-family:var(--serif);font-size:1.9rem;font-weight:700;color:var(--ink);display:block}
.gbadge .g-stars{color:#fbbc05;font-size:1.45rem;letter-spacing:.08em;display:block;line-height:1}
.gbadge .g-meta{font-size:.84rem;color:var(--muted);line-height:1.45}
.gbadge .g-meta strong{color:var(--ink);font-weight:600}
.gbadge .g-meta a{color:var(--teal-text);font-weight:600}
.gbadge .g-logo{width:30px;height:30px;flex:none}

/* Indicador Abierto / Cerrado ahora */
.status-badge{display:inline-flex;align-items:center;gap:7px;font-size:.85rem;font-weight:600;font-family:var(--accent)}
.status-dot{width:9px;height:9px;border-radius:50%;flex:none}
.status-open{color:#16a34a}
.status-open .status-dot{background:#22c55e;box-shadow:0 0 0 3px rgba(34,197,94,.18)}
.status-closed{color:var(--muted)}
.status-closed .status-dot{background:#9ca3af}

/* Mapa embebido */
.map-embed{border:1px solid var(--line);border-radius:18px;overflow:hidden;min-height:340px;margin-top:8px}
.map-embed iframe{width:100%;height:100%;min-height:340px;border:0;display:block}

/* Enlace de accesibilidad */
.skip-link{position:absolute;left:-9999px;top:8px;z-index:10001;background:var(--ink);color:#fff;
  padding:12px 20px;border-radius:0 10px 10px 0;font-family:var(--accent);font-weight:600}
.skip-link:focus{left:0}

/* ===== Feed de Instagram (antes del footer) ===== */
.ig-feed{padding:64px 0;background:#fff;border-top:1px solid var(--line)}
.ig-heading{display:inline-flex;align-items:center;gap:12px;font-family:var(--serif);
  font-size:clamp(1.6rem,3vw,2.2rem);font-weight:600;color:var(--ink);transition:color .2s}
.ig-heading:hover{color:var(--teal-text)}
.ig-glyph{width:34px;height:34px;flex:none;color:#fff;box-sizing:border-box;padding:6px;border-radius:10px;
  background:linear-gradient(45deg,#f09433,#e6683c 25%,#dc2743 50%,#cc2366 75%,#bc1888)}
.ig-subtitle{color:var(--muted);margin:12px auto 0;max-width:50ch}
.ig-grid{display:grid;grid-template-columns:repeat(6,1fr);gap:12px;margin-top:34px}
.ig-tile{position:relative;aspect-ratio:1/1;border-radius:12px;overflow:hidden;display:block}
.ig-tile img{width:100%;height:100%;object-fit:cover;transition:transform .45s ease}
.ig-tile:hover img{transform:scale(1.07)}
.ig-ov{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;
  background:rgba(40,55,60,0);color:#fff;opacity:0;transition:.3s}
.ig-tile:hover .ig-ov{background:rgba(40,55,60,.42);opacity:1}
.ig-ov svg{width:30px;height:30px}
@media(max-width:900px){.ig-grid{grid-template-columns:repeat(3,1fr)}}
@media(max-width:480px){.ig-grid{grid-template-columns:repeat(2,1fr)}}

/* Contenedor del feed en vivo de Instagram (widget) */
.ig-widget{max-width:680px;margin:34px auto 0}
.ig-widget:empty{display:none}
.ig-widget iframe{width:100%;border:0;overflow:hidden;border-radius:14px;display:block}

/* Barra superior en móvil: dejar solo teléfono + estado */
@media(max-width:760px){
  .topbar__tag{display:none}
  .socials--top{display:none}
  .topbar__inner{justify-content:center;gap:18px}
}

/* =========================================================
   PREMIUM v2 — refinamiento estético (solo CSS)
   "Lujo silencioso": base cálida, teal como acento, champagne tenue,
   sombras suaves, halos delicados, hover elegante. Sin tocar estructura.
   ========================================================= */

/* Paleta cálida (re-declara variables; esta declaración gana por ir última) */
:root{
  --bg:#faf8f5;            /* marfil cálido de fondo */
  --bg-alt:#f1ece4;        /* greige cálido para secciones alternas */
  --surface:#ffffff;       /* tarjetas */
  --ink:#211f1c;           /* tinta cálida */
  --ink-soft:#41403b;
  --muted:#766f66;
  --line:#e7e1d8;          /* línea cálida */
  --teal:#428280;
  --teal-text:#35696B;
  --teal-dark:#356b69;
  --teal-deep:#2f5b59;     /* teal profundo para barras/acentos */
  --teal-soft:#e7efee;
  --champagne:#c9a25f;     /* acento tenue (hairlines, detalles) */
  --champagne-soft:#e7d8bb;
}

/* Tipografía: un poco más de aire y contraste (misma fuente) */
h1,h2,h3,h4{letter-spacing:-.012em}
.hero h1{font-size:clamp(2.3rem,5vw,3.9rem);font-weight:600;line-height:1.08}
.section h2,.center h2{letter-spacing:-.015em}
.eyebrow{display:inline-flex;align-items:center;gap:12px}
.eyebrow::before{content:"";width:26px;height:1px;background:var(--champagne)}

/* Barra superior: teal profundo (más sobrio que el teal pleno) */
.topbar{background:var(--teal-deep)}

/* Botones: degradado sutil + sombra suave + hover elegante */
.btn{border-radius:999px}
.btn--primary{background:linear-gradient(180deg,#4a918e,#3c7a78);box-shadow:0 12px 26px -14px rgba(47,91,89,.7)}
.btn--primary:hover{background:linear-gradient(180deg,#3f827f,#33706e);transform:translateY(-2px);box-shadow:0 18px 36px -16px rgba(47,91,89,.75)}
.btn--outline{border-color:var(--teal-text);box-shadow:none}
.btn--outline:hover{box-shadow:0 14px 30px -16px rgba(47,91,89,.55)}

/* Hero: vignette más limpia y elegante (menos verdosa) */
.hero__media::after{background:
  radial-gradient(120% 90% at 30% 30%, rgba(18,24,26,.30), transparent 60%),
  linear-gradient(180deg, rgba(16,22,24,.55), rgba(16,22,24,.34) 38%, rgba(16,22,24,.66))}
.hero p{color:#f3f1ec}

/* Ritmo de secciones: más aire en desktop, divisor hairline cálido */
.section{padding:96px 0}
.section--alt{position:relative}
.section--alt::before{content:"";position:absolute;top:0;left:50%;transform:translateX(-50%);
  width:min(1160px,90%);height:1px;background:linear-gradient(90deg,transparent,var(--line),transparent)}

/* Tarjetas de tratamiento: borde fino, sombra suave, hover refinado,
   scrim elegante bajo el título (menos "stock") y línea de acento */
.treatment{border-radius:20px;border-color:var(--line);box-shadow:0 12px 34px -22px rgba(40,38,34,.30);background:var(--surface)}
.treatment:hover{transform:translateY(-7px);box-shadow:0 30px 60px -28px rgba(40,38,34,.34)}
.treatment__media::after{content:"";position:absolute;inset:0;pointer-events:none;
  background:linear-gradient(to top, rgba(18,24,26,.62), rgba(18,24,26,.12) 48%, transparent 70%)}
.treatment__media h3{z-index:2;text-shadow:0 1px 10px rgba(0,0,0,.45);letter-spacing:.12em;font-size:1.15rem;font-weight:600}
.treatment::before{content:"";position:absolute;top:0;left:0;right:0;height:3px;
  background:linear-gradient(90deg,var(--teal),var(--champagne));transform:scaleX(0);transform-origin:left;
  transition:transform .45s cubic-bezier(.2,.7,.2,1);z-index:3}
.treatment:hover::before{transform:scaleX(1)}

/* Pasos: número con halo champagne tenue */
.step__num{box-shadow:0 0 0 6px rgba(201,162,95,.12)}

/* Tarjetas de reseña / promesa / badge: sombras más suaves y cálidas */
.review,.promise{box-shadow:0 12px 34px -24px rgba(40,38,34,.28)}
.gbadge{box-shadow:0 16px 40px -24px rgba(40,38,34,.4)}

/* Cita grande: halo de luz sutil detrás */
.bigquote{position:relative;overflow:hidden}
.bigquote::before{content:"";position:absolute;top:50%;left:50%;width:680px;height:680px;
  transform:translate(-50%,-50%);pointer-events:none;
  background:radial-gradient(circle, rgba(66,130,128,.10), transparent 62%)}
.bigquote .container{position:relative;z-index:1}

/* Franja CTA: degradado profundo (más premium que teal plano) */
.cta-band{background:linear-gradient(135deg,var(--teal-deep),var(--teal) 75%)}

/* Sección Instagram sobre el fondo cálido */
.ig-feed{background:var(--bg)}

/* Formularios: inputs cálidos */
.form input,.form textarea{background:var(--surface);border-color:var(--line)}

/* WhatsApp flotante: calmo (sin pulso), forma sobria, sombra suave */
.wsp{animation:none;background:linear-gradient(180deg,#27c768,#16a94f);
  box-shadow:0 14px 30px -12px rgba(16,120,60,.5)}
.wsp:hover{transform:translateY(-2px) scale(1.03)}

/* Reveal: aparición un poco más suave y elegante */
html.js .reveal{transform:translateY(30px);transition:opacity .9s cubic-bezier(.2,.7,.2,1),transform .9s cubic-bezier(.2,.7,.2,1)}

/* Mantener el aire correcto en mobile (re-afirmar tras subir .section) */
@media(max-width:900px){
  .section{padding:64px 0}
  .section--alt::before{width:84%}
}

/* =========================================================
   PREMIUM v2.1 — Tipografía editorial
   Serif de alto contraste (Fraunces) para los grandes
   titulares. Cuerpo sigue en DM Sans.
   ========================================================= */
:root{ --display:'Fraunces', Georgia, serif; }

/* Titulares grandes con la serif editorial */
h1, h2{font-family:var(--display);font-weight:600;letter-spacing:-.005em}
.hero h1{font-size:clamp(2.9rem,6.2vw,5.1rem);font-weight:600;line-height:1.03;letter-spacing:-.01em}
.section h2, .center h2, .cta-band h2, .split h2{font-size:clamp(2.2rem,4.2vw,3.5rem);line-height:1.08;font-weight:600}

/* Cita grande: misma serif en cursiva, más presencia */
.bigquote p{font-family:var(--display);font-style:italic;font-weight:600;
  font-size:clamp(1.9rem,3.6vw,2.9rem);line-height:1.22;max-width:24ch}

/* "Suscribite hoy" / títulos de sección centrados un poco más generosos */
.ig-heading{font-family:var(--display);font-weight:600}

/* Los subtítulos chicos (h3/h4) siguen en la serif base para mantener legibilidad y peso */

/* =========================================================
   Ajustes finales: logo más grande + logo blanco en footer
   ========================================================= */
.logo img{height:96px}
.header.scrolled .logo img{height:74px}
@media(max-width:900px){ .logo img{height:72px} .header.scrolled .logo img{height:60px} }

.footer-logo{display:inline-block;margin-bottom:18px;line-height:0}
.footer-logo img{height:74px;width:auto}
@media(max-width:900px){ .footer-logo img{height:64px} }

/* Fix: texto de reseñas siempre legible (aunque la sección sea un hero con video) */
.review p{color:var(--ink-soft)}
.review .who{color:var(--teal-text)}

/* Nota de privacidad bajo los formularios */
.form-note{font-size:.82rem;color:var(--muted);margin-top:4px;line-height:1.5}
.form-note a{color:var(--teal-text);text-decoration:underline}

/* =========================================================
   Accesibilidad: foco visible para navegación por teclado
   ========================================================= */
a:focus-visible,button:focus-visible,summary:focus-visible{
  outline:3px solid var(--teal);outline-offset:3px;border-radius:6px}
.btn:focus-visible,.wsp:focus-visible{outline-offset:4px}
.topbar a:focus-visible,.footer a:focus-visible,.hero a:focus-visible:not(.btn){outline-color:#fff}
.form input:focus-visible,.form textarea:focus-visible{
  outline:2px solid var(--teal);outline-offset:1px;border-color:var(--teal-text)}

/* =========================================================
   Equipo médico — tarjetas de doctores (página Nosotros)
   Tarjeta propia (sin heredar .treatment) para evitar el
   estirado de párrafos y lograr un acabado más premium.
   ========================================================= */
.doctor{position:relative;background:var(--surface);border:1px solid var(--line);border-radius:20px;
  padding:40px 30px 36px;text-align:center;display:flex;flex-direction:column;align-items:center;
  box-shadow:0 12px 34px -22px rgba(40,38,34,.30);transition:transform .3s ease,box-shadow .3s ease;overflow:hidden}
.doctor:hover{transform:translateY(-6px);box-shadow:0 30px 60px -28px rgba(40,38,34,.34)}
.doctor::before{content:"";position:absolute;top:0;left:0;right:0;height:3px;
  background:linear-gradient(90deg,var(--teal),var(--champagne));transform:scaleX(0);transform-origin:left;
  transition:transform .45s cubic-bezier(.2,.7,.2,1)}
.doctor:hover::before{transform:scaleX(1)}
.doctor__monogram{width:66px;height:66px;border-radius:50%;display:flex;align-items:center;justify-content:center;
  font-family:var(--display);font-size:1.55rem;font-weight:600;color:var(--teal-text);letter-spacing:.02em;
  background:var(--teal-soft);box-shadow:0 0 0 6px rgba(201,162,95,.12);margin-bottom:20px}
.doctor h3{font-family:var(--display);font-size:1.6rem;font-weight:600;margin-bottom:6px}
.doctor__role{font-family:var(--accent);font-size:.72rem;font-weight:600;letter-spacing:.16em;
  text-transform:uppercase;color:var(--teal-text);margin:0}
.doctor__divider{width:36px;height:1px;background:var(--champagne);margin:18px auto;flex:none}
.doctor__bio{color:var(--ink-soft);font-size:.95rem;line-height:1.72;margin:0}
.team-note{max-width:780px;margin:34px auto 0;color:var(--muted);font-size:.95rem;line-height:1.7;
  padding-top:26px;position:relative}
.team-note::before{content:"";position:absolute;top:0;left:50%;transform:translateX(-50%);
  width:min(420px,80%);height:1px;background:linear-gradient(90deg,transparent,var(--line),transparent)}

/* Galería: acabado más suave */
.gallery img{border-radius:16px;transition:transform .45s ease,box-shadow .45s ease}
.gallery img:hover{transform:scale(1.015);box-shadow:0 18px 40px -22px rgba(40,38,34,.35)}

/* Dos mapas lado a lado en Contacto */
.maps-2{display:grid;grid-template-columns:1fr 1fr;gap:24px;margin-top:34px}
.maps-2 .map-card h3{font-size:1.15rem;margin-bottom:12px}
@media(max-width:900px){.maps-2{grid-template-columns:1fr}}

/* =========================================================
   PREMIUM v3 — Barra superior y header editoriales
   Topbar con degradado sobrio y hairline champagne; navegación
   sin "píldoras": subrayado fino animado teal→champagne;
   header sobre marfil translúcido. Solo CSS, sin tocar HTML.
   ========================================================= */

/* Topbar: teal profundo con degradado sutil + hairline champagne */
.topbar{background:linear-gradient(90deg,#2b514f,#376461 50%,#2b514f);font-size:.8rem;
  border-bottom:1px solid rgba(201,162,95,.30)}
.topbar__inner{padding:9px 24px}
.topbar__tag{color:#dde9e7;letter-spacing:.07em}
.topbar__phone{letter-spacing:.03em}
.topbar .status-badge{font-size:.78rem}

/* Header: marfil translúcido (en vez de blanco puro), un poco más de aire */
.header{background:rgba(250,248,245,.95)}
.header.scrolled{background:rgba(250,248,245,.88)}
.header__inner{padding:12px 24px}

/* Navegación editorial (solo desktop; el menú móvil conserva su estilo) */
@media(min-width:901px){
  .nav{gap:30px}
  .nav>a{padding:10px 2px;border-radius:0;font-size:.8rem;letter-spacing:.14em;color:var(--ink-soft)}
  .nav>a:hover{background:transparent;color:var(--teal-text)}
  .nav>a::after{content:"";position:absolute;left:0;right:0;bottom:5px;height:1.5px;
    background:linear-gradient(90deg,var(--teal),var(--champagne));border-radius:0;
    transform:scaleX(0);transform-origin:left;
    transition:transform .35s cubic-bezier(.2,.7,.2,1)}
  .nav>a:hover::after{transform:scaleX(1)}
  .nav>a.active{color:var(--teal-text)}
  .nav>a.active::after{left:0;right:0;bottom:5px;height:1.5px;
    background:linear-gradient(90deg,var(--teal),var(--champagne));transform:scaleX(1)}
}

/* CTA del header: más esbelto, tipografía espaciada, sombra suave */
.btn--header{padding:13px 28px;font-size:.86rem;letter-spacing:.05em;
  box-shadow:0 12px 28px -14px rgba(47,91,89,.65)}

/* =========================================================
   PREMIUM v4 — Pulido global
   Selección y scrollbar de marca, footer refinado con
   hairline champagne y reveals escalonados en las grillas.
   ========================================================= */

/* Selección de texto con color de marca */
::selection{background:var(--teal);color:#fff}
::-moz-selection{background:var(--teal);color:#fff}

/* Scrollbar discreta acorde a la paleta */
html{scrollbar-width:thin;scrollbar-color:#a8b8b6 transparent}
::-webkit-scrollbar{width:11px}
::-webkit-scrollbar-track{background:transparent}
::-webkit-scrollbar-thumb{background:#b6c2c0;border-radius:8px;border:3px solid var(--bg)}
::-webkit-scrollbar-thumb:hover{background:var(--teal)}

/* Footer refinado: degradado oscuro cálido + hairline champagne */
.footer{background:linear-gradient(180deg,#262a2c,#1b1f21 65%);border-top:1px solid rgba(201,162,95,.28)}
.footer h4{font-size:.78rem;letter-spacing:.16em;color:#ece7de;margin-bottom:20px}
.footer h4::after{content:"";display:block;width:26px;height:1px;background:var(--champagne);
  margin-top:10px;opacity:.65}
.footer a{transition:color .2s}
.footer__bottom{color:#7e858a;letter-spacing:.02em}

/* Reveals escalonados: las tarjetas de una grilla aparecen en cascada */
html.js :is(.grid-2,.grid-3,.grid-4,.steps,.stats)>.reveal:nth-child(2){transition-delay:.12s}
html.js :is(.grid-2,.grid-3,.grid-4,.steps,.stats)>.reveal:nth-child(3){transition-delay:.24s}
html.js :is(.grid-2,.grid-3,.grid-4,.steps,.stats)>.reveal:nth-child(4){transition-delay:.36s}
html.js :is(.grid-2,.grid-3,.grid-4,.steps,.stats)>.reveal:nth-child(n+5){transition-delay:.46s}
@media (prefers-reduced-motion: reduce){
  html.js :is(.grid-2,.grid-3,.grid-4,.steps,.stats)>.reveal{transition-delay:0s}
}

/* =========================================================
   Accesibilidad — objetivos táctiles (WCAG 2.2 SC 2.5.8)
   Mínimo real de 44x44 px sin alterar el aspecto visual.
   ========================================================= */

/* Hamburguesa: el área clicable pasa de 26x16 a 44x44 */
.burger{
  min-width:44px;min-height:44px;
  align-items:center;justify-content:center;
  padding:0;margin-right:-8px;
}

/* Iconos sociales (cabecera y pie): icono de 19px dentro de un área de 44px */
.socials{gap:0}
.socials a{
  display:inline-flex;align-items:center;justify-content:center;
  min-width:44px;min-height:44px;
  border-radius:50%;
}

/* Enlaces del pie: de 20px de alto a 44px */
.footer li a,
.footer__bottom a{
  display:inline-block;
  padding:11px 0;
  margin:-11px 0;
}

/* Teléfono de la barra superior */
.topbar__phone{min-height:44px;padding:4px 0}

/* Enlaces de navegación en móvil: alto cómodo */
@media(max-width:900px){
  .nav>a{min-height:44px;display:flex;align-items:center}
}

/* =========================================================
   Landmark principal y botón de pausa del video de portada
   ========================================================= */

main{display:block}
main:focus{outline:none}          /* el foco lo aporta el enlace "Saltar al contenido" */

/* Botón de pausa/reproducción del video de fondo (WCAG 2.2 SC 2.2.2) */
.hero__videobtn{
  position:absolute;right:18px;bottom:18px;z-index:4;
  width:44px;height:44px;border-radius:50%;
  display:inline-flex;align-items:center;justify-content:center;
  border:1px solid rgba(255,255,255,.55);
  background:rgba(20,28,30,.55);
  color:#fff;cursor:pointer;
  backdrop-filter:blur(4px);
  transition:background .2s,transform .2s;
}
.hero__videobtn:hover{background:rgba(20,28,30,.8)}
.hero__videobtn:focus-visible{outline:3px solid #fff;outline-offset:2px}
.hero__videobtn svg{width:18px;height:18px;display:block}
@media(max-width:900px){ .hero__videobtn{right:12px;bottom:12px} }

/* =========================================================
   Formularios: consentimiento y avisos de privacidad
   ========================================================= */

.form-hint{
  font-size:.85rem;color:var(--muted);line-height:1.5;
  margin:-6px 0 4px;
}

.form-check{
  display:flex;align-items:flex-start;gap:10px;
  font-size:.88rem;line-height:1.5;color:var(--ink-soft);
  cursor:pointer;margin:6px 0 4px;
  padding:10px 0;                 /* objetivo tactil comodo */
}
.form-check input[type="checkbox"]{
  flex:0 0 auto;width:20px;height:20px;margin-top:1px;
  accent-color:var(--teal);cursor:pointer;
}
.form-check input[type="checkbox"]:focus-visible{
  outline:3px solid var(--teal-text);outline-offset:2px;
}
.form-check a{color:var(--teal-text);text-decoration:underline}

/* Select del formulario, con el mismo aspecto que los inputs */
.form select{
  width:100%;padding:13px 14px;border:1px solid var(--line);border-radius:12px;
  font-family:inherit;font-size:1rem;color:var(--ink);background:var(--surface);
  appearance:none;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%236b7177' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat:no-repeat;background-position:right 14px center;
}
.form select:focus{outline:none;border-color:var(--teal-text)}
