/* ============ Clínica Dental Dres. Torres — Identidad corporativa ============
   Azul claro  #A3E0FF  — fondo principal (limpieza, confianza, tranquilidad)
   Blanco      #FFFFFF  — fondo secundario
   Azul oscuro #2153CC  — títulos y contrastes
   Gris oscuro #575757  — textos explicativos
   Gris claro  #E5E5E5  — líneas de recuadros
   Tipografía: Poppins (Bold títulos · Regular textos · Light subtítulos)
============================================================================= */
:root {
  --blue-sky: #A3E0FF;
  --blue-sky-soft: #E9F7FF;
  --blue: #2153CC;
  --blue-hover: #1a44a8;
  --gray-text: #575757;
  --gray-line: #E5E5E5;
  --white: #ffffff;
  --whatsapp: #25d366;
  --whatsapp-dark: #1ebe5b;
  --radius: 20px;
  --shadow: 0 10px 35px rgba(33, 83, 204, 0.08);
  --shadow-lift: 0 18px 45px rgba(33, 83, 204, 0.14);
  --font: 'Poppins', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body { font-family: var(--font); font-weight: 400; color: var(--gray-text); background: var(--white); line-height: 1.65; }
img { max-width: 100%; display: block; }
a { color: var(--blue); text-decoration: none; }
h1, h2, h3 { font-weight: 700; line-height: 1.2; color: var(--blue); }

.container { width: min(1140px, 92%); margin-inline: auto; }
.accent { color: var(--blue); position: relative; }
h1 .accent { color: var(--blue); }
.accent-light { color: var(--blue-sky); }

/* Iconos SVG (trazo) */
.ic {
  width: 20px; height: 20px; fill: none; stroke: currentColor;
  stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
  flex: none; vertical-align: middle;
}
.ic--lg { width: 30px; height: 30px; stroke-width: 1.8; }

.chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 18px; border-radius: 999px;
  background: var(--white); color: var(--blue); border: 1px solid var(--gray-line);
  font-weight: 500; font-size: 0.85rem; letter-spacing: 0.02em; margin-bottom: 18px;
  box-shadow: 0 4px 14px rgba(33, 83, 204, 0.07);
}
.chip .ic { width: 15px; height: 15px; }
.chip--light { background: rgba(255,255,255,0.14); color: #fff; border-color: rgba(255,255,255,0.3); box-shadow: none; }

/* ============ Botones ============ */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 28px; border-radius: 999px; font-weight: 600;
  font-family: var(--font); font-size: 0.98rem; cursor: pointer;
  transition: transform .2s, box-shadow .2s, background .2s;
  background: var(--blue); color: #fff; border: none;
}
.btn:hover { transform: translateY(-2px); background: var(--blue-hover); box-shadow: 0 12px 25px rgba(33,83,204,.3); }
.btn--small { padding: 9px 20px; font-size: 0.88rem; }
.btn--whatsapp { background: var(--whatsapp); }
.btn--whatsapp:hover { background: var(--whatsapp-dark); box-shadow: 0 12px 25px rgba(37,211,102,.35); }
.btn--outline {
  background: var(--white); border: 2px solid var(--blue); color: var(--blue);
}
.btn--outline:hover { background: var(--blue-sky-soft); box-shadow: none; }
.btn--outline-light { background: transparent; border-color: #fff; color: #fff; }
.btn--outline-light:hover { background: rgba(255,255,255,0.12); }
.btn--gray { background: var(--gray-line); color: var(--gray-text); }
.btn--gray:hover { background: #d5d5d5; box-shadow: none; }

/* Instagram: pastilla discreta que se enciende con el degradado de la marca al pasar por encima */
.ig-grad { background: linear-gradient(45deg, #f09433, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888); }
.btn-ig {
  display: inline-flex; align-items: center; gap: 9px;
  margin-top: 18px; padding: 10px 18px; border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  font-size: 0.85rem; font-weight: 500;
  transition: background .25s, border-color .25s, transform .2s;
}
.footer .btn-ig { color: #fff; }
.btn-ig:hover {
  transform: translateY(-2px); border-color: transparent;
  background: linear-gradient(45deg, #f09433, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888);
}
.btn-ig .ic { width: 18px; height: 18px; }

/* ============ Barra de progreso de lectura ============ */
.scroll-progress {
  position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 110;
  background: linear-gradient(90deg, var(--blue-sky), var(--blue));
  transform-origin: left; transform: scaleX(0);
}

/* ============ Burbujas decorativas con parallax ============ */
.section { position: relative; }
.deco { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.deco__b { position: absolute; border-radius: 50%; will-change: transform; }
.deco__b--fill { background: rgba(163, 224, 255, 0.30); }
.deco__b--ring { border: 2px solid rgba(33, 83, 204, 0.10); }
.deco__b--dot { background: rgba(33, 83, 204, 0.12); }
.deco__b--light { background: rgba(255, 255, 255, 0.07); }
/* El contenido siempre por encima de la decoración */
.section > .container { position: relative; z-index: 1; }

/* ============ Nav ============ */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  background: rgba(255, 255, 255, 0.85); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--gray-line);
  transition: box-shadow .3s;
}
.nav.scrolled { box-shadow: 0 4px 24px rgba(33,83,204,0.08); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.nav__logo { display: flex; align-items: center; }
.nav__logo-img { height: 52px; width: auto; }
.nav__logo-fallback { font-size: 1.1rem; font-weight: 300; color: var(--blue); align-items: center; }
.nav__logo-fallback strong { font-weight: 700; }
.nav__links { display: flex; align-items: center; gap: 26px; }
.nav__links a:not(.btn):not(.nav__ig) { color: var(--gray-text); font-weight: 500; font-size: 0.93rem; position: relative; }
.nav__links a:not(.btn):not(.nav__ig)::after {
  content: ""; position: absolute; left: 0; bottom: -6px; height: 2px; width: 0;
  background: var(--blue); border-radius: 2px; transition: width .25s;
}
.nav__links a:not(.btn):not(.nav__ig):hover { color: var(--blue); }
.nav__links a:not(.btn):not(.nav__ig):hover::after { width: 100%; }
.nav__ig {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 50%; flex: none;
  color: var(--blue); border: 1px solid var(--gray-line);
  transition: background .25s, color .25s, border-color .25s, transform .2s;
}
.nav__ig:hover {
  color: #fff; border-color: transparent; transform: translateY(-2px);
  background: linear-gradient(45deg, #f09433, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888);
}
/* Enlace de vuelta en las páginas legales: siempre visible, nunca desplegable */
.nav__back { display: flex; align-items: center; }
.nav__back a { color: var(--gray-text); font-weight: 500; font-size: 0.93rem; }
.nav__back a:hover { color: var(--blue); }
.nav__burger { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav__burger span { display: block; width: 24px; height: 2.5px; background: var(--blue); margin: 5px 0; border-radius: 2px; transition: .3s; }

/* ============ Hero ============ */
.hero {
  position: relative; padding: 165px 0 110px; overflow: hidden;
  background: linear-gradient(180deg, var(--blue-sky) 0%, var(--blue-sky-soft) 55%, var(--white) 100%);
}
.hero__inner { position: relative; display: grid; grid-template-columns: 1.4fr 1fr; gap: 60px; align-items: center; }
/* Variante de bienvenida: una sola columna centrada, al estilo intro minimalista */
.hero__inner--center { grid-template-columns: 1fr; text-align: center; max-width: 780px; }
.hero__inner--center .hero__sub { margin-inline: auto; font-size: 1.15rem; }
.hero__inner--center .hero__cta, .hero__inner--center .hero__badges { justify-content: center; }
.hero h1 { font-size: clamp(2rem, 4.3vw, 3.2rem); font-weight: 800; margin-bottom: 22px; color: var(--blue); }
.hero__sub { font-size: 1.06rem; font-weight: 300; color: var(--gray-text); max-width: 56ch; margin-bottom: 30px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 28px; }
.hero__badges { list-style: none; display: flex; flex-wrap: wrap; gap: 10px 24px; font-size: 0.92rem; color: var(--blue); font-weight: 500; }
.hero__badges li { display: inline-flex; align-items: center; gap: 7px; }
.hero__badges .ic { width: 15px; height: 15px; stroke-width: 3; }

/* Burbujas decorativas (motivo del logo) */
.hero__bubbles { position: absolute; inset: 0; pointer-events: none; }
.hero__bubbles span {
  position: absolute; border-radius: 50%;
  background: rgba(255,255,255,0.55);
  animation: bubble-float 9s ease-in-out infinite;
}
.hero__bubbles span:nth-child(1) { width: 90px; height: 90px; top: 14%; left: 6%; animation-delay: 0s; }
.hero__bubbles span:nth-child(2) { width: 34px; height: 34px; top: 32%; left: 15%; animation-delay: -2s; }
.hero__bubbles span:nth-child(3) { width: 56px; height: 56px; top: 68%; left: 9%; animation-delay: -4s; background: rgba(33,83,204,0.10); }
.hero__bubbles span:nth-child(4) { width: 24px; height: 24px; top: 18%; right: 26%; animation-delay: -1s; background: rgba(33,83,204,0.12); }
.hero__bubbles span:nth-child(5) { width: 120px; height: 120px; top: 8%; right: 7%; animation-delay: -5s; }
.hero__bubbles span:nth-child(6) { width: 44px; height: 44px; bottom: 16%; right: 14%; animation-delay: -3s; }
.hero__bubbles span:nth-child(7) { width: 20px; height: 20px; bottom: 30%; right: 30%; animation-delay: -6s; background: rgba(33,83,204,0.10); }
.hero__bubbles span:nth-child(8) { width: 66px; height: 66px; bottom: 6%; left: 40%; animation-delay: -7s; }
@keyframes bubble-float {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-22px) scale(1.06); }
}

.hero__stats { display: grid; gap: 16px; }
/* Cifras dentro de la sección "La Clínica" */
.stats-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-bottom: 46px; }
.stats-row .stat { text-align: center; }
.stats-row .stat__top { justify-content: center; }
.stat {
  background: rgba(255,255,255,0.75); border: 1px solid var(--gray-line);
  backdrop-filter: blur(8px); border-radius: var(--radius); padding: 20px 28px;
  box-shadow: var(--shadow);
}
.stat__top { display: flex; align-items: baseline; }
.stat__num, .stat__plus { font-size: 2.3rem; font-weight: 800; color: var(--blue); line-height: 1.1; }
.stat__label { color: var(--gray-text); font-size: 0.92rem; font-weight: 300; }

/* ============ Marquee ============ */
.marquee {
  background: var(--blue); color: #fff; overflow: hidden;
  padding: 14px 0; white-space: nowrap;
}
.marquee__track {
  display: inline-flex; align-items: center; gap: 34px;
  animation: marquee 28s linear infinite;
  will-change: transform;
}
.marquee__track span { font-weight: 500; font-size: 0.92rem; letter-spacing: 0.04em; text-transform: uppercase; }
.marquee__track i {
  width: 8px; height: 8px; border-radius: 50%; background: var(--blue-sky); flex: none;
}
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ============ Secciones ============ */
.section { padding: 90px 0; }
.section--tint { background: var(--blue-sky-soft); }
.section__head { text-align: center; max-width: 720px; margin: 0 auto 56px; }
.section__head h2 { font-size: clamp(1.65rem, 3.2vw, 2.3rem); margin-bottom: 16px; }
.section__head p { color: var(--gray-text); font-weight: 300; font-size: 1.03rem; }

/* ============ Tarjetas ============ */
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.card {
  background: var(--white); border-radius: var(--radius); padding: 36px 30px;
  border: 1px solid var(--gray-line); box-shadow: var(--shadow);
  transition: transform .25s, box-shadow .25s;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lift); }
.card__icon {
  width: 58px; height: 58px; border-radius: 16px; margin-bottom: 18px;
  background: var(--blue-sky-soft); color: var(--blue);
  display: flex; align-items: center; justify-content: center;
}
.card h3 { font-size: 1.15rem; margin-bottom: 10px; }
.card p { font-size: 0.95rem; font-weight: 300; }
.card--accent { border-top: 4px solid var(--blue-sky); }

/* ============ Tratamientos ============ */
.treat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.treat {
  background: var(--white); border-radius: var(--radius); padding: 28px 24px;
  border: 1px solid var(--gray-line);
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.treat:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: var(--blue-sky); }
.treat__icon {
  width: 48px; height: 48px; border-radius: 14px; margin-bottom: 14px;
  background: var(--blue-sky-soft); color: var(--blue);
  display: flex; align-items: center; justify-content: center;
}
.treat__icon .ic { width: 24px; height: 24px; }
.treat h3 { font-size: 1.02rem; margin-bottom: 8px; }
.treat p { font-size: 0.88rem; font-weight: 300; }

/* ============ Equipo ============ */
.team-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.member {
  display: flex; gap: 24px; background: var(--white); border-radius: var(--radius);
  padding: 26px; border: 1px solid var(--gray-line); box-shadow: var(--shadow);
  transition: transform .25s, box-shadow .25s;
}
.member:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.member__photo {
  flex: 0 0 140px; height: 175px; border-radius: 16px; overflow: hidden;
  background: var(--blue-sky-soft);
}
/* 30% vertical encuadra la cara tanto en las fotos horizontales como en las verticales */
.member__photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
/* Centrado vertical para que las fichas sin lista de titulación no queden descompensadas */
.member__info { display: flex; flex-direction: column; justify-content: center; }
.member__info h3 { font-size: 1.12rem; margin-bottom: 4px; }
.member__role { display: block; color: var(--blue); font-weight: 500; font-size: 0.86rem; margin-bottom: 12px; }
.member__info ul { list-style: none; }
.member__info li { font-size: 0.86rem; font-weight: 300; padding-left: 20px; position: relative; margin-bottom: 4px; }
.member__info li::before {
  content: ""; position: absolute; left: 0; top: 7px;
  width: 8px; height: 8px; border-radius: 50%; background: var(--blue-sky);
}

/* ============ Invisalign ============ */
.section--dark {
  background:
    radial-gradient(700px 380px at 88% 15%, rgba(163,224,255,0.28), transparent 60%),
    linear-gradient(135deg, #1a3f9e, var(--blue));
  color: #fff;
}
.section--dark h2 { color: #fff; font-size: clamp(1.65rem, 3.2vw, 2.3rem); margin-bottom: 18px; }
.section--dark p { color: rgba(255,255,255,0.88); font-weight: 300; }
.invis__inner { display: grid; grid-template-columns: 1.3fr 1fr; gap: 60px; align-items: center; }
/* Variante espejo (Implantología): visual a la izquierda, texto a la derecha, en sección clara */
.invis__inner--reverse { grid-template-columns: 1fr 1.3fr; }
.invis__circle--light {
  background: var(--blue-sky-soft); border: 1px solid var(--gray-line);
}
.invis__tooth--blue { stroke: var(--blue); }
.invis__tag--blue { color: var(--blue); font-size: 1.05rem; }
.check-list.check-list--blue li { color: var(--gray-text); font-weight: 300; }
.check-list { list-style: none; margin: 24px 0 30px; }
.check-list li {
  padding-left: 34px; position: relative; margin-bottom: 12px; color: rgba(255,255,255,0.92); font-weight: 300;
}
.check-list li::before {
  content: "✓"; position: absolute; left: 0; top: 1px;
  width: 22px; height: 22px; border-radius: 50%; background: var(--blue-sky);
  color: var(--blue); font-size: 0.8rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.invis__visual { display: flex; justify-content: center; }
.invis__circle {
  width: 280px; height: 280px; border-radius: 50%;
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.25);
  backdrop-filter: blur(6px); display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 14px;
  animation: float 5s ease-in-out infinite;
}
.invis__tooth {
  width: 92px; height: 92px; fill: none; stroke: var(--blue-sky);
  stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round;
}
.invis__tag { font-weight: 700; font-size: 1.25rem; color: #fff; letter-spacing: -0.01em; }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }

/* ============ Reseñas ============ */
.reviews-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.review {
  background: var(--white); border: 1px solid var(--gray-line);
  border-radius: var(--radius); padding: 28px 30px; box-shadow: var(--shadow);
  display: flex; flex-direction: column; gap: 14px;
  transition: transform .25s, box-shadow .25s;
}
.review:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.review__stars { display: flex; gap: 3px; }
.review__stars svg { width: 18px; height: 18px; fill: #fbbc04; stroke: #fbbc04; }
.review p { font-size: 0.93rem; font-weight: 300; flex: 1; }
.review footer { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.review footer strong { color: var(--blue); font-size: 0.93rem; font-weight: 600; }
.review footer span { color: var(--gray-text); font-weight: 300; font-size: 0.8rem; }
.reviews-cta { text-align: center; margin-top: 36px; }

/* ============ Ubicación ============ */
.loc__grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 34px; align-items: stretch; }
.loc__map {
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
  min-height: 380px; background: var(--white); border: 1px solid var(--gray-line);
  display: flex;
}
.loc__map iframe { width: 100%; height: 100%; min-height: 380px; border: 0; }
.loc__map-load {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 10px; background: var(--blue-sky-soft); border: none; cursor: pointer;
  font-family: var(--font); color: var(--blue); padding: 30px;
  transition: background .25s;
}
.loc__map-load:hover { background: var(--blue-sky); }
.loc__map-load strong { font-size: 1.05rem; font-weight: 600; }
.loc__map-load small { color: var(--gray-text); font-weight: 300; font-size: 0.78rem; max-width: 30ch; }
.loc__map-load .ic--lg { width: 40px; height: 40px; }
.loc__info { display: flex; flex-direction: column; gap: 18px; justify-content: center; }
.loc__item {
  display: flex; gap: 16px; background: var(--white); padding: 20px 22px;
  border-radius: 16px; border: 1px solid var(--gray-line); box-shadow: var(--shadow);
  align-items: flex-start;
}
.loc__ic {
  width: 42px; height: 42px; border-radius: 12px; flex: none;
  background: var(--blue-sky-soft); color: var(--blue);
  display: flex; align-items: center; justify-content: center;
}
.loc__item strong { display: block; color: var(--blue); font-size: 0.93rem; font-weight: 600; margin-bottom: 2px; }
.loc__item p { font-size: 0.9rem; font-weight: 300; }

/* ============ CTA ============ */
.section--cta {
  background: linear-gradient(120deg, var(--blue), #3a6fe0);
  color: #fff; text-align: center; position: relative; overflow: hidden;
}
.section--cta::before, .section--cta::after {
  content: ""; position: absolute; border-radius: 50%;
  background: rgba(163,224,255,0.18);
}
.section--cta::before { width: 300px; height: 300px; top: -120px; left: -80px; }
.section--cta::after { width: 220px; height: 220px; bottom: -90px; right: -60px; }
.cta__inner { position: relative; z-index: 1; }
/* Logo monocromo blanco: va directo sobre el azul, sin placa */
.cta__logo { height: 82px; width: auto; margin: 0 auto 24px; }
.cta__inner h2 { color: #fff; font-size: clamp(1.75rem, 3.4vw, 2.4rem); margin-bottom: 12px; }
.cta__inner p { font-size: 1.08rem; font-weight: 300; margin-bottom: 30px; color: rgba(255,255,255,0.92); }
.cta__buttons { justify-content: center; }

/* ============ Footer ============ */
.footer { background: #163a8f; color: rgba(255,255,255,0.82); padding: 56px 0 0; }
.footer a { color: var(--blue-sky); }
.footer__inner { display: grid; grid-template-columns: 1.3fr 1fr 1fr 0.8fr; gap: 36px; padding-bottom: 40px; }
.footer__logo { height: 62px; width: auto; margin-bottom: 14px; }
.footer__brand p, .footer__col p { font-size: 0.88rem; font-weight: 300; margin-bottom: 5px; }
.footer__col strong { color: #fff; font-weight: 600; display: block; margin-bottom: 10px; }
.footer__legal { border-top: 1px solid rgba(255,255,255,0.14); padding: 18px 0; text-align: center; font-size: 0.83rem; font-weight: 300; }

/* ============ WhatsApp flotante ============ */
.wa-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 90;
  width: 60px; height: 60px; border-radius: 50%;
  background: var(--whatsapp); display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 24px rgba(37,211,102,0.45);
  transition: transform .2s;
  animation: pulse 2.5s infinite;
}
.wa-float:hover { transform: scale(1.1); }
@keyframes pulse {
  0% { box-shadow: 0 8px 24px rgba(37,211,102,0.45), 0 0 0 0 rgba(37,211,102,0.4); }
  70% { box-shadow: 0 8px 24px rgba(37,211,102,0.45), 0 0 0 16px rgba(37,211,102,0); }
  100% { box-shadow: 0 8px 24px rgba(37,211,102,0.45), 0 0 0 0 rgba(37,211,102,0); }
}

/* ============ Banner de cookies ============ */
.cookies {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 200;
  padding: 16px; display: flex; justify-content: center;
}
.cookies[hidden] { display: none; }
.cookies__box {
  background: var(--white); border: 1px solid var(--gray-line);
  border-radius: 18px; box-shadow: 0 14px 50px rgba(33,83,204,0.22);
  padding: 18px 24px; max-width: 720px;
  display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
}
.cookies__box p { font-size: 0.86rem; font-weight: 300; flex: 1; min-width: 260px; }
.cookies__actions { display: flex; gap: 10px; }
/* En móvil el aviso ocupa la franja inferior y taparía el botón
   flotante de WhatsApp: se oculta hasta que el usuario decide. */
@media (max-width: 720px) {
  body.aviso-cookies .wa-float { opacity: 0; pointer-events: none; }
  .cookies__actions .btn { min-height: 44px; }
}

/* ============ Páginas legales ============ */
.legal { padding: 140px 0 80px; }
.legal h1 { font-size: 2rem; margin-bottom: 8px; }
.legal__updated { font-size: 0.85rem; font-weight: 300; color: var(--gray-text); margin-bottom: 36px; }
.legal h2 { font-size: 1.25rem; margin: 34px 0 12px; }
.legal p, .legal li { font-size: 0.95rem; font-weight: 300; margin-bottom: 10px; }
.legal ul { padding-left: 22px; margin-bottom: 14px; }
.legal table { width: 100%; border-collapse: collapse; margin: 14px 0; font-size: 0.9rem; }
.legal th, .legal td { border: 1px solid var(--gray-line); padding: 10px 12px; text-align: left; font-weight: 300; }
.legal th { background: var(--blue-sky-soft); color: var(--blue); font-weight: 600; }
.legal .note {
  background: var(--blue-sky-soft); border-left: 4px solid var(--blue-sky);
  padding: 14px 18px; border-radius: 0 12px 12px 0; margin: 20px 0; font-size: 0.9rem;
}

/* ============ Animaciones de aparición ============ */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }
.delay-1 { transition-delay: .12s; }
.delay-2 { transition-delay: .24s; }
.delay-3 { transition-delay: .36s; }

/* Aparición escalonada de los tratamientos (cascada por columnas) */
.treat-grid .treat:nth-child(3n+2) { transition-delay: .1s; }
.treat-grid .treat:nth-child(3n+3) { transition-delay: .2s; }

/* Accesibilidad: sin animaciones si el usuario las tiene desactivadas */
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .deco__b, .hero__bubbles span, .invis__circle, .wa-float, .marquee__track { animation: none; }
  html { scroll-behavior: auto; }
}

/* ============ Dispositivos táctiles ============
   En pantallas sin ratón los enlaces necesitan un área de pulsación
   de al menos 44 px (recomendación de Apple y Google). Afecta sobre
   todo a los teléfonos: en móvil, llamar es la acción principal. */
@media (hover: none) {
  .loc__item p a,
  .footer__col p a,
  .footer__legal p a {
    display: inline-flex; align-items: center; min-height: 44px;
  }
  .nav__burger { width: 44px; height: 44px; padding: 8px 10px; }
}

/* ============ Responsive ============ */
@media (max-width: 960px) {
  .hero__inner, .invis__inner, .loc__grid { grid-template-columns: 1fr; }
  /* En columna única el texto va antes que el círculo decorativo */
  .invis__inner--reverse .invis__visual { order: 2; }
  .hero { padding: 140px 0 90px; }
  .hero__stats { grid-template-columns: repeat(3, 1fr); }
  .cards-3 { grid-template-columns: 1fr; }
  .reviews-grid { grid-template-columns: 1fr; }
  .treat-grid { grid-template-columns: repeat(2, 1fr); }
  .team-grid { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .nav__links {
    position: fixed; top: 76px; right: 0; left: 0;
    background: var(--white); flex-direction: column; padding: 24px 0 30px; gap: 18px;
    box-shadow: 0 20px 30px rgba(33,83,204,0.12);
    transform: translateY(-140%); transition: transform .3s ease; z-index: -1;
  }
  .nav__links.open { transform: translateY(0); }
  /* Área de pulsación cómoda en el menú desplegable */
  .nav__links a:not(.btn):not(.nav__ig) { display: flex; align-items: center; justify-content: center; min-height: 44px; }
  .nav__links .nav__ig { width: 46px; height: 46px; }
  .nav__links .btn { min-height: 46px; }
  .nav__burger { display: block; }
  /* Hueco para que el botón flotante de WhatsApp no tape el copyright */
  .footer__legal { padding-bottom: 84px; }
  .hero__stats, .stats-row { grid-template-columns: 1fr; }
  .treat-grid { grid-template-columns: 1fr; }
  .member { flex-direction: column; }
  .member__photo { flex: none; width: 100%; height: 340px; }
  .footer__inner { grid-template-columns: 1fr; }
}
