/* =============================================================
   DENTALUM · Centro de Salud y Bienestar Bucal
   Arquetipo 08 — Liquid Wave (paleta tomada del propio logotipo)
   1. Tokens
   ============================================================= */
:root {
  /* Azules extraídos del logo: #03669d profundo · #56bfe4 cian */
  --azul:        #03669d;
  --azul-d:      #024b76;
  --azul-hondo:  #052f49;
  --azul-noche:  #04223a;
  --cian:        #56bfe4;
  --cian-c:      #8fd8f0;

  --bg:          #f2fafd;
  --bg-2:        #e4f4fb;
  --bg-3:        #d5edf7;
  --paper:       #ffffff;

  --ink:         #06283d;
  --ink-soft:    #1f4d68;
  --ink-mute:    #5c7d92;
  --sobre-hondo: #dcf1fa;        /* texto sobre fondo azul profundo */
  --sobre-mute:  #9ec8de;

  --sol:         #ffc857;        /* único acento cálido: estrellas de Google */

  --line:        rgba(6, 40, 61, 0.10);
  --line-soft:   rgba(6, 40, 61, 0.055);
  --line-clara:  rgba(220, 241, 250, 0.16);

  --sombra-s:    0 2px 10px -6px rgba(6, 40, 61, 0.28);
  --sombra-m:    0 20px 44px -30px rgba(6, 40, 61, 0.45), 0 3px 10px -6px rgba(6, 40, 61, 0.16);
  --sombra-l:    0 44px 90px -50px rgba(4, 58, 92, 0.60), 0 10px 28px -20px rgba(6, 40, 61, 0.28);

  --display: "Sora", "Segoe UI", system-ui, sans-serif;
  --sans:    "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --ease-out:    cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft:   cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);

  --gutter: clamp(1.15rem, 4vw, 3rem);
  --maxw:   1220px;
  --nav-h:  76px;

  /* Curvatura generosa: es un arquetipo líquido */
  --r-xl: 40px;
  --r-lg: 28px;
  --r-md: 18px;
  --r-sm: 12px;
}

/* =============================================================
   2. Reset y base
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; }

html {
  -webkit-text-size-adjust: 100%;
  tab-size: 2;
  overflow-x: clip;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 18px);
}

body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.68;
  font-weight: 400;
  color: var(--ink-soft);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  overscroll-behavior-y: none;
}

img, svg, video, iframe { display: block; max-width: 100%; }
img { height: auto; }

/* El atributo hidden debe ganar siempre: cualquier `display` de una clase
   lo anularía (le pasa al menú móvil si no se fuerza aquí). */
[hidden] { display: none !important; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
a { color: inherit; text-decoration: none; }
p { text-wrap: pretty; }
address { font-style: normal; }
ul { list-style: none; padding: 0; }

h1, h2, h3, h4 {
  font-family: var(--display);
  color: var(--ink);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

::selection { background: var(--cian); color: var(--azul-noche); }

:focus-visible {
  outline: 2px solid var(--azul);
  outline-offset: 3px;
  border-radius: 6px;
}

/* =============================================================
   3. Utilidades
   ============================================================= */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: fixed; top: -100px; left: 1rem;
  padding: .7rem 1.1rem;
  background: var(--azul); color: #fff;
  z-index: 9999; border-radius: 10px; font-weight: 600;
}
.skip-link:focus { top: 1rem; }

.kicker {
  display: inline-flex; align-items: center; gap: .55rem;
  font-family: var(--display);
  font-size: .74rem; font-weight: 600;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--azul);
  margin-bottom: 1.1rem;
}
.kicker-claro { color: var(--cian); }
.kicker-punto {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--cian);
  box-shadow: 0 0 0 4px rgba(86, 191, 228, .22);
  animation: latido 2.6s var(--ease-soft) infinite;
}
@keyframes latido {
  0%, 100% { box-shadow: 0 0 0 4px rgba(86, 191, 228, .22); }
  50%      { box-shadow: 0 0 0 8px rgba(86, 191, 228, 0); }
}

.enlace-sutil {
  display: inline-block;
  font-size: .88rem; font-weight: 600;
  color: var(--azul);
  border-bottom: 1px solid rgba(3, 102, 157, .3);
  padding-bottom: 2px;
  transition: border-color .3s var(--ease-out), color .3s var(--ease-out);
}
.enlace-sutil:hover { border-color: var(--azul); }

/* =============================================================
   4. Botones
   ============================================================= */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  font-family: var(--display);
  font-size: .92rem; font-weight: 600;
  padding: .78rem 1.5rem;
  border-radius: 100px;
  white-space: nowrap;
  transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out),
              background-color .3s var(--ease-out), color .3s var(--ease-out);
}
.btn-lg { padding: .98rem 1.9rem; font-size: 1rem; }

.btn-primary {
  background: linear-gradient(135deg, var(--azul) 0%, #0a7fb8 55%, var(--cian) 130%);
  color: #fff;
  box-shadow: 0 12px 26px -16px rgba(3, 102, 157, .85);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 34px -18px rgba(3, 102, 157, .9);
}

.btn-ghost {
  color: var(--azul);
  border: 1px solid rgba(3, 102, 157, .28);
  background: rgba(255, 255, 255, .55);
}
.btn-ghost:hover {
  background: var(--paper);
  border-color: rgba(3, 102, 157, .5);
  transform: translateY(-2px);
}

.ico-wa { width: 17px; height: 17px; fill: currentColor; }

/* =============================================================
   5. Navegación
   ============================================================= */
.nav {
  position: fixed; inset: 0 0 auto 0;
  z-index: 900;
  transition: background-color .4s var(--ease-out), box-shadow .4s var(--ease-out),
              backdrop-filter .4s var(--ease-out);
}
.nav.is-pegada {
  background: rgba(242, 250, 253, .86);
  box-shadow: 0 1px 0 var(--line), 0 10px 30px -26px rgba(6, 40, 61, .5);
}
@supports (backdrop-filter: blur(14px)) {
  .nav.is-pegada { background: rgba(242, 250, 253, .72); backdrop-filter: blur(14px) saturate(160%); }
}

.nav-inner {
  max-width: var(--maxw); margin-inline: auto;
  padding-inline: var(--gutter);
  height: var(--nav-h);
  display: flex; align-items: center; gap: 1.4rem;
}

.nav-brand { flex: 0 0 auto; }
.nav-brand img {
  width: auto; height: 38px;
  transition: transform .4s var(--ease-out);
}
.nav-brand:hover img { transform: scale(1.04); }

.nav-links {
  display: none;
  margin-left: auto;
  gap: 1.9rem;
}
.nav-links a {
  position: relative;
  font-size: .93rem; font-weight: 500;
  color: var(--ink-soft);
  transition: color .3s var(--ease-out);
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: -6px;
  width: 100%; height: 2px; border-radius: 2px;
  background: var(--cian);
  transform: scaleX(0); transform-origin: right;
  transition: transform .4s var(--ease-out);
}
.nav-links a:hover { color: var(--azul); }
.nav-links a:hover::after { transform: scaleX(1); transform-origin: left; }

.nav-cta { display: none; }

.nav-burger {
  margin-left: auto;
  width: 44px; height: 44px;
  display: grid; place-content: center; gap: 5px;
  border-radius: 12px;
}
.nav-burger span {
  display: block; width: 22px; height: 2px; border-radius: 2px;
  background: var(--ink);
  transition: transform .4s var(--ease-out), opacity .3s var(--ease-out);
}
.nav-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-movil {
  background: rgba(242, 250, 253, .97);
  border-top: 1px solid var(--line);
  padding: 1.1rem var(--gutter) 1.6rem;
  display: grid; gap: .2rem;
  box-shadow: var(--sombra-m);
}
@supports (backdrop-filter: blur(14px)) {
  .nav-movil { background: rgba(242, 250, 253, .9); backdrop-filter: blur(14px); }
}
.nav-movil a {
  padding: .78rem .2rem;
  font-family: var(--display); font-weight: 500;
  color: var(--ink);
  border-bottom: 1px solid var(--line-soft);
}
.nav-movil-cta {
  margin-top: .9rem;
  text-align: center;
  background: var(--azul); color: #fff !important;
  border-radius: 100px; border: 0 !important;
  padding: .85rem 1rem !important;
}

/* =============================================================
   6. Hero
   ============================================================= */
.hero {
  position: relative;
  padding-top: calc(var(--nav-h) + clamp(2.2rem, 6vw, 4.2rem));
  padding-bottom: clamp(5rem, 13vw, 9rem);
  background: linear-gradient(168deg, var(--bg) 0%, var(--bg-2) 45%, var(--bg-3) 100%);
  overflow: hidden;
}

/* Manchas líquidas de fondo */
.hero-agua { position: absolute; inset: 0; pointer-events: none; }
.blob {
  position: absolute;
  filter: blur(58px);
  opacity: .5;
}
.blob-a {
  width: 46vw; height: 46vw; max-width: 620px; max-height: 620px;
  top: -12%; right: -10%;
  background: radial-gradient(circle at 40% 40%, rgba(86, 191, 228, .78), transparent 68%);
  border-radius: 42% 58% 63% 37% / 45% 40% 60% 55%;
  animation: liquido 22s var(--ease-soft) infinite;
}
.blob-b {
  width: 38vw; height: 38vw; max-width: 480px; max-height: 480px;
  bottom: -14%; left: -12%;
  background: radial-gradient(circle at 60% 50%, rgba(3, 102, 157, .38), transparent 70%);
  border-radius: 58% 42% 37% 63% / 55% 60% 40% 45%;
  animation: liquido 28s var(--ease-soft) infinite reverse;
}
.blob-c {
  width: 26vw; height: 26vw; max-width: 320px; max-height: 320px;
  top: 42%; left: 44%;
  background: radial-gradient(circle at 50% 50%, rgba(143, 216, 240, .55), transparent 70%);
  border-radius: 50% 50% 42% 58% / 48% 52% 48% 52%;
  animation: liquido 34s var(--ease-soft) infinite;
}
@keyframes liquido {
  0%, 100% { transform: translate(0, 0) scale(1) rotate(0deg); }
  33%      { transform: translate(3%, -4%) scale(1.09) rotate(120deg); }
  66%      { transform: translate(-3%, 3%) scale(.95) rotate(240deg); }
}

.hero-inner {
  position: relative; z-index: 1;
  display: grid; gap: clamp(2.6rem, 6vw, 4rem);
}

.hero-titulo {
  font-size: clamp(2.35rem, 7.4vw, 4.35rem);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -0.035em;
  max-width: 15ch;
  margin-bottom: 1.5rem;
}
.hero-titulo em {
  font-style: normal;
  position: relative;
  color: var(--azul);
  white-space: nowrap;
}
/* Subrayado en forma de onda bajo la palabra clave */
.hero-titulo em::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: -.12em;
  height: .26em;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 14' preserveAspectRatio='none'%3E%3Cpath d='M0,9 C18,1 34,13 58,7 C82,1 100,11 120,5' fill='none' stroke='%2356bfe4' stroke-width='4' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center / 100% 100%;
  transform: scaleX(0); transform-origin: left;
  transition: transform 1s var(--ease-out) .35s;
}
.is-ready .hero-titulo em::after { transform: scaleX(1); }

.hero-sub {
  font-size: clamp(1.02rem, 1.9vw, 1.14rem);
  color: var(--ink-soft);
  max-width: 48ch;
  margin-bottom: 2.1rem;
}

.hero-acciones {
  display: flex; flex-wrap: wrap; gap: .8rem;
  margin-bottom: 3rem;
}

.hero-datos {
  display: flex; flex-wrap: wrap; gap: clamp(1.4rem, 5vw, 3rem);
  padding-top: 1.9rem;
  border-top: 1px solid var(--line);
}
.hero-datos li { display: flex; flex-direction: column; gap: .18rem; }
.hero-datos strong {
  font-family: var(--display);
  font-size: clamp(1.7rem, 3.6vw, 2.15rem);
  font-weight: 600; line-height: 1;
  color: var(--azul);
  letter-spacing: -0.03em;
}
.hero-datos span {
  font-size: .8rem; line-height: 1.35;
  color: var(--ink-mute);
}
.estrellas { font-style: normal; color: var(--sol); letter-spacing: -1px; }

/* Figura del hero: flota suavemente */
.hero-figura { position: relative; margin: 0; }
.hero-marco {
  position: relative;
  border-radius: 46% 54% 52% 48% / 12% 12% 14% 14%;
  overflow: hidden;
  box-shadow: var(--sombra-l);
  animation: flotar 9s var(--ease-soft) infinite;
}
.hero-marco::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(200deg, transparent 40%, rgba(3, 102, 157, .3) 100%);
}
.hero-marco img { width: 100%; height: 100%; object-fit: cover; }
@keyframes flotar {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-14px); }
}

.hero-pie {
  display: inline-flex; align-items: center; gap: .5rem;
  margin-top: 1.1rem;
  font-size: .84rem; font-weight: 500;
  color: var(--ink-mute);
}
.hero-pie-punto {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--azul); flex: 0 0 auto;
}

/* =============================================================
   7. Ondas (el efecto firma)
   ============================================================= */
/* Más anchas que el contenedor: el desplazamiento con el scroll nunca
   debe dejar ver el borde del SVG. */
.onda {
  position: absolute; left: -6%; width: 112%;
  height: clamp(52px, 8vw, 118px);
  pointer-events: none;
}
.onda path { fill: currentColor; }

.onda-hero   { bottom: -1px; color: var(--bg); }
.onda-arriba { top: -1px;    color: var(--bg); }
.onda-abajo  { bottom: -1px; color: var(--bg); }

/* =============================================================
   8. Secciones
   ============================================================= */
.seccion {
  position: relative;
  padding-block: clamp(4.2rem, 10vw, 7.5rem);
}
.seccion-clara { background: var(--bg); }

.seccion-honda {
  background: linear-gradient(165deg, var(--azul-hondo) 0%, var(--azul-noche) 60%, #031a2d 100%);
  color: var(--sobre-mute);
  padding-block: clamp(6rem, 13vw, 9.5rem);
}
.seccion-honda h1, .seccion-honda h2, .seccion-honda h3, .seccion-honda h4 { color: var(--sobre-hondo); }

.seccion-cabeza {
  max-width: 640px;
  margin-bottom: clamp(2.6rem, 6vw, 4rem);
}
.seccion-titulo {
  font-size: clamp(1.85rem, 4.6vw, 2.85rem);
  letter-spacing: -0.032em;
  margin-bottom: 1rem;
}
.seccion-sub {
  font-size: 1.03rem;
  max-width: 52ch;
}
.seccion-honda .seccion-sub { color: var(--sobre-mute); }

/* =============================================================
   9. Manifiesto + pilares
   ============================================================= */
.manifiesto {
  display: grid; gap: clamp(1.6rem, 4vw, 3.4rem);
  padding-bottom: clamp(2.8rem, 6vw, 4.2rem);
  margin-bottom: clamp(2.8rem, 6vw, 4.2rem);
  border-bottom: 1px solid var(--line);
}
.manifiesto-cuerpo p + p { margin-top: 1.05rem; }
.manifiesto-cuerpo .destacado {
  font-family: var(--display);
  font-size: clamp(1.12rem, 2.3vw, 1.36rem);
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: -0.018em;
  color: var(--ink);
}

.pilares {
  display: grid; gap: 1.1rem;
}
.pilar {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-lg);
  padding: 1.9rem 1.7rem 1.7rem;
  box-shadow: var(--sombra-s);
  transition: transform .45s var(--ease-out), box-shadow .45s var(--ease-out);
}
.pilar:hover { transform: translateY(-5px); box-shadow: var(--sombra-m); }
.pilar-num {
  display: block;
  font-family: var(--display);
  font-size: .78rem; font-weight: 700;
  letter-spacing: .12em;
  color: var(--cian);
  margin-bottom: .85rem;
}
.pilar h3 { font-size: 1.1rem; margin-bottom: .55rem; }
.pilar p { font-size: .94rem; color: var(--ink-mute); }

/* =============================================================
   10. Servicios
   ============================================================= */
.servicios-grid {
  display: grid; gap: .9rem;
}
.servicio {
  position: relative;
  overflow: hidden;
  background: rgba(255, 255, 255, .055);
  border: 1px solid var(--line-clara);
  border-radius: var(--r-lg);
  padding: 1.7rem 1.55rem 1.6rem;
  transition: transform .45s var(--ease-out), background-color .45s var(--ease-out),
              border-color .45s var(--ease-out);
}
@supports (backdrop-filter: blur(10px)) {
  .servicio { background: rgba(255, 255, 255, .045); backdrop-filter: blur(10px); }
}
/* La onda de marca asoma al pasar el cursor */
.servicio::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0;
  height: 46px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 40' preserveAspectRatio='none'%3E%3Cpath d='M0,26 C34,6 62,34 100,22 C138,10 168,30 200,16 L200,40 L0,40 Z' fill='%2356bfe4' fill-opacity='.2'/%3E%3C/svg%3E") no-repeat bottom / 100% 100%;
  transform: translateY(100%);
  transition: transform .55s var(--ease-out);
  pointer-events: none;
}
.servicio:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, .09);
  border-color: rgba(86, 191, 228, .42);
}
.servicio:hover::after { transform: translateY(0); }

.servicio-num {
  display: block;
  font-family: var(--display);
  font-size: .74rem; font-weight: 700;
  letter-spacing: .14em;
  color: var(--cian);
  margin-bottom: .9rem;
}
.servicio h3 { font-size: 1.14rem; margin-bottom: .5rem; }
.servicio p { font-size: .92rem; color: var(--sobre-mute); position: relative; z-index: 1; }

.servicios-nota {
  margin-top: 2.2rem;
  font-size: .95rem;
  color: var(--sobre-mute);
}
.servicios-nota a {
  color: var(--cian); font-weight: 600;
  border-bottom: 1px solid rgba(86, 191, 228, .4);
}
.servicios-nota a:hover { border-color: var(--cian); }

/* =============================================================
   11. Casos
   ============================================================= */
.casos { display: grid; gap: 1.4rem; }

.caso {
  background: var(--paper);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--sombra-s);
  transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out);
}
.caso:hover { transform: translateY(-6px); box-shadow: var(--sombra-m); }

.caso-foto { position: relative; overflow: hidden; background: var(--bg-3); }
.caso-foto img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
  transition: transform .9s var(--ease-out);
}
.caso:hover .caso-foto img { transform: scale(1.045); }

.caso-etiqueta {
  position: absolute; top: 1rem; left: 1rem;
  font-family: var(--display);
  font-size: .68rem; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--azul-noche);
  background: rgba(255, 255, 255, .92);
  padding: .4rem .8rem; border-radius: 100px;
}

.caso-texto { padding: 1.7rem 1.6rem 1.9rem; }
.caso-texto h3 { font-size: 1.22rem; margin-bottom: .65rem; }
.caso-texto p { font-size: .94rem; color: var(--ink-mute); }

.caso-ficha {
  display: grid; gap: .1rem;
  margin-top: 1.4rem;
  border-top: 1px solid var(--line);
  padding-top: 1.1rem;
}
.caso-ficha li {
  display: flex; justify-content: space-between; align-items: baseline; gap: 1rem;
  padding: .48rem 0;
  border-bottom: 1px solid var(--line-soft);
}
.caso-ficha li:last-child { border-bottom: 0; }
.caso-ficha span { font-size: .84rem; color: var(--ink-mute); }
.caso-ficha strong {
  font-family: var(--display); font-size: .92rem; font-weight: 600;
  color: var(--azul);
}

/* -------------------------------------------------------------
   Caso en vídeo
   El vídeo es vertical (3:4), así que se le da una columna propia
   con ancho acotado en vez de estirarlo a media pantalla.
   ------------------------------------------------------------- */
.caso-video {
  display: grid;
  gap: clamp(1.6rem, 4vw, 3.2rem);
  align-items: center;
  margin-bottom: 1.4rem;
  padding: clamp(1.3rem, 3.5vw, 2.4rem);
  background: linear-gradient(150deg, var(--azul-hondo) 0%, var(--azul-noche) 100%);
  border-radius: var(--r-xl);
  box-shadow: var(--sombra-l);
}

.caso-video-media {
  position: relative;
  width: 100%;
  max-width: 360px;
  margin-inline: auto;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: #04121f;
  box-shadow: 0 30px 60px -34px rgba(0, 0, 0, .75);
}
.caso-video-media video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  background: #04121f;
}

.caso-video-texto .kicker { color: var(--cian); }
.caso-video-texto h3 {
  font-size: clamp(1.4rem, 3vw, 1.85rem);
  color: var(--sobre-hondo);
  margin-bottom: .9rem;
  letter-spacing: -0.028em;
}
.caso-video-texto p {
  font-size: .98rem;
  color: var(--sobre-mute);
}
.caso-video-texto p + p { margin-top: .9rem; }

.caso-video-texto .caso-ficha { border-top-color: var(--line-clara); }
.caso-video-texto .caso-ficha li { border-bottom-color: var(--line-clara); }
.caso-video-texto .caso-ficha span { color: var(--sobre-mute); }
.caso-video-texto .caso-ficha strong { color: var(--cian); }

/* =============================================================
   12. Equipo
   ============================================================= */
.equipo { display: grid; gap: 1.4rem; }

.doctor {
  background: rgba(255, 255, 255, .05);
  border: 1px solid var(--line-clara);
  border-radius: var(--r-xl);
  overflow: hidden;
  transition: transform .5s var(--ease-out), border-color .5s var(--ease-out);
}
.doctor:hover { transform: translateY(-5px); border-color: rgba(86, 191, 228, .4); }

/* Los retratos de estudio ya vienen recortados en 5:4 sobre el degradado azul
   de la marca. Se pintan con esa misma proporción para que no se recorten otra
   vez y se vean enteros, sin ampliar la cara. */
.doctor-foto { overflow: hidden; background: var(--azul-hondo); }
.doctor-foto img {
  width: 100%; aspect-ratio: 5 / 4; object-fit: cover;
  transition: transform .9s var(--ease-out);
}
.doctor:hover .doctor-foto img { transform: scale(1.03); }

.doctor-texto { padding: 1.7rem 1.6rem 1.9rem; }
.doctor-texto h3 { font-size: 1.22rem; margin-bottom: .2rem; }
.doctor-rol {
  font-family: var(--display);
  font-size: .76rem; font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--cian);
  margin-bottom: .9rem;
}
.doctor-texto p { font-size: .94rem; color: var(--sobre-mute); }
.doctor-texto .enlace-sutil {
  margin-top: 1rem;
  color: var(--cian);
  border-color: rgba(86, 191, 228, .35);
}

.equipo-nota {
  max-width: 56ch;
  margin: 2.2rem 0 0;
  padding-top: 1.8rem;
  border-top: 1px solid var(--line-clara);
  font-size: 1rem;
  color: var(--sobre-mute);
}

/* =============================================================
   13. La clínica
   ============================================================= */
.clinica { display: grid; gap: clamp(2.4rem, 6vw, 4rem); }
.clinica-texto p { margin-bottom: 1rem; }

.clinica-lista {
  display: grid; gap: .55rem;
  margin: 1.6rem 0 2rem;
}
.clinica-lista li {
  position: relative;
  padding-left: 1.6rem;
  font-size: .95rem;
  color: var(--ink-soft);
}
.clinica-lista li::before {
  content: ""; position: absolute; left: 0; top: .58em;
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--cian);
  box-shadow: 0 0 0 3px rgba(86, 191, 228, .2);
}
.clinica-lista strong { color: var(--azul); }

.clinica-fotos {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  align-items: start;
}
.clinica-foto { margin: 0; }
.clinica-foto img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: var(--r-lg);
  box-shadow: var(--sombra-m);
  transition: transform .6s var(--ease-out), box-shadow .6s var(--ease-out);
}
.clinica-foto:hover img {
  transform: translateY(-5px);
  box-shadow: var(--sombra-l);
}
.clinica-foto figcaption {
  margin-top: .7rem;
  font-family: var(--display);
  font-size: .74rem; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--ink-mute);
}
/* Las dos de la segunda columna caen un poco, para que la rejilla respire */
.clinica-foto:nth-child(even) { margin-top: clamp(1.2rem, 3.5vw, 2.4rem); }

/* =============================================================
   14. Contacto
   ============================================================= */
.contacto { display: grid; gap: clamp(2rem, 5vw, 3.4rem); }

.contacto-datos { display: grid; gap: 1.7rem; align-content: start; }

.dato { display: grid; gap: .3rem; }
.dato-etiqueta {
  font-family: var(--display);
  font-size: .7rem; font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--cian);
}
.dato-valor {
  font-family: var(--display);
  font-size: 1.06rem; font-weight: 500;
  color: var(--sobre-hondo);
  line-height: 1.5;
}
a.dato-valor { transition: color .3s var(--ease-out); }
a.dato-valor:hover { color: var(--cian); }
.dato-grande { font-size: clamp(1.8rem, 4.4vw, 2.4rem); font-weight: 600; letter-spacing: -0.03em; }
.dato-nota { font-size: .85rem; color: var(--sobre-mute); }

.horario { display: grid; gap: .1rem; margin-top: .2rem; }
.horario li {
  display: flex; justify-content: space-between; align-items: baseline; gap: 1rem;
  padding: .5rem 0;
  border-bottom: 1px solid var(--line-clara);
  font-size: .92rem;
}
.horario li:last-child { border-bottom: 0; }
.horario strong {
  font-family: var(--display); font-weight: 500;
  color: var(--sobre-hondo);
}

.contacto-redes { display: flex; flex-wrap: wrap; gap: 1.2rem; }
.contacto-redes a {
  font-size: .9rem; font-weight: 600;
  color: var(--cian);
  border-bottom: 1px solid rgba(86, 191, 228, .35);
  padding-bottom: 2px;
  transition: border-color .3s var(--ease-out);
}
.contacto-redes a:hover { border-color: var(--cian); }

.contacto-cta { justify-self: start; }

.contacto-mapa {
  border-radius: var(--r-xl);
  overflow: hidden;
  border: 1px solid var(--line-clara);
  box-shadow: var(--sombra-l);
  min-height: 340px;
}
.contacto-mapa iframe {
  width: 100%; height: 100%; min-height: 340px; border: 0;
  filter: saturate(.85);
}

/* =============================================================
   15. Pie
   ============================================================= */
.pie {
  background: #031a2d;
  color: var(--sobre-mute);
  padding-top: clamp(3.2rem, 7vw, 4.6rem);
  padding-bottom: 2rem;
}
.pie-inner {
  display: grid; gap: 2.2rem;
  padding-bottom: 2.4rem;
  border-bottom: 1px solid var(--line-clara);
}
.pie-marca img { width: auto; height: 42px; margin-bottom: 1rem; }
.pie-marca p { font-size: .88rem; line-height: 1.6; }

.pie-nav { display: grid; gap: .55rem; align-content: start; }
.pie-nav a {
  font-size: .92rem;
  transition: color .3s var(--ease-out);
}
.pie-nav a:hover { color: var(--cian); }

.pie-contacto { display: grid; gap: .55rem; align-content: start; }
.pie-contacto a {
  font-size: .92rem;
  transition: color .3s var(--ease-out);
}
.pie-contacto a:hover { color: var(--cian); }

.pie-legal {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: .6rem;
  padding-top: 1.6rem;
  font-size: .82rem;
  color: rgba(158, 200, 222, .6);
}
.pie-legal a { border-bottom: 1px solid rgba(158, 200, 222, .3); }
.pie-legal a:hover { color: var(--cian); }

/* =============================================================
   16. WhatsApp flotante
   ============================================================= */
.wa-flotante {
  position: fixed; right: 1.1rem; bottom: 1.1rem;
  z-index: 800;
  width: 54px; height: 54px;
  display: grid; place-content: center;
  border-radius: 50%;
  background: #25d366;
  box-shadow: 0 14px 30px -14px rgba(37, 211, 102, .95);
  opacity: 0; visibility: hidden;
  transform: translateY(14px) scale(.9);
  transition: opacity .45s var(--ease-out), transform .45s var(--ease-bounce),
              visibility .45s, box-shadow .35s var(--ease-out);
}
.wa-flotante.is-visible { opacity: 1; visibility: visible; transform: none; }
.wa-flotante:hover { box-shadow: 0 18px 36px -14px rgba(37, 211, 102, 1); transform: scale(1.06); }
.wa-flotante svg { width: 28px; height: 28px; fill: #fff; }

/* =============================================================
   17. Revelado al hacer scroll
   ============================================================= */
[data-revelar] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .8s var(--ease-out), transform .8s var(--ease-out);
}
[data-revelar].is-visible { opacity: 1; transform: none; }

/* =============================================================
   18. Página de créditos
   ============================================================= */
.pagina-creditos { background: var(--bg); }
.pagina-creditos main { padding-top: calc(var(--nav-h) + 2.5rem); }
.volver {
  display: inline-block;
  margin-bottom: 2.2rem;
  font-family: var(--display); font-size: .9rem; font-weight: 600;
  color: var(--azul);
}
.volver:hover { text-decoration: underline; }
.lista-fuentes { display: grid; gap: .9rem; margin-top: 2rem; }
.lista-fuentes li {
  background: var(--paper);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-md);
  padding: 1.2rem 1.3rem;
  box-shadow: var(--sombra-s);
  font-size: .93rem;
}
.lista-fuentes strong { color: var(--ink); font-family: var(--display); }
.lista-fuentes a { color: var(--azul); border-bottom: 1px solid rgba(3, 102, 157, .3); }
.wrap-estrecho { max-width: 760px; }

/* =============================================================
   19. Responsive
   ============================================================= */
@media (min-width: 540px) {
  .servicios-grid { grid-template-columns: repeat(2, 1fr); }
  .pilares { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 720px) {
  .caso-video { grid-template-columns: .8fr 1.2fr; }
  .caso-video-media { max-width: 100%; }

  .casos { grid-template-columns: repeat(2, 1fr); }
  .caso-grande { grid-column: 1 / -1; }
  .caso-grande { display: grid; grid-template-columns: 1fr 1fr; align-items: stretch; }
  .caso-grande .caso-foto img { height: 100%; aspect-ratio: auto; min-height: 340px; }
  .caso-grande .caso-texto { padding: 2.2rem 2rem; align-self: center; }

  /* Las fichas del equipo se quedan apiladas (foto arriba, texto debajo) a
     cualquier ancho: así la foto se ve entera y no hay que recortarla para
     rellenar una columna estrecha. */
  .equipo { grid-template-columns: repeat(2, 1fr); }

  .pilares { grid-template-columns: repeat(3, 1fr); }

  .pie-inner { grid-template-columns: 1.6fr 1fr 1fr; }
}

@media (min-width: 960px) {
  .nav-links { display: flex; }
  .nav-cta { display: inline-flex; margin-left: 1.4rem; }
  .nav-burger { display: none; }
  .nav-movil { display: none !important; }

  .hero-inner {
    grid-template-columns: 1.08fr .92fr;
    align-items: center;
  }
  .hero-figura { justify-self: end; max-width: 440px; }

  .manifiesto { grid-template-columns: .85fr 1.15fr; align-items: start; }

  .servicios-grid { grid-template-columns: repeat(4, 1fr); }

  .clinica { grid-template-columns: 1fr 1.05fr; align-items: center; }

  .contacto { grid-template-columns: .95fr 1.05fr; align-items: stretch; }
  .contacto-mapa { min-height: 100%; }

  .wa-flotante { right: 1.7rem; bottom: 1.7rem; width: 58px; height: 58px; }
}

/* =============================================================
   20. Movimiento reducido
   Sólo se apagan los bucles largos y llamativos. Los micro-gestos
   (hover, revelados, transiciones) se mantienen a propósito.
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .blob { animation: none; }
  .hero-marco { animation: none; }
  .kicker-punto { animation: none; }
}
