/* ==========================================================================
   Saramedical S.A. — sitio web
   Réplica del diseño "Web SaraMedical ok.pdf"
   ========================================================================== */

/* ---------- Tipografías (incluidas en el paquete de diseño) --------------- */
@font-face {
  font-family: "Mont";
  src: url("../fonts/Mont-HeavyItalic.woff2") format("woff2");
  font-weight: 900;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Poppins";
  src: url("../fonts/Poppins-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Poppins";
  src: url("../fonts/Poppins-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Poppins";
  src: url("../fonts/Poppins-SemiBold.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Poppins";
  src: url("../fonts/Poppins-SemiBold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Montserrat";
  src: url("../fonts/Montserrat-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Montserrat";
  src: url("../fonts/Montserrat-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Montserrat";
  src: url("../fonts/Montserrat-Italic-VariableFont_wght.woff2") format("woff2");
  font-weight: 300 800;
  font-style: italic;
  font-display: swap;
}

/* ---------- Tokens ------------------------------------------------------- */
:root {
  --navy-deep: #26347e;
  --navy: #2f3f95;
  --navy-soft: #3a46a5;
  --teal: #46c1cb;
  --teal-dark: #3bb3be;
  --sky: #69ccf5;
  --sky-dark: #54beee;
  --ink: #4a4f57;
  --ink-soft: #7b8089;
  --gray-bg: #e6e7e8;
  --gray-panel: #f1f2f3;

  --display: "Mont", "Montserrat", system-ui, sans-serif;
  --body: "Poppins", "Montserrat", system-ui, sans-serif;

  --shell: 1240px;

  /* Proporciones del header tomadas del arte original */
  --header-max: 240px; /* espacio que el header reserva SIEMPRE en el documento */
  --header-h: 240px;   /* alto visual en reposo */
  --header-min: 104px; /* alto visual al hacer scroll */
  --nav-top: .16;      /* dónde arranca el turquesa dentro del header */
  --nav-base: .915;    /* dónde termina el turquesa y el panel del logo */
  --diag: 60px;        /* desplazamiento del corte diagonal */
  --teal-shade: #199aaa;
}

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

html { scroll-behavior: smooth; }

/* El header es fijo: los anclajes frenan justo debajo de él. Al saltar a un
   ancla el header ya está compacto, así que ese es el alto útil. Sin holgura
   extra, para que no asome una franja de la sección anterior. */
:target,
section[id] { scroll-margin-top: var(--header-min); }

body {
  margin: 0;
  /* El header va fijo: el documento reserva su alto máximo de forma constante,
     así encogerlo no reflowea la página (si no, el scroll entra en bucle). */
  padding-top: var(--header-max);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: #fff;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }

.shell {
  width: min(100% - 48px, var(--shell));
  margin-inline: auto;
}

.display {
  font-family: var(--display);
  font-weight: 900;
  font-style: italic;
  line-height: 1.02;
  letter-spacing: -0.01em;
}

.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;
}

/* Trama de puntos usada como fondo en varias secciones del diseño */
.dots {
  background-image: radial-gradient(circle, #d8d9db 1.7px, transparent 1.8px);
  background-size: 15px 15px;
}

/* ---------- Botones ------------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  border: 0;
  border-radius: 999px;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease;
}
.btn:hover { transform: translateY(-2px); }

.btn--light {
  background: #fff;
  color: var(--navy);
  padding: 15px 42px;
  font-size: 1.0rem;
  box-shadow: 0 10px 26px rgba(0, 0, 0, .16);
}
.btn--light:hover { box-shadow: 0 14px 32px rgba(0, 0, 0, .22); }

.btn--ghost {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255, 255, 255, .85);
  padding: 11px 14px 11px 34px;
  font-size: 1.05rem;
}
.btn--ghost:hover { background: rgba(255, 255, 255, .12); }

.btn--navy {
  background: var(--navy);
  color: #fff;
  padding: 11px 14px 11px 34px;
  font-size: 1.05rem;
  box-shadow: 0 10px 24px rgba(47, 63, 149, .3);
}

.btn__chev {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: #fff;
  display: grid; place-items: center;
  flex: none;
}
.btn__chev svg { width: 15px; height: 15px; stroke: var(--navy); }
.btn--ghost .btn__chev svg { stroke: var(--navy-deep); }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 60;
  background: #fff;
  box-shadow: 0 2px 18px rgba(38, 52, 126, .07);
}

.site-header__row {
  display: flex;
  align-items: stretch;
  height: var(--header-h);
  transition: height .3s ease;
}

/* El panel del logo va POR ENCIMA del turquesa: el menú se mete por debajo
   del corte diagonal para que no quede aire entre ambos. */
.brand {
  position: relative;
  z-index: 2;
  flex: none;
  align-self: flex-start;
  width: 418px;
  height: calc(var(--header-h) * var(--nav-base));
  display: flex;
  align-items: flex-end;
  padding: 0 0 calc(var(--header-h) * .10) 52px;
  background: linear-gradient(166deg, #ffffff 0%, #f7f8f8 44%, #dcdddd 100%);
  clip-path: polygon(0 0, 100% 0, calc(100% - var(--diag)) 100%, 0 100%);
  transition: width .3s ease, height .3s ease, padding .3s ease;
}
.brand img { width: 285px; transition: width .3s ease; }

.primary-nav {
  flex: 1;
  display: flex;
  align-items: stretch;
  margin-top: calc(var(--header-h) * var(--nav-top));
  margin-bottom: calc(var(--header-h) * (1 - var(--nav-base)));
  margin-left: calc(var(--diag) * -1);
  background: var(--teal);
  transition: margin .3s ease;
}
/* Cada opción proyecta una sombra sobre la siguiente, como en el arte. */
.primary-nav a {
  flex: 1;
  display: grid;
  place-items: end center;
  text-align: center;
  padding: 0 6px calc(var(--header-h) * .105);
  font-family: var(--display);
  font-weight: 900;
  font-style: italic;
  font-size: clamp(.85rem, 1.28vw, 1.18rem);
  letter-spacing: .02em;
  color: #fff;
  background-image: linear-gradient(90deg, var(--teal-shade) 0%, var(--teal) 34%);
  transition: filter .2s ease, padding .3s ease, font-size .3s ease;
}
/* La primera opción queda bajo la diagonal: sin sombra y con el rótulo
   recentrado sobre la parte visible de la celda. */
.primary-nav a:first-child {
  background-image: none;
  padding-left: calc(var(--diag) * .75);
}
.primary-nav a:hover,
.primary-nav a[aria-current="page"] { filter: brightness(.92); }

.nav-search {
  flex: none !important;
  width: 92px;
}
.nav-search svg { width: 23px; height: 23px; stroke: #fff; }

/* Al llegar por el menú a "Nosotros", la sección debe llenar la pantalla para
   que no asome "¿Quiénes Somos?" detrás. El aire sobrante se reparte entre el
   titular y las tarjetas, de modo que la foto siga apoyada en la banda. */
@media (min-width: 1081px) {
  .about {
    display: flex;
    flex-direction: column;
    min-height: min(calc(100vh - var(--header-min)), 920px);
    min-height: min(calc(100svh - var(--header-min)), 920px);
  }
  .about > .shell { display: flex; flex-direction: column; flex: 1; }
  .about__layout { margin-top: auto; }
}

/* ---- Header compacto al hacer scroll (solo escritorio) ---- */
@media (min-width: 1081px) {
  .site-header.is-compact {
    --header-h: var(--header-min);
    --diag: 38px;
  }
  .site-header.is-compact .brand { width: 296px; padding-left: 30px; }
  .site-header.is-compact .brand img { width: 172px; }
  .site-header.is-compact .primary-nav a { font-size: clamp(.75rem, .98vw, .92rem); }
}

.nav-toggle {
  display: none;
  flex: none;
  width: 68px;
  background: var(--teal);
  border: 0;
  color: #fff;
  place-items: center;
}
.nav-toggle svg { width: 26px; height: 26px; stroke: #fff; }

/* ==========================================================================
   Home — Hero
   ========================================================================== */
.hero {
  position: relative;
  background: var(--navy-deep);
  overflow: hidden;
  isolation: isolate;
}
.hero__rings {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.hero__rings span {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, .035);
}
.hero__rings span:nth-child(1) { width: 1160px; height: 1160px; right: -160px; top: -180px; }
.hero__rings span:nth-child(2) { width: 880px;  height: 880px;  right: -60px;  top: -40px;  background: rgba(255, 255, 255, .045); }
.hero__rings span:nth-child(3) { width: 620px;  height: 620px;  right: 40px;   top: 90px;   background: rgba(255, 255, 255, .05); }

.hero__inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: 24px;
  padding: 74px 0 46px;
}

/* El título va a una línea por verso: el tamaño se ata al ancho disponible,
   que cambia según el hero sea de dos columnas (escritorio) o de una. */
.hero__title {
  font-size: clamp(2.05rem, 4.8vw, 4.35rem);
  color: #fff;
  margin: 0 0 22px;
}
/* Cada verso va en una sola línea, como en el arte */
.hero__title span { display: block; white-space: nowrap; }

.hero__lead {
  max-width: 620px;
  margin: 0 0 34px;
  color: rgba(255, 255, 255, .93);
  font-size: clamp(.9rem, 1.05vw, 1rem);
  line-height: 1.85;
}

.hero__actions {
  display: flex;
  align-items: center;
  gap: 46px;
  flex-wrap: wrap;
}

.homecare {
  display: flex;
  align-items: center;
  gap: 16px;
}
.homecare img { width: 72px; opacity: .95; }
.homecare b {
  display: block;
  font-family: var(--display);
  font-weight: 900;
  font-style: italic;
  font-size: 1.85rem;
  color: #fff;
  line-height: 1;
}
.homecare small {
  display: block;
  font-size: .95rem;
  color: rgba(255, 255, 255, .9);
  margin-top: 4px;
}

.hero__social {
  position: absolute;
  z-index: 4;
  top: 30px;
  right: 24px;
  display: flex;
  gap: 12px;
}
.hero__social a {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: #fff;
  display: grid; place-items: center;
  transition: transform .2s ease;
}
.hero__social a:hover { transform: translateY(-3px); }
.hero__social svg { width: 21px; height: 21px; fill: var(--navy-deep); }

.hero__figure {
  position: relative;
  min-height: 430px;
}
/* La doctora se ancla al bloque completo del hero para montarse
   sobre la banda turquesa, tal como en el diseño. */
.hero__doctor {
  position: absolute;
  z-index: 5;
  bottom: 0;
  right: 4%;
  height: 90%;
  width: auto;
  max-width: none;
  filter: drop-shadow(0 22px 40px rgba(0, 0, 0, .3));
}
.hero__years {
  position: absolute;
  z-index: 6;
  right: 2%;
  bottom: 42%;
  margin: 0;
  text-align: right;
  font-family: var(--display);
  font-weight: 900;
  font-style: italic;
  line-height: .94;
  white-space: nowrap;
}
.hero__years b {
  font-size: clamp(2.4rem, 4.2vw, 3.7rem);
  color: #fff;
}
.hero__years i {
  font-style: italic;
  font-size: clamp(1.15rem, 1.9vw, 1.7rem);
  color: var(--teal);
}
.hero__years em {
  display: block;
  font-style: italic;
  font-size: clamp(1.15rem, 1.9vw, 1.7rem);
  color: var(--teal);
}

.hero__band {
  position: relative;
  z-index: 1;
  background: var(--teal);
}
.hero__band p {
  margin: 0;
  padding: 16px 0;
  font-family: var(--display);
  font-weight: 900;
  font-style: italic;
  font-size: clamp(1.3rem, 2.4vw, 2.05rem);
  color: #fff;
}

/* ==========================================================================
   Productos / Home Care
   ========================================================================== */
.products {
  background: var(--gray-bg);
  padding: 58px 0 74px;
}
.products__title {
  text-align: center;
  margin: 0 0 40px;
  font-size: clamp(1.9rem, 3.6vw, 3rem);
  color: var(--sky-dark);
}
.products__title b { color: #4fa9db; font-weight: 900; }

.carousel {
  position: relative;
  padding-inline: 46px;
}
.carousel__track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 4 * 14px) / 5);
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  /* Sin `scroll-behavior: smooth` aquí: el avance automático asigna scrollLeft
     fotograma a fotograma y se animaría cada paso. Las flechas piden el
     desplazamiento suave explícitamente. */
  scroll-behavior: auto;
}
.carousel__track::-webkit-scrollbar { display: none; }
.carousel__track > * { scroll-snap-align: start; }
/* Con avance continuo el anclaje pelearía contra el movimiento */
.carousel__track.is-auto { scroll-snap-type: none; }

.carousel__btn {
  position: absolute;
  top: 50%;
  translate: 0 -50%;
  width: 34px; height: 78px;
  border: 0;
  background: #cfd1d3;
  display: grid; place-items: center;
  transition: background-color .2s ease;
  z-index: 3;
}
.carousel__btn:hover { background: #b9bbbe; }
.carousel__btn--prev { left: 0; }
.carousel__btn--next { right: 0; }
.carousel__btn svg { width: 13px; height: 13px; stroke: #fff; }

/* Fila 1 — panel blanco continuo con celdas separadas por línea punteada */
.shelf {
  background: #fff;
  border-radius: 22px;
  box-shadow: 0 14px 34px rgba(38, 52, 126, .08);
  overflow: hidden;
}
.shelf .carousel__track { gap: 0; grid-auto-columns: 20%; }

.shelf-item {
  position: relative;
  padding: 0 0 22px;
  border-left: 2px dotted #c9cbcd;
}
.shelf-item:first-child { border-left: 0; }
.shelf-item img { width: 100%; }
.shelf-item h3 {
  margin: 6px 22px 0;
  font-size: .95rem;
  font-weight: 400;
  line-height: 1.45;
  color: #3f434a;
}

/* Fila 2 — tarjetas “Oferta Especial” */
.offers { margin-top: 42px; }
.offer-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 12px 26px rgba(38, 52, 126, .09);
  display: flex;
  flex-direction: column;
}
.offer-card__head {
  background: linear-gradient(180deg, #7ad3f7, #4fb9ea);
  color: #fff;
  text-align: center;
  padding: 9px 8px;
  font-size: 1rem;
  font-weight: 400;
}
.offer-card__body {
  flex: 1;
  display: grid;
  place-items: center;
  padding: 16px;
  background: linear-gradient(180deg, #ffffff, #f3f4f5);
}

/* ==========================================================================
   Buscador de urgencia
   ========================================================================== */
.urgent {
  position: relative;
  padding: 70px 0 64px;
  background: #fff;
}
.urgent::before,
.urgent::after {
  content: "";
  position: absolute;
  inset-block: 0;
  width: 180px;
  background-image: radial-gradient(circle, #dcdddf 1.7px, transparent 1.8px);
  background-size: 15px 15px;
}
.urgent::before { left: 0; }
.urgent::after { right: 0; }
.urgent > .shell { position: relative; z-index: 1; }

.urgent__panel {
  position: relative;
  border-radius: 26px;
  background: linear-gradient(100deg, var(--sky) 0%, #3f7fd0 52%, var(--navy) 100%);
  padding: 52px clamp(24px, 5vw, 74px) 56px;
  text-align: center;
  color: #fff;
  box-shadow: 0 22px 44px rgba(47, 63, 149, .22);
}
.urgent__panel h2 {
  margin: 0 0 12px;
  font-size: clamp(1.7rem, 3.4vw, 2.8rem);
}
.urgent__panel p {
  margin: 0 auto 30px;
  max-width: 940px;
  font-size: clamp(.9rem, 1.05vw, 1.02rem);
}

.urgent__form {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  border-radius: 12px;
  padding: 10px;
  max-width: 900px;
  margin-inline: auto;
}
.urgent__form input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: none;
  font: inherit;
  padding: 12px 16px;
  color: var(--ink);
  background: transparent;
}
.urgent__form input::placeholder { color: #a7abb1; }
.urgent__form button {
  flex: none;
  border: 0;
  border-radius: 8px;
  background: var(--navy);
  color: #fff;
  font-weight: 600;
  letter-spacing: .04em;
  padding: 14px 30px;
  transition: background-color .2s ease;
}
.urgent__form button:hover { background: var(--navy-deep); }

/* ==========================================================================
   Especialidades
   ========================================================================== */
.specialties {
  position: relative;
  padding: 10px 0 78px;
  background: #fff;
  overflow: hidden;
}
/* Trama de medio tono: densa en los bordes, se disuelve hacia el centro */
.specialties::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: radial-gradient(circle, #e4e5e8 3.2px, transparent 3.6px);
  background-size: 17px 17px;
  -webkit-mask-image: linear-gradient(90deg, #000 0%, transparent 30%, transparent 70%, #000 100%);
  mask-image: linear-gradient(90deg, #000 0%, transparent 30%, transparent 70%, #000 100%);
  pointer-events: none;
}
.specialties > .shell { position: relative; z-index: 1; }

.specialties__quote {
  text-align: center;
  margin: 0 0 44px;
  color: var(--navy);
  font-size: clamp(1.35rem, 2.6vw, 2.1rem);
}
.specialties__grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px;
  max-width: 1010px;
  margin-inline: auto;
}
/* Franja gris a sangre completa, alineada al alto de las tarjetas */
.specialties__grid::before {
  content: "";
  position: absolute;
  top: 30.6%;
  height: 56%;
  left: 50%;
  width: 100vw;
  margin-left: -50vw;
  background: var(--gray-bg);
  z-index: 0;
}
.spec-card { z-index: 1; }

.spec-card {
  position: relative;
  display: block;
  aspect-ratio: 121 / 100;
  border-radius: 20px;
  overflow: hidden;
  isolation: isolate;
  box-shadow: 0 18px 38px rgba(38, 52, 126, .2);
  transition: transform .25s ease, box-shadow .25s ease;
}
.spec-card:hover { transform: translateY(-6px); box-shadow: 0 26px 48px rgba(38, 52, 126, .28); }
.spec-card > .duotone { position: absolute; inset: 0; }

/* Duotono azul: piso de sombras en azul marino + techo de luces en azul */
.duotone { position: relative; }
.duotone > img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.06) brightness(1.02);
}
.duotone::before,
.duotone::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.duotone::before { background: #1f2a86; mix-blend-mode: lighten; }
.duotone::after  { background: #4358e8; mix-blend-mode: multiply; }

.spec-card__body {
  position: absolute;
  inset: 0;
  z-index: 3;
  padding: 34px clamp(20px, 3.4vw, 40px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.spec-card__kicker {
  font-size: clamp(.85rem, 1.5vw, 1.15rem);
  font-weight: 600;
  letter-spacing: .01em;
  color: #35d6c9;
  margin: 0;
}
.spec-card__name {
  margin: 2px 0 0;
  font-size: clamp(1.6rem, 3.6vw, 2.9rem);
  font-weight: 600;
  letter-spacing: -0.01em;
  color: #fff;
  line-height: 1.05;
}
.spec-card__logos {
  position: absolute;
  z-index: 4;
  right: clamp(18px, 3vw, 34px);
  bottom: clamp(16px, 2.6vw, 28px);
  display: flex;
  align-items: center;
  gap: 14px;
}
.spec-card__logos img { filter: brightness(0) invert(1); }
.spec-card__logos .mark { width: 34px; }
.spec-card__logos .zsi { width: 84px; }
.spec-card__logos .bar {
  width: 2px;
  height: 34px;
  background: rgba(255, 255, 255, .8);
}

/* ==========================================================================
   Nosotros
   ========================================================================== */
.about {
  position: relative;
  padding-top: 62px;
  background: #fff;
  overflow: hidden;
}
.about::before {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 232px;
  background: var(--teal);
}
.about__title {
  position: relative;
  z-index: 2;
  text-align: center;
  margin: 0 0 40px;
  font-size: clamp(2.6rem, 5.9vw, 5.2rem);
  color: var(--navy);
}
.about__layout {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 28px;
  align-items: end;
  padding-bottom: 46px;
}
.about__photo {
  align-self: end;
  width: 330px;
  margin-left: -70px;
  margin-bottom: -46px;
}
.about__cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px;
}
.about-card {
  background: linear-gradient(180deg, #fdfdfd, #f0f1f2);
  border-radius: 18px;
  padding: 26px 26px 32px;
  box-shadow: 0 16px 32px rgba(38, 52, 126, .1);
  text-align: center;
}
.about-card img { width: 66px; margin: 0 auto 10px; }
.about-card h3 {
  margin: 0 0 14px;
  font-family: var(--display);
  font-weight: 900;
  font-style: italic;
  font-size: 1.7rem;
  color: var(--navy);
}
.about-card p {
  margin: 0;
  font-family: "Montserrat", var(--body);
  font-style: italic;
  font-size: .88rem;
  line-height: 1.75;
  color: var(--ink-soft);
  text-align: justify;
}
.about-card strong {
  display: block;
  margin-top: 12px;
  font-style: italic;
  font-weight: 700;
  color: #8d9199;
  text-align: left;
}

.strip-sky { height: 34px; background: linear-gradient(90deg, #4b8bd8, var(--sky) 45%, #61c8f3); }

/* ==========================================================================
   ¿Quiénes somos?
   ========================================================================== */
.who { position: relative; background: var(--teal); }
.who__head {
  position: relative;
  background: #fff;
  padding: 52px 0 40px;
}
.who__head h2 {
  margin: 0;
  /* tope calculado para que el signo de cierre no se meta bajo la foto */
  font-size: clamp(2.4rem, 7.4vw, 6.6rem);
  color: var(--navy);
}
.who__body { padding: 54px 0 82px; }
.who__body p {
  max-width: 760px;
  margin: 0 0 22px;
  color: #fff;
  font-size: clamp(.95rem, 1.1vw, 1.05rem);
  line-height: 1.75;
  text-align: justify;
}
.who__body p:last-child { margin-bottom: 0; }
/* En el arte la foto llega hasta el borde de la página, sin margen */
.who__photo {
  position: absolute;
  z-index: 3;
  right: 0;
  bottom: 0;
  width: clamp(260px, 29vw, 420px);
  pointer-events: none;
}

/* ==========================================================================
   Valores
   ========================================================================== */
.values { position: relative; background: #fff; padding: 54px 0 0; }
.values__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 350px;
}
.values__main { padding-bottom: 58px; }
.values__intro {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 26px;
  align-items: start;
  padding-left: max(24px, calc((100vw - var(--shell)) / 2));
  padding-right: 40px;
  margin-bottom: 34px;
}
.values__intro h2 {
  margin: 0;
  font-size: clamp(2.6rem, 6.7vw, 6.05rem);
  color: var(--navy);
}
.values__intro p {
  margin: 14px 0 0;
  max-width: 400px;
  font-size: .74rem;
  line-height: 1.6;
  color: var(--navy);
  text-align: justify;
}

.value-row {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 84px;
  margin-bottom: 16px;
  padding: 16px 0 16px max(24px, calc((100vw - var(--shell)) / 2));
}
.value-row__bg {
  position: absolute;
  inset: 0;
  right: 17%;
  background: var(--teal);
  clip-path: polygon(0 0, calc(100% - 44px) 0, 100% 50%, calc(100% - 44px) 100%, 0 100%);
}
.value-row__label {
  position: absolute;
  inset: 0;
  right: 61%;
  background: var(--navy-soft);
  clip-path: polygon(0 0, calc(100% - 44px) 0, 100% 50%, calc(100% - 44px) 100%, 0 100%);
  display: flex;
  align-items: center;
  padding-left: max(24px, calc((100vw - var(--shell)) / 2));
  font-family: var(--display);
  font-weight: 900;
  font-style: italic;
  font-size: clamp(1.2rem, 2.1vw, 1.75rem);
  color: #fff;
}
.value-row p {
  position: relative;
  margin: 0 22% 0 33%;
  padding-left: 26px;
  font-size: .92rem;
  line-height: 1.6;
  color: #fff;
}

.values__aside {
  background: linear-gradient(180deg, #f7f8f8 0%, #eceded 60%, #f7f8f8 100%);
  padding: 42px 34px 48px;
}
.values__aside > img {
  width: 100%;
  max-width: 290px;
  margin-bottom: 42px;
  filter: brightness(0) invert(.82);
}
.feature {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 30px;
}
.feature img { width: 64px; flex: none; }
.feature span {
  font-family: var(--display);
  font-weight: 900;
  font-style: italic;
  font-size: 1.12rem;
  line-height: 1.2;
  color: #c2c4c6;
}

.strip-teal { height: 56px; background: var(--teal); }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: var(--navy-deep);
  color: #fff;
  padding: 54px 0 46px;
}
.site-footer__grid {
  display: grid;
  grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr);
  gap: clamp(32px, 6vw, 90px);
  align-items: start;
}
.site-footer h2 {
  margin: 0 0 24px;
  font-size: 1.5rem;
  font-weight: 500;
  letter-spacing: .1em;
  color: #fff;
}
.contact-form { display: grid; gap: 14px; }
.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 0;
  outline: none;
  font: inherit;
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  padding: 14px 20px;
  resize: none;
}
.contact-form textarea { min-height: 132px; padding-top: 14px; }
.contact-form input::placeholder,
.contact-form textarea::placeholder { color: #b7bbc0; }
.contact-form button {
  justify-self: center;
  margin-top: 8px;
  background: transparent;
  border: 0;
  color: #fff;
  font-size: 1.05rem;
  letter-spacing: .06em;
  padding: 8px 26px;
  border-radius: 999px;
  transition: background-color .2s ease;
}
.contact-form button:hover { background: rgba(255, 255, 255, .14); }
.contact-form .form-note {
  justify-self: center;
  font-size: .85rem;
  color: var(--teal);
  min-height: 20px;
}

.footer-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  background: linear-gradient(180deg, #ffffff, #eef0f1);
  border-radius: 16px;
  padding: 20px 28px;
  margin-bottom: 30px;
}
.footer-card img { width: 240px; }
.footer-card__social { display: flex; gap: 12px; }
.footer-card__social a {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--navy-deep);
  display: grid; place-items: center;
  transition: transform .2s ease;
}
.footer-card__social a:hover { transform: translateY(-3px); }
.footer-card__social svg { width: 22px; height: 22px; fill: #fff; }

.footer-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.footer-list li {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  font-size: 1rem;
}
.footer-list svg { width: 26px; height: 26px; stroke: #fff; fill: none; }
.footer-list svg.is-filled { fill: #fff; stroke: none; }
.footer-list a:hover { text-decoration: underline; }

.footer-legal {
  margin-top: 42px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, .18);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  font-size: .82rem;
  color: rgba(255, 255, 255, .68);
}

/* ==========================================================================
   Páginas internas — hero de especialidad
   ========================================================================== */
.spec-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.025fr) minmax(0, .975fr);
  background: var(--navy-deep);
  /* En el arte el título de Urología va un 18% mayor que el de Endoscopía */
  --title: clamp(2.4rem, 6.7vw, 6.02rem);
}
/* Los márgenes son los del arte (71px a 1440), no los del contenedor general:
   el título necesita ese ancho o la imagen del héroe lo recorta.
   El z-index es una red de seguridad: si alguna vez se desborda, se verá
   por encima de la foto en vez de quedar cortado. */
.spec-hero__text {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(48px, 6vw, 86px) 16px clamp(48px, 6vw, 86px)
           max(24px, calc((100vw - var(--shell)) / 2 - 28px));
}
/* El párrafo se limita a los que no llevan clase: si no, su regla pisaría
   el color turquesa del antetítulo por venir después con igual peso. */
.spec-hero__text p:not([class]) {
  max-width: 520px;
  margin: 0 0 34px;
  color: rgba(255, 255, 255, .93);
  line-height: 1.75;
  text-align: justify;
}
.spec-hero__kicker {
  margin: 0 0 4px;
  font-size: clamp(1.05rem, 2.22vw, 1.99rem);
  font-weight: 600;
  letter-spacing: .01em;
  color: #35d6c9;
}
.spec-hero__title {
  margin: 0 0 22px;
  font-size: var(--title);
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1;
  color: #fff;
}
.spec-hero__title--lg { font-size: calc(var(--title) * 1.18); }
.spec-hero__actions { display: flex; justify-content: flex-end; }

.spec-hero__media { position: relative; min-height: 380px; }
.spec-hero__media > .duotone { position: absolute; inset: 0; }
/* Encuadre del arte: la cabeza del especialista no debe quedar cortada */
.spec-hero__media .duotone > img { object-position: center 28%; }
.spec-hero__logos {
  position: absolute;
  z-index: 4;
  right: clamp(20px, 3vw, 46px);
  bottom: clamp(20px, 3vw, 40px);
  display: flex;
  align-items: center;
  gap: 18px;
}
.spec-hero__logos img { filter: brightness(0) invert(1); }
.spec-hero__logos .mark { width: 46px; }
.spec-hero__logos .zsi { width: 110px; }
.spec-hero__logos .bar { width: 2px; height: 46px; background: rgba(255, 255, 255, .85); }

/* Banda de instrumentos */
.instruments {
  position: relative;
  padding: 46px 0 40px;
  background: #fff;
}
.instruments::before,
.instruments::after {
  content: "";
  position: absolute;
  inset-block: 0;
  width: 200px;
  background-image: radial-gradient(circle, #dcdddf 1.7px, transparent 1.8px);
  background-size: 15px 15px;
}
.instruments::before { left: 0; }
.instruments::after { right: 0; }
.instruments__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.1fr;
  gap: 30px;
  align-items: center;
}

/* Bloque de listados */
.catalog { background: #fff; padding-bottom: 62px; }
.catalog__grid {
  display: grid;
  grid-template-columns: minmax(0, .78fr) minmax(0, 1.22fr);
  align-items: stretch;
}

/* Proporciones del bloque tomadas del arte, atadas al alto del especialista:
   panel gris 179px, foto 605px y barra roja 14px sobre una página de 1440. */
.catalog__intro {
  position: relative;
  --doc-h: clamp(360px, 42vw, 605px);
  min-height: calc(var(--doc-h) * 1.08 + 24px);
  padding-bottom: 24px;
}
.catalog__intro-head {
  display: grid;
  align-items: center;
  min-height: calc(var(--doc-h) * .296);
  background: #f2f3f4;
  padding: 18px 26px;
  text-align: right;
}
.catalog__intro-head h2 {
  margin: 0;
  font-family: var(--display);
  font-weight: 900;
  font-style: italic;
  font-size: clamp(1.2rem, 2.1vw, 1.7rem);
  line-height: 1.15;
  color: #7c8085;
}
.catalog__claim {
  position: relative;
  z-index: 3;
  text-align: right;
  margin: 0;
  padding: 26px 26px 0;
  font-family: var(--display);
  font-weight: 900;
  font-style: italic;
  line-height: 1.15;
}
.catalog__claim b { display: block; font-size: clamp(1.2rem, 2.2vw, 1.75rem); color: var(--navy); }
.catalog__claim i { font-style: italic; font-size: clamp(1rem, 1.8vw, 1.45rem); color: var(--teal); }

.catalog__figure { position: static; }
/* El especialista va recortado con transparencia y por DELANTE de la marca,
   como en el arte. `min(0px, …)` lo saca hasta el borde de la ventana sin
   empujarlo hacia dentro cuando la pantalla es menor que el contenedor. */
.catalog__figure .doctor {
  position: absolute;
  top: calc(var(--doc-h) * .053);
  left: min(0px, calc((var(--shell) - 100vw) / 2));
  height: var(--doc-h);
  width: auto;
  max-width: none;
  z-index: 3;
}
.catalog__figure .watermark {
  position: absolute;
  top: calc(var(--doc-h) * .488);
  left: 45%;
  width: 55%;
  max-width: 267px;
  z-index: 1;
}
.catalog__figure::after {
  content: "";
  position: absolute;
  top: calc(var(--doc-h) * 1.053);
  left: min(0px, calc((var(--shell) - 100vw) / 2));
  width: calc(var(--doc-h) * .605);
  height: 14px;
  background: #b8232a;
  z-index: 2;
}

.catalog__lists { padding-left: 6px; }
.catalog__lists-head {
  background: var(--navy);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  padding: 26px 34px;
}
.catalog__lists-head h3 {
  margin: 0;
  font-size: clamp(1.2rem, 2.2vw, 1.85rem);
  font-weight: 600;
  line-height: 1.15;
  color: #fff;
}
.catalog__columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  padding: 30px 34px 0;
}
.catalog__columns ul { list-style: none; margin: 0; padding: 0; }
.catalog__columns li {
  position: relative;
  padding-left: 18px;
  margin-bottom: 9px;
  font-size: .95rem;
  font-weight: 600;
  letter-spacing: .01em;
  color: var(--navy);
  text-transform: uppercase;
}
.catalog__columns li::before {
  content: "•";
  position: absolute;
  left: 0;
}

.catalog__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  padding-top: 42px;
}
.catalog__footer .store-link {
  font-size: clamp(1rem, 2vw, 1.6rem);
  font-weight: 700;
  color: #171717;
  word-break: break-all;
}
.catalog__footer .store-link:hover { color: var(--navy); }
.catalog__footer .brandmark {
  display: flex;
  align-items: center;
  gap: 18px;
}
.catalog__footer .brandmark .bar { width: 2px; height: 54px; background: #9aa8d8; }
.catalog__footer .brandmark .mark { width: 56px; }
.catalog__footer .brandmark .zsi { width: 120px; }

/* ==========================================================================
   Urología
   ========================================================================== */
.uro-products {
  background: #fff;
  padding: 52px 0 46px;
}
.uro-products__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, .8fr)) minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 26px;
  align-items: end;
}
.uro-product { text-align: left; }
.uro-product img { margin-bottom: 10px; }
.uro-product h3 {
  margin: 0 0 6px;
  font-size: clamp(1.15rem, 2vw, 1.6rem);
  font-weight: 700;
  color: #6f7378;
  text-align: center;
}
.uro-product p { margin: 0; font-size: .95rem; line-height: 1.5; color: #6f7378; }
.uro-note h3 {
  margin: 0 0 10px;
  font-size: clamp(1.2rem, 2.1vw, 1.7rem);
  font-weight: 700;
  color: #4f545b;
  line-height: 1.15;
}
.uro-note p { margin: 0; font-size: .95rem; line-height: 1.6; color: #6f7378; }

.uro-split { background: #fff; padding-bottom: 60px; }
.uro-split__heads {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.uro-split__heads h2 {
  margin: 0;
  background: #29c7d6;
  color: #fff;
  text-align: center;
  padding: 18px 20px;
  font-size: clamp(1.4rem, 2.8vw, 2.3rem);
  font-weight: 700;
}
.uro-split__cols {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding-top: 34px;
}
.uro-split__cols::before {
  content: "";
  position: absolute;
  top: 34px; bottom: 0;
  left: 50%;
  border-left: 3px dotted #c9cbcd;
}
.uro-split__cols p {
  margin: 0 0 20px;
  padding-inline: clamp(10px, 2.4vw, 34px);
  font-size: .98rem;
  line-height: 1.7;
  color: #6f7378;
  text-align: justify;
}
.uro-split__figure {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
  padding: 14px clamp(10px, 2.4vw, 34px) 0;
}
.uro-split__figure img.photo { width: 190px; border-radius: 14px; }
.uro-split__figure img.zsi { width: 250px; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1080px) {
  :root { --header-max: 112px; --header-h: 112px; --header-min: 112px; --diag: 38px; }

  /* Las bandas de puntos miden 180-200px por lado: en pantallas angostas
     taparían las fotos, así que fuera. */
  .urgent::before,
  .urgent::after,
  .instruments::before,
  .instruments::after,
  .specialties::before { display: none; }

  .brand {
    width: 268px;
    padding: 0 0 calc(var(--header-h) * .12) 22px;
  }
  .brand img { width: 155px; }

  .nav-toggle { display: grid; margin-left: auto; width: 84px; }
  .primary-nav {
    position: absolute;
    top: var(--header-h);
    left: 0; right: 0;
    margin: 0;
    flex-direction: column;
    background: var(--teal);
    display: none;
  }
  .primary-nav.is-open { display: flex; }
  .primary-nav a {
    place-items: center;
    padding: 16px;
    font-size: 1rem;
    background-image: none;
    box-shadow: inset 0 2px 0 rgba(255, 255, 255, .22);
  }
  .nav-search { width: auto !important; }

  /* En pantallas medianas la doctora deja de flotar y pasa al flujo,
     alineada a la derecha bajo el texto. */
  .hero__inner { grid-template-columns: 1fr; padding: 56px 0 0; }
  .hero__title { font-size: clamp(2.05rem, 8.6vw, 4.35rem); }
  .hero__figure { display: none; }
  .hero__years {
    position: static;
    margin: 26px 0 0;
    padding-inline: max(24px, calc((100vw - var(--shell)) / 2));
    text-align: left;
  }
  .hero__doctor {
    position: static;
    height: auto;
    width: min(72vw, 400px);
    margin: -18px -4% -1px auto;
    filter: none;
  }

  .carousel__track { grid-auto-columns: calc((100% - 2 * 14px) / 3); }
  .shelf .carousel__track { grid-auto-columns: 33.333%; }

  .specialties__grid { gap: 22px; }

  .about__layout { grid-template-columns: 1fr; }
  .about__photo { display: none; }
  .about__cards { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }

  .who__photo { width: 260px; opacity: .95; }
  .who__body p { max-width: 62%; }

  .values__grid { grid-template-columns: 1fr; }
  .values__aside { padding-inline: max(24px, calc((100vw - var(--shell)) / 2)); }
  .value-row__label { right: 46%; }
  .value-row p { margin-left: 48%; margin-right: 6%; }

  .spec-hero { grid-template-columns: 1fr; }
  .spec-hero__text { padding-inline: max(24px, calc((100vw - var(--shell)) / 2)); }
  .spec-hero__media { min-height: 320px; }

  .catalog__grid { grid-template-columns: 1fr; }
  .catalog__figure { margin-top: 0; min-height: 300px; }
  .catalog__lists { padding-left: 0; margin-top: 26px; }

  .uro-products__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
  :root { --header-max: 92px; --header-h: 92px; --header-min: 92px; --diag: 30px; }

  .brand { width: 212px; padding-left: 16px; }
  .brand img { width: 128px; }
  .nav-toggle { width: 68px; }

  .shell { width: calc(100% - 32px); }

  .hero__inner { padding: 40px 0 0; }
  .hero__social { top: 14px; right: 16px; }
  .hero__social a { width: 36px; height: 36px; }
  .hero__doctor { width: min(78vw, 320px); }
  .hero__years { padding-inline: 16px; }
  .hero__years b { font-size: 2rem; }
  .hero__years i, .hero__years em { font-size: 1rem; }
  .hero__actions { gap: 26px; }

  .carousel { padding-inline: 34px; }
  .carousel__track { grid-auto-columns: calc((100% - 14px) / 2); }
  .shelf .carousel__track { grid-auto-columns: 50%; }

  /* En una fila, el botón dejaba el campo en unos 90px de ancho */
  .urgent__form { flex-direction: column; align-items: stretch; gap: 8px; }
  .urgent__form input { text-align: center; }
  .urgent__form button { width: 100%; }

  .specialties__grid { grid-template-columns: 1fr; }

  .about__cards { grid-template-columns: 1fr; }

  .who__photo { display: none; }
  .who__body p { max-width: 100%; }

  .values__intro { grid-template-columns: 1fr; gap: 12px; padding-right: 24px; }
  /* En móvil la etiqueta se apila sobre la descripción, ya dentro de la flecha.
     Necesita `relative` para pintar por encima de .value-row__bg, que es
     absoluta y si no la taparía. */
  .value-row { display: block; min-height: 0; padding-block: 16px; }
  .value-row__label {
    position: relative;
    z-index: 1;
    inset: auto;
    clip-path: none;
    background: transparent;
    padding: 0 0 6px;
  }
  .value-row__bg { right: 18px; clip-path: polygon(0 0, calc(100% - 26px) 0, 100% 50%, calc(100% - 26px) 100%, 0 100%); }
  .value-row p { margin: 0 12% 0 0; padding-left: 0; }

  .site-footer__grid { grid-template-columns: 1fr; }
  .footer-card { flex-direction: column; }
  .footer-card img { width: 200px; }

  .catalog__figure .watermark { left: auto; right: 0; width: 156px; }

  .instruments__grid { grid-template-columns: 1fr; gap: 18px; }
  .catalog__lists-head,
  .catalog__columns { grid-template-columns: 1fr; }
  .catalog__intro-head, .catalog__claim { text-align: left; }

  .uro-products__grid { grid-template-columns: 1fr; }
  .uro-split__heads { grid-template-columns: 1fr; }
  .uro-split__cols { grid-template-columns: 1fr; }
  .uro-split__cols::before { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
  .carousel__track { scroll-behavior: auto; }
}
