/* ==========================================================================
   JST Sistemas — hoja de estilos del sitio
   --------------------------------------------------------------------------
   Paleta tomada del folleto comercial de pacsJST, que ya está en la calle:
   azul profundo, azul, cian y el ámbar como acento puntual. El sitio va claro
   porque el material comercial es claro, porque los logos de los clientes
   vienen con fondo blanco (sobre oscuro quedan como parches) y porque las
   capturas de los portales son de interfaces claras.

   NO usar color-mix(): el techo de Chrome en Windows 7/8 es la 109 y ahí
   falla feo (fondos transparentes, íconos negros). Todo con rgba() explícito.
   Tampoco anidamiento CSS ni oklch(), por lo mismo.
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --azul-profundo: #0A2A54;
  --azul-medio:    #14447E;
  --azul:          #1E8FCC;
  --cian:          #22A9DA;
  --ambar:         #FFC94D;

  --tinta:         #16222E;
  --tinta-media:   #3C5164;
  --tinta-suave:   #64798C;
  --linea:         #DCE7F0;
  --linea-suave:   #EDF3F8;
  --fondo:         #FFFFFF;
  --fondo-suave:   #F4F9FD;

  --radio:      14px;
  --radio-chico: 9px;
  --sombra:     0 1px 2px rgba(10,42,84,.05), 0 8px 24px rgba(10,42,84,.06);
  --sombra-alta:0 2px 4px rgba(10,42,84,.06), 0 18px 46px rgba(10,42,84,.13);
  --ancho:      1180px;
  --nav-alto:   68px;

  --fuente: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
            'Helvetica Neue', Arial, sans-serif;
}

html {
  scroll-behavior: smooth;
  /* el nav es fijo: que los anclas no queden abajo de la barra */
  scroll-padding-top: calc(var(--nav-alto) + 18px);
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--fuente);
  font-size: 16px;
  line-height: 1.65;
  color: var(--tinta);
  background: var(--fondo);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* height:auto va en la regla BASE y no en cada imagen.
 *
 * Todas las <img> del sitio llevan width y height en la etiqueta para que el
 * navegador reserve el lugar y la pagina no salte al cargar. Pero ese height
 * FIJA la altura en pixeles, y en cuanto una regla le pone width:100% la
 * imagen se estira: sale con el ancho de la columna y la altura del atributo.
 * No avisa, simplemente queda deformada.
 *
 * Ya paso dos veces -las miniaturas del home y las figuras del brochure-, asi
 * que se arregla de una vez para todas acá. Las imagenes que necesitan una
 * altura fija (el logo del nav, los logos de clientes) la piden en su propia
 * regla, que gana por especificidad. */
img { max-width: 100%; height: auto; display: block; }
a   { color: var(--azul); }

::selection { background: rgba(34,169,218,.22); }

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

/* ── Andamiaje ───────────────────────────────────────────────────────────── */

.envoltura {
  width: 100%;
  max-width: var(--ancho);
  margin: 0 auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.seccion { padding-block: clamp(3.5rem, 7vw, 6rem); }
.seccion--suave { background: var(--fondo-suave); border-block: 1px solid var(--linea-suave); }

.etiqueta {
  display: inline-block;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--azul);
  margin-bottom: .7rem;
}

.titulo-seccion {
  font-size: clamp(1.65rem, 3.4vw, 2.35rem);
  font-weight: 800;
  letter-spacing: -.025em;
  line-height: 1.15;
  color: var(--azul-profundo);
  max-width: 22ch;
}

.bajada-seccion {
  margin-top: .9rem;
  max-width: 62ch;
  color: var(--tinta-media);
  font-size: 1.04rem;
}

.cabecera-seccion { margin-bottom: clamp(2rem, 4vw, 3rem); }

/* ── Botones ─────────────────────────────────────────────────────────────── */

.boton {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  padding: .82rem 1.6rem;
  border-radius: 999px;
  font-size: .95rem;
  font-weight: 600;
  text-decoration: none;
  border: 1.5px solid transparent;
  transition: background-color .2s, color .2s, border-color .2s, transform .2s, box-shadow .2s;
  cursor: pointer;
}

.boton--primario {
  background: var(--cian);
  color: #FFFFFF;
  box-shadow: 0 6px 18px rgba(34,169,218,.32);
}
.boton--primario:hover {
  background: var(--azul);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(30,143,204,.38);
}

.boton--fantasma {
  border-color: rgba(255,255,255,.45);
  color: #FFFFFF;
}
.boton--fantasma:hover { background: rgba(255,255,255,.12); border-color: #FFFFFF; }

.boton--linea {
  border-color: var(--linea);
  color: var(--azul-profundo);
  background: #FFFFFF;
}
.boton--linea:hover { border-color: var(--cian); color: var(--azul); }

/* ── Barra de navegación ─────────────────────────────────────────────────── */

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  height: var(--nav-alto);
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--linea);
}

.nav__interior {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.marca {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  text-decoration: none;
  flex-shrink: 0;
}
.marca img { height: 34px; width: auto; }
.marca span {
  font-size: 1.08rem;
  font-weight: 800;
  letter-spacing: -.02em;
  color: var(--azul-profundo);
}
.marca span em { font-style: normal; font-weight: 400; color: var(--tinta-suave); }

.nav__links {
  display: flex;
  align-items: center;
  gap: 1.9rem;
  list-style: none;
}
.nav__links a {
  font-size: .9rem;
  font-weight: 500;
  color: var(--tinta-media);
  text-decoration: none;
  padding: .35rem 0;
  border-bottom: 2px solid transparent;
  transition: color .2s, border-color .2s;
  white-space: nowrap;
}
.nav__links a:hover { color: var(--azul-profundo); border-bottom-color: var(--cian); }
.nav__links .boton { padding: .55rem 1.15rem; font-size: .88rem; }
.nav__links .boton:hover { border-bottom-color: transparent; }

.nav__hamburguesa {
  display: none;
  width: 42px; height: 42px;
  border: 1px solid var(--linea);
  border-radius: 10px;
  background: #FFFFFF;
  cursor: pointer;
  padding: 0;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
}
.nav__hamburguesa span {
  display: block;
  width: 18px; height: 2px;
  background: var(--azul-profundo);
  border-radius: 2px;
  transition: transform .22s, opacity .22s;
}
.nav__hamburguesa[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav__hamburguesa[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__hamburguesa[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ── Portada ─────────────────────────────────────────────────────────────── */

.portada {
  position: relative;
  margin-top: var(--nav-alto);
  /* Medido a 1366x594, que es el viewport real de una notebook HD con la barra
     del navegador, favoritos y la barra de tareas. Con el padding original los
     botones quedaban abajo del pliegue. */
  padding-block: clamp(2.4rem, 5.5vw, 4.2rem) clamp(4rem, 7vw, 5.5rem);
  color: #FFFFFF;
  overflow: hidden;
  background-color: var(--azul-profundo);
}

/* La foto va en un elemento aparte y no como background-attachment:fixed,
   que en iOS Safari no anda y hace saltar el fondo al scrollear. */
.portada__foto {
  position: absolute;
  inset: 0;
  background-image: url('../img/intro-bg.jpg');
  background-size: cover;
  background-position: center 40%;
  opacity: .30;
}
.portada__velo {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, rgba(10,42,84,.93) 0%, rgba(10,42,84,.74) 48%, rgba(12,58,102,.60) 100%),
    radial-gradient(ellipse 60% 70% at 82% 15%, rgba(34,169,218,.28) 0%, rgba(34,169,218,0) 70%);
}
.portada__interior { position: relative; z-index: 2; max-width: 50rem; }

.portada__insignia {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .38rem .95rem .38rem .55rem;
  border-radius: 999px;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.2);
  font-size: .76rem;
  font-weight: 600;
  letter-spacing: .06em;
  color: rgba(255,255,255,.93);
  margin-bottom: 1.3rem;
}
.portada__insignia b { color: var(--ambar); font-weight: 700; }
.portada__insignia img { height: 20px; width: auto; }

.portada h1 {
  font-size: clamp(1.95rem, 4.2vw, 3rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -.03em;
  margin-bottom: 1.1rem;
  text-wrap: balance;
}
.portada h1 em {
  font-style: normal;
  color: var(--ambar);
}

.portada__bajada {
  font-size: clamp(.98rem, 1.5vw, 1.08rem);
  line-height: 1.62;
  color: rgba(226,239,250,.92);
  max-width: 44rem;
  margin-bottom: 1.8rem;
}

.portada__acciones { display: flex; flex-wrap: wrap; gap: .85rem; }

/* Tarjetas de cifras, montadas sobre el borde de la portada */
.cifras {
  position: relative;
  z-index: 5;
  margin-top: clamp(-4.5rem, -6vw, -3.5rem);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
.cifra {
  background: #FFFFFF;
  border: 1px solid var(--linea);
  border-radius: var(--radio);
  padding: 1.35rem 1.4rem;
  box-shadow: var(--sombra-alta);
}
.cifra__num {
  font-size: clamp(1.7rem, 3.2vw, 2.15rem);
  font-weight: 800;
  letter-spacing: -.03em;
  color: var(--azul-profundo);
  line-height: 1.1;
}
.cifra__num span { color: var(--cian); }
.cifra__txt {
  font-size: .87rem;
  color: var(--tinta-suave);
  line-height: 1.4;
  margin-top: .2rem;
}

/* ── Productos ───────────────────────────────────────────────────────────── */

.familia { margin-bottom: 3.2rem; }
.familia:last-child { margin-bottom: 0; }

.familia__titulo {
  display: flex;
  align-items: center;
  gap: .9rem;
  margin-bottom: 1.4rem;
}
.familia__titulo h3 {
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--azul);
  white-space: nowrap;
}
.familia__titulo::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--linea);
}

.grilla-productos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
  gap: 1.15rem;
}

.producto {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #FFFFFF;
  border: 1px solid var(--linea);
  border-radius: var(--radio);
  padding: 1.6rem 1.5rem 1.5rem;
  transition: border-color .22s, box-shadow .22s, transform .22s;
  overflow: hidden;
}
/* filete de color arriba, que aparece al pasar por encima */
.producto::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--cian), var(--azul));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s;
}
.producto:hover {
  border-color: rgba(34,169,218,.5);
  box-shadow: var(--sombra-alta);
  transform: translateY(-3px);
}
.producto:hover::before { transform: scaleX(1); }

/* La captura va de borde a borde arriba de la tarjeta: los margenes negativos
   cancelan el padding. La tarjeta tiene overflow:hidden, asi que las esquinas
   de arriba se recortan solas con el radio.

   object-position: top porque lo que identifica una pantalla de sistema esta
   arriba -la barra, el titulo, las primeras filas-; si el recorte cae al
   centro, las ocho miniaturas terminan pareciendose entre si. */
.producto__pantalla {
  width: calc(100% + 3rem);
  margin: -1.6rem -1.5rem 1.35rem;
  /* height:auto es imprescindible. La etiqueta lleva width y height para que
     el navegador reserve el lugar y la pagina no salte al cargar, pero ese
     height="360" fija la altura en pixeles y entonces aspect-ratio no tiene
     nada que calcular: se ignora y la imagen sale casi cuadrada. */
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: top center;
  border-bottom: 1px solid var(--linea);
  background: var(--fondo-suave);
}

.producto__encabezado {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: .8rem;
  margin-bottom: .55rem;
}
.producto h4 {
  font-size: 1.22rem;
  font-weight: 800;
  letter-spacing: -.02em;
  color: var(--azul-profundo);
}
.producto__sello {
  flex-shrink: 0;
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .04em;
  color: var(--azul);
  background: rgba(34,169,218,.1);
  border: 1px solid rgba(34,169,218,.2);
  border-radius: 999px;
  padding: .2rem .6rem;
  white-space: nowrap;
}

/* Nombre del sistema cuando lleva a su pagina de producto. La flecha aparece
   al pasar por encima: sin ella, un titulo en el mismo color que los demas no
   avisa que es clickeable, y con ella siempre puesta las tarjetas que todavia
   no tienen pagina se ven incompletas al lado. */
.producto__link {
  color: inherit;
  text-decoration: none;
  display: inline-flex;
  align-items: baseline;
  gap: .3rem;
}
.producto__link::after {
  content: '→';
  font-size: .8em;
  color: var(--cian);
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity .2s, transform .2s;
}
.producto:hover .producto__link { color: var(--azul); }
.producto:hover .producto__link::after { opacity: 1; transform: none; }

/* La tarjeta entera es clickeable cuando tiene pagina: el enlace se estira
   por encima de todo con un pseudoelemento, asi no hay que envolver la
   tarjeta en un <a> -que dejaria los <li> adentro de un enlace-. */
.producto__link::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
}

.producto__resumen {
  font-size: .97rem;
  color: var(--tinta-media);
  margin-bottom: 1.05rem;
}

.producto ul {
  list-style: none;
  margin-top: auto;
  display: grid;
  gap: .48rem;
}
.producto li {
  position: relative;
  padding-left: 1.4rem;
  font-size: .9rem;
  color: var(--tinta-media);
  line-height: 1.5;
}
.producto li::before {
  content: '';
  position: absolute;
  left: .15rem; top: .58em;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--cian);
}

/* ── Nosotros ────────────────────────────────────────────────────────────── */

.nosotros {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.nosotros p { color: var(--tinta-media); margin-top: 1rem; }
.nosotros p strong { color: var(--tinta); font-weight: 600; }

.pilares { display: grid; gap: 1rem; }
.pilar {
  display: flex;
  gap: 1rem;
  padding: 1.15rem 1.25rem;
  background: #FFFFFF;
  border: 1px solid var(--linea);
  border-radius: var(--radio-chico);
}
.pilar__icono {
  flex-shrink: 0;
  width: 38px; height: 38px;
  border-radius: 10px;
  background: rgba(34,169,218,.1);
  display: flex; align-items: center; justify-content: center;
}
.pilar__icono svg { width: 19px; height: 19px; stroke: var(--azul); fill: none; stroke-width: 1.9; }
.pilar h4 { font-size: .98rem; font-weight: 700; color: var(--azul-profundo); margin-bottom: .15rem; }
.pilar p { font-size: .89rem; color: var(--tinta-suave); margin: 0; line-height: 1.5; }

/* ── Clientes ────────────────────────────────────────────────────────────── */

.subgrupo { margin-bottom: 2.6rem; }
.subgrupo:last-child { margin-bottom: 0; }
.subgrupo > h3 {
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--tinta-suave);
  margin-bottom: 1rem;
}

.grilla-logos {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(132px, 1fr));
  gap: .7rem;
}
.logo-cliente {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 74px;
  padding: .6rem;
  background: #FFFFFF;
  border: 1px solid var(--linea);
  border-radius: var(--radio-chico);
  transition: border-color .2s, box-shadow .2s, transform .2s;
}
.logo-cliente img {
  max-height: 100%;
  max-width: 100%;
  width: auto;
  object-fit: contain;
  /* los logos vienen de escaneos y fotos con blancos distintos: bajarles un
     punto la saturación los empareja, y al pasar por encima vuelven al original */
  filter: saturate(.82);
  transition: filter .2s;
}
a.logo-cliente:hover {
  border-color: rgba(34,169,218,.5);
  box-shadow: var(--sombra);
  transform: translateY(-2px);
}
a.logo-cliente:hover img { filter: saturate(1); }

/* ── Aviso para pacientes ────────────────────────────────────────────────── */

.aviso-paciente {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.3rem;
  padding: 1.5rem 1.7rem;
  border-radius: var(--radio);
  background: linear-gradient(115deg, #0E3563 0%, #144A83 100%);
  color: #FFFFFF;
}
.aviso-paciente__texto { flex: 1 1 22rem; }
.aviso-paciente h3 {
  font-size: 1.12rem;
  font-weight: 700;
  letter-spacing: -.015em;
  margin-bottom: .25rem;
}
.aviso-paciente p { font-size: .92rem; color: rgba(222,236,249,.88); }

/* ── Portales ────────────────────────────────────────────────────────────── */

.buscador {
  position: relative;
  max-width: 24rem;
  margin-bottom: 1.5rem;
}
.buscador input {
  width: 100%;
  font-family: inherit;
  font-size: .95rem;
  color: var(--tinta);
  padding: .72rem 1rem .72rem 2.5rem;
  border: 1px solid var(--linea);
  border-radius: 999px;
  background: #FFFFFF;
  transition: border-color .2s, box-shadow .2s;
}
.buscador input:focus {
  outline: none;
  border-color: var(--cian);
  box-shadow: 0 0 0 3px rgba(34,169,218,.16);
}
.buscador svg {
  position: absolute;
  left: .95rem; top: 50%;
  transform: translateY(-50%);
  width: 17px; height: 17px;
  stroke: var(--tinta-suave);
  fill: none; stroke-width: 2;
  pointer-events: none;
}

.grilla-portales {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(242px, 1fr));
  gap: .7rem;
}
.portal {
  display: flex;
  align-items: center;
  gap: .85rem;
  padding: .7rem .9rem;
  background: #FFFFFF;
  border: 1px solid var(--linea);
  border-radius: var(--radio-chico);
  text-decoration: none;
  transition: border-color .2s, box-shadow .2s, transform .2s;
}
.portal:hover {
  border-color: rgba(34,169,218,.5);
  box-shadow: var(--sombra);
  transform: translateY(-2px);
}
.portal img {
  flex-shrink: 0;
  width: 54px; height: 38px;
  object-fit: contain;
}
.portal__nombre {
  display: block;
  font-size: .92rem;
  font-weight: 600;
  color: var(--azul-profundo);
  line-height: 1.3;
}
.portal__pie { display: block; font-size: .76rem; color: var(--tinta-suave); }
.portal[hidden] { display: none; }

.sin-resultados {
  padding: 1.6rem 0;
  color: var(--tinta-suave);
  font-size: .95rem;
}

/* ── Contacto ────────────────────────────────────────────────────────────── */

.contacto {
  text-align: center;
  max-width: 44rem;
  margin: 0 auto;
}
.contacto h2 { color: var(--azul-profundo); margin-inline: auto; }
.contacto .bajada-seccion { margin-inline: auto; }

.vias {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .85rem;
  margin-top: 2rem;
}
.via {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  padding: .9rem 1.4rem;
  background: #FFFFFF;
  border: 1px solid var(--linea);
  border-radius: var(--radio-chico);
  text-decoration: none;
  color: var(--azul-profundo);
  font-weight: 600;
  font-size: .98rem;
  transition: border-color .2s, box-shadow .2s, transform .2s;
}
.via:hover { border-color: var(--cian); box-shadow: var(--sombra); transform: translateY(-2px); }
.via svg { width: 19px; height: 19px; stroke: var(--azul); fill: none; stroke-width: 1.8; }

/* ── Pie ─────────────────────────────────────────────────────────────────── */

.pie {
  background: var(--azul-profundo);
  color: rgba(206,224,242,.78);
  padding-block: 3rem 2rem;
  font-size: .9rem;
}
.pie__grilla {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 2.2rem;
  border-bottom: 1px solid rgba(255,255,255,.12);
}
.pie .marca span { color: #FFFFFF; }
.pie .marca span em { color: rgba(206,224,242,.65); }
.pie__lema { margin-top: .9rem; max-width: 30ch; line-height: 1.6; }

.pie h4 {
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(255,255,255,.6);
  margin-bottom: .9rem;
}
.pie ul { list-style: none; display: grid; gap: .5rem; }
.pie a { color: rgba(206,224,242,.86); text-decoration: none; }
.pie a:hover { color: #FFFFFF; text-decoration: underline; }

.pie__abajo {
  padding-top: 1.6rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  font-size: .84rem;
  color: rgba(206,224,242,.6);
}

/* ── Aparecer al scrollear ───────────────────────────────────────────────── */

.aparece {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .6s ease, transform .6s ease;
}
.aparece.visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .aparece { opacity: 1; transform: none; transition: none; }
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* ── Responsive ──────────────────────────────────────────────────────────── */

@media (max-width: 1080px) {
  .cifras { grid-template-columns: repeat(2, 1fr); }
  .nosotros { grid-template-columns: 1fr; }
  .pie__grilla { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 820px) {
  .nav__hamburguesa { display: flex; }

  .nav__links {
    position: fixed;
    top: var(--nav-alto);
    left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #FFFFFF;
    border-bottom: 1px solid var(--linea);
    box-shadow: var(--sombra-alta);
    padding: .5rem 1.5rem 1.25rem;
    /* cerrado por defecto; lo abre el botón */
    display: none;
  }
  .nav__links.abierto { display: flex; }
  .nav__links a {
    padding: .85rem 0;
    border-bottom: 1px solid var(--linea-suave);
    font-size: 1rem;
  }
  .nav__links a:hover { border-bottom-color: var(--linea-suave); }
  .nav__links li:last-child { margin-top: .9rem; }
  .nav__links li:last-child a { border-bottom: none; }
  /* el botón es inline-flex: sin esto queda del ancho del texto en vez de
     ocupar la fila entera del menú desplegado */
  .nav__links .boton { display: flex; justify-content: center; padding: .85rem 1.2rem; }

  .grilla-productos { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .envoltura { padding-left: 1.1rem; padding-right: 1.1rem; }
  .cifras { grid-template-columns: 1fr 1fr; gap: .7rem; margin-top: -3rem; }
  .cifra { padding: 1rem .9rem; }
  .portada__acciones .boton { flex: 1 1 100%; justify-content: center; }
  .grilla-logos { grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); }
  .logo-cliente { height: 62px; }
  .grilla-portales { grid-template-columns: 1fr; }
  .pie__grilla { grid-template-columns: 1fr; gap: 1.8rem; }
}
