/* =========================================================
   Clínica Vitara · Demo de Escoweb
   CSS sin frameworks. Móvil primero.
   ========================================================= */

/* ---------- Variables ---------- */
:root {
  --azul-950: #071d35;
  --azul-900: #0b2a4a;
  --azul-800: #0e3a66;
  --azul-700: #134b85;
  --azul-hover: #0f3f70;
  --azul-200: #c9dcf0;
  --azul-100: #e2edf8;
  --azul-50: #f1f6fc;
  --menta-50: #eef8f4;
  --menta-100: #ddf1e9;
  --menta-300: #a9e0cc;
  --menta-400: #7fd3b7;
  --menta-700: #23705a;

  --texto: #2b3b4d;
  --texto-suave: #56677a;
  --titulos: var(--azul-900);
  --borde: #dce5ef;
  --blanco: #ffffff;
  --wa: #1a8f4a;
  --wa-hover: #157a3e;
  --foco: #1b5ea3;

  --fuente-titulos: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --fuente-texto: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --r-sm: 10px;
  --r: 16px;
  --r-lg: 24px;
  --r-xl: 32px;

  --sombra-sm: 0 1px 2px rgba(11, 42, 74, 0.06), 0 2px 8px rgba(11, 42, 74, 0.05);
  --sombra: 0 1px 2px rgba(11, 42, 74, 0.06), 0 12px 32px rgba(11, 42, 74, 0.09);
  --sombra-lg: 0 2px 4px rgba(11, 42, 74, 0.05), 0 24px 56px rgba(11, 42, 74, 0.14);

  --header-h: 72px;
  --gutter: clamp(1rem, 4vw, 2rem);
  --seccion: clamp(4.5rem, 9vw, 7.5rem);
}

/* ---------- Base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
}

body {
  margin: 0;
  font-family: var(--fuente-texto);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--texto);
  background: var(--blanco);
  overflow-x: hidden;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

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

img {
  height: auto;
}

h1,
h2,
h3 {
  font-family: var(--fuente-titulos);
  color: var(--titulos);
  line-height: 1.15;
  margin: 0;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2.15rem, 1.35rem + 3.3vw, 3.65rem);
  font-weight: 800;
  line-height: 1.07;
  letter-spacing: -0.03em;
}

h2 {
  font-size: clamp(1.8rem, 1.25rem + 2vw, 2.65rem);
  font-weight: 800;
}

h3 {
  font-size: 1.2rem;
  font-weight: 700;
}

p {
  margin: 0;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

a {
  color: var(--azul-700);
}

:focus-visible {
  outline: 3px solid var(--foco);
  outline-offset: 3px;
  border-radius: 4px;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  padding-block: var(--seccion);
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 200;
  padding: 0.75rem 1rem;
  background: var(--azul-900);
  color: var(--blanco);
  border-radius: var(--r-sm);
  font-weight: 600;
  text-decoration: none;
}

.skip-link:focus {
  top: 1rem;
}

/* ---------- Íconos ---------- */
.ico {
  width: 1.25em;
  height: 1.25em;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ico--fill {
  fill: currentColor;
  stroke: none;
}

.ico-dot {
  stroke-width: 2.6;
}

/* ---------- Tipografía auxiliar ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1rem;
  font-family: var(--fuente-titulos);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--menta-700);
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
}

.eyebrow--light {
  color: var(--menta-400);
}

.section-head {
  margin-bottom: clamp(2.5rem, 5vw, 3.75rem);
}

.section-head--split {
  display: grid;
  gap: 1.25rem;
  align-items: end;
}

.section-head--split > p {
  color: var(--texto-suave);
  max-width: 34rem;
}

@media (min-width: 900px) {
  .section-head--split {
    grid-template-columns: 1.15fr 0.85fr;
    gap: 4rem;
  }

  .section-head--split h2 {
    max-width: 17ch;
  }
}

/* ---------- Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 48px;
  padding: 0.8rem 1.35rem;
  border: 1.5px solid transparent;
  border-radius: 12px;
  font-family: var(--fuente-texto);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

.btn--primary {
  background: var(--azul-700);
  color: var(--blanco);
  box-shadow: 0 6px 16px rgba(19, 75, 133, 0.22);
}

.btn--primary:hover {
  background: var(--azul-hover);
}

.btn--secondary {
  background: var(--blanco);
  color: var(--azul-800);
  border-color: var(--azul-200);
}

.btn--secondary:hover {
  border-color: var(--azul-700);
}

.btn--light {
  background: var(--blanco);
  color: var(--azul-900);
}

.btn--light:hover {
  background: var(--menta-100);
}

.btn--wa {
  background: var(--wa);
  color: var(--blanco);
}

.btn--wa:hover {
  background: var(--wa-hover);
}

.btn--sm {
  min-height: 42px;
  padding: 0.55rem 1rem;
  font-size: 0.9375rem;
}

.btn--lg {
  min-height: 54px;
  padding: 0.95rem 1.55rem;
}

.btn--block {
  width: 100%;
}

/* ---------- Franja de demostración ---------- */
.demo-bar {
  background: var(--azul-950);
  color: #d6e3f1;
  font-size: 0.8125rem;
  line-height: 1.45;
}

.demo-bar__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.25rem 1rem;
  padding-block: 0.55rem;
  text-align: center;
}

.demo-bar a {
  color: var(--menta-400);
  font-weight: 600;
  text-underline-offset: 3px;
}

.demo-bar a:hover {
  color: var(--blanco);
}

.demo-bar a:focus-visible {
  outline-color: var(--menta-400);
}

/* ---------- Encabezado ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

@supports (backdrop-filter: blur(8px)) {
  .header {
    background: rgba(255, 255, 255, 0.86);
    backdrop-filter: saturate(160%) blur(12px);
    -webkit-backdrop-filter: saturate(160%) blur(12px);
  }
}

.header.is-scrolled {
  border-bottom-color: var(--borde);
  box-shadow: 0 6px 20px rgba(11, 42, 74, 0.06);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-h);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  flex-shrink: 0;
}

.logo__mark {
  width: 40px;
  height: 40px;
}

.logo__text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.logo__name {
  font-family: var(--fuente-titulos);
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--azul-900);
}

.logo__tag {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--texto-suave);
  letter-spacing: 0.02em;
}

.logo--light .logo__name {
  color: var(--blanco);
}

.logo--light .logo__tag {
  color: #a9bdd3;
}

.header__actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.header__cta {
  display: none;
}

@media (min-width: 520px) {
  .header__cta {
    display: inline-flex;
  }
}

/* Botón hamburguesa */
.burger {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid var(--borde);
  border-radius: 12px;
  background: var(--blanco);
  cursor: pointer;
}

.burger span {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: var(--azul-900);
  transition: transform 0.25s ease, opacity 0.2s ease;
}

.burger[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.burger[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.burger[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Menú móvil */
.nav {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  max-height: calc(100vh - var(--header-h));
  overflow-y: auto;
  padding: 0.75rem var(--gutter) 1.5rem;
  background: var(--blanco);
  border-bottom: 1px solid var(--borde);
  box-shadow: 0 18px 30px rgba(11, 42, 74, 0.1);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity 0.22s ease, transform 0.22s ease, visibility 0s linear 0.22s;
}

.nav.is-open {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity 0.22s ease, transform 0.22s ease, visibility 0s;
}

.nav__list a {
  display: block;
  padding: 0.85rem 0.25rem;
  border-bottom: 1px solid var(--azul-100);
  font-weight: 600;
  color: var(--azul-900);
  text-decoration: none;
}

.nav__cta {
  width: 100%;
  margin-top: 1.25rem;
}

@media (min-width: 1100px) {
  .burger {
    display: none;
  }

  .header__cta {
    display: none;
  }

  .nav {
    position: static;
    display: flex;
    align-items: center;
    gap: 1.75rem;
    max-height: none;
    overflow: visible;
    padding: 0;
    background: none;
    border: 0;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: none;
  }

  .nav__list {
    display: flex;
    gap: 0.25rem;
  }

  .nav__list a {
    position: relative;
    padding: 0.5rem 0.7rem;
    border: 0;
    border-radius: 8px;
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--texto);
    transition: color 0.2s ease, background-color 0.2s ease;
  }

  .nav__list a:hover {
    color: var(--azul-700);
    background: var(--azul-50);
  }

  .nav__list a.is-active {
    color: var(--azul-700);
  }

  .nav__list a.is-active::after {
    content: "";
    position: absolute;
    left: 0.7rem;
    right: 0.7rem;
    bottom: 0.15rem;
    height: 2px;
    border-radius: 2px;
    background: var(--menta-400);
  }

  .nav__cta {
    width: auto;
    margin: 0;
    min-height: 44px;
    padding: 0.6rem 1.1rem;
    font-size: 0.9375rem;
  }
}

/* ---------- 1. Hero ---------- */
.hero {
  position: relative;
  padding-block: clamp(2.5rem, 6vw, 5rem) clamp(4rem, 8vw, 6.5rem);
  background: var(--azul-50);
  overflow: hidden;
}

.hero::before {
  /* forma suave decorativa, color plano */
  content: "";
  position: absolute;
  width: 46rem;
  height: 46rem;
  right: -18rem;
  top: -14rem;
  border-radius: 50%;
  background: var(--azul-100);
  opacity: 0.7;
  pointer-events: none;
}

.hero__grid {
  position: relative;
  display: grid;
  gap: clamp(2.5rem, 5vw, 4rem);
  align-items: center;
}

.hero__lead {
  margin-top: 1.25rem;
  max-width: 34rem;
  font-size: clamp(1.0625rem, 1rem + 0.35vw, 1.2rem);
  color: var(--texto-suave);
}

.hero__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

@media (max-width: 479px) {
  .hero__buttons .btn {
    width: 100%;
  }
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 2rem;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.9rem;
  border: 1px solid var(--borde);
  border-radius: 999px;
  background: var(--blanco);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--azul-900);
  line-height: 1.3;
}

.chip .ico {
  width: 1.1em;
  height: 1.1em;
  color: var(--azul-700);
}

.chip--accent {
  background: var(--menta-100);
  border-color: var(--menta-300);
}

.chip--accent .ico {
  color: var(--menta-700);
}

.hero__media {
  position: relative;
  padding: 0 0 1.75rem;
}

.hero__media::before {
  content: "";
  position: absolute;
  inset: 1.25rem -0.75rem 0 1.25rem;
  border-radius: var(--r-xl);
  background: var(--menta-100);
}

.hero__photo {
  position: relative;
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--sombra-lg);
  aspect-ratio: 4 / 3;
}

.hero__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 38% 35%;
}

.hero__card {
  position: absolute;
  left: 0.75rem;
  bottom: 0;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  max-width: calc(100% - 1.5rem);
  padding: 0.85rem 1.1rem 0.85rem 0.85rem;
  border-radius: var(--r);
  background: var(--blanco);
  box-shadow: var(--sombra);
  line-height: 1.3;
}

.hero__card-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  border-radius: 12px;
  background: var(--menta-100);
  color: var(--menta-700);
}

.hero__card strong {
  display: block;
  font-family: var(--fuente-titulos);
  font-size: 0.9375rem;
  color: var(--azul-900);
}

.hero__card small {
  font-size: 0.8125rem;
  color: var(--texto-suave);
}

@media (min-width: 960px) {
  .hero__grid {
    grid-template-columns: 1.05fr 1fr;
  }

  .hero__photo {
    aspect-ratio: 1 / 1.02;
  }

  .hero__photo img {
    object-position: 40% 30%;
  }

  .hero__media::before {
    inset: 2rem -1.5rem -0.5rem 2rem;
  }

  .hero__card {
    left: -1.75rem;
    bottom: 2.75rem;
  }
}

/* Entrada del hero (solo si el usuario no pidió reducir movimiento) */
@media (prefers-reduced-motion: no-preference) {
  .hero__text > * {
    animation: subir 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) both;
  }

  .hero__text > :nth-child(2) { animation-delay: 0.06s; }
  .hero__text > :nth-child(3) { animation-delay: 0.12s; }
  .hero__text > :nth-child(4) { animation-delay: 0.18s; }
  .hero__text > :nth-child(5) { animation-delay: 0.24s; }

  .hero__media {
    animation: aparecer 1s ease 0.1s both;
  }

  .hero__card {
    animation: subir 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) 0.55s both;
  }
}

@keyframes subir {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes aparecer {
  from {
    opacity: 0;
    transform: scale(0.98);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* ---------- 2. La clínica ---------- */
.about__grid {
  display: grid;
  gap: clamp(3rem, 6vw, 5rem);
  align-items: center;
}

.about__media {
  position: relative;
  padding: 0 12% 20% 0;
}

.about__img-main {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: 50% 40%;
  border-radius: var(--r-lg);
}

.about__img-small {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 52%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: 62% 40%;
  border: 6px solid var(--blanco);
  border-radius: var(--r-lg);
  box-shadow: var(--sombra);
}

.about__intro {
  margin-top: 1.25rem;
  color: var(--texto-suave);
}

.values {
  display: grid;
  gap: 1.75rem;
  margin-top: 2.5rem;
  padding-top: 2.25rem;
  border-top: 1px solid var(--borde);
}

.value {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.value__icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  flex-shrink: 0;
  border-radius: 14px;
  background: var(--azul-50);
  color: var(--azul-700);
}

.value h3 {
  font-size: 1.0625rem;
  margin-bottom: 0.3rem;
}

.value p {
  font-size: 0.96875rem;
  color: var(--texto-suave);
}

@media (min-width: 620px) {
  .values {
    grid-template-columns: 1fr 1fr;
    gap: 2rem 1.75rem;
  }
}

@media (min-width: 960px) {
  .about__grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* ---------- 3. Especialidades ---------- */
.specs {
  padding-top: 0;
}

.specs > .container {
  padding-top: var(--seccion);
  border-top: 1px solid var(--borde);
}

.spec-grid {
  display: grid;
  gap: 1rem;
}

.spec {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: clamp(1.5rem, 3vw, 2rem);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: box-shadow 0.25s ease, border-color 0.25s ease;
}

.spec:hover {
  box-shadow: var(--sombra);
}

.spec h3 {
  font-size: 1.3rem;
}

.spec p {
  color: var(--texto-suave);
  font-size: 0.96875rem;
}

.spec__icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  flex-shrink: 0;
  margin-bottom: 0.5rem;
  border-radius: 15px;
  background: var(--blanco);
  color: var(--azul-700);
}

.spec__icon .ico {
  width: 28px;
  height: 28px;
}

.spec__link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: auto;
  padding-top: 0.5rem;
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--azul-700);
  text-decoration: none;
}

.spec__link span {
  transition: transform 0.2s ease;
}

.spec__link:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.spec__link:hover span {
  transform: translateX(3px);
}

/* Variantes de color */
.spec--featured {
  background: var(--azul-800);
  color: #dbe7f4;
}

.spec--featured h3 {
  color: var(--blanco);
  font-size: clamp(1.5rem, 1.2rem + 1vw, 1.9rem);
}

.spec--featured p {
  color: #c4d5e8;
  font-size: 1rem;
}

.spec--featured .spec__icon {
  background: rgba(255, 255, 255, 0.1);
  color: var(--menta-400);
}

.spec--featured:focus-within {
  --foco: var(--menta-400);
}

.checklist {
  display: grid;
  gap: 0.65rem;
  margin: 0.75rem 0 1.5rem;
}

.checklist li {
  position: relative;
  padding-left: 1.85rem;
  font-size: 0.96875rem;
  color: #e6eef7;
}

.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.2em;
  width: 1.15rem;
  height: 1.15rem;
  border-radius: 50%;
  background: rgba(127, 211, 183, 0.18);
}

.checklist li::after {
  content: "";
  position: absolute;
  left: 0.38rem;
  top: 0.42em;
  width: 0.35rem;
  height: 0.6rem;
  border: solid var(--menta-400);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.spec__btn {
  margin-top: auto;
  align-self: flex-start;
}

.spec--mint {
  background: var(--menta-50);
  border: 1px solid var(--menta-100);
}

.spec--mint .spec__icon {
  color: var(--menta-700);
}

.spec--blue {
  background: var(--azul-50);
  border: 1px solid var(--azul-100);
}

.spec--outline {
  background: var(--blanco);
  border: 1px solid var(--borde);
}

.spec--outline .spec__icon {
  background: var(--azul-50);
}

.spec--outline:hover {
  border-color: var(--azul-200);
}

/* Fichas anchas: contenido a la izquierda, etiquetas a la derecha */
.spec__main {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.spec__main > div {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.tags li {
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  background: var(--blanco);
  border: 1px solid var(--borde);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--azul-900);
}

.spec--outline .tags li {
  background: var(--azul-50);
  border-color: var(--azul-100);
}

.spec--pulse {
  padding-top: clamp(2rem, 4vw, 2.5rem);
}

.spec__ecg {
  position: absolute;
  left: 0;
  right: 0;
  top: 0.6rem;
  width: 100%;
  height: 46px;
  fill: none;
  stroke: var(--menta-300);
  stroke-width: 2;
  stroke-linejoin: round;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
  opacity: 0.7;
  pointer-events: none;
}

.spec__ecg path {
  vector-effect: non-scaling-stroke;
}

.spec--pulse .spec__main,
.spec--pulse .tags {
  position: relative;
}

@media (min-width: 640px) {
  .spec-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "gen gen"
      "ped gin"
      "car car"
      "nut fis";
  }

  .spec--gen { grid-area: gen; }
  .spec--ped { grid-area: ped; }
  .spec--gin { grid-area: gin; }
  .spec--car { grid-area: car; }
  .spec--nut { grid-area: nut; }
  .spec--fis { grid-area: fis; }

  .spec--car .spec__main {
    flex-direction: row;
    gap: 1.25rem;
  }

  .spec--car .spec__icon {
    margin-bottom: 0;
  }
}

@media (min-width: 1000px) {
  .spec-grid {
    grid-template-columns: 1.1fr 1fr 1fr;
    grid-template-areas:
      "gen ped gin"
      "gen car car"
      "nut fis fis";
    gap: 1.25rem;
  }

  .spec--featured {
    padding: 2.5rem;
  }

  .spec--wide {
    flex-direction: row;
    align-items: center;
    gap: 2rem;
  }

  .spec--wide .spec__main {
    flex: 1 1 60%;
    flex-direction: row;
    gap: 1.25rem;
  }

  .spec--wide .spec__icon {
    margin-bottom: 0;
  }

  .spec--wide .tags {
    flex: 0 1 38%;
    margin-top: 0;
    align-content: center;
  }

  .spec--pulse {
    padding-top: 2.5rem;
  }
}

.help-strip {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  align-items: flex-start;
  margin-top: 1.25rem;
  padding: 1.5rem clamp(1.25rem, 3vw, 2rem);
  border: 1.5px dashed var(--azul-200);
  border-radius: var(--r-lg);
}

.help-strip p {
  color: var(--texto-suave);
  max-width: 46rem;
}

.help-strip strong {
  color: var(--azul-900);
}

@media (min-width: 760px) {
  .help-strip {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .help-strip .btn {
    flex-shrink: 0;
  }
}

/* ---------- 4. Equipo ---------- */
.team {
  background: var(--azul-50);
}

.team-grid {
  display: grid;
  gap: 1.25rem;
  align-items: start;
}

.doctor {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 1rem;
  align-items: start;
  padding: 0.85rem;
  border-radius: var(--r-lg);
  background: var(--blanco);
  box-shadow: var(--sombra-sm);
}

.doctor__photo {
  position: relative;
  border-radius: var(--r);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: var(--azul-100);
}

.doctor__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 30%;
  transition: transform 0.6s ease;
}

.doctor__photo img.pos-2 {
  object-position: 46% 25%;
}

.doctor__photo img.pos-3 {
  object-position: 52% 20%;
}

.doctor:hover .doctor__photo img {
  transform: scale(1.04);
}

.badge {
  position: absolute;
  left: 0.5rem;
  top: 0.5rem;
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--azul-900);
  line-height: 1.3;
}

.doctor__body {
  padding: 0.2rem 0.25rem 0.25rem 0;
}

.doctor h3 {
  font-size: 1.0625rem;
}

.doctor__spec {
  margin-top: 0.3rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--menta-700);
}

.doctor__focus {
  margin-top: 0.6rem;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--texto-suave);
}

.doctor__id {
  margin-top: 0.75rem;
  font-size: 0.75rem;
  color: var(--texto-suave);
}

/* En pantallas muy angostas, la etiqueta pasa abajo de la foto */
@media (max-width: 559px) {
  .badge {
    left: 0.35rem;
    right: 0.35rem;
    top: auto;
    bottom: 0.35rem;
    padding: 0.2rem 0.35rem;
    text-align: center;
    font-size: 0.625rem;
    letter-spacing: 0;
  }
}

@media (min-width: 560px) {
  .team-grid {
    grid-template-columns: 1fr 1fr;
  }

  .doctor {
    grid-template-columns: 1fr;
    padding: 0.75rem 0.75rem 1.25rem;
  }

  .doctor__body {
    padding: 0.5rem 0.75rem 0;
  }

  .doctor h3 {
    font-size: 1.15rem;
  }
}

@media (min-width: 1000px) {
  .team-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
  }

  .doctor:nth-child(even) {
    margin-top: 2.5rem;
  }
}

/* ---------- 5. Instalaciones ---------- */
.facilities {
  --foco: var(--menta-400);
  background: var(--azul-900);
  color: #c8d7e8;
}

.facilities h2 {
  color: var(--blanco);
}

.facts {
  display: grid;
  gap: 0.75rem;
}

.facts li {
  position: relative;
  padding-left: 1.75rem;
  color: #d3e0ee;
}

.facts li::before {
  content: "";
  position: absolute;
  left: 0.15rem;
  top: 0.55em;
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 50%;
  background: var(--menta-400);
}

.mosaic {
  display: grid;
  gap: 0.85rem;
}

.mosaic__item {
  position: relative;
  margin: 0;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--azul-800);
  aspect-ratio: 4 / 3;
}

.mosaic__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s ease;
}

.mosaic__item:hover img {
  transform: scale(1.04);
}

.mosaic__item figcaption {
  position: absolute;
  left: 0.85rem;
  bottom: 0.85rem;
  max-width: calc(100% - 1.7rem);
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--azul-900);
  line-height: 1.3;
}

@media (min-width: 640px) {
  .mosaic {
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "rec rec"
      "con con"
      "equ pas";
  }

  .mosaic__item--rec { grid-area: rec; aspect-ratio: 16 / 10; }
  .mosaic__item--con { grid-area: con; aspect-ratio: 16 / 8; }
  .mosaic__item--equ { grid-area: equ; }
  .mosaic__item--pas { grid-area: pas; }
}

@media (min-width: 1000px) {
  .mosaic {
    grid-template-columns: 1.25fr 0.75fr 0.75fr;
    grid-template-rows: 260px 260px;
    grid-template-areas:
      "rec con con"
      "rec equ pas";
    gap: 1rem;
  }

  .mosaic__item,
  .mosaic__item--rec,
  .mosaic__item--con {
    aspect-ratio: auto;
  }

  .mosaic__item--rec img {
    object-position: 60% 50%;
  }
}

/* ---------- 6. Preguntas frecuentes ---------- */
.faq__grid {
  display: grid;
  gap: 2.5rem;
}

.faq__intro > p {
  margin-top: 1rem;
  color: var(--texto-suave);
}

.faq__help {
  margin-top: 2rem;
  padding: 1.5rem;
  border-radius: var(--r-lg);
  background: var(--menta-50);
  border: 1px solid var(--menta-100);
}

.faq__help p + p {
  margin-top: 0.35rem;
  color: var(--texto-suave);
  font-size: 0.96875rem;
}

.faq__help strong {
  font-family: var(--fuente-titulos);
  color: var(--azul-900);
}

.faq__help .btn {
  margin-top: 1.25rem;
}

.faq__list {
  border-top: 1px solid var(--borde);
}

.faq__item {
  border-bottom: 1px solid var(--borde);
}

.faq__item summary {
  position: relative;
  display: block;
  padding: 1.35rem 3rem 1.35rem 0;
  font-family: var(--fuente-titulos);
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--azul-900);
  cursor: pointer;
  list-style: none;
  transition: color 0.2s ease;
}

.faq__item summary::-webkit-details-marker {
  display: none;
}

.faq__item summary:hover {
  color: var(--azul-700);
}

/* Signo + que se convierte en − */
.faq__item summary::before,
.faq__item summary::after {
  content: "";
  position: absolute;
  right: 0.6rem;
  top: 50%;
  width: 14px;
  height: 2px;
  border-radius: 2px;
  background: var(--azul-700);
  transition: transform 0.25s ease;
}

.faq__item summary::after {
  transform: rotate(90deg);
}

.faq__item[open] summary::after {
  transform: rotate(0deg);
}

.faq__answer {
  padding: 0 0 1.5rem;
  color: var(--texto-suave);
}

.faq__answer p + p,
.faq__answer ul + p {
  margin-top: 0.75rem;
}

.faq__answer strong {
  color: var(--azul-900);
}

.faq__answer ul {
  display: grid;
  gap: 0.35rem;
}

.faq__answer li {
  position: relative;
  padding-left: 1.25rem;
}

.faq__answer li::before {
  content: "";
  position: absolute;
  left: 0.2rem;
  top: 0.68em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--menta-400);
}

@media (min-width: 960px) {
  .faq__grid {
    grid-template-columns: 0.8fr 1.2fr;
    gap: 5rem;
    align-items: start;
  }

  .faq__intro {
    position: sticky;
    top: calc(var(--header-h) + 2rem);
  }
}

/* ---------- 7. Contacto ---------- */
.contact {
  background: var(--azul-50);
}

.contact__grid {
  display: grid;
  gap: 2.5rem;
  align-items: start;
}

.contact__info > p {
  margin-top: 1rem;
  color: var(--texto-suave);
  max-width: 32rem;
}

.contact__list {
  display: grid;
  gap: 1.35rem;
  margin: 2rem 0;
}

.contact__list li {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.contact__icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: 12px;
  background: var(--blanco);
  color: var(--azul-700);
  box-shadow: var(--sombra-sm);
}

.contact__list h3 {
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--texto-suave);
  font-family: var(--fuente-texto);
  margin-bottom: 0.15rem;
}

.contact__list p {
  color: var(--azul-900);
  font-weight: 500;
  overflow-wrap: anywhere;
}

.contact__list a {
  color: var(--azul-900);
  text-decoration-color: var(--azul-200);
  text-underline-offset: 4px;
}

.contact__list a:hover {
  color: var(--azul-700);
  text-decoration-color: currentColor;
}

/* Formulario */
.form {
  padding: clamp(1.5rem, 4vw, 2.25rem);
  border-radius: var(--r-lg);
  background: var(--blanco);
  box-shadow: var(--sombra);
}

.form__title {
  font-size: 1.4rem;
}

.form__note {
  margin: 0.35rem 0 1.5rem;
  font-size: 0.9375rem;
  color: var(--texto-suave);
}

.field {
  display: flex;
  flex-direction: column;
  margin-bottom: 1rem;
}

.field label {
  margin-bottom: 0.4rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--azul-900);
}

.optional {
  font-weight: 400;
  color: var(--texto-suave);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 48px;
  padding: 0.7rem 0.9rem;
  border: 1.5px solid var(--borde);
  border-radius: 12px;
  background: var(--blanco);
  font: inherit;
  font-size: 1rem;
  color: var(--azul-900);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.field select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 2.5rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23134B85' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.85rem center;
  background-size: 18px;
}

.field textarea {
  min-height: 96px;
  resize: vertical;
}

.field input::placeholder,
.field textarea::placeholder {
  color: #8494a6;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--azul-700);
  box-shadow: 0 0 0 4px rgba(19, 75, 133, 0.15);
}

.field [aria-invalid="true"] {
  border-color: #b42318;
}

.field [aria-invalid="true"]:focus {
  box-shadow: 0 0 0 4px rgba(180, 35, 24, 0.15);
}

.field__error {
  min-height: 0;
  margin-top: 0.35rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: #b42318;
}

.field__error:empty {
  display: none;
}

.field-row {
  display: grid;
  gap: 0 1rem;
}

@media (min-width: 480px) {
  .field-row {
    grid-template-columns: 1fr 1fr;
  }
}

.form .btn--block {
  margin-top: 0.5rem;
}

.form__privacy {
  margin-top: 0.85rem;
  font-size: 0.8125rem;
  color: var(--texto-suave);
  text-align: center;
}

@media (min-width: 960px) {
  .contact__grid {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
  }
}

/* Mapa */
.map {
  margin-top: clamp(2.5rem, 5vw, 4rem);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--azul-100);
  box-shadow: var(--sombra-sm);
}

.map iframe {
  width: 100%;
  height: clamp(280px, 40vw, 400px);
  border: 0;
}

/* ---------- 8. Footer ---------- */
.footer {
  --foco: var(--menta-400);
  padding: clamp(3.5rem, 7vw, 5rem) 0 6rem;
  background: var(--azul-950);
  color: #a9bdd3;
  font-size: 0.9375rem;
}

.footer__grid {
  display: grid;
  gap: 2.5rem;
}

.footer__brand p {
  margin-top: 1rem;
  max-width: 22rem;
}

.footer__title {
  margin-bottom: 1rem;
  font-family: var(--fuente-texto);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blanco);
}

.footer__col ul {
  display: grid;
  gap: 0.6rem;
}

.footer a {
  color: #d3e0ee;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.footer a:hover {
  color: var(--blanco);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.footer__muted {
  margin-top: 0.75rem;
  font-size: 0.875rem;
  color: #8ba2bb;
}

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  justify-content: space-between;
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.875rem;
}

.footer__bottom a {
  color: var(--menta-400);
  font-weight: 600;
}

@media (min-width: 640px) {
  .footer__grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 1000px) {
  .footer {
    padding-bottom: 2.5rem;
  }

  .footer__grid {
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 3rem;
  }
}

/* ---------- Botón flotante de WhatsApp ---------- */
.wa-float {
  position: fixed;
  right: max(1rem, env(safe-area-inset-right));
  bottom: max(1rem, env(safe-area-inset-bottom));
  z-index: 90;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  width: 58px;
  height: 58px;
  border-radius: 999px;
  background: var(--wa);
  color: var(--blanco);
  text-decoration: none;
  font-weight: 600;
  box-shadow: 0 10px 28px rgba(14, 82, 42, 0.32);
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.wa-float .ico {
  width: 28px;
  height: 28px;
}

.wa-float:hover {
  background: var(--wa-hover);
  transform: translateY(-2px);
}

.wa-float__label {
  display: none;
}

@media (min-width: 768px) {
  .wa-float {
    width: auto;
    padding: 0 1.35rem 0 1.1rem;
    right: 1.5rem;
    bottom: 1.5rem;
  }

  .wa-float__label {
    display: inline;
  }
}

/* ---------- Animaciones al hacer scroll ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

.js .reveal.d1 { transition-delay: 0.08s; }
.js .reveal.d2 { transition-delay: 0.16s; }
.js .reveal.d3 { transition-delay: 0.24s; }

/* Respeta a quien pidió reducir el movimiento */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
  }

  .btn:hover,
  .wa-float:hover,
  .doctor:hover .doctor__photo img,
  .mosaic__item:hover img {
    transform: none;
  }
}
