/* ─────────────────────────────────────────────────────────────────────────────
   Suppy · portada de lanzamiento. Blanca, con los verdes de la app
   (4_app/src/constants/colors.ts), Satoshi en titulares y DM Sans en el cuerpo.
   Las páginas legales siguen con estilos.css.
   ───────────────────────────────────────────────────────────────────────────── */

@font-face { font-family: 'DM Sans'; src: url('assets/fuentes/DMSans-latin.woff2') format('woff2'); font-weight: 400 700; font-display: swap; }
@font-face { font-family: 'Satoshi'; src: url('assets/fuentes/Satoshi-Bold.ttf') format('truetype'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Satoshi'; src: url('assets/fuentes/Satoshi-BoldItalic.ttf') format('truetype'); font-weight: 700; font-style: italic; font-display: swap; }

:root {
  --marca: #06472F;
  --accion: #0D9664;
  --accion-suave: rgba(13, 150, 100, 0.10);
  --ahorro: #3BC549;
  --fondo: #FFFFFF;
  --superficie: #F7F4F2;
  --texto: #030303;
  --texto-suave: #625F5D;
  --texto-tenue: #A9A6A2;
  --borde: rgba(82, 80, 79, 0.20);
  --linea: #EFEFEF;
  --error: #E33B3D;
  --titulo: 'Satoshi', system-ui, sans-serif;
  --cuerpo: 'DM Sans', system-ui, -apple-system, sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--cuerpo);
  color: var(--texto);
  background: var(--fondo);
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img { display: block; }

h1, h2, h3 { font-family: var(--titulo); font-weight: 700; letter-spacing: -0.02em; text-wrap: balance; }

/* ── Portada ─────────────────────────────────────────────────────────────── */
.portada {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow-x: clip; /* no hidden: cortaría las sugerencias del buscador */
  padding: 28px 16px 64px;
  background:
    radial-gradient(55% 45% at 50% 0%, rgba(59, 197, 73, 0.12), transparent 70%),
    var(--fondo);
}
.centro {
  position: relative;
  z-index: 1;
  align-self: stretch;
  width: 100%;
  max-width: 680px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.marca { height: 36px; width: auto; margin: auto 0 18px; }

h1 {
  font-size: clamp(34px, 6.4vw, 60px);
  line-height: 1.04;
  margin: 18px 0 14px;
}
h1 em { font-style: normal; color: var(--accion); }
.entradilla { color: var(--texto-suave); font-size: clamp(16px, 2vw, 18px); max-width: 470px; }

/* ── Botón ───────────────────────────────────────────────────────────────── */
.boton {
  width: 100%;
  font: inherit;
  font-weight: 700;
  font-size: 17px;
  padding: 15px;
  border: 0;
  border-radius: 14px;
  background: var(--accion);
  color: #fff;
  cursor: pointer;
  transition: transform .12s, filter .15s, box-shadow .2s;
}
.boton:hover { filter: brightness(1.06); }
.boton:active { transform: scale(.97); }
.boton:disabled { opacity: .6; cursor: default; }
.boton:focus-visible { outline: 3px solid var(--ahorro); outline-offset: 3px; }

.boton-grande {
  max-width: 400px;
  font-size: 19px;
  padding: 18px;
  border-radius: 18px;
  box-shadow: 0 10px 28px rgba(13, 150, 100, 0.32);
  animation: llama 3.2s ease-in-out 1.5s infinite;
}
.boton-grande:hover { box-shadow: 0 14px 34px rgba(13, 150, 100, 0.42); }
@keyframes llama { 0%, 86%, 100% { transform: none; } 90% { transform: scale(1.04); } 94% { transform: scale(.99); } }

/* ── Tiendas ─────────────────────────────────────────────────────────────── */
.tiendas {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 160px));
  justify-content: center;
  gap: 8px 10px;
  width: 100%;
  margin: 24px 0 0;
}
.insignia {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 52px;
  padding: 0 8px;
  border-radius: 10px;
  background: var(--texto);
  color: #fff;
  font-weight: 600;
  font-size: 16px;
  line-height: 1.1;
  text-align: left;
  text-decoration: none;
  white-space: nowrap;
  transition: transform .12s, filter .15s;
}
button.insignia { font-family: inherit; border: 0; cursor: pointer; }
.insignia:hover { filter: brightness(1.25); }
.insignia:active { transform: scale(.97); }
.insignia:focus-visible { outline: 3px solid var(--ahorro); outline-offset: 3px; }
.insignia svg { width: 24px; height: 24px; flex: none; }
.insignia.android svg { color: #3DDC84; }
.insignia small { display: block; font-size: 10px; font-weight: 500; opacity: .7; }

/* Cinta con los logos de los súper: el hueco que sobra se reparte a partes iguales
   por encima del logo, entre los botones y la cinta, y bajo la cinta */
.supers {
  width: min(560px, calc(100% + 32px));
  margin: auto -16px;
  padding-block: 16px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.supers > div {
  display: flex;
  gap: 12px;
  width: max-content;
  animation: supers 40s linear infinite;
}
.supers img { width: 44px; height: 44px; flex: none; border-radius: 10px; background: #fff; }
@keyframes supers { to { translate: calc(-50% - 6px) 0; } }

/* Flecha para bajar */
.bajar {
  position: absolute;
  bottom: 18px;
  left: 50%;
  translate: -50% 0;
  width: 26px; height: 42px;
  border: 2px solid var(--borde);
  border-radius: 14px;
}
.bajar span {
  position: absolute;
  top: 8px; left: 50%;
  width: 4px; height: 8px;
  margin-left: -2px;
  border-radius: 2px;
  background: var(--accion);
  animation: rueda 1.8s ease-in-out infinite;
}
@keyframes rueda { 0% { opacity: 0; translate: 0 0; } 30% { opacity: 1; } 100% { opacity: 0; translate: 0 14px; } }

/* ── Iconos flotantes (escritorio) y cinta (móvil) ───────────────────────── */
.iconos img {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: var(--t);
  height: var(--t);
  rotate: var(--r);
  filter: drop-shadow(0 10px 16px rgba(3, 3, 3, 0.12));
  animation: entra .8s cubic-bezier(.2, .9, .3, 1.3) both, flota 6s ease-in-out infinite;
  animation-delay: calc(var(--d) * .25), var(--d);
}
@keyframes flota { 50% { translate: 0 -14px; } }
@keyframes entra { from { opacity: 0; scale: .4; } }

.cinta { display: none; }

@media (max-width: 1080px) {
  .iconos img { --t: 64px !important; }
}
@media (max-width: 900px) {
  .iconos { display: none; }
  .cinta {
    display: block;
    width: calc(100% + 32px);
    margin: 18px -16px 0;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
            mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  }
  .cinta > div {
    display: flex;
    gap: 14px;
    width: max-content;
    animation: cinta 36s linear infinite;
  }
  .cinta img { width: 52px; height: 52px; }
  .cinta img:nth-child(odd) { rotate: -6deg; }
  .cinta img:nth-child(even) { rotate: 6deg; }
  @keyframes cinta { to { translate: calc(-50% - 7px) 0; } }
  h1 { margin-top: 14px; }
}
@media (max-width: 380px) {
  .insignia { font-size: 15px; gap: 6px; }
  .insignia svg { width: 22px; height: 22px; }
}
@media (max-height: 760px) and (max-width: 900px) {
  .bajar { display: none; }
}

/* ── Funciones ───────────────────────────────────────────────────────────── */
.funciones {
  padding: 72px 16px 24px;
  max-width: 1040px;
  margin: 0 auto;
}
.funciones > header { text-align: center; margin-bottom: 40px; }
.funciones > header h2 { font-size: clamp(30px, 5vw, 46px); line-height: 1.08; }

/* Cada función es una tarjeta con su color: texto y captura van juntos */
.funcion {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 40px;
  padding: 48px 56px;
  margin-bottom: 24px;
  border-radius: 40px;
  background: var(--tono);
  overflow: hidden;
}
.funcion:nth-of-type(even) .texto { order: 2; }

.pantalla {
  position: relative;
  display: flex;
  justify-content: center;
  padding: 12px 0;
}
/* Mancha clara detrás del móvil */
.pantalla::before {
  content: '';
  position: absolute;
  inset: 4% 4%;
  border-radius: 48% 52% 44% 56% / 52% 46% 54% 48%;
  background: rgba(255, 255, 255, .55);
  transition: border-radius 1.6s ease;
}
.funcion.visto .pantalla::before { border-radius: 56% 44% 52% 48% / 46% 54% 46% 54%; }

/* La proporción manda sobre la pantalla (content-box), no sobre el marco:
   así la captura cabe entera, sin recortes. Radio pequeño para no comerse esquinas. */
.movil {
  box-sizing: content-box;
  position: relative;
  width: min(256px, 63vw);
  aspect-ratio: 780 / 1688;
  border-radius: 25px;
  padding: 7px;
  background: #0E0E0E;
  box-shadow: 0 30px 60px -18px rgba(3, 3, 3, 0.35), inset 0 0 0 1.5px #2A2A2A;
}
.movil > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  border-radius: 18px;
}

/* Precio de la receta, encima de la captura */
.etiqueta {
  position: absolute;
  left: -14%;
  right: -14%;
  top: 50%;
  padding: 14px 18px;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 18px 40px -10px rgba(3, 3, 3, .3);
  rotate: -3deg;
  text-align: center;
  font-size: 15px;
  color: var(--texto-suave);
}
.etiqueta small { display: block; font-size: 13px; font-weight: 600; color: var(--texto); }
.etiqueta b { font-family: var(--titulo); font-size: 30px; color: var(--accion); vertical-align: -3px; }

.adorno {
  position: absolute;
  z-index: 1;
  width: 86px;
  height: 86px;
  filter: drop-shadow(0 10px 16px rgba(3, 3, 3, 0.14));
  animation: flota 6s ease-in-out infinite;
}
.adorno.a1 { top: 2%; left: 4%; rotate: -10deg; }
.adorno.a2 { bottom: 6%; right: 3%; rotate: 9deg; animation-delay: 1.8s; }

.texto { max-width: 420px; }
.texto h3 { font-size: clamp(28px, 4vw, 40px); line-height: 1.08; margin: 0 0 12px; }
.texto p { font-size: 18px; color: var(--texto-suave); }

/* Subidas, bajadas y novedades: una tarjeta, tres pantallas que se deslizan.
   lanzamiento.js solo cambia --i, --tono, --color y la clase .activo */
.relatos { display: grid; }
.relato {
  grid-area: 1 / 1;
  opacity: 0;
  visibility: hidden;
  translate: calc(var(--lado, 1) * 36px) 0;
  transition: opacity .3s ease, translate .6s cubic-bezier(.2, .9, .3, 1.15), visibility .3s;
}
.relato.activo { opacity: 1; visibility: visible; translate: 0 0; }

.pestanas {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 340px;
  margin-top: 20px;
  padding: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .75);
}
.pestanas button {
  position: relative;
  padding: 9px 0;
  border: 0;
  border-radius: 999px;
  background: none;
  font: inherit;
  font-weight: 700;
  font-size: clamp(12px, 3.7vw, 14px);
  white-space: nowrap;
  color: var(--texto-suave);
  cursor: pointer;
  transition: color .3s;
}
.pestanas button[aria-pressed="true"] { color: #fff; }
.pestanas button:focus-visible { outline: 3px solid var(--ahorro); outline-offset: 2px; }
.marcador {
  position: absolute;
  top: 4px;
  bottom: 4px;
  left: 4px;
  width: calc((100% - 8px) / 3);
  border-radius: 999px;
  background: var(--color);
  translate: calc(var(--i) * 100%) 0;
  transition: translate .6s cubic-bezier(.3, 1.35, .45, 1), background-color .4s;
}

.deslizador { height: 100%; overflow: hidden; isolation: isolate; border-radius: 18px; background: #fff; }
.vias {
  display: flex;
  height: 100%;
  translate: calc(var(--i) * -100%) 0;
  transition: translate .7s cubic-bezier(.3, 1.25, .45, 1);
}
/* La pantalla que se va encoge y la que llega crece: da sensación de fondo */
.vias img {
  flex: 0 0 100%;
  min-width: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  scale: .82;
  border-radius: 24px;
  transition: scale .7s cubic-bezier(.3, 1.1, .45, 1), border-radius .7s;
}
.vias img.activo { scale: 1; border-radius: 0; }

.adorno[data-de]:not(.activo),
.js .funcion.visto .adorno[data-de]:not(.activo) { opacity: 0; scale: .3; rotate: 40deg; }
.js .funcion.visto .adorno[data-de] { transition: opacity .35s, scale .6s cubic-bezier(.2, .9, .3, 1.4), rotate .6s; }

/* Aparecer al hacer scroll (lanzamiento.js añade .visto) */
.js .aparece {
  opacity: 0;
  translate: 0 40px;
  transition: opacity .8s ease, translate .9s cubic-bezier(.2, .8, .2, 1);
}
.js .aparece.visto { opacity: 1; translate: 0 0; }
.js .funcion .movil { rotate: -6deg; scale: .92; transition: rotate 1s .1s cubic-bezier(.2, .8, .2, 1), scale 1s .1s cubic-bezier(.2, .8, .2, 1); }
.js .funcion:nth-of-type(even) .movil { rotate: 6deg; }
.js .funcion.visto .movil { rotate: 0deg; scale: 1; }
.js .funcion .adorno { opacity: 0; scale: .3; transition: opacity .6s .45s, scale .7s .45s cubic-bezier(.2, .9, .3, 1.4); }
.js .funcion.visto .adorno { opacity: 1; scale: 1; }
.js .funcion[data-carrusel] { transition: opacity .8s ease, translate .9s cubic-bezier(.2, .8, .2, 1), background-color .6s ease; }
.js .funcion .etiqueta { opacity: 0; scale: .6; transition: opacity .5s .8s, scale .7s .8s cubic-bezier(.2, .9, .3, 1.5); }
.js .funcion.visto .etiqueta { opacity: 1; scale: 1; }

@media (max-width: 760px) {
  .funciones { padding-top: 56px; }
  .funciones > header { margin-bottom: 28px; }
  /* En móvil: el texto arriba y su captura justo debajo, dentro de la misma tarjeta */
  .funcion { grid-template-columns: 1fr; gap: 22px; padding: 32px 20px 24px; margin-bottom: 16px; border-radius: 32px; text-align: center; }
  .funcion:nth-of-type(even) .texto { order: 0; }
  .texto { margin: 0 auto; }
  .texto p { font-size: 17px; }
  .pestanas { margin-inline: auto; }
  .adorno { width: 60px; height: 60px; }
  .etiqueta { left: -10%; right: -10%; }
}

/* ── Al bajar, cada pantalla se fija: nunca te quedas entre dos ───────────── */
/* Solo si caben: en una pantalla muy baja (móvil tumbado) se baja normal */
@media (min-height: 560px) {
  /* Solo en la portada: en las demás páginas el pie sería el único punto y la página se quedaría pegada abajo */
  html:has(.portada) { scroll-snap-type: y mandatory; }
  .portada { scroll-snap-align: start; scroll-snap-stop: always; }
  .funcion { scroll-snap-align: center; scroll-snap-stop: always; }
  /* La primera va pegada abajo para que el título de la sección quepa encima */
  .funcion:first-of-type { scroll-snap-align: end; scroll-margin-bottom: 12px; }
  .pie { scroll-snap-align: end; scroll-snap-stop: always; }
  /* Si entraran subiendo, el punto donde se fijan se movería */
  .js .funcion.aparece { translate: none; }

  .funciones > header { margin-bottom: 24px; }
  .movil { width: min(256px, 63vw, (100svh - 154px) * .462); }
  .funcion:first-of-type .movil { width: min(256px, 63vw, (100svh - 254px) * .462); }
}
/* En móvil la tarjeta ocupa la pantalla y el móvil dibujado llena lo que deja el texto */
@media (min-height: 560px) and (max-width: 760px) {
  .funciones > header { margin-bottom: 16px; }
  .funcion { height: calc(100svh - 24px); grid-template-rows: auto minmax(0, 1fr); align-items: stretch; }
  .funcion:first-of-type { height: calc(100svh - 124px); }
  .pantalla { min-height: 0; align-items: center; container-type: size; }
  .movil, .funcion:first-of-type .movil { width: auto; height: min(100cqh - 14px, 554px, 136vw); }
}

/* ── Cierre ──────────────────────────────────────────────────────────────── */
.cierre {
  margin: 32px 16px 72px;
  padding: 48px 24px;
  border-radius: 32px;
  background: var(--marca);
  color: #fff;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
@media (min-width: 760px) { .cierre { max-width: 1000px; margin: 48px auto 96px; padding: 64px 24px; } }
.cierre h2 { font-size: clamp(30px, 5vw, 46px); line-height: 1.08; margin-bottom: 24px; }
.cierre .boton { background: var(--energia, #62E65F); color: var(--marca); box-shadow: 0 10px 28px rgba(98, 230, 95, .25); }
.cierre .tiendas { margin-top: 0; }
.cierre .insignia { background: #fff; color: var(--texto); }

/* ── Pop-up ──────────────────────────────────────────────────────────────── */
.ventana {
  width: min(420px, calc(100% - 32px));
  max-height: calc(100% - 32px);
  margin: auto;
  padding: 32px 24px 22px;
  border: 0;
  border-radius: 28px;
  background: var(--fondo);
  color: var(--texto);
  box-shadow: 0 30px 80px rgba(3, 3, 3, .3);
  text-align: center;
}
.ventana::backdrop { background: rgba(6, 71, 47, .45); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.ventana[open] { animation: ventana .35s cubic-bezier(.2, .9, .3, 1.15); }
.ventana[open]::backdrop { animation: velo .3s ease; }
@keyframes ventana { from { opacity: 0; translate: 0 24px; scale: .94; } }
@keyframes velo { from { opacity: 0; } }

.cerrar {
  position: absolute;
  top: 12px; right: 12px;
  width: 36px; height: 36px;
  border: 0;
  border-radius: 50%;
  background: var(--superficie);
  color: var(--texto-suave);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}
.cerrar:hover { color: var(--texto); }

.ventana-icono, .hecho img { margin: 0 auto 10px; }
.ventana h2 { font-size: 28px; line-height: 1.15; }
.ventana form > p:first-of-type { color: var(--texto-suave); margin: 6px 0 20px; }
.ventana strong { color: var(--marca); }

.campo { display: block; margin-bottom: 12px; text-align: left; }
.campo span { display: block; font-size: 13px; font-weight: 600; color: var(--texto-suave); margin-bottom: 6px; }
.campo input {
  width: 100%;
  font: inherit;
  font-size: 16px;
  padding: 13px 14px;
  border-radius: 14px;
  border: 1px solid var(--borde);
  background: var(--superficie);
  color: var(--texto);
  outline: none;
  transition: border-color .15s, background .15s;
}
.campo input:focus { border-color: var(--accion); background: var(--fondo); }
.campo input[aria-invalid="true"] { border-color: var(--error); }
.ventana .boton { margin-top: 6px; }

.trampa { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.estado { min-height: 20px; margin-top: 10px; font-size: 14px; color: var(--error); }
.letra { font-size: 12px; color: var(--texto-tenue); }

.hecho { padding: 8px 0 4px; }
.hecho p { color: var(--texto-suave); margin: 6px 0 22px; }
.hecho:not([hidden]) img { animation: salto .7s cubic-bezier(.2, .9, .3, 1.5); }
@keyframes salto { from { scale: .2; rotate: -30deg; opacity: 0; } }

/* ── Pie ─────────────────────────────────────────────────────────────────── */
.pie {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px 24px;
  padding: 24px 16px 32px;
  border-top: 1px solid var(--linea);
  font-size: 14px;
  color: var(--texto-suave);
}
.pie img { height: 20px; width: auto; }
.pie nav { display: flex; gap: 18px; flex-wrap: wrap; justify-content: center; }
.pie a { text-decoration: none; }
.pie a:hover { color: var(--accion); }
.pie small { color: var(--texto-tenue); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .aparece, .js .funcion .movil, .js .funcion .adorno, .js .funcion .etiqueta { opacity: 1; translate: none; rotate: none; scale: none; }
}

/* ── Barra de arriba y menú (todas las páginas) ──────────────────────────── */
/* Escritorio: enlaces en línea. Móvil: hamburguesa que abre un menú a pantalla completa. */
.cabeza { display: flex; align-items: center; justify-content: space-between; gap: 16px; max-width: 1100px; margin: 0 auto; padding: 14px 16px; }
.cabeza-logo img { display: block; height: 28px; width: auto; }
.cabeza-enlaces { display: none; gap: 2px; padding: 4px; border-radius: 99px; background: var(--superficie); box-shadow: 0 1px 2px rgba(6, 71, 47, .06), 0 0 0 1px var(--linea); }
.cabeza-enlaces a { padding: 8px 14px; border-radius: 99px; color: var(--texto); font-size: 14.5px; font-weight: 600; text-decoration: none; white-space: nowrap; transition: background .15s, color .15s; }
.cabeza-enlaces a:hover { color: var(--marca); background: var(--accion-suave); }
.cabeza-enlaces a[aria-current] { color: #fff; background: var(--accion); }
.cabeza-app { display: none; padding: 10px 18px; border-radius: 99px; background: var(--marca); color: #fff; font-size: 14.5px; font-weight: 700; text-decoration: none; white-space: nowrap; transition: transform .15s, background .15s; }
.cabeza-app:hover { background: var(--accion); transform: translateY(-1px); }
.cabeza-menu { display: grid; place-content: center; gap: 4px; width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--superficie); cursor: pointer; }
.cabeza-menu span { display: block; width: 18px; height: 2px; border-radius: 2px; background: var(--texto); }
.cabeza-menu:focus-visible, .menu-cerrar:focus-visible { outline: 3px solid var(--accion); outline-offset: 2px; }
@media (min-width: 768px) {
  .cabeza-enlaces { display: flex; }
  .cabeza-menu { display: none; }
}
@media (min-width: 768px) and (max-width: 1023px) {
  .cabeza-enlaces a { padding: 8px 10px; font-size: 13.5px; }
  .cabeza-enlaces a:last-child { display: none; }
}
@media (min-width: 1024px) {
  .cabeza-app { display: inline-block; }
}
/* En la portada va encima, sin logo: la portada ya lo lleva grande */
.cabeza-portada { position: absolute; top: 0; left: 0; right: 0; z-index: 5; max-width: none; }
.cabeza-portada .cabeza-logo { visibility: hidden; }
/* Fuera del móvil, en la portada se baja el contenido para que los enlaces no pisen el logo grande */
@media (min-width: 768px) {
  .portada { padding-top: 76px; }
}

.menu { width: 100%; max-width: none; height: 100%; max-height: none; margin: 0; padding: 14px 16px 32px; border: 0; background: var(--fondo); color: var(--texto); }
.menu[open] { display: flex; flex-direction: column; animation: menu .25s ease; }
.menu::backdrop { background: transparent; }
@keyframes menu { from { opacity: 0; translate: 0 -12px; } }
html:has(.menu[open]) { overflow: hidden; }
.menu-arriba { display: flex; align-items: center; justify-content: space-between; }
.menu-arriba img { display: block; height: 28px; width: auto; }
.menu-cerrar { width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--superficie); color: var(--texto); font-size: 26px; line-height: 1; cursor: pointer; }
.menu-enlaces { display: flex; flex-direction: column; margin: 32px 0; }
.menu-enlaces a { padding: 14px 0; border-bottom: 1px solid var(--linea); font-family: var(--titulo); font-size: 28px; font-weight: 700; letter-spacing: -0.02em; color: var(--texto); text-decoration: none; }
.menu-enlaces a[aria-current] { color: var(--accion); }
.menu .tiendas { margin-top: auto; justify-content: center; }

/* ── Buscador en la portada ──────────────────────────────────────────────── */
.buscador-portada { margin: 22px auto 4px; }
.buscador-portada .comp-buscar { margin-top: 0; max-width: none; }
.buscador-portada .comp-sugerencias { max-height: min(360px, 50vh); }
.buscador-portada + .tiendas { margin-top: 18px; }
@media (max-width: 900px) {
  /* «Lo más buscado» en una sola fila que se desliza */
  .buscador-portada .populares {
    flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; scrollbar-width: none;
    width: calc(100% + 32px); margin: 12px -16px 0; padding: 0 16px;
  }
  .buscador-portada .populares::-webkit-scrollbar { display: none; }
  .buscador-portada .populares span { display: none; }
  .buscador-portada .populares a { flex: none; }
}
