/* =========================================================
   CROI — Centro Rosario de Odontología Integral
   Dirección "Menta clínica" · teal + menta, moderno y luminoso
   ========================================================= */

/* Tipografías auto-hospedadas (antes venían de Google Fonts, que bloqueaba
   el render y sumaba un dominio externo). Son fuentes variables: un solo
   archivo por familia cubre todos los pesos. */
@font-face {
  font-family: 'Bricolage Grotesque';
  font-style: normal;
  font-weight: 400 800;
  font-stretch: 100%;
  font-display: swap;
  src: url('fonts/bricolage-grotesque-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Hanken Grotesk';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('fonts/hanken-grotesk-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  /* Color */
  --teal:        #0C7D6B;
  --teal-700:    #0A5F52;
  --teal-900:    #073F37;
  --mint:        #D6F2E9;
  --mint-200:    #E8F7F1;
  --paper:       #F3FBF8;
  --paper-2:     #ECF6F2;
  --ink:         #0A2A26;
  --muted:       #51665F;
  --line:        #D9EBE3;
  --white:       #FFFFFF;
  --wa:          #25D366;

  /* Type */
  --font-display: 'Bricolage Grotesque', system-ui, sans-serif;
  --font-body:    'Hanken Grotesk', system-ui, sans-serif;

  /* Radii */
  --r-xl: 30px;
  --r-lg: 24px;
  --r-md: 18px;
  --r-sm: 14px;

  /* Shadow */
  --shadow-sm: 0 4px 14px -6px rgba(7,63,55,.18);
  --shadow-md: 0 16px 34px -16px rgba(7,63,55,.30);
  --shadow-lg: 0 34px 60px -28px rgba(7,63,55,.42);

  /* Layout */
  --maxw: 1300px;
  --gutter: clamp(20px, 5vw, 56px);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
/* El header es sticky: al saltar a un ancla, la sección no queda tapada */
section[id], [id="turnos"] { scroll-margin-top: 84px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -.025em;
  line-height: 1.05;
  margin: 0;
  text-wrap: balance;
}

p { margin: 0; text-wrap: pretty; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
/* El atributo hidden tiene que ganarle a cualquier display de clase:
   sin esto, el plan B de horario y los chips del chat aparecían siempre. */
[hidden] { display: none !important; }

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--mint);
  color: var(--teal-700);
  padding: 8px 15px;
  border-radius: 100px;
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .01em;
}
.eyebrow .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--teal);
}

.section-head { max-width: 640px; margin-bottom: clamp(32px, 5vw, 52px); }
.section-head h2 {
  font-size: clamp(2rem, 5.2vw, 3rem);
  margin-top: 18px;
  color: var(--ink);
}
.section-head .lead {
  margin-top: 16px;
  font-size: clamp(1rem, 2.4vw, 1.15rem);
  color: var(--muted);
  font-weight: 500;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  border-radius: 100px;
  padding: 15px 26px;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px) scale(.99); }

.btn-wa {
  background: var(--teal);
  color: #fff;
  box-shadow: 0 14px 26px -12px var(--teal);
}
.btn-wa:hover { background: var(--teal-700); transform: translateY(-2px); box-shadow: var(--shadow-md); }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--line);
}
.btn-ghost:hover { border-color: var(--teal); color: var(--teal-700); background: var(--white); }

.btn-light {
  background: #fff;
  color: var(--teal-700);
  box-shadow: var(--shadow-sm);
}
.btn-light:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }

/* =========================================================
   HEADER
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: color-mix(in srgb, var(--paper) 82%, transparent);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease, background .3s ease;
}
.site-header.scrolled {
  border-bottom-color: var(--line);
  background: color-mix(in srgb, var(--paper) 92%, transparent);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.brand {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}
.brand-logo {
  height: 38px;
  width: auto;
  display: block;
}
/* Logo blanco sobre fondo claro: filtro a #0a5f52 (teal-700) */
.logo-dark {
  filter: brightness(0.3) sepia(100%) hue-rotate(132deg) saturate(440%) brightness(0.63);
}
/* Logo blanco sobre fondo oscuro: se muestra tal cual */
.logo-light {
  filter: brightness(0) invert(1);
  opacity: .92;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0; padding: 0;
}
.nav-links a {
  display: inline-block;
  padding: 9px 14px;
  border-radius: 100px;
  font-weight: 600;
  font-size: .95rem;
  color: var(--ink);
  white-space: nowrap;
  transition: background .15s ease, color .15s ease;
}
.nav-links a:hover { background: var(--mint-200); color: var(--teal-700); }

.nav-cta { display: flex; align-items: center; gap: 12px; }
.nav-cta .btn { padding: 11px 20px; font-size: .95rem; }
/* En la portada, el botón del header se muestra al pasar el hero */
.site-header:not(.past-hero) .nav-cta .btn-wa[href="#turnos"] { opacity: 0; transform: translateY(-6px); pointer-events: none; }
.site-header .nav-cta .btn-wa[href="#turnos"] { transition: opacity .28s ease, transform .28s ease, box-shadow .18s ease, background .18s ease, color .18s ease; }

.burger {
  display: none;
  width: 46px; height: 46px;
  border: 1.5px solid var(--line);
  background: var(--white);
  border-radius: 13px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.burger svg { width: 22px; height: 22px; }

/* Mobile menu panel */
.mobile-menu {
  position: fixed;
  inset: 0 0 0 auto;
  width: min(86vw, 360px);
  background: var(--white);
  z-index: 80;
  transform: translateX(100%);
  visibility: hidden; /* cerrado: sin foco ni lectores de pantalla */
  transition: transform .34s cubic-bezier(.4,0,.2,1), visibility 0s linear .34s;
  box-shadow: var(--shadow-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.mobile-menu.open { transform: translateX(0); visibility: visible; transition-delay: 0s; }
.mobile-menu .mm-top {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 18px;
}
.mm-close {
  width: 44px; height: 44px;
  border: 1.5px solid var(--line);
  background: var(--white);
  border-radius: 12px; cursor: pointer;
  display: grid; place-items: center;
}
.mobile-menu a.mm-link {
  padding: 15px 14px;
  border-radius: var(--r-sm);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--ink);
  border-bottom: 1px solid var(--paper-2);
}
.mobile-menu a.mm-link:active { background: var(--mint-200); }
.mobile-menu .btn-wa { margin-top: 18px; }
.mm-contact { margin-top: auto; font-size: .9rem; color: var(--muted); line-height: 1.7; }

.scrim {
  position: fixed; inset: 0;
  background: rgba(7,40,36,.42);
  backdrop-filter: blur(2px);
  z-index: 70;
  opacity: 0; visibility: hidden;
  transition: opacity .3s ease, visibility .3s ease;
}
.scrim.open { opacity: 1; visibility: visible; }

/* =========================================================
   HERO
   ========================================================= */
.hero { position: relative; padding: clamp(40px, 7vw, 84px) 0 clamp(56px, 8vw, 96px); }
.hero::before {
  content: "";
  position: absolute;
  top: -120px; right: -160px;
  width: 620px; height: 620px;
  background: radial-gradient(circle at center, var(--mint) 0%, transparent 62%);
  opacity: .8; z-index: 0; pointer-events: none;
}
.hero-grid {
  position: relative; z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}
.hero h1 {
  font-size: clamp(2.7rem, 7vw, 4.6rem);
  color: var(--ink);
  margin: 22px 0 0;
}
.hero h1 em {
  font-style: normal;
  color: var(--teal);
  position: relative;
}
.hero .lead {
  margin: 22px 0 30px;
  font-size: clamp(1.05rem, 2.4vw, 1.28rem);
  color: var(--muted);
  font-weight: 500;
  max-width: 32ch;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; }

.hero-trust {
  display: flex; flex-wrap: wrap;
  gap: 10px 26px;
  margin-top: 34px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}
.hero-trust .t {
  display: flex; flex-direction: column;
}
.hero-trust .t b {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--teal-700);
  line-height: 1;
}
.hero-trust .t span { font-size: .82rem; color: var(--muted); font-weight: 600; margin-top: 4px; }

/* Hero media */
.hero-media { position: relative; width: 100%; max-width: 460px; margin-inline: auto; }
.hero-photo {
  position: relative;
  aspect-ratio: 1 / 1.08;
  overflow: hidden;
  max-height: 520px;
  border-radius: var(--r-xl);
  background:
    radial-gradient(120% 90% at 70% 10%, rgba(255,255,255,.22), transparent 55%),
    linear-gradient(155deg, #15A98C 0%, var(--teal-700) 70%, var(--teal-900) 100%);
  box-shadow: var(--shadow-lg);
}
.hero-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 30%;
  display: block;
}
.float-card {
  position: absolute;
  background: var(--white);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-md);
  padding: 14px 18px;
  display: flex; align-items: center; gap: 12px;
}
.float-card .fc-num { font-family: var(--font-display); font-weight: 800; font-size: 1.7rem; color: var(--teal); line-height: 1; }
.float-card .fc-txt { font-size: .82rem; color: var(--muted); font-weight: 600; line-height: 1.25; }
.float-card .fc-ico { width: 38px; height: 38px; border-radius: 11px; background: var(--mint-200); color: var(--teal-700); display: grid; place-items: center; }
.float-card.fc-1 { top: 22px; left: -28px; }
.float-card.fc-2 { bottom: 26px; right: -26px; }

/* =========================================================
   SERVICIOS
   ========================================================= */
.services { padding: clamp(56px, 8vw, 100px) 0; }
.svc-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(16px, 2vw, 22px);
}
.svc-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 30px 26px 28px;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.svc-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}
.svc-ico {
  width: 56px; height: 56px;
  border-radius: 16px;
  background: var(--mint-200);
  color: var(--teal);
  display: grid; place-items: center;
  margin-bottom: 20px;
  transition: background .22s ease, color .22s ease;
}
.svc-card:hover .svc-ico { background: var(--teal); color: #fff; }
.svc-ico svg { width: 28px; height: 28px; }
.svc-card h3 { font-size: 1.32rem; color: var(--ink); }
.svc-card p { margin-top: 10px; color: var(--muted); font-size: .96rem; font-weight: 500; }

/* =========================================================
   POR QUÉ ELEGIRNOS
   ========================================================= */
.why { padding: clamp(56px, 8vw, 100px) 0; background: var(--paper-2); }
.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(36px, 5vw, 72px);
  align-items: start;
}
.why-left { position: sticky; top: 96px; }
.why .stats {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 14px; margin-top: 34px;
}
.stat {
  background: var(--white);
  border-radius: var(--r-md);
  padding: 22px;
  border: 1px solid var(--line);
}
.stat b { font-family: var(--font-display); font-size: 2.3rem; color: var(--teal); display: block; line-height: 1; }
.stat span { font-size: .9rem; color: var(--muted); font-weight: 600; margin-top: 8px; display: block; }

.value-list { display: flex; flex-direction: column; gap: 14px; }
.value {
  display: flex; gap: 18px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 22px 24px;
  transition: transform .2s ease, box-shadow .2s ease;
}
.value:hover { transform: translateX(4px); box-shadow: var(--shadow-sm); }
.value .v-ico {
  flex: 0 0 auto;
  width: 50px; height: 50px;
  border-radius: 14px;
  background: var(--mint);
  color: var(--teal-700);
  display: grid; place-items: center;
}
.value h3 { font-size: 1.15rem; }
.value p { margin-top: 6px; color: var(--muted); font-size: .94rem; font-weight: 500; }

/* =========================================================
   SEDES
   ========================================================= */
.sedes { padding: clamp(56px, 8vw, 100px) 0; }
.sede-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(20px, 3vw, 30px);
}
.sede-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  display: flex; flex-direction: column;
  box-shadow: var(--shadow-sm);
}
.sede-body { padding: clamp(24px, 3vw, 34px); }
.sede-tag {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--teal); color: #fff;
  font-weight: 700; font-size: .82rem;
  padding: 7px 14px; border-radius: 100px;
  white-space: nowrap;
}
.sede-row > div { min-width: 0; flex: 1; }
.sede-row a[href^="mailto"] { word-break: break-word; }
.sede-card h3 { font-size: 1.7rem; margin-top: 16px; }
.sede-meta { margin-top: 20px; display: flex; flex-direction: column; gap: 14px; }
.sede-row { display: flex; gap: 13px; align-items: flex-start; font-size: 1rem; }
.sede-row .r-ico {
  flex: 0 0 auto; width: 38px; height: 38px; border-radius: 11px;
  background: var(--mint-200); color: var(--teal-700);
  display: grid; place-items: center; margin-top: 1px;
}
.sede-row a { font-weight: 600; }
.sede-row a:hover { color: var(--teal-700); text-decoration: underline; }
.sede-row .r-sub { color: var(--muted); font-size: .85rem; }
.sede-actions { display: flex; gap: 12px; margin-top: 24px; flex-wrap: wrap; }
.sede-actions .btn { padding: 12px 20px; font-size: .92rem; }
.sede-map {
  border: 0; width: 100%; height: 230px;
  filter: saturate(.92);
  margin-top: auto;
}

/* =========================================================
   EQUIPO
   ========================================================= */
.team { padding: clamp(56px, 8vw, 100px) 0; background: var(--paper-2); }
.team-grid {
  --tg-gap: clamp(16px, 2vw, 24px);
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: var(--tg-gap);
}
.member { flex: 0 1 calc((100% - 3 * var(--tg-gap)) / 4); }
.member {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  text-align: center;
  transition: transform .22s ease, box-shadow .22s ease;
}
.member:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.member-photo {
  aspect-ratio: 1 / 1;
  background: linear-gradient(160deg, var(--mint), var(--mint-200));
  position: relative;
  overflow: hidden;
}
.member-photo img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 22%;
  filter: saturate(1.02);
}
.member-body { padding: 22px 18px 26px; }
.member-body h3 { font-size: 1.18rem; color: var(--ink); }
.member-body .role { color: var(--teal-700); font-weight: 700; font-size: .88rem; margin-top: 6px; }
.member-body .ph-line { margin-top: 12px; color: var(--muted); font-size: .84rem; font-weight: 500; line-height: 1.45; }

.team-note {
  margin-top: 30px; text-align: center;
  color: var(--muted); font-size: .95rem; font-weight: 500;
}

/* equipo de apoyo */
.support {
  margin-top: clamp(34px, 5vw, 52px);
  padding-top: clamp(30px, 4vw, 44px);
  border-top: 1px solid var(--line);
}
.support-head {
  text-align: center;
  margin-bottom: 26px;
}
.support-head h3 {
  font-size: 1.5rem;
  color: var(--ink);
}
.support-head p {
  margin-top: 10px;
  color: var(--muted);
  font-weight: 500;
  font-size: .96rem;
}
.support-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(16px, 2.4vw, 30px);
  max-width: 760px;
  margin-inline: auto;
}
.support-member { text-align: center; }
.support-photo {
  width: clamp(110px, 16vw, 150px);
  aspect-ratio: 1 / 1;
  margin: 0 auto 14px;
  border-radius: 50%;
  overflow: hidden;
  background: linear-gradient(160deg, var(--mint), var(--mint-200));
  border: 3px solid var(--white);
  box-shadow: var(--shadow-sm);
}
.support-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 25%; }
.support-member b {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.02rem;
  color: var(--ink);
  display: block;
}
.support-member span { color: var(--muted); font-size: .85rem; font-weight: 600; }

/* =========================================================
   INSTALACIONES
   ========================================================= */
.instalaciones { padding: clamp(56px, 8vw, 100px) 0; }
.inst-intro {
  max-width: 760px;
  margin: -8px 0 clamp(34px, 5vw, 50px);
  color: var(--muted);
  font-size: clamp(1rem, 2.2vw, 1.12rem);
  font-weight: 500;
  line-height: 1.6;
}
.inst-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(18px, 2.4vw, 26px);
}
.inst-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: transform .22s ease, box-shadow .22s ease;
}
.inst-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.inst-figure {
  aspect-ratio: 16 / 11;
  overflow: hidden;
  background: linear-gradient(160deg, var(--mint), var(--mint-200));
  position: relative;
}
.inst-figure img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.inst-card:hover .inst-figure img { transform: scale(1.05); }
.inst-tag {
  position: absolute; top: 14px; left: 14px;
  background: color-mix(in srgb, var(--teal-900) 70%, transparent);
  color: #fff;
  backdrop-filter: blur(6px);
  font-weight: 700; font-size: .76rem;
  padding: 6px 12px; border-radius: 100px;
}
.inst-body { padding: 24px 24px 26px; }
.inst-body h3 { font-size: 1.26rem; color: var(--ink); }
.inst-body p { margin-top: 10px; color: var(--muted); font-size: .94rem; font-weight: 500; line-height: 1.55; }

/* =========================================================
   PROCEDIMIENTOS (videos)
   ========================================================= */
.procedimientos { padding: clamp(56px, 8vw, 100px) 0; background: var(--paper-2); }
.proc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(18px, 2.4vw, 26px);
}
.proc-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .22s ease, box-shadow .22s ease;
}
.proc-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.proc-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: none;
  padding: 0;
  cursor: pointer;
  background: var(--teal-900);
  overflow: hidden;
  display: block;
}
.proc-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .5s ease, filter .3s ease;
}
.proc-card:hover .proc-thumb img { transform: scale(1.05); filter: brightness(.82); }
/* Tarjeta CTA que cierra la grilla de videos */
.proc-cta-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
  gap: 14px;
}
.proc-cta-body h3 { font-size: 1.3rem; }
.proc-cta-body p { font-size: .96rem; }
.proc-cta-body .btn { align-self: flex-start; margin-top: 4px; }
.proc-cta-short { display: none; }
.proc-thumb::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(7,63,55,.45) 100%);
  pointer-events: none;
}
.proc-play {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 62px; height: 62px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--teal) 92%, transparent);
  display: grid; place-items: center;
  box-shadow: 0 10px 26px -8px rgba(7,63,55,.6);
  transition: transform .22s ease, background .22s ease;
  z-index: 2;
}
.proc-card:hover .proc-play { transform: translate(-50%, -50%) scale(1.1); background: var(--teal); }
.proc-play svg { width: 26px; height: 26px; fill: #fff; margin-left: 3px; }
.proc-thumb iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.proc-body { padding: 18px 22px 22px; }
.proc-body h3 { font-size: 1.14rem; color: var(--ink); }
.proc-body p { margin-top: 7px; color: var(--muted); font-size: .9rem; font-weight: 500; }

/* =========================================================
   INFORMACIÓN PARA EL PACIENTE (acordeón)
   ========================================================= */
.info { padding: clamp(56px, 8vw, 100px) 0; }
.acc { display: flex; flex-direction: column; gap: 14px; max-width: 880px; }
.acc-item {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.acc-item.open { border-color: transparent; box-shadow: var(--shadow-md); }
.acc-head {
  width: 100%;
  display: flex; align-items: center; gap: 16px;
  padding: 20px 24px;
  background: none; border: none; cursor: pointer;
  text-align: left;
  font-family: var(--font-body);
}
.acc-ico {
  flex: 0 0 auto;
  width: 48px; height: 48px;
  border-radius: 14px;
  background: var(--mint-200); color: var(--teal);
  display: grid; place-items: center;
  transition: background .22s ease, color .22s ease;
}
.acc-item.open .acc-ico { background: var(--teal); color: #fff; }
.acc-ico svg { width: 25px; height: 25px; }
.acc-title { flex: 1; min-width: 0; }
.acc-title strong {
  display: block;
  font-family: var(--font-display); font-weight: 800;
  font-size: 1.18rem; color: var(--ink); letter-spacing: -.02em;
}
.acc-title small { display: block; color: var(--muted); font-size: .9rem; font-weight: 500; margin-top: 3px; }
.acc-chev {
  flex: 0 0 auto;
  width: 30px; height: 30px;
  display: grid; place-items: center;
  color: var(--teal-700);
  transition: transform .3s ease;
}
.acc-item.open .acc-chev { transform: rotate(180deg); }
.acc-body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .35s ease; }
.acc-item.open .acc-body { grid-template-rows: 1fr; }
.acc-inner { overflow: hidden; }
.acc-content {
  padding: 2px 26px 26px 88px;
  color: var(--muted); font-size: .98rem; line-height: 1.6;
}
.acc-content .lead-in { color: var(--ink); font-weight: 500; margin-bottom: 16px; }
.acc-content ol, .acc-content ul {
  margin: 0; padding-left: 20px;
  display: flex; flex-direction: column; gap: 9px;
}
.acc-content li { padding-left: 4px; }
.acc-content li::marker { color: var(--teal); font-weight: 700; }
.acc-content h3 { font-family: var(--font-display); color: var(--ink); font-size: 1.04rem; margin: 20px 0 10px; }
.acc-content a { color: var(--teal-700); font-weight: 600; }
.acc-content a:hover { text-decoration: underline; }
.acc-pdf {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--mint-200); color: var(--teal-700);
  font-weight: 700; font-size: .95rem;
  padding: 12px 18px; border-radius: 100px;
  margin-bottom: 18px;
  transition: background .2s ease, color .2s ease, transform .2s ease;
}
.acc-pdf:hover { background: var(--teal); color: #fff; transform: translateY(-2px); text-decoration: none; }

/* =========================================================
   CTA BANNER
   ========================================================= */
.cta-band { padding: 0 0 clamp(56px, 8vw, 100px); }
.cta-inner {
  position: relative; overflow: hidden;
  background: linear-gradient(150deg, var(--teal) 0%, var(--teal-700) 60%, var(--teal-900) 100%);
  border-radius: var(--r-xl);
  padding: clamp(40px, 6vw, 72px);
  color: #fff;
  text-align: center;
  box-shadow: var(--shadow-lg);
}
.cta-inner::after {
  content:""; position:absolute; right:-80px; top:-80px;
  width:320px; height:320px; border-radius:50%;
  background: radial-gradient(circle, rgba(255,255,255,.14), transparent 65%);
}
.cta-inner h2 { font-size: clamp(1.9rem, 5vw, 3rem); position: relative; }
.cta-inner p { margin: 18px auto 30px; color: rgba(255,255,255,.85); font-size: 1.1rem; max-width: 50ch; position: relative; font-weight: 500; }
.cta-inner .btn { position: relative; }

/* =========================================================
   FOOTER
   ========================================================= */
.footer {
  background: var(--ink);
  color: #cfe6df;
  padding: clamp(48px, 6vw, 76px) 0 30px;
}
.footer a { color: #cfe6df; }
.footer a:hover { color: #fff; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: clamp(28px, 4vw, 50px);
}
.footer .brand .brand-logo { height: 44px; }
.footer .f-about { margin-top: 18px; color: #9fc1b8; font-size: .95rem; max-width: 34ch; line-height: 1.65; }
.footer h3 {
  font-family: var(--font-body);
  font-weight: 700; font-size: .78rem;
  letter-spacing: .14em; text-transform: uppercase;
  color: #7ea79c; margin-bottom: 16px;
}
.footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 11px; font-size: .96rem; }
.footer .f-wa {
  display: inline-flex; align-items: center; gap: 9px;
  background: var(--teal); color: #fff; font-weight: 700;
  padding: 13px 20px; border-radius: 100px; margin-top: 4px;
}
.footer .f-wa:hover { background: var(--teal-700); color: #fff; }
.footer-bottom {
  margin-top: clamp(38px, 5vw, 56px);
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,.1);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  font-size: .85rem; color: #7ea79c;
}

/* =========================================================
   FLOATING WHATSAPP
   ========================================================= */
.wa-float {
  position: fixed;
  left: clamp(16px, 3vw, 28px);
  bottom: clamp(16px, 3vw, 28px);
  z-index: 90;
  display: inline-flex; align-items: center; gap: 0;
  background: var(--wa); color: #fff;
  border-radius: 100px;
  padding: 0;
  box-shadow: 0 14px 30px -8px rgba(37,211,102,.6);
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease;
}
.wa-float:hover { transform: translateY(-3px) scale(1.02); box-shadow: 0 20px 40px -10px rgba(37,211,102,.7); }
.wa-float .wa-icon {
  width: 60px; height: 60px;
  display: grid; place-items: center;
  flex: 0 0 auto;
}
.wa-float .wa-icon svg { width: 32px; height: 32px; }
.wa-float .wa-text {
  font-weight: 700; font-size: .98rem;
  white-space: nowrap;
  max-width: 0; opacity: 0;
  padding-right: 0;
  transition: max-width .3s ease, opacity .25s ease, padding-right .3s ease;
}
.wa-float:hover .wa-text { max-width: 220px; opacity: 1; padding-right: 22px; }
.wa-float::before {
  content: ""; position: absolute; inset: 0;
  border-radius: 100px;
  box-shadow: 0 0 0 0 rgba(37,211,102,.5);
  animation: wa-pulse 2.4s infinite;
}
@keyframes wa-pulse {
  0% { box-shadow: 0 0 0 0 rgba(37,211,102,.45); }
  70% { box-shadow: 0 0 0 16px rgba(37,211,102,0); }
  100% { box-shadow: 0 0 0 0 rgba(37,211,102,0); }
}
@media (prefers-reduced-motion: reduce) { .wa-float::before { animation: none; } }

/* =========================================================
   SCROLL REVEAL
   ========================================================= */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s cubic-bezier(.22,1,.36,1), transform .7s cubic-bezier(.22,1,.36,1);
  transition-delay: var(--delay, 0ms);
}
.reveal.in { opacity: 1; transform: none; }
.no-trans .reveal { transition: none !important; }
.no-trans *, .no-trans *::before, .no-trans *::after {
  transition-duration: 0s !important;
  transition-delay: 0s !important;
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* =========================================================
   DESKTOP ENHANCEMENTS (≥ 981px)
   ========================================================= */
@media (min-width: 981px) {
  .svc-grid { grid-template-columns: repeat(3, 1fr); }
  .services, .procedimientos, .why, .instalaciones,
  .sedes, .team, .info, .cta-band { padding-top: clamp(48px, 5vw, 72px); padding-bottom: clamp(48px, 5vw, 72px); }
  .acc { max-width: 100%; }
  .inst-intro { max-width: 960px; }
  .section-head { max-width: 780px; }
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 980px) {
  .nav-links, .nav-cta .btn-wa { display: none; }
  .burger { display: inline-flex; }

  /* Hero mantiene 2 columnas — texto izquierda, imagen derecha */
  .hero-grid { gap: 20px; }
  .float-card.fc-1 { left: -14px; }
  .float-card.fc-2 { right: -14px; }
  .why-grid { grid-template-columns: 1fr; }
  .why-left { position: static; }
  .svc-grid { grid-template-columns: repeat(2, 1fr); }
  .member { flex-basis: calc((100% - 2 * var(--tg-gap)) / 3); }
  .inst-grid { grid-template-columns: repeat(2, 1fr); }
  .proc-grid { grid-template-columns: repeat(2, 1fr); }
  .support-grid { grid-template-columns: repeat(4, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 560px) {
  :root { --gutter: 18px; }

  /* Hero: 1 columna centrada, imagen debajo del texto */
  .hero { padding: 24px 0 36px; }
  .hero-grid { grid-template-columns: 1fr; gap: 24px; text-align: center; justify-items: stretch; }
  .hero-media { width: 100%; max-width: 100%; margin: 0; }
  .hero-photo { width: 100%; }
  .hero .eyebrow { font-size: .78rem; padding: 7px 12px; gap: 6px; }
  .hero h1 { font-size: clamp(1.8rem, 7vw, 2.4rem); margin-top: 14px; }
  .hero .lead { font-size: .92rem; margin: 12px auto 20px; max-width: none; }
  /* En el celular queda un solo botón, del ancho de su texto y centrado.
     WhatsApp ya está en el flotante, no hace falta repetirlo acá. */
  .hero-cta { justify-content: center; gap: 10px; }
  .hero-cta .btn { padding: 14px 28px; font-size: .95rem; justify-content: center; }
  .hero-cta .btn-ghost { display: none; }
  .hero-trust { margin-top: 20px; padding-top: 16px; gap: 8px 20px; justify-content: center; }
  .hero-trust .t b { font-size: 1.3rem; }
  .hero-trust .t span { font-size: .74rem; }
  .float-card { display: none; }
  .hero-media { display: none; }
  .hero::before { display: none; }

  /* Secciones: padding más ajustado */
  .services, .why, .instalaciones, .procedimientos,
  .sedes, .team, .info, .cta-band {
    padding-top: 36px;
    padding-bottom: 36px;
  }

  /* Títulos de sección más chicos */
  .section-head { margin-bottom: 24px; }
  .section-head h2 { font-size: clamp(1.45rem, 6vw, 1.9rem); margin-top: 12px; }
  .section-head .lead { font-size: .88rem; margin-top: 10px; }

  /* Grids */
  .svc-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .inst-grid { grid-template-columns: 1fr; gap: 12px; }
  .proc-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .member { flex-basis: calc((100% - var(--tg-gap)) / 2); }
  .support-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: center; text-align: center; }

  /* Cards: padding interno reducido */
  .svc-card { padding: 18px 16px 16px; }
  .svc-ico { width: 44px; height: 44px; margin-bottom: 12px; }
  .svc-ico svg { width: 22px; height: 22px; }
  .svc-card h3 { font-size: 1.05rem; }
  .svc-card p { font-size: .84rem; }

  .inst-body { padding: 14px 14px 16px; }
  .inst-body h3 { font-size: 1.05rem; }
  .inst-body p { font-size: .84rem; margin-top: 6px; }

  .proc-body { padding: 12px 14px 16px; }
  .proc-body h3 { font-size: 1rem; }
  .proc-body p { font-size: .82rem; }
  /* La CTA ocupa el 6.º casillero, al lado del último video */
  .proc-cta-body { padding: 16px 14px; gap: 10px; }
  .proc-cta-body h3 { font-size: 1.05rem; }
  .proc-cta-body p { font-size: .82rem; }
  .proc-cta-body .btn { margin-top: 2px; padding: 11px 18px; font-size: .86rem; }
  .proc-cta-long { display: none; }
  .proc-cta-short { display: inline; }
  .proc-play { width: 48px; height: 48px; }
  .proc-play svg { width: 20px; height: 20px; }

  /* Why / Stats */
  .why .stats { grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 22px; }
  .why .stats .stat:last-child { grid-column: 1 / -1; }
  .stat { padding: 16px; }
  .stat b { font-size: 1.8rem; }
  .stat span { font-size: .82rem; }
  .value { padding: 16px 16px; gap: 12px; }
  .value .v-ico { width: 40px; height: 40px; }
  .value h3 { font-size: 1rem; }
  .value p { font-size: .84rem; }

  /* Sedes */
  .sede-grid { grid-template-columns: 1fr; }
  .sede-body { padding: 20px; }
  .sede-card h3 { font-size: 1.4rem; margin-top: 12px; }
  .sede-actions { flex-direction: column; }
  .sede-actions .btn { width: 100%; justify-content: center; }
  .sede-map { height: 180px; }

  /* Equipo */
  .member-body { padding: 14px 12px 18px; }
  .member-body h3 { font-size: 1rem; }
  .support-photo { width: clamp(80px, 20vw, 110px); }
  .support-member b { font-size: .88rem; }
  .support-member span { font-size: .76rem; }

  /* Acordeón */
  .acc-head { padding: 14px 16px; gap: 12px; }
  .acc-ico { width: 38px; height: 38px; }
  .acc-title strong { font-size: 1rem; }
  .acc-title small { font-size: .82rem; }
  .acc-content { padding: 0 16px 20px 16px; font-size: .88rem; }

  /* CTA band */
  .cta-inner { padding: 30px 20px; border-radius: var(--r-lg); }
  .cta-inner h2 { font-size: clamp(1.4rem, 6vw, 1.9rem); }
  .cta-inner p { font-size: .92rem; margin: 12px auto 22px; }

  /* Footer */
  .footer { padding-top: 36px; padding-bottom: 22px; }
  .footer-grid { gap: 24px; }
}

/* =========================================================
   PREMIUM INTERACTIONS · dinamismo y micro-interacciones
   ========================================================= */

/* Scroll progress bar */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0;
  z-index: 200;
  background: linear-gradient(90deg, var(--teal) 0%, #16B89C 60%, var(--mint) 100%);
  box-shadow: 0 1px 8px -2px var(--teal);
  transform-origin: left center;
  transition: width .08s linear;
  pointer-events: none;
}

/* Nav: animated underline + active scrollspy state */
.nav-links a {
  position: relative;
  overflow: hidden;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 14px; right: 14px; bottom: 5px;
  height: 2px;
  border-radius: 2px;
  background: var(--teal);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .28s cubic-bezier(.22,.61,.36,1);
}
.nav-links a:hover::after,
.nav-links a.active::after { transform: scaleX(1); }
.nav-links a.active { color: var(--teal-700); }

/* Count-up: keep number stable while animating */
[data-count] { font-variant-numeric: tabular-nums; }

/* Refined reveal easing + soft scale */
.reveal {
  transition: opacity .7s cubic-bezier(.16,.84,.36,1),
              transform .7s cubic-bezier(.16,.84,.36,1);
}
.reveal { transform: translateY(30px) scale(.985); }
.reveal.in { transform: none; }

/* 3D tilt — applied via JS by setting CSS vars on hover */
.tilt {
  transform: perspective(820px)
             rotateX(var(--ry, 0deg))
             rotateY(var(--rx, 0deg))
             translateY(var(--tl, 0px));
  transition: transform .35s cubic-bezier(.22,.61,.36,1), box-shadow .35s ease;
  transform-style: preserve-3d;
  will-change: transform;
}
.tilt.is-tilting { transition: transform .08s linear, box-shadow .35s ease; }

/* Image ken-burns zoom on hover for figures with photos */
.inst-figure img,
.member-photo img {
  transition: transform .9s cubic-bezier(.22,.61,.36,1), filter .5s ease;
}
.inst-card:hover .inst-figure img,
.member:hover .member-photo img { transform: scale(1.07); }

/* Float cards: gentle continuous drift + lift on hero hover */
@media (prefers-reduced-motion: no-preference) {
  .float-card.fc-1 { animation: floatDrift 6.5s ease-in-out infinite; }
  .float-card.fc-2 { animation: floatDrift 7.5s ease-in-out infinite .8s; }
  @keyframes floatDrift {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-9px); }
  }
}

/* Primary CTA sheen sweep */
.btn-wa { position: relative; overflow: hidden; }
.btn-wa::before {
  content: "";
  position: absolute;
  top: 0; left: -130%;
  width: 60%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.38), transparent);
  transform: skewX(-18deg);
  transition: none;
}
.btn-wa:hover::before { animation: sheen .85s cubic-bezier(.22,.61,.36,1); }
@keyframes sheen {
  to { left: 160%; }
}

/* Service / value icons: subtle pop on card hover */
.svc-card:hover .svc-ico { transform: translateY(-3px) rotate(-4deg); }
.svc-ico { transition: transform .35s cubic-bezier(.22,.61,.36,1); }

/* Reduced motion: disable transforms/animation extras */
@media (prefers-reduced-motion: reduce) {
  .scroll-progress { display: none; }
  .tilt { transform: none !important; }
  .float-card { animation: none !important; }
  .btn-wa::before { display: none; }
}

/* =========================================================
   ASISTENTE VIRTUAL · Emi
   Burbuja flotante + panel de chat. Misma paleta menta/teal.
   ========================================================= */

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- Lanzador: foto, nombre y estado — como una persona disponible ---------- */
.chat-launcher {
  position: fixed;
  right: clamp(16px, 3vw, 28px);
  bottom: clamp(16px, 3vw, 28px);
  z-index: 91;
  display: inline-flex; align-items: center; gap: 12px;
  margin: 0;
  padding: 9px 22px 9px 9px;
  font-family: var(--font-body);
  text-align: left;
  color: #fff;
  background: linear-gradient(150deg, #0E8C77 0%, #073F37 100%);
  border: 1px solid rgba(214,242,233,.18);
  border-radius: 100px;
  cursor: pointer;
  box-shadow: 0 18px 40px -12px rgba(7,63,55,.6), 0 3px 10px -3px rgba(7,63,55,.35);
  transition: transform .22s ease, box-shadow .22s ease, padding .28s ease;
}
.chat-launcher:hover {
  transform: translateY(-3px);
  box-shadow: 0 26px 52px -14px rgba(7,63,55,.7), 0 4px 12px -3px rgba(7,63,55,.4);
}
.chat-launcher:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; }

.chat-launcher .cl-face {
  position: relative;
  flex: 0 0 auto;
  display: grid; place-items: center;
}

/* Insignia de chat sobre la cara. En escritorio no hace falta (el texto ya
   dice "Preguntale a Croi"); en el celular es lo que explica qué es esto. */
.cl-badge {
  display: none;
  position: absolute;
  right: -3px; bottom: -3px;
  width: 23px; height: 23px;
  place-items: center;
  background: #4ADE80;
  color: #073F37;
  border: 2.5px solid #0B4C42;
  border-radius: 50%;
  transition: opacity .2s ease;
}
.cl-badge svg { width: 12px; height: 12px; }
.chat-launcher.is-open .cl-badge { opacity: 0; }

/* Foto redonda con aro. Si el cliente sube su propio dibujo a
   img/asistente.png (o .webp), el script lo pone acá de fondo;
   mientras tanto se ve el diente dibujado. */
.chat-launcher .cl-ico {
  position: relative;
  width: 50px; height: 50px;
  flex: 0 0 auto;
  display: grid; place-items: center;
  border-radius: 50%;
  background-color: var(--mint-200);
  background-size: cover;
  background-position: center;
  box-shadow: 0 0 0 2px rgba(214,242,233,.32);
  overflow: hidden;
}
.chat-launcher .cl-ico svg {
  grid-area: 1 / 1;
  width: 26px; height: 26px;
  color: var(--teal);
  transition: opacity .2s ease, transform .25s ease;
}
.chat-launcher.has-photo .cl-tooth { opacity: 0; }
.chat-launcher .cl-x { opacity: 0; transform: rotate(-45deg) scale(.7); }

/* Abierto: se encoge a un círculo limpio con la X */
.chat-launcher.is-open { padding: 9px; }
.chat-launcher.is-open .cl-ico {
  background-color: transparent;
  background-image: none !important;
  box-shadow: none;
}
.chat-launcher.is-open .cl-tooth { opacity: 0; transform: rotate(45deg) scale(.7); }
.chat-launcher.is-open .cl-x { opacity: 1; transform: none; color: #fff; }
.chat-launcher.is-open .cl-text { max-width: 0; opacity: 0; }

.chat-launcher .cl-text {
  display: flex; flex-direction: column; gap: 3px;
  white-space: nowrap;
  max-width: 230px;
  overflow: hidden;
  transition: max-width .28s ease, opacity .2s ease;
}
.chat-launcher .cl-text b {
  font-family: var(--font-display);
  font-weight: 800; font-size: 1.06rem; letter-spacing: -.022em;
  line-height: 1.1;
}
.chat-launcher .cl-text small {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: .8rem; font-weight: 500;
  color: var(--mint); opacity: .84;
  line-height: 1.2;
}

/* Puntito verde "en línea", al lado del texto */
.cl-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #4ADE80; flex: 0 0 auto;
  box-shadow: 0 0 0 0 rgba(74,222,128,.7);
  animation: cl-dot-pulse 2.6s infinite;
}
@keyframes cl-dot-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(74,222,128,.6); }
  70%  { box-shadow: 0 0 0 5px rgba(74,222,128,0); }
  100% { box-shadow: 0 0 0 0 rgba(74,222,128,0); }
}
@media (prefers-reduced-motion: reduce) { .cl-dot { animation: none; } }

/* Latido sutil que invita a abrirlo — se apaga al abrir el chat */
.chat-launcher::before {
  content: ""; position: absolute; inset: 0;
  border-radius: 100px;
  box-shadow: 0 0 0 0 rgba(12,125,107,.5);
  animation: chat-pulse 3.4s 1.5s infinite;
  pointer-events: none;
}
.chat-launcher.is-open::before { animation: none; }
@keyframes chat-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(12,125,107,.4); }
  70%  { box-shadow: 0 0 0 18px rgba(12,125,107,0); }
  100% { box-shadow: 0 0 0 0 rgba(12,125,107,0); }
}
@media (prefers-reduced-motion: reduce) { .chat-launcher::before { animation: none; } }

/* ---------- Globito de saludo (aparece a los 15 s) ---------- */
.chat-nudge {
  position: fixed;
  right: clamp(16px, 3vw, 28px);
  bottom: calc(clamp(16px, 3vw, 28px) + 76px);
  z-index: 92;
  width: min(268px, calc(100vw - 2 * clamp(16px, 3vw, 28px)));
  padding: 14px 16px 15px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-md);
  cursor: pointer;
  text-align: left;
  opacity: 0;
  transform: translateY(10px) scale(.96);
  transform-origin: bottom right;
  pointer-events: none;
  transition: opacity .35s cubic-bezier(.22,1,.36,1), transform .35s cubic-bezier(.22,1,.36,1);
}
.chat-nudge.show { opacity: 1; transform: none; pointer-events: auto; }
.chat-nudge:hover { border-color: var(--teal); }
.no-trans .chat-nudge { transition: none !important; }

/* La colita que sale de Emi */
.chat-nudge::after {
  content: "";
  position: absolute;
  right: 26px; bottom: -8px;
  width: 15px; height: 15px;
  background: var(--white);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  transform: rotate(45deg);
  border-bottom-right-radius: 3px;
}
.chat-nudge b {
  display: block;
  font-family: var(--font-display);
  font-size: .98rem; font-weight: 800; letter-spacing: -.02em;
  color: var(--ink);
  padding-right: 18px;
}
.chat-nudge span {
  display: block;
  margin-top: 4px;
  font-size: .84rem; line-height: 1.4;
  color: var(--muted);
}
.chat-nudge-close {
  position: absolute; top: 7px; right: 7px;
  width: 26px; height: 26px;
  display: grid; place-items: center;
  background: transparent; border: 0;
  color: var(--muted); cursor: pointer;
  border-radius: 50%;
  transition: background .18s ease, color .18s ease;
}
.chat-nudge-close:hover { background: var(--paper-2); color: var(--ink); }
.chat-nudge-close:focus-visible { outline: 2px solid var(--teal); outline-offset: 1px; }

/* ---------- Panel ---------- */
.chat-panel {
  position: fixed;
  right: clamp(16px, 3vw, 28px);
  bottom: calc(clamp(16px, 3vw, 28px) + 78px);
  z-index: 95;
  width: min(392px, calc(100vw - 2 * clamp(16px, 3vw, 28px)));
  height: min(580px, calc(100vh - clamp(16px, 3vw, 28px) - 106px));
  display: flex; flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  opacity: 0;
  transform: translateY(16px) scale(.97);
  transform-origin: bottom right;
  pointer-events: none;
  visibility: hidden; /* cerrado: sin foco ni lectores de pantalla */
  transition: opacity .25s cubic-bezier(.22,1,.36,1), transform .25s cubic-bezier(.22,1,.36,1), visibility 0s linear .25s;
}
.chat-panel.open { opacity: 1; transform: none; pointer-events: auto; visibility: visible; transition-delay: 0s; }
.no-trans .chat-panel { transition: none !important; }

/* Cabecera */
.chat-head {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 14px 14px 16px;
  background: var(--teal);
  color: #fff;
  flex: 0 0 auto;
}
.chat-avatar {
  width: 42px; height: 42px; flex: 0 0 auto;
  display: grid; place-items: center;
  background-color: var(--mint-200);
  background-size: cover;
  background-position: center;
  border-radius: 50%;
  box-shadow: 0 0 0 2px rgba(255,255,255,.28);
  overflow: hidden;
}
.chat-avatar svg { width: 24px; height: 24px; color: var(--teal); }
.chat-avatar.has-photo svg { opacity: 0; }
.chat-id { min-width: 0; flex: 1 1 auto; }
.chat-id strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1rem; font-weight: 800; letter-spacing: -.02em;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.chat-id span {
  display: flex; align-items: center; gap: 6px;
  font-size: .8rem; opacity: .88; margin-top: 1px;
}
.chat-live {
  width: 7px; height: 7px; border-radius: 50%;
  background: #7BE8A8; flex: 0 0 auto;
  box-shadow: 0 0 0 0 rgba(123,232,168,.7);
  animation: chat-live 2.4s infinite;
}
@keyframes chat-live {
  0%   { box-shadow: 0 0 0 0 rgba(123,232,168,.6); }
  70%  { box-shadow: 0 0 0 6px rgba(123,232,168,0); }
  100% { box-shadow: 0 0 0 0 rgba(123,232,168,0); }
}
@media (prefers-reduced-motion: reduce) { .chat-live { animation: none; } }

.chat-close {
  width: 34px; height: 34px; flex: 0 0 auto;
  display: grid; place-items: center;
  background: transparent; border: 0; color: #fff;
  border-radius: 50%; cursor: pointer;
  transition: background .18s ease;
}
.chat-close:hover { background: rgba(255,255,255,.18); }
.chat-close:focus-visible { outline: 2px solid #fff; outline-offset: 1px; }

/* Conversación */
.chat-log {
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 16px 16px 6px;
  background: var(--paper);
  display: flex; flex-direction: column; gap: 10px;
  overscroll-behavior: contain;
}
.chat-msg { display: flex; }
.chat-msg-model { justify-content: flex-start; }
.chat-msg-user  { justify-content: flex-end; }

.chat-bubble {
  max-width: 85%;
  padding: 11px 14px;
  border-radius: var(--r-md);
  font-size: .945rem;
  line-height: 1.5;
  overflow-wrap: anywhere;
  animation: chat-in .3s cubic-bezier(.22,1,.36,1) both;
}
@keyframes chat-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.no-trans .chat-bubble { animation: none; }

.chat-msg-model .chat-bubble {
  background: var(--white);
  color: var(--ink);
  border: 1px solid var(--line);
  border-bottom-left-radius: 6px;
}
.chat-msg-user .chat-bubble {
  background: var(--teal);
  color: #fff;
  border-bottom-right-radius: 6px;
}
.chat-bubble a { color: var(--teal-700); font-weight: 700; text-decoration: underline; }
.chat-msg-user .chat-bubble a { color: #fff; }

/* Puntitos de "escribiendo" */
.chat-dots { display: inline-flex; gap: 4px; padding: 2px 0; }
.chat-dots i {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--teal);
  opacity: .35;
  animation: chat-bounce 1.2s infinite;
}
.chat-dots i:nth-child(2) { animation-delay: .15s; }
.chat-dots i:nth-child(3) { animation-delay: .3s; }
@keyframes chat-bounce {
  0%, 60%, 100% { transform: none; opacity: .35; }
  30% { transform: translateY(-4px); opacity: .9; }
}

/* Preguntas sugeridas */
.chat-chips {
  flex: 0 0 auto;
  display: flex; flex-wrap: wrap; gap: 7px;
  padding: 10px 16px 4px;
  background: var(--paper);
}
.chat-chip {
  font-family: var(--font-body);
  font-size: .84rem; font-weight: 600;
  color: var(--teal-700);
  background: var(--mint-200);
  border: 1px solid var(--line);
  border-radius: 100px;
  padding: 7px 13px;
  cursor: pointer;
  transition: background .18s ease, transform .18s ease, border-color .18s ease;
}
.chat-chip:hover { background: var(--mint); border-color: var(--teal); transform: translateY(-1px); }
.chat-chip:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }

/* Campo de escritura */
.chat-form {
  flex: 0 0 auto;
  display: flex; align-items: flex-end; gap: 8px;
  padding: 12px 14px 8px;
  background: var(--paper);
  border-top: 1px solid var(--line);
}
.chat-form textarea {
  flex: 1 1 auto;
  font-family: var(--font-body);
  font-size: .95rem;
  line-height: 1.45;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  padding: 10px 12px;
  resize: none;
  max-height: 110px;
  overflow-y: auto;
  transition: border-color .18s ease, box-shadow .18s ease;
}
.chat-form textarea::placeholder { color: var(--muted); opacity: .8; }
.chat-form textarea:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(12,125,107,.14);
}
.chat-send {
  width: 44px; height: 44px; flex: 0 0 auto;
  display: grid; place-items: center;
  background: var(--teal); color: #fff;
  border: 0; border-radius: var(--r-sm);
  cursor: pointer;
  transition: background .18s ease, transform .18s ease, opacity .18s ease;
}
.chat-send:hover:not(:disabled) { background: var(--teal-700); transform: translateY(-1px); }
.chat-send:focus-visible { outline: 3px solid var(--mint); outline-offset: 2px; }
.chat-send:disabled { opacity: .5; cursor: default; }
.chat-panel.is-busy .chat-form textarea { opacity: .7; }

/* Pie legal */
.chat-foot {
  flex: 0 0 auto;
  padding: 0 16px 12px;
  background: var(--paper);
  font-size: .74rem;
  line-height: 1.4;
  color: var(--muted);
}
.chat-foot a { color: var(--teal-700); font-weight: 700; text-decoration: underline; }

/* ---------- Móvil: el panel ocupa la pantalla ---------- */
@media (max-width: 699px) {
  .chat-panel {
    right: 0; left: 0; bottom: 0;
    width: 100%;
    height: 88vh; height: 88dvh;
    border-radius: var(--r-lg) var(--r-lg) 0 0;
    border-left: 0; border-right: 0; border-bottom: 0;
    transform-origin: bottom center;
  }
  /* Con el chat abierto, las burbujas flotantes estorban: las sacamos. */
  .chat-launcher.is-open,
  .chat-panel.open ~ .wa-float { opacity: 0; pointer-events: none; }

  /* En el celular el lanzador es un círculo, para no comerse la pantalla.
     Lo que deja claro que es un chat son la insignia verde con el globo de
     diálogo y el saludo que aparece a los 15 segundos. */
  .chat-launcher { padding: 8px; gap: 0; }
  .chat-launcher .cl-ico { width: 48px; height: 48px; }
  .chat-launcher .cl-ico svg { width: 25px; height: 25px; }
  .chat-launcher .cl-text { max-width: 0; opacity: 0; }
  .cl-badge { display: grid; }

  /* El globito, apoyado sobre el círculo */
  .chat-nudge { bottom: calc(clamp(16px, 3vw, 28px) + 76px); }
  .chat-nudge::after { right: 22px; }
}

/* La pastilla completa y la de WhatsApp no deben tocarse nunca */
@media (max-width: 400px) {
  .wa-float .wa-icon { width: 52px; height: 52px; }
  .wa-float .wa-icon svg { width: 28px; height: 28px; }
  .wa-float:hover .wa-text { max-width: 0; opacity: 0; padding-right: 0; }
}

/* =========================================================
   PEDIR TURNO — sección de la página
   ========================================================= */

.turnos { padding: clamp(56px, 8vw, 100px) 0; background: var(--paper-2); }
.turnos-grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
}
.turnos-left { position: sticky; top: 96px; }

.turnos-puntos {
  list-style: none;
  margin: 28px 0 0; padding: 0;
  display: flex; flex-direction: column; gap: 16px;
}
.turnos-puntos li { display: flex; gap: 13px; align-items: flex-start; }
.tp-ico {
  width: 26px; height: 26px; flex: 0 0 auto;
  display: grid; place-items: center;
  background: var(--mint);
  color: var(--teal-700);
  border-radius: 50%;
  margin-top: 2px;
}
.tp-ico svg { width: 15px; height: 15px; }
.turnos-puntos b {
  display: block;
  font-family: var(--font-display);
  font-size: 1.02rem; font-weight: 800; letter-spacing: -.02em;
}
.turnos-puntos span { display: block; color: var(--muted); font-size: .94rem; margin-top: 2px; }

/* La tarjeta del formulario */
.turnos-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-md);
  padding: clamp(22px, 3vw, 32px);
}
.turnos-card form { display: flex; flex-direction: column; gap: 15px; }

.tf-row { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.tf-field { display: flex; flex-direction: column; gap: 6px; }
.tf-field > span {
  font-size: .88rem; font-weight: 700;
  color: var(--ink);
}
.tf-field > span i { font-style: normal; font-weight: 500; color: var(--muted); }

.tf-field input,
.tf-field select,
.tf-field textarea {
  font-family: var(--font-body);
  font-size: .96rem;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  padding: 11px 13px;
  width: 100%;
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}
.tf-field textarea { resize: vertical; min-height: 62px; }
.tf-field select { appearance: none; cursor: pointer; padding-right: 38px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2351665F' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 13px center;
  background-size: 17px;
}
.tf-field input::placeholder,
.tf-field textarea::placeholder { color: var(--muted); opacity: .75; }
.tf-field input:focus,
.tf-field select:focus,
.tf-field textarea:focus {
  outline: none;
  background: var(--white);
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(12,125,107,.14);
}
.tf-field .is-error { border-color: #C2410C; box-shadow: 0 0 0 3px rgba(194,65,12,.12); }

.tf-submit { justify-content: center; width: 100%; margin-top: 4px; }

/* Aviso de urgencia: no la mandamos a una cola de espera */
.turno-urgencia {
  background: #FEF3C7;
  border: 1px solid #FCD34D;
  border-radius: var(--r-sm);
  padding: 12px 14px;
  font-size: .89rem;
  line-height: 1.45;
  color: #78350F;
}
.turno-urgencia b { display: block; margin-bottom: 2px; }
.turno-urgencia a { font-weight: 700; text-decoration: underline; }

.turno-aviso { font-size: .9rem; line-height: 1.45; }
.turno-aviso:empty { display: none; }
.turno-aviso.is-mal { color: #C2410C; font-weight: 600; }
.turno-aviso.is-bien { color: var(--teal-700); font-weight: 600; }

.tf-legal { font-size: .78rem; line-height: 1.5; color: var(--muted); }
.tf-legal b { color: var(--ink); }

/* =========================================================
   PEDIR TURNO — dentro del chat
   ========================================================= */

.chat-actions {
  flex: 0 0 auto;
  padding: 8px 16px 0;
  background: var(--paper);
}
.chat-turno {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--font-body);
  font-size: .86rem; font-weight: 700;
  color: #fff;
  background: var(--teal);
  border: 0;
  border-radius: 100px;
  padding: 8px 15px;
  cursor: pointer;
  transition: background .18s ease, transform .18s ease;
}
.chat-turno:hover { background: var(--teal-700); transform: translateY(-1px); }
.chat-turno:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }

.chat-turno-form {
  display: flex; flex-direction: column; gap: 8px;
  max-width: 100%;
  width: 100%;
}
.chat-turno-form input,
.chat-turno-form select {
  font-family: var(--font-body);
  font-size: .9rem;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 9px 11px;
  width: 100%;
  transition: border-color .18s ease, box-shadow .18s ease;
}
.chat-turno-form select { appearance: none; cursor: pointer; padding-right: 32px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2351665F' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 15px;
}
.chat-turno-form input:focus,
.chat-turno-form select:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(12,125,107,.14);
}
.chat-turno-form .is-error { border-color: #C2410C; box-shadow: 0 0 0 3px rgba(194,65,12,.12); }
.chat-turno-form button {
  font-family: var(--font-body);
  font-size: .9rem; font-weight: 700;
  color: #fff; background: var(--wa);
  border: 0; border-radius: 10px;
  padding: 11px 14px;
  cursor: pointer;
  transition: filter .18s ease;
}
.chat-turno-form button:hover { filter: brightness(.94); }
.chat-turno-form .ctf-urgencia {
  background: #FEF3C7;
  border: 1px solid #FCD34D;
  border-radius: 10px;
  padding: 9px 11px;
  font-size: .82rem; line-height: 1.4;
  color: #78350F;
}
.chat-turno-form .ctf-legal { font-size: .74rem; line-height: 1.4; color: var(--muted); }
.chat-turno-form .ctf-error { font-size: .82rem; font-weight: 600; color: #C2410C; }
.chat-turno-form .ctf-error:empty { display: none; }
/* Una vez enviado, queda a la vista pero ya no se puede tocar */
.chat-turno-form.is-enviado { opacity: .55; pointer-events: none; }

/* =========================================================
   PEDIR TURNO — pantallas chicas
   ========================================================= */

@media (max-width: 980px) {
  .turnos-grid { grid-template-columns: 1fr; }
  .turnos-left { position: static; }
}
@media (max-width: 560px) {
  .tf-row { grid-template-columns: 1fr; }
}

/* Plan B de horario dentro del chat */
.chat-turno-form .ctf-flex { display: flex; flex-direction: column; gap: 6px; }
.chat-turno-form .ctf-flex[hidden] { display: none; }
.chat-turno-form .ctf-flex b { font-size: .82rem; color: var(--ink); }

/* =========================================================
   HERO CON VIDEO DE FONDO
   El material es menta claro con un diente blanco a la derecha,
   así que el hero SIGUE siendo luminoso: nada de velos oscuros.
   El velo es blanco y solo sobre la izquierda, para que el texto
   siempre se lea y el diente quede limpio a la derecha.
   ========================================================= */

.hero {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  min-height: min(84vh, 760px);
  padding: clamp(56px, 8vw, 104px) 0 clamp(60px, 8vw, 108px);
}
/* El halo menta original competía con el video */
.hero::before { display: none; }

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: var(--paper-2);
}
/* Capa del material (póster + video). Va separada del velo para poder
   moverla y agrandarla sin arrastrar el degradado con ella. */
.hero-bg-media {
  position: absolute;
  inset: 0;
  background: var(--paper-2) url("img/hero-poster.webp") center / cover no-repeat;
}
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1s ease;
}
.hero-video.is-playing { opacity: 1; }
.no-trans .hero-video { transition: none; }

/* Velo claro en degradado: opaco donde va el texto, transparente sobre el diente */
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(96deg,
      rgba(243,251,248,.96) 0%,
      rgba(243,251,248,.90) 28%,
      rgba(243,251,248,.58) 48%,
      rgba(243,251,248,.14) 66%,
      rgba(243,251,248,0) 80%),
    linear-gradient(to bottom, rgba(243,251,248,.42) 0%, rgba(243,251,248,0) 26%);
}
/* Funde el borde inferior con la sección siguiente */
.hero::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 90px;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(to bottom, rgba(243,251,248,0), var(--paper));
}

/* Una sola columna: el diente del video ocupa la derecha */
.hero-grid {
  grid-template-columns: minmax(0, 640px);
  align-items: center;
}

@media (max-width: 700px) {
  /* Sin alto mínimo: el hero mide lo que mide su contenido. Con 72vh y el
     bloque centrado quedaba un hueco vacío entre el header y el título. */
  .hero { min-height: 0; padding: 24px 0 40px; }
  /* En vertical el encuadre recorta casi 700 px de ancho. Hay que irse bien
     a la derecha para que el diente entre en cuadro: al 32% se veía nada
     más que el fondo vacío del video. */
  .hero-bg-media { background-position: 85% center; }
  .hero-video { object-position: 85% center; }
  /* Velo suave. El material ya es clarísimo y el texto es verde muy oscuro,
     así que no hace falta taparlo para que se lea: al 90% el video quedaba
     literalmente invisible. */
  .hero-bg::after {
    background: linear-gradient(to bottom,
      rgba(243,251,248,.58) 0%,
      rgba(243,251,248,.44) 55%,
      rgba(243,251,248,.34) 100%);
  }
  .hero::after { height: 60px; }
}

/* Autoplay de video = animación intrusiva: si pidieron menos movimiento,
   se queda el póster quieto (el script tampoco lo carga). */
@media (prefers-reduced-motion: reduce) {
  .hero-video { display: none; }
}

/* El logo del asistente ya trae su propio aro: no le sumamos otro encima */
.chat-launcher.has-photo .cl-ico,
.chat-avatar.has-photo { box-shadow: none; }

/* =========================================================
   HERO EN PANTALLAS GRANDES
   A 1920 px el texto terminaba cerca del medio y el diente arrancaba
   recién al 70% del ancho: quedaba un hueco en el centro. Se cierra por
   los dos lados — el contenido crece ~25% y el material se acerca.
   ========================================================= */

@media (min-width: 981px) {
  .hero {
    min-height: min(88vh, 880px);
    /* Centrado óptico: el bloque se sube ~34 px respecto del centro
       matemático. Un título de este porte pesa mucho arriba, así que
       centrado por número se ve caído. El alto del hero no cambia:
       lo que sale de arriba entra abajo. */
    padding: clamp(40px, 5vw, 70px) 0 clamp(78px, 9vw, 132px);
  }

  .hero .eyebrow { font-size: .92rem; padding: 10px 18px; }
  .hero h1 { font-size: clamp(3.4rem, 4.6vw, 5.7rem); margin-top: 26px; }
  .hero .lead {
    font-size: clamp(1.18rem, 1.35vw, 1.55rem);
    /* A 40ch la última línea quedaba huérfana con un "desde 1970." solo */
    max-width: 46ch;
    margin: 26px 0 36px;
  }
  .hero-cta .btn { padding: 16px 27px; font-size: 1.03rem; }
  .hero-trust { margin-top: 44px; padding-top: 32px; gap: 12px 42px; }
  .hero-trust .t b { font-size: 2.05rem; }
  .hero-trust .t span { font-size: .9rem; margin-top: 6px; }

  /* La columna de texto acompaña el nuevo tamaño */
  .hero-grid { grid-template-columns: minmax(0, 780px); }

  /* Acercamos y agrandamos el material: el diente deja de estar pegado
     al borde derecho. Póster y video se mueven juntos.
     El 1.18 no es capricho: con el corrimiento del 7%, cualquier escala
     menor a 1.163 deja el borde derecho del video adentro del hero y
     asoma una franja vacía contra el costado. */
  .hero-bg-media { transform: scale(1.18) translateX(-7%); }

  /* El velo se despeja un poco antes, para no ensuciar el diente ahora
     que quedó más adentro */
  .hero-bg::after {
    background:
      linear-gradient(96deg,
        rgba(243,251,248,.96) 0%,
        rgba(243,251,248,.91) 30%,
        rgba(243,251,248,.60) 46%,
        rgba(243,251,248,.16) 60%,
        rgba(243,251,248,0) 71%),
      linear-gradient(to bottom, rgba(243,251,248,.42) 0%, rgba(243,251,248,0) 26%);
  }
}

/* Notebooks: pantallas anchas pero bajas (1440x800 y parecidas).
   Con los tamaños grandes el hero terminaba midiendo más que la ventana
   y la fila de +50 / 2 sedes / Lun-Vie caía abajo del pliegue.
   No afecta a los monitores altos. */
@media (min-width: 981px) and (max-height: 880px) {
  .hero { padding: clamp(28px, 4vh, 52px) 0 clamp(48px, 7vh, 92px); }
  .hero h1 { font-size: clamp(2.9rem, 3.9vw, 4.7rem); margin-top: 20px; }
  .hero .lead { font-size: clamp(1.08rem, 1.2vw, 1.32rem); margin: 20px 0 28px; }
  .hero-cta .btn { padding: 14px 24px; font-size: .98rem; }
  .hero-trust { margin-top: 32px; padding-top: 24px; }
  .hero-trust .t b { font-size: 1.75rem; }
}

/* =========================================================
   PÁGINAS LEGALES (privacidad.html)
   ========================================================= */
.legal {
  max-width: 760px;
  padding-top: clamp(40px, 6vw, 72px);
  padding-bottom: clamp(56px, 8vw, 96px);
}
.legal h1 { font-size: clamp(2rem, 4.5vw, 3rem); margin: 14px 0 18px; }
.legal .lead { font-size: 1.12rem; color: var(--muted); margin-bottom: 36px; }
.legal h2 { font-size: 1.3rem; margin: 34px 0 10px; }
.legal p, .legal li { line-height: 1.65; color: var(--ink); }
.legal ul { padding-left: 1.2em; }
.legal li { margin-bottom: 10px; }
.legal a:not(.btn) { color: var(--teal-700); text-decoration: underline; text-underline-offset: 2px; }
.legal-back { margin-top: 44px; }

/* =========================================================
   RESEÑAS
   ========================================================= */
.resenas { padding: clamp(56px, 8vw, 100px) 0 clamp(16px, 3vw, 36px); }
.rs-top { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: clamp(28px, 4vw, 44px); }
.rs-score {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 18px 26px; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg);
  text-decoration: none; color: var(--ink); flex: 0 0 auto;
  transition: transform .22s ease, box-shadow .22s ease;
}
.rs-score:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.rs-score b { font-family: var(--font-display); font-size: 2.6rem; line-height: 1; }
.rs-score-stars { display: flex; gap: 2px; color: #F5B301; }
.rs-score-txt { display: inline-flex; align-items: center; gap: 6px; font-size: .84rem; color: var(--muted); font-weight: 600; }
.rs-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.rs-card {
  position: relative;
  display: flex; flex-direction: column; gap: 14px;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 22px 24px 24px; color: var(--ink); text-decoration: none;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.rs-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: transparent; }
.rs-head { display: flex; align-items: center; gap: 12px; }
.rs-avatar {
  flex: 0 0 44px; width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; color: #fff;
}
.rs-tono-a { background: var(--teal); }
.rs-tono-b { background: #2E7D9A; }
.rs-tono-c { background: #C56A2B; }
.rs-who { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.rs-who b { font-size: .96rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rs-who span { display: inline-flex; align-items: center; gap: 5px; font-size: .8rem; color: var(--muted); }
.rs-g { flex: 0 0 auto; }
.rs-stars { display: flex; gap: 1px; color: #F5B301; flex: 0 0 auto; }
.rs-card p { margin: 0; font-size: 1rem; line-height: 1.6; color: var(--ink); flex: 1; }
.rs-more {
  display: inline-flex; align-items: center; gap: 5px; align-self: flex-start;
  font-size: .84rem; font-weight: 700; color: var(--teal-700);
  opacity: 0; transform: translateY(4px); transition: opacity .2s ease, transform .2s ease;
}
.rs-card:hover .rs-more, .rs-card:focus-visible .rs-more { opacity: 1; transform: none; }
/* Las estrellas se encienden una por una al entrar en pantalla */
.rs-card .rs-stars svg { opacity: 0; transform: scale(.4); }
.rs-card.in .rs-stars svg { animation: rs-star .35s cubic-bezier(.34,1.56,.64,1) forwards; }
.rs-card.in .rs-stars svg:nth-child(1) { animation-delay: .25s; }
.rs-card.in .rs-stars svg:nth-child(2) { animation-delay: .33s; }
.rs-card.in .rs-stars svg:nth-child(3) { animation-delay: .41s; }
.rs-card.in .rs-stars svg:nth-child(4) { animation-delay: .49s; }
.rs-card.in .rs-stars svg:nth-child(5) { animation-delay: .57s; }
@keyframes rs-star { to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .rs-card .rs-stars svg { opacity: 1; transform: none; animation: none !important; }
  .rs-more { opacity: 1; transform: none; }
}
.rs-actions { display: flex; flex-direction: column; align-items: center; gap: 12px; margin-top: 34px; text-align: center; }
.rs-actions p { margin: 0; font-size: .92rem; color: var(--muted); }
@media (max-width: 980px) {
  .resenas { padding-top: 36px; padding-bottom: 36px; }
  .rs-top { flex-direction: column; align-items: flex-start; }
  /* En móvil las tarjetas se deslizan de costado, una por pantalla */
  .rs-grid {
    grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: min(86%, 380px);
    overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 16px;
    margin: 0 -16px; padding: 4px 16px 14px; scrollbar-width: none;
  }
  .rs-grid::-webkit-scrollbar { display: none; }
  .rs-card { scroll-snap-align: start; }
  .rs-more { opacity: 1; transform: none; }
  /* Angosto: el nombre no se corta y las estrellas bajan a su propia fila */
  .rs-head { flex-wrap: wrap; row-gap: 8px; }
  .rs-who b { white-space: normal; overflow: visible; text-overflow: clip; }
  .rs-stars { flex-basis: 100%; padding-left: 56px; }
  /* El badge de la nota va en una sola fila para no comer pantalla */
  .rs-score { width: 100%; flex-direction: row; justify-content: center; flex-wrap: wrap; gap: 8px 14px; padding: 14px 18px; }
  .rs-score b { font-size: 2rem; }
}

/* Entre 981 y 1180 px el menú con 8 links no entra con el botón: se aprietan */
@media (min-width: 981px) and (max-width: 1180px) {
  .nav-links a { padding: 9px 9px; font-size: .9rem; }
  .nav-cta .btn { padding: 10px 16px; font-size: .9rem; }
}

/* =========================================================
   VISOR DE VIDEOS
   ========================================================= */
.video-modal { position: fixed; inset: 0; z-index: 120; display: grid; place-items: center; padding: 16px; }
.vm-scrim { position: absolute; inset: 0; background: rgba(7, 42, 38, .82); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.vm-box { position: relative; width: min(960px, 100%); }
.vm-frame { position: relative; aspect-ratio: 16 / 9; background: #000; border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-lg); }
.vm-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.vm-title { margin: 14px 0 0; color: #fff; font-weight: 600; text-align: center; }
.vm-close {
  position: absolute; top: -48px; right: 0; width: 42px; height: 42px;
  display: grid; place-items: center; border: 0; border-radius: 50%;
  background: rgba(255,255,255,.14); color: #fff; cursor: pointer;
}
.vm-close:hover { background: rgba(255,255,255,.26); }

/* Banner final: botón al formulario + WhatsApp como alternativa */
.cta-btns { position: relative; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.cta-wa { display: inline-flex; align-items: center; gap: 8px; color: rgba(255,255,255,.9); font-weight: 600; font-size: .95rem; text-decoration: underline; text-underline-offset: 3px; }
.cta-wa:hover { color: #fff; }
