:root {
  --resorte: cubic-bezier(.34, 1.56, .64, 1);
  --suave: cubic-bezier(.22, 1, .36, 1);
  --sombra-elevada: 0 4px 8px rgba(12, 30, 54, .08), 0 18px 36px -12px rgba(12, 30, 54, .22), 0 36px 64px -28px rgba(12, 30, 54, .24);
  --grano: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

body { line-height: 1.7; }

/* Type */
.display {
  font-family: 'Archivo', sans-serif;
  font-stretch: 125%;
  font-style: italic;
  font-weight: 900;
  letter-spacing: -.03em;
  line-height: .92;
  text-transform: uppercase;
}
/* Sized so the words stay clear of the floating buttons at every width */
.palabra { display: inline-block; font-size: 13vw; transition: transform .55s var(--resorte); animation: asoma .9s .55s var(--suave) backwards; }
.palabra-caja { display: block; overflow: hidden; margin: -.16em 0 0 -.06em; padding: .16em .14em .04em .06em; font-size: 13vw; line-height: .92; }
@media (min-width: 380px) { .palabra, .palabra-caja { font-size: 14.5vw; } }
@media (min-width: 768px) { .palabra, .palabra-caja { font-size: 6.4vw; } }
@media (min-width: 1200px) { .palabra, .palabra-caja { font-size: 7.4vw; } }
.titulo-banda { font-size: clamp(3.25rem, 11vw, 9.5rem); }
.contorno { color: transparent; -webkit-text-stroke: 1.5px #fff; }

/* Focus: follows the text color of each surface */
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }

/* Ticker */
.cinta-pista { width: max-content; animation: cinta 34s linear infinite; }
.cinta:hover .cinta-pista { animation-play-state: paused; }
@keyframes cinta { to { transform: translateX(-50%); } }

/* Photo layers shared by the hero and the section bands */
.capa { position: absolute; inset: 0; width: 100%; height: 100%; }
.foto { object-fit: cover; filter: grayscale(1) contrast(1.05); transition: transform .9s var(--suave); }
.foto-color { filter: none; }
.tinte { mix-blend-mode: multiply; }
.tinte-futbol { background: #AEB6C0; }
.tinte-casual { background: #57B7FF; }
.sombra-futbol {
  background:
    linear-gradient(to top, rgba(0, 0, 0, .6), transparent 62%),
    radial-gradient(70% 55% at 12% 8%, rgba(87, 183, 255, .20), transparent 70%),
    radial-gradient(60% 60% at 95% 100%, rgba(255, 255, 255, .07), transparent 70%);
}
.sombra-casual {
  background:
    linear-gradient(to top, rgba(0, 0, 0, .6), transparent 62%),
    radial-gradient(70% 60% at 90% 6%, rgba(255, 255, 255, .34), transparent 70%),
    radial-gradient(60% 60% at 5% 100%, rgba(12, 14, 18, .22), transparent 70%);
}
.grano { background-image: var(--grano); opacity: .16; mix-blend-mode: overlay; pointer-events: none; }

/* Hero: two panels divided by a cut slanted like the italic headlines */
.hero { isolation: isolate; overflow: hidden; }
.mitad { min-height: 42svh; }
.mitad:focus-visible { outline: none; }
.mitad:focus-visible .pill { outline: 2px solid currentColor; outline-offset: 3px; }
.mitad:hover .foto { transform: scale(1.05); }
.mitad:hover .palabra { transform: translateX(10px); }
.paralaje-foto { position: absolute; inset: -16px; transition: transform .4s ease-out; }
.foto-entrada { animation: asienta 1.8s var(--suave) backwards; }

.casual-marco { position: relative; z-index: 10; display: flex; margin-top: -26px; animation: desliza 1s var(--suave) backwards; }
.mitad-casual { flex: 1; min-height: 56svh; padding: 16px; background: #F1F3F5; clip-path: polygon(0 26px, 100% 0, 100% 100%, 0 100%); }
.corte { position: absolute; inset: 0; background: #57B7FF; clip-path: polygon(0 26px, 100% 0, 100% 100%, 0 100%); transform: translateY(-8px); }
.estudio {
  background:
    radial-gradient(52% 46% at 56% 34%, #fff, transparent 72%),
    radial-gradient(80% 60% at 100% 100%, rgba(87, 183, 255, .13), transparent 72%),
    linear-gradient(#F4F5F7, #E4E8EC);
}
.estudio-grano { opacity: .1; mix-blend-mode: multiply; }

/* The shoe is in the normal flow above the text, so it can never cover it */
.zapato { position: relative; z-index: 10; flex: 1 1 0; min-height: 150px; margin: 22px 4% 14px; pointer-events: none; animation: cae 1.1s .5s var(--resorte) backwards; }
.zapato-paralaje { position: absolute; inset: 0; transition: transform .4s ease-out; }
.zapato-flota { position: absolute; inset: 0; animation: flota 3.6s ease-in-out infinite alternate; }
.zapato-foto { width: 100%; height: 100%; object-fit: contain; transform: rotate(12deg); transition: transform .8s var(--resorte); filter: drop-shadow(0 12px 14px rgba(12, 30, 54, .16)); }
.mitad:hover .zapato-foto { transform: rotate(6deg) scale(1.05); }
.zapato-sombra { position: absolute; left: 16%; right: 16%; bottom: -3%; height: 11%; background: radial-gradient(closest-side, rgba(12, 30, 54, .28), transparent); animation: sombra 3.6s ease-in-out infinite alternate; }

@media (min-width: 768px) {
  .hero { min-height: calc(100svh - 112px); }
  .mitad { min-height: 560px; }
  .mitad-futbol { margin-right: -8vw; }
  .casual-marco { margin: 0 0 0 -6vw; }
  .mitad-casual { padding: 40px 40px 40px calc(6vw + 40px); clip-path: polygon(12vw 0, 100% 0, 100% 100%, 0 100%); }
  .corte { clip-path: polygon(12vw 0, 100% 0, 100% 100%, 0 100%); transform: translateX(-10px); }
  .zapato { margin: 0 0 18px 4vw; }
}

@keyframes asoma { from { transform: translateY(118%); } }
@keyframes asienta { from { transform: scale(1.1); } }
@keyframes desliza { from { transform: translateX(100%); } }
@keyframes cae { from { opacity: 0; transform: translateY(-46px) rotate(-7deg) scale(.92); } }
@keyframes flota { to { transform: translateY(-11px); } }
@keyframes sombra { to { transform: scale(.86); opacity: .62; } }
.sube { animation: entra .8s .75s var(--suave) backwards; }
.sube-pronto { animation-delay: .45s; }
@keyframes entra { from { opacity: 0; transform: translateY(18px); } }

/* Scroll reveals, added from JS so content is visible without it */
.revela { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--suave) var(--d, 0ms), transform .8s var(--suave) var(--d, 0ms); }
.revela.visible { opacity: 1; transform: none; }

/* Oversized outlined words that drift with the scroll */
.fantasma { white-space: nowrap; font-size: clamp(3rem, 8vw, 7rem); opacity: .42; pointer-events: none; will-change: transform; }

/* Steps */
.paso-numero { font-size: 3.25rem; color: transparent; -webkit-text-stroke: 1.5px #0C0E12; transition: transform .45s var(--resorte); }
.paso:hover .paso-numero { transform: translateY(-4px) rotate(-4deg); }

/* Pills */
.pill { position: relative; isolation: isolate; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 24px; border-radius: 999px; font-weight: 700; font-size: .875rem; line-height: 1; transition: transform .35s var(--resorte); }
.pill::before { content: ''; position: absolute; inset: 0; z-index: -1; background: #57B7FF; transform: translateY(101%); transition: transform .4s var(--suave); }
.pill-tinta { background: #0C0E12; color: #fff; }
.pill-borde { box-shadow: inset 0 0 0 2px #fff; color: #fff; background: rgba(12, 14, 18, .38); }
.pill-blanca { background: #fff; color: #0C0E12; }
a:hover .pill::before, .pill:hover::before { transform: translateY(0); }
a:hover .pill, .pill:hover { color: #0C0E12; }
a:active .pill, .pill:active { transform: scale(.96); }
.flecha { display: inline-block; transition: transform .35s var(--resorte); }
a:hover .flecha { transform: translateX(4px); }

/* Header */
.marca { display: inline-block; transition: transform .35s var(--resorte); }
.marca:hover { transform: translateX(3px); }
.marca:active { transform: scale(.97); }
.enlace { position: relative; display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; font-size: .875rem; transition: opacity .2s; }
.enlace::after { content: ''; position: absolute; left: 0; right: 0; bottom: 10px; height: 2px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .35s var(--suave); }
.enlace:hover::after, .enlace.activo::after { transform: scaleX(1); }
.enlace:active { opacity: .6; }
.progreso { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: #57B7FF; transform: scaleX(0); transform-origin: left; }

/* Product cards */
.tarjeta-marco { position: relative; transition: transform .45s var(--resorte); }
.tarjeta-marco::before { content: ''; position: absolute; inset: 0; box-shadow: var(--sombra-elevada); opacity: 0; transition: opacity .35s; }
.tarjeta:hover .tarjeta-marco { transform: translateY(-4px); }
.tarjeta:hover .tarjeta-marco::before { opacity: 1; }
.tarjeta:hover .tarjeta-foto { transform: scale(1.05); }
.tarjeta:active .tarjeta-marco { transform: translateY(0) scale(.985); }
.tarjeta-foto { object-fit: cover; transition: transform .7s var(--suave); }
.tinte-tarjeta { background: #EEF1F4; mix-blend-mode: multiply; }
.sombra-tarjeta { background: linear-gradient(to top, rgba(0, 0, 0, .6), rgba(0, 0, 0, .34) 9%, rgba(0, 0, 0, .12) 18%, transparent 30%); }
.brillo { background: linear-gradient(105deg, transparent 40%, rgba(255, 255, 255, .5) 50%, transparent 60%); transform: translateX(-120%); }
.tarjeta:hover .brillo { transform: translateX(120%); transition: transform .9s var(--suave); }

/* Floating buttons */
.flota { position: relative; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; color: #fff; transition: transform .35s var(--resorte); }
@media (min-width: 768px) { .flota { width: 56px; height: 56px; } }
.flota:hover { transform: scale(1.1); }
.flota:active { transform: scale(.94); }
.flota:focus-visible { outline: 2px solid #fff; outline-offset: 0; box-shadow: 0 0 0 4px #0C0E12; }
.flota-wa { background: #25D366; }
.flota-ig { background: linear-gradient(45deg, #F09433, #E6683C 28%, #DC2743 52%, #CC2366 76%, #BC1888); }
.flota-ayuda { background: #0C0E12; }
.flota-wa::after { content: ''; position: absolute; inset: 0; border-radius: 50%; background: #25D366; z-index: -1; animation: latido 2.8s ease-out infinite; }
@keyframes latido { 0% { opacity: .55; transform: scale(1); } 70%, 100% { opacity: 0; transform: scale(1.7); } }
.flota[data-etiqueta]::before { content: attr(data-etiqueta); position: absolute; right: calc(100% + 12px); top: 50%; padding: 6px 12px; border-radius: 999px; background: #0C0E12; color: #fff; font-size: .75rem; font-weight: 700; line-height: 1; white-space: nowrap; opacity: 0; transform: translate(8px, -50%); pointer-events: none; transition: opacity .2s, transform .35s var(--resorte); }
@media (hover: hover) { .flota[data-etiqueta]:hover::before { opacity: 1; transform: translate(0, -50%); } }
.flota-ayuda svg { animation: saludo 1.1s 3s ease-in-out 2; }
@keyframes saludo { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(-16deg) scale(1.12); } 60% { transform: rotate(12deg) scale(1.12); } }

/* Help panel */
.ayuda { position: fixed; z-index: 60; left: 16px; right: 16px; bottom: 16px; max-height: calc(100svh - 32px); overflow-y: auto; padding: 24px; border-radius: 20px; background: #fff; color: #0C0E12; box-shadow: var(--sombra-elevada), 0 0 0 1px rgba(12, 30, 54, .06); opacity: 0; transform: translateY(16px) scale(.96); transform-origin: 100% 100%; pointer-events: none; transition: opacity .25s, transform .45s var(--resorte); }
.ayuda.abierta { opacity: 1; transform: none; pointer-events: auto; }
@media (min-width: 768px) { .ayuda { left: auto; right: 88px; width: 390px; } }
.cerrar { display: grid; place-items: center; width: 44px; height: 44px; margin: -8px -8px 0 0; border-radius: 50%; transition: transform .35s var(--resorte); }
.cerrar:hover { transform: rotate(90deg); }
.cerrar:active { transform: rotate(90deg) scale(.85); }
.pregunta summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 52px; font-weight: 700; cursor: pointer; list-style: none; transition: opacity .2s; }
.pregunta summary::-webkit-details-marker { display: none; }
.pregunta summary:hover .mas { transform: scale(1.2); }
.pregunta summary:active { opacity: .6; }
.pregunta + .pregunta { border-top: 1px solid #EEF1F4; }
.mas { flex: none; font-size: 1.25rem; line-height: 1; transition: transform .35s var(--resorte); }
.pregunta[open] .mas { transform: rotate(45deg); }
.pregunta[open] .respuesta { animation: entra .35s var(--suave) backwards; }

/* Second photo on card hover */
.foto-2 { opacity: 0; transition: opacity .35s, transform .7s var(--suave); }
@media (hover: hover) { .tarjeta:hover .foto-2 { opacity: 1; } }
.agotado .tarjeta-foto { filter: grayscale(1); opacity: .6; }

/* Plain text links */
.enlace-simple { text-underline-offset: 3px; transition: opacity .2s; }
.enlace-simple:hover { text-decoration: underline; }
.enlace-simple:active { opacity: .6; }
.enlace-encargue { font-weight: 700; color: #0C0E12; text-decoration: underline 2px #57B7FF; text-underline-offset: 4px; transition: opacity .2s; }
.enlace-encargue:hover { text-decoration-color: currentColor; }
.enlace-encargue:active { opacity: .6; }

/* Product page */
.aparece { animation: entra .6s var(--suave) backwards; }
.titulo-producto { font-size: clamp(1.9rem, 3.2vw, 3rem); line-height: 1; }
.precio-grande { font-family: 'Archivo', sans-serif; font-stretch: 125%; font-weight: 800; font-size: 2rem; letter-spacing: -.02em; line-height: 1; }

/* Gallery: full width on phones, thumbnails beside it on desktop */
.galeria { display: grid; gap: 8px; margin: 0 -16px; }
@media (min-width: 768px) { .galeria { margin: 0 -40px; } }
.galeria-visor { position: relative; order: 1; aspect-ratio: 1; overflow: hidden; background: #EEF1F4; }
.galeria-pista { display: flex; height: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.galeria-pista::-webkit-scrollbar { display: none; }
.galeria-slide { flex: 0 0 100%; height: 100%; overflow: hidden; scroll-snap-align: start; }
.galeria-slide img { width: 100%; height: 100%; object-fit: cover; cursor: zoom-in; transition: transform .3s var(--suave); }
/* Desktop: zoom that follows the mouse, switched on by a click */
.galeria-slide img.ampliada { transform: scale(2.2); cursor: zoom-out; }

/* Product page layout: the photo never gets taller than the window */
.producto-ancho { max-width: 1240px; margin-inline: auto; }
.producto-cuerpo { display: grid; gap: 24px; }
@media (min-width: 1024px) {
  .producto-cuerpo { grid-template-columns: auto minmax(0, 1fr); gap: 48px; }
  .galeria-visor { aspect-ratio: 4 / 5; width: min(calc((100svh - 190px) * .8), 44vw); }
  .galeria-miniaturas { max-height: calc(min(calc((100svh - 190px) * .8), 44vw) * 1.25); }
}
.ampliar { position: absolute; top: 12px; right: 12px; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: #fff; color: #0C0E12; box-shadow: var(--sombra-elevada); transition: transform .35s var(--resorte); }
.ampliar:hover { transform: scale(1.1); }
.ampliar:active { transform: scale(.92); }
.galeria-puntos { order: 2; display: flex; justify-content: center; gap: 2px; }
.punto { display: grid; place-items: center; width: 24px; height: 24px; }
.punto::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: #0C0E12; opacity: .22; transition: opacity .2s, transform .35s var(--resorte); }
.punto:hover::before { opacity: .5; }
.punto:active::before { transform: scale(.8); }
.punto[aria-current='true']::before { opacity: 1; transform: scale(1.25); }
.galeria-miniaturas { order: 2; display: none; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px; }
.galeria-miniaturas::-webkit-scrollbar { display: none; }
.miniatura { flex: none; width: 64px; height: 80px; overflow: hidden; opacity: .55; transition: opacity .2s, transform .3s var(--resorte); }
.miniatura img { width: 100%; height: 100%; object-fit: cover; }
.miniatura:hover { opacity: 1; transform: translateY(-2px); }
.miniatura:active { transform: scale(.95); }
.miniatura[aria-current='true'] { opacity: 1; outline: 2px solid #0C0E12; outline-offset: 1px; }
.flecha-galeria { position: absolute; top: 50%; display: none; place-items: center; width: 44px; height: 44px; margin-top: -22px; border-radius: 50%; background: #fff; color: #0C0E12; box-shadow: var(--sombra-elevada); transition: transform .35s var(--resorte); }
.flecha-galeria:hover { transform: scale(1.1); }
.flecha-galeria:active { transform: scale(.92); }
/* Phones use the dots instead: the floating buttons sit over this corner */
.contador-galeria { position: absolute; right: 12px; bottom: 12px; display: none; padding: 6px 10px; border-radius: 999px; background: rgba(12, 14, 18, .72); color: #fff; font-size: .75rem; font-weight: 700; line-height: 1; }
@media (min-width: 1024px) { .contador-galeria { display: block; } }
@media (min-width: 1024px) {
  .galeria { grid-template-columns: 76px minmax(0, 1fr); margin: 0; }
  .galeria-visor { order: 2; box-shadow: var(--sombra-elevada); }
  .galeria-miniaturas { order: 1; display: flex; flex-direction: column; overflow-y: auto; overflow-x: hidden; }
  .galeria-puntos { display: none; }
  .flecha-galeria { display: grid; }
}

/* Fullscreen photo viewer: zoom only when the person asks for it */
.visor { position: fixed; inset: 0; z-index: 70; display: flex; flex-direction: column; background: #0C0E12; color: #fff; opacity: 0; pointer-events: none; transition: opacity .25s; }
.visor.abierto { opacity: 1; pointer-events: auto; }
.visor-barra { display: flex; align-items: center; justify-content: space-between; padding: max(12px, env(safe-area-inset-top)) 16px 12px; }
.visor-escenario { position: relative; flex: 1; min-height: 0; display: grid; place-items: center; overflow: hidden; touch-action: none; cursor: zoom-in; }
.visor-escenario.acercado { cursor: grab; }
.visor-escenario.arrastrando { cursor: grabbing; }
/* Absolute + auto margins: the photo fits the screen whatever its size */
.visor-foto { position: absolute; inset: 0; margin: auto; max-width: 100%; max-height: 100%; user-select: none; -webkit-user-drag: none; transition: transform .35s var(--suave); }
.arrastrando .visor-foto { transition: none; }
.visor.abierto .visor-foto { animation: visor-entra .35s var(--suave) backwards; }
@keyframes visor-entra { from { opacity: 0; transform: scale(.94); } }
.visor-boton { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: rgba(255, 255, 255, .14); color: #fff; transition: transform .35s var(--resorte); }
.visor-boton:hover { transform: scale(1.08); }
.visor-boton:active { transform: scale(.92); }
.visor-flecha { position: absolute; top: 50%; margin-top: -22px; }
.visor-ayuda { padding: 12px 16px max(14px, env(safe-area-inset-bottom)); text-align: center; font-size: .8125rem; opacity: .75; }

/* Phones: buy bar pinned to the bottom of the product page */
.barra-compra { display: none; }
@media (max-width: 1023px) {
  .pagina-producto { padding-bottom: 80px; }
  .barra-compra { position: fixed; z-index: 45; left: 0; right: 0; bottom: 0; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 16px max(12px, env(safe-area-inset-bottom)); background: #fff; box-shadow: 0 -1px 0 rgba(12, 30, 54, .08), 0 -12px 28px -12px rgba(12, 30, 54, .22); transform: translateY(110%); transition: transform .45s var(--suave); }
  .barra-visible .barra-compra { transform: none; }
  .pagina-producto .flotantes { transition: transform .45s var(--suave); }
  .barra-visible .flotantes { transform: translateY(-72px); }
}

/* Size picker: slanted like the cut in the Sakool S */
.talle-opcion { position: relative; min-width: 60px; height: 48px; padding: 0 12px; transform: skewX(-10deg); box-shadow: inset 0 0 0 2px #0C0E12; color: #0C0E12; font-weight: 700; transition: transform .3s var(--resorte); }
.talle-opcion > span { display: block; transform: skewX(10deg); }
.talle-opcion:hover { transform: skewX(-10deg) translateY(-2px); }
.talle-opcion:active { transform: skewX(-10deg) scale(.95); }
.talle-opcion[aria-pressed='true'] { background: #0C0E12; color: #fff; }
.aviso-talle.visible { animation: sacude .4s var(--suave); }
@keyframes sacude { 25% { transform: translateX(-6px); } 60% { transform: translateX(5px); } }
.regalo { padding: 12px 16px; background: #57B7FF; color: #0C0E12; font-weight: 700; font-size: .875rem; line-height: 1.4; transform: skewX(-10deg); }
.regalo > span { display: block; transform: skewX(10deg); }

/* Labels on cards and offer prices */
.insignia { display: inline-flex; padding: 4px 8px; border-radius: 999px; background: #0C0E12; color: #fff; font-size: .75rem; font-weight: 700; line-height: 1; }
.insignia-nuevo { background: #57B7FF; color: #0C0E12; }
.insignia-oferta { background: #fff; color: #0C0E12; box-shadow: inset 0 0 0 2px #0C0E12; }
.precio-anterior { margin-left: 4px; color: #5B636E; font-weight: 500; font-size: .8125rem; }
.precio-anterior-grande { margin-left: 10px; font-size: 1.125rem; font-stretch: 100%; font-weight: 500; letter-spacing: 0; }
.ahorro { display: inline-block; padding: 4px 10px; border-radius: 6px; background: #57B7FF; color: #0C0E12; font-weight: 700; font-size: .875rem; line-height: 1.4; }

/* Version picker: same model in another fabric */
.version { display: grid; gap: 6px; width: 92px; font-size: .8125rem; font-weight: 700; line-height: 1.2; text-align: center; transition: transform .3s var(--resorte); }
.version img { width: 92px; height: 92px; object-fit: cover; background: #EEF1F4; box-shadow: inset 0 0 0 2px transparent; opacity: .7; transition: opacity .2s; }
.version:hover { transform: translateY(-2px); }
.version:hover img { opacity: 1; }
.version:active { transform: scale(.96); }
.version[aria-current='page'] img { opacity: 1; outline: 2px solid #0C0E12; outline-offset: 2px; }

/* Utility classes like .grid would otherwise beat the hidden attribute */
[hidden] { display: none !important; }

/* Order panel: bottom sheet on phones, centered card on desktop */
.pedido { width: 100%; max-width: 100%; max-height: 92svh; margin: auto 0 0; padding: 0; border: 0; border-radius: 20px 20px 0 0; background: #fff; color: #0C0E12; box-shadow: var(--sombra-elevada); overflow-y: auto; overscroll-behavior: contain; transform: translateY(100%); transition: transform .4s var(--suave); }
.pedido.abierto { transform: none; }
.pedido::backdrop { background: rgba(12, 14, 18, .55); opacity: 0; transition: opacity .3s; }
.pedido.abierto::backdrop { opacity: 1; }
.pedido-hoja { padding: 24px 16px max(20px, env(safe-area-inset-bottom)); }
@media (min-width: 768px) {
  .pedido { width: 480px; max-height: calc(100svh - 48px); margin: auto; border-radius: 20px; opacity: 0; transform: translateY(16px) scale(.97); transition: opacity .25s, transform .45s var(--resorte); }
  .pedido.abierto { opacity: 1; transform: none; }
  .pedido-hoja { padding: 32px; }
}
.pedido fieldset { min-width: 0; }
.opcion { position: relative; display: flex; align-items: flex-start; gap: 12px; padding: 14px 16px; border-radius: 12px; box-shadow: inset 0 0 0 2px #EEF1F4; cursor: pointer; transition: transform .3s var(--resorte); }
.opcion:hover { transform: translateY(-2px); }
.opcion:active { transform: scale(.98); }
.opcion:has(input:checked) { box-shadow: inset 0 0 0 2px #0C0E12; background: #F6F8FA; }
.opcion:has(input:focus-visible) { outline: 2px solid #0C0E12; outline-offset: 3px; }
.opcion input { appearance: none; flex: none; width: 20px; height: 20px; margin-top: 2px; border-radius: 50%; box-shadow: inset 0 0 0 2px #5B636E; }
.opcion input:checked { box-shadow: inset 0 0 0 6px #0C0E12; }
.opcion input:focus-visible { outline: none; }
.opcion b { display: block; line-height: 1.3; }
.opcion small { display: block; margin-top: 2px; color: #5B636E; font-size: .8125rem; line-height: 1.45; }
.opcion-chica { padding: 10px 14px; align-items: center; }
.opcion-chica input { margin-top: 0; }
.campo { width: 100%; height: 48px; padding: 0 14px; border-radius: 12px; background: #fff; box-shadow: inset 0 0 0 2px #EEF1F4; font-weight: 500; font-size: 1rem; }
.campo:hover { box-shadow: inset 0 0 0 2px #AEB6C0; }
.campo:focus-visible { outline: none; box-shadow: inset 0 0 0 2px #0C0E12; }

/* ---------- Admin panel (/admin) ---------- */
.admin { min-height: 100svh; background: #EEF1F4; }
.admin input, .admin select, .admin textarea { color: #0C0E12; }
.admin-barra { position: sticky; top: 0; z-index: 40; display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 64px; padding: 0 16px; background: #fff; box-shadow: 0 1px 2px rgba(12, 30, 54, .05), 0 6px 16px -8px rgba(12, 30, 54, .10); }
.admin-contenido { max-width: 880px; margin: 0 auto; padding: 24px 16px calc(120px + env(safe-area-inset-bottom)); }
@media (min-width: 768px) { .admin-barra { padding: 0 40px; } .admin-contenido { padding: 40px 40px 160px; } }
.caja { padding: 20px 16px; border-radius: 16px; background: #fff; box-shadow: 0 1px 2px rgba(12, 30, 54, .05), 0 6px 16px -8px rgba(12, 30, 54, .10); }
@media (min-width: 768px) { .caja { padding: 24px; } }
.titulo-caja { font-weight: 700; font-size: 1.0625rem; }
.etiqueta { display: grid; gap: 6px; font-size: .875rem; font-weight: 700; }
.etiqueta-chica { display: grid; gap: 4px; font-size: .75rem; font-weight: 700; color: #5B636E; }
.campo-texto { height: auto; padding: 12px 14px; line-height: 1.6; resize: vertical; }
.error-admin { color: #B42318; font-weight: 700; }
.error-admin:empty { display: none; }
.error-admin.visible { animation: sacude .4s var(--suave); }

/* Login */
.login { display: grid; place-items: center; min-height: 100svh; padding: 24px 16px; }
.login-caja { width: 100%; max-width: 420px; padding: 32px 24px; }
.ver-clave { position: absolute; right: 6px; top: 6px; height: 36px; padding: 0 12px; border-radius: 999px; font-size: .8125rem; font-weight: 700; transition: transform .3s var(--resorte), opacity .2s; }
.ver-clave:hover { transform: scale(1.04); }
.ver-clave:active { opacity: .6; }

/* Buttons */
.boton-borde { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 0 16px; border-radius: 999px; background: #fff; box-shadow: inset 0 0 0 2px #0C0E12; font-weight: 700; font-size: .875rem; line-height: 1; white-space: nowrap; transition: transform .3s var(--resorte); }
.boton-borde:hover { transform: translateY(-1px); }
.boton-borde:active { transform: scale(.96); }
.boton-peligro { color: #B42318; box-shadow: inset 0 0 0 2px #B42318; }
.pill-peligro { background: #B42318; color: #fff; }
.boton-icono { display: grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: 50%; background: #EEF1F4; color: #0C0E12; transition: transform .3s var(--resorte), opacity .2s; }
.boton-icono:hover { transform: scale(1.08); }
.boton-icono:active { transform: scale(.92); }
.boton-icono:disabled { opacity: .3; pointer-events: none; }
.boton-icono-claro { width: 36px; height: 36px; background: rgba(255, 255, 255, .92); box-shadow: 0 2px 6px rgba(12, 30, 54, .18); }
.admin button:disabled { cursor: not-allowed; }
.admin .pill:disabled { opacity: .55; }

/* Filters */
.chip { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 14px; border-radius: 999px; background: #fff; font-weight: 700; font-size: .875rem; transition: transform .3s var(--resorte); }
.chip span { color: #5B636E; font-weight: 500; }
.chip:hover { transform: translateY(-1px); }
.chip:active { transform: scale(.96); }
.chip[aria-pressed='true'] { background: #0C0E12; color: #fff; }
.chip[aria-pressed='true'] span { color: #AEB6C0; }

/* Product rows */
.fila-producto { padding: 12px; border-radius: 16px; background: #fff; box-shadow: 0 1px 2px rgba(12, 30, 54, .05), 0 6px 16px -8px rgba(12, 30, 54, .10); }
.fila-principal { display: flex; align-items: center; gap: 12px; width: 100%; border-radius: 10px; transition: opacity .2s; }
.fila-principal:hover .fila-foto { transform: scale(1.04); }
.fila-principal:active { opacity: .7; }
.fila-foto { flex: none; width: 72px; height: 72px; border-radius: 10px; object-fit: cover; background: #EEF1F4; transition: transform .35s var(--resorte); }
.fila-sin-foto { display: grid; place-items: center; color: #5B636E; }
.fila-acciones { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 12px; padding-top: 12px; border-top: 1px solid #EEF1F4; }
@media (min-width: 768px) {
  .fila-producto { display: flex; align-items: center; gap: 16px; }
  .fila-acciones { flex: none; margin-top: 0; padding-top: 0; border-top: 0; }
}
.talle-mini { display: inline-flex; align-items: center; gap: 3px; padding: 2px 8px; border-radius: 6px; background: #EEF1F4; font-size: .8125rem; font-weight: 500; line-height: 1.5; }
.etiqueta-estado { display: inline-flex; padding: 2px 8px; border-radius: 6px; font-size: .75rem; font-weight: 700; line-height: 1.5; }
.estado-encargue { background: #FFF4D6; color: #7A4B00; }
.estado-oculto { background: #0C0E12; color: #fff; }
.opcion-boton { width: 100%; text-align: left; }

/* Photos in the editor */
.fotos-grilla { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 480px) { .fotos-grilla { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 768px) { .fotos-grilla { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.foto-tile { position: relative; aspect-ratio: 1; overflow: hidden; border-radius: 12px; background: #EEF1F4; }
.foto-tile img { width: 100%; height: 100%; object-fit: cover; }
.foto-portada { position: absolute; top: 8px; left: 8px; padding: 4px 10px; border-radius: 999px; background: #57B7FF; color: #0C0E12; font-size: .75rem; font-weight: 700; line-height: 1.2; }
.foto-controles { position: absolute; left: 0; right: 0; bottom: 8px; display: flex; justify-content: center; gap: 8px; }
.foto-subiendo img { opacity: .45; }
.foto-cargando { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 8px; font-size: .8125rem; font-weight: 700; }
.foto-agregar { display: grid; place-content: center; justify-items: center; gap: 6px; aspect-ratio: 1; border-radius: 12px; box-shadow: inset 0 0 0 2px #AEB6C0; color: #0C0E12; font-weight: 700; font-size: .875rem; cursor: pointer; transition: transform .3s var(--resorte); }
.foto-agregar:hover { transform: translateY(-2px); }
.foto-agregar:active { transform: scale(.97); }
.foto-agregar:focus-within { outline: 2px solid #0C0E12; outline-offset: 3px; }
.girando { width: 22px; height: 22px; border-radius: 50%; border: 3px solid rgba(12, 14, 18, .18); border-top-color: #0C0E12; animation: gira .8s linear infinite; }
.girando-grande { width: 36px; height: 36px; }
@keyframes gira { to { transform: rotate(360deg); } }

/* Sizes and stock */
.fila-talle { display: flex; align-items: flex-end; gap: 12px; }
.campo-talle { width: 84px; text-align: center; font-weight: 700; }
.contador { display: flex; align-items: center; gap: 4px; height: 48px; }
.contador output { min-width: 40px; font-family: 'Archivo', sans-serif; font-stretch: 125%; font-weight: 800; font-size: 1.25rem; text-align: center; }
.campo-precio { position: relative; display: block; }
.campo-precio > span { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); font-weight: 700; color: #5B636E; }
.campo-precio .campo { padding-left: 46px; }

/* Show-in-shop switch */
.interruptor { display: flex; align-items: center; gap: 14px; cursor: pointer; }
.interruptor input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.interruptor-pista { position: relative; flex: none; width: 52px; height: 32px; border-radius: 999px; background: #AEB6C0; }
.interruptor-pista::after { content: ''; position: absolute; top: 4px; left: 4px; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(12, 30, 54, .3); transition: transform .35s var(--resorte); }
.interruptor input:checked + .interruptor-pista { background: #0C0E12; }
.interruptor input:checked + .interruptor-pista::after { transform: translateX(20px); }
.interruptor input:focus-visible + .interruptor-pista { outline: 2px solid #0C0E12; outline-offset: 3px; }
.interruptor:active .interruptor-pista::after { transform: scale(.9); }
.interruptor:active input:checked + .interruptor-pista::after { transform: translateX(20px) scale(.9); }
.interruptor small { display: block; font-size: .8125rem; line-height: 1.45; }

/* Save bar pinned to the bottom of the editor */
.barra-guardar { position: sticky; bottom: calc(68px + env(safe-area-inset-bottom)); z-index: 30; display: grid; gap: 8px; margin: 8px -16px 0; padding: 12px 16px max(12px, env(safe-area-inset-bottom)); background: #fff; box-shadow: 0 -1px 0 rgba(12, 30, 54, .08), 0 -12px 28px -12px rgba(12, 30, 54, .22); }
.editando .barra-guardar { bottom: 0; }
@media (min-width: 768px) { .barra-guardar { bottom: 0; margin: 8px 0 0; border-radius: 16px; } }

/* Admin notices */
.aviso-admin { position: fixed; z-index: 80; left: 16px; right: 16px; bottom: 16px; display: flex; align-items: center; justify-content: space-between; gap: 16px; max-width: 520px; margin: 0 auto; padding: 14px 16px; border-radius: 14px; background: #0C0E12; color: #fff; font-weight: 500; font-size: .9375rem; line-height: 1.45; box-shadow: var(--sombra-elevada); opacity: 0; transform: translateY(16px); pointer-events: none; transition: opacity .25s, transform .4s var(--resorte); }
.aviso-admin { bottom: calc(84px + env(safe-area-inset-bottom)); }
.editando .aviso-admin { bottom: calc(112px + env(safe-area-inset-bottom)); }
.con-barra .aviso-admin { bottom: calc(176px + env(safe-area-inset-bottom)); }
@media (min-width: 768px) { .aviso-admin { bottom: 16px; } .editando .aviso-admin, .con-barra .aviso-admin { bottom: 112px; } }
.aviso-admin.visible { opacity: 1; transform: none; }
/* Taps go through the notice to the list, except on its button */
.aviso-admin.visible .aviso-admin-accion { pointer-events: auto; }
.aviso-admin-accion { flex: none; min-height: 40px; padding: 0 14px; border-radius: 999px; background: #57B7FF; color: #0C0E12; font-weight: 700; font-size: .875rem; transition: transform .3s var(--resorte); }
.aviso-admin-accion:hover { transform: scale(1.04); }
.aviso-admin-accion:active { transform: scale(.95); }

/* Panel sections: bottom bar on phones, tabs in the header on desktop */
.nav-admin { position: fixed; z-index: 45; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: repeat(5, 1fr); padding: 6px 4px max(6px, env(safe-area-inset-bottom)); background: #fff; box-shadow: 0 -1px 0 rgba(12, 30, 54, .08), 0 -10px 24px -14px rgba(12, 30, 54, .25); }
.editando .nav-admin { display: none; }
.nav-admin-enlace { position: relative; display: grid; justify-items: center; gap: 2px; min-height: 52px; padding: 6px 2px; border-radius: 12px; color: #5B636E; font-size: .6875rem; font-weight: 700; line-height: 1.1; transition: transform .3s var(--resorte), opacity .2s; }
.nav-admin-enlace:hover { transform: translateY(-1px); }
.nav-admin-enlace:active { transform: scale(.94); }
.nav-admin-enlace[aria-current='page'] { color: #0C0E12; background: #EEF1F4; }
.nav-admin-numero { position: absolute; top: 2px; left: calc(50% + 6px); min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: #57B7FF; color: #0C0E12; font-size: .6875rem; line-height: 20px; text-align: center; }
@media (min-width: 768px) {
  .nav-admin { position: static; display: flex; gap: 4px; padding: 0; background: none; box-shadow: none; }
  .editando .nav-admin { display: flex; }
  .nav-admin-enlace { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; border-radius: 999px; font-size: .875rem; }
  .nav-admin-enlace svg { width: 18px; height: 18px; }
  .nav-admin-numero { position: static; margin-left: -2px; }
}

/* "Para revisar" shortcuts above the product list */
.revisar-grupo { display: flex; flex-wrap: wrap; gap: 8px; }
.revisar { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 16px; border-radius: 12px; background: #fff; box-shadow: inset 0 0 0 2px #57B7FF; font-size: .875rem; font-weight: 500; transition: transform .3s var(--resorte); }
.revisar b { font-family: 'Archivo', sans-serif; font-stretch: 125%; font-weight: 800; font-size: 1rem; }
.revisar:hover { transform: translateY(-1px); }
.revisar:active { transform: scale(.96); }
.revisar-alerta { box-shadow: inset 0 0 0 2px #B42318; color: #B42318; }
.estado-nuevo { background: #57B7FF; color: #0C0E12; }
.estado-oferta { background: #fff; color: #0C0E12; box-shadow: inset 0 0 0 1.5px #0C0E12; }
.estado-ultimo { background: #FFE8E5; color: #B42318; }

/* Orders */
.chip-chico { min-height: 36px; padding: 0 12px; font-size: .8125rem; }
.pedido-alerta { box-shadow: inset 0 0 0 2px #B42318, 0 6px 16px -8px rgba(12, 30, 54, .10); }
.pedido-codigo { font-family: 'Archivo', sans-serif; font-stretch: 125%; font-weight: 900; font-size: 1.5rem; letter-spacing: .06em; line-height: 1.1; }
.pedido-datos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 16px; margin-top: 12px; font-size: .875rem; }
@media (min-width: 640px) { .pedido-datos { grid-template-columns: 80px 1fr 80px 1fr; } .pedido-datos div { display: contents; } }
.pedido-datos dt { color: #5B636E; font-weight: 500; }
.pedido-datos dd { font-weight: 700; }
.reserva { margin-top: 12px; padding: 8px 12px; border-radius: 10px; background: #EEF1F4; font-size: .875rem; font-weight: 700; }
.reserva-vencida { background: #FFE8E5; color: #B42318; }
.estado-pedido-nuevo { background: #57B7FF; color: #0C0E12; }
.estado-pedido-esperando { background: #FFF4D6; color: #7A4B00; }
.estado-pedido-pagado { background: #DDF5E6; color: #146C3A; }
.estado-pedido-enviado { background: #0C0E12; color: #fff; }
.estado-pedido-cancelado, .estado-pedido-archivado { background: #EEF1F4; color: #5B636E; }

/* Sales */
.numero-grande { font-family: 'Archivo', sans-serif; font-stretch: 125%; font-weight: 800; font-size: clamp(1.5rem, 6vw, 2.25rem); letter-spacing: -.02em; line-height: 1; }
.lista-ventas li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; }
.lista-ventas li + li { border-top: 1px solid #EEF1F4; }
.boton-chico { min-height: 36px; padding: 0 12px; font-size: .8125rem; }

/* Texts and account */
.subcaja { padding: 14px; border-radius: 12px; background: #F6F8FA; }
.fotos-sitio { display: grid; gap: 16px; }
@media (min-width: 640px) { .fotos-sitio { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.foto-sitio-vista { position: relative; aspect-ratio: 16 / 10; overflow: hidden; border-radius: 12px; background: #EEF1F4; }
.foto-sitio-vista img { width: 100%; height: 100%; object-fit: cover; }
.foto-sitio-recorte { background: radial-gradient(60% 60% at 50% 40%, #fff, #E4E8EC); }
.foto-sitio-recorte img { object-fit: contain; padding: 12px; }
.lista-numerada { list-style: decimal; padding-left: 20px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
