/* ==========================================================================
   NALU Fit Shop — estilos de la web
   --------------------------------------------------------------------------
   Clásico, sencillo y elegante: mucho aire, fotos grandes, letra pequeña en
   mayúsculas para la interfaz (como Zara) y una serifa clásica para títulos
   y nombres (como Letta). Los colores son los de la identidad de NALU: café
   sobre arena es la principal (identidad 1); crema, piedra, marrón y oliva
   acompañan, nunca todos a la vez.

   Para cambiar un color en toda la web basta con tocarlo aquí abajo, en
   :root. Todo lo demás lo usa por su nombre.
   ========================================================================== */

/* ---- Tipografías (servidas desde la propia web: Cuba y Google no siempre se llevan) ---- */
@font-face { font-family: "Cormorant"; font-weight: 400; font-style: normal; font-display: swap;
  src: url("../fuentes/cormorant-400.woff2") format("woff2"); }
@font-face { font-family: "Cormorant"; font-weight: 500; font-style: normal; font-display: swap;
  src: url("../fuentes/cormorant-500.woff2") format("woff2"); }
@font-face { font-family: "Cormorant"; font-weight: 600; font-style: normal; font-display: swap;
  src: url("../fuentes/cormorant-600.woff2") format("woff2"); }
@font-face { font-family: "Cormorant"; font-weight: 500; font-style: italic; font-display: swap;
  src: url("../fuentes/cormorant-500-italica.woff2") format("woff2"); }
@font-face { font-family: "Jost"; font-weight: 300; font-style: normal; font-display: swap;
  src: url("../fuentes/jost-300.woff2") format("woff2"); }
@font-face { font-family: "Jost"; font-weight: 400; font-style: normal; font-display: swap;
  src: url("../fuentes/jost-400.woff2") format("woff2"); }
@font-face { font-family: "Jost"; font-weight: 500; font-style: normal; font-display: swap;
  src: url("../fuentes/jost-500.woff2") format("woff2"); }

:root {
  /* La identidad de NALU */
  --cafe: #302006;          /* texto, botones, el logo */
  --arena: #C4B2A6;         /* bloques de marca */
  --crema: #EFE7D4;
  --piedra: #D3CECA;
  --marron: #453A36;        /* el pie */
  --oliva: #4D4634;         /* acentos puntuales */

  /* Derivados, para que respire */
  --hueso: #F8F5EF;         /* el fondo de la web: crema muy aclarada */
  --foto: #ECE7E1;          /* detrás de cada foto de producto */
  --linea: #E3DACF;
  --linea-fuerte: #CDBFB2;
  --tinta: #302006;
  --tinta-suave: #74685E;
  --error: #9B2C1F;
  --exito: #4D6B3A;

  --serif: "Cormorant", "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Jost", "Avenir Next", "Segoe UI", system-ui, -apple-system, sans-serif;

  --gutter: 16px;
  --ancho: 1360px;
  --alto-cabecera: 60px;
  --alto-logo: 24px;
  --suave: cubic-bezier(.2, .7, .2, 1);
}

@media (min-width: 900px) {
  :root { --gutter: 40px; --alto-cabecera: 76px; --alto-logo: 32px; }
}

/* ---- Base ---- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--alto-barra, var(--alto-cabecera)) + 12px); }
body {
  margin: 0;
  background: var(--hueso);
  color: var(--tinta);
  font-family: var(--sans);
  font-weight: 400;
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, p { margin: 0; }
:focus-visible { outline: 1px solid var(--cafe); outline-offset: 3px; }
::selection { background: var(--arena); color: var(--cafe); }

.oculto { display: none !important; }
.solo-lector { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.contenedor { width: 100%; max-width: var(--ancho); margin: 0 auto; padding: 0 var(--gutter); }

/* ---- Letra ---- */
.etiqueta {
  font-family: var(--sans); font-size: 11px; font-weight: 500;
  letter-spacing: .16em; text-transform: uppercase;
}
.titulo-pagina {
  font-family: var(--serif); font-weight: 500; font-size: 30px; line-height: 1.1;
  letter-spacing: .06em; text-transform: uppercase;
}
.titulo-seccion {
  font-family: var(--serif); font-weight: 500; font-size: 26px; line-height: 1.15;
  letter-spacing: .04em;
}
.serif { font-family: var(--serif); }
.suave { color: var(--tinta-suave); }
@media (min-width: 900px) {
  .titulo-pagina { font-size: 40px; }
  .titulo-seccion { font-size: 32px; }
}

/* ---- Botones ---- */
.boton {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 0 28px;
  background: var(--cafe); color: var(--crema);
  font-family: var(--sans); font-size: 12px; font-weight: 500;
  letter-spacing: .18em; text-transform: uppercase;
  border: 1px solid var(--cafe);
  transition: background .25s var(--suave), color .25s var(--suave);
}
.boton:hover { background: var(--marron); border-color: var(--marron); }
.boton:disabled { opacity: .45; cursor: not-allowed; }
.boton.borde { background: transparent; color: var(--cafe); }
.boton.borde:hover { background: var(--cafe); color: var(--crema); }
.boton.claro { background: var(--hueso); color: var(--cafe); border-color: var(--hueso); }
.boton.claro:hover { background: var(--crema); border-color: var(--crema); }
.boton.ancho { width: 100%; }
.enlace {
  font-size: 12px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase;
  border-bottom: 1px solid currentColor; padding-bottom: 2px;
}

/* ---- Cinta de demostración ---- */
.cinta-demo {
  background: var(--oliva); color: var(--crema); text-align: center;
  font-size: 12px; padding: 7px var(--gutter); letter-spacing: .04em;
}

/* ---- Barra de anuncio ---- */
.anuncio {
  position: relative; background: var(--cafe); color: var(--crema);
  text-align: center; padding: 9px 44px;
  font-size: 11px; font-weight: 400; letter-spacing: .14em; text-transform: uppercase;
}
.anuncio button {
  position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  width: 28px; height: 28px; display: grid; place-items: center; opacity: .8;
}
.anuncio button:hover { opacity: 1; }
@media (max-width: 379px) { .anuncio { letter-spacing: .07em; padding: 9px 34px; } }

/* ---- Cabecera ---- */
/* La caja donde se pinta la cabecera no cuenta para la maquetación: así la
   cabecera se queda fija arriba en toda la página y no solo dentro de su caja.
   --alto-barra lo pone ui.js con lo que mide de verdad (en la computadora
   lleva también la fila de categorías). */
#cabecera { display: contents; }
.cabecera {
  position: sticky; top: 0; z-index: 40;
  background: rgba(248, 245, 239, .96);
  backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s;
}
.cabecera.con-borde { border-bottom-color: var(--linea); }
.cabecera-fila {
  height: var(--alto-cabecera);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
}
.cabecera-izq, .cabecera-der { display: flex; align-items: center; gap: 4px; }
.cabecera-der { justify-content: flex-end; }
.icono {
  width: 42px; height: 42px; display: grid; place-items: center; position: relative;
}
.icono svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.3; }
.icono .contador {
  position: absolute; top: 6px; right: 3px; min-width: 17px; height: 17px; padding: 0 4px;
  border-radius: 9px; background: var(--cafe); color: var(--crema);
  font-size: 10px; font-weight: 500; line-height: 17px; text-align: center;
}
.logo { color: var(--cafe); display: block; }
.logo svg { height: 24px; width: auto; }
@media (min-width: 900px) { .logo svg { height: 32px; } }

.nav-categorias { display: none; }
@media (min-width: 900px) {
  .nav-categorias {
    display: flex; justify-content: center; gap: 34px; flex-wrap: wrap;
    padding: 0 0 14px; margin-top: -6px;
  }
  .nav-categorias a { font-size: 11px; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; }
  .nav-categorias a:hover, .nav-categorias a.activa { text-decoration: underline; text-underline-offset: 6px; }
}

/* ---- Menú (pantalla completa, como Letta) ---- */
.menu {
  position: fixed; inset: 0; z-index: 60; background: var(--hueso);
  display: flex; flex-direction: column;
  transform: translateX(-100%); visibility: hidden;
  transition: transform .45s var(--suave), visibility 0s linear .45s;
}
.menu.abierto { transform: none; visibility: visible; transition: transform .45s var(--suave); }
.menu-cabecera { height: var(--alto-cabecera); display: flex; align-items: center; padding: 0 calc(var(--gutter) - 10px); }
.menu-lista { flex: 1; overflow-y: auto; padding: 4vh var(--gutter) 24px; }
.menu-lista a {
  display: block; padding: 6px 0;
  font-family: var(--sans); font-weight: 300; font-size: 30px; line-height: 1.25;
  letter-spacing: .04em; text-transform: uppercase;
}
.menu-lista a:hover { padding-left: 6px; transition: padding .2s; }
.menu-lista .separa { height: 1px; background: var(--linea); margin: 18px 0; }
.menu-lista .menor a { font-size: 13px; font-weight: 400; letter-spacing: .16em; padding: 8px 0; }
.menu-pie { padding: 18px var(--gutter) calc(18px + env(safe-area-inset-bottom)); display: flex; gap: 18px; border-top: 1px solid var(--linea); }
.menu-pie a { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; }
@media (min-width: 900px) { .menu-lista a { font-size: 42px; } }

/* ---- Portada ---- */
.heroe { position: relative; background: var(--arena); overflow: hidden; }
.heroe picture, .heroe img { width: 100%; height: 100%; object-fit: cover; }
.heroe .marco { position: relative; aspect-ratio: 4 / 5; max-height: calc(100svh - var(--alto-cabecera) - 34px); width: 100%; }
/* Con una foto oscura (config: portada.textoClaro), el texto va en crema sobre una sombra suave. */
.heroe.claro .marco::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(48, 32, 6, .55), rgba(48, 32, 6, 0) 62%); }
.heroe.claro .heroe-texto { color: var(--crema); }
.boton.transparente { background: transparent; color: var(--crema); border-color: var(--crema); }
.boton.transparente:hover { background: var(--crema); color: var(--cafe); }
.heroe-texto {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 0 var(--gutter) 34px; color: var(--cafe);
}
.heroe-texto .etiqueta { display: block; margin-bottom: 10px; }
.heroe-texto h1 {
  font-family: var(--serif); font-weight: 500; font-size: 44px; line-height: 1;
  letter-spacing: .01em; max-width: 9em; margin-bottom: 22px;
}
.heroe-texto h1 em { font-style: italic; }
.heroe-botones { display: flex; gap: 10px; flex-wrap: wrap; }
.heroe-botones .boton { min-height: 46px; padding: 0 22px; }
@media (min-width: 900px) {
  .heroe .marco { aspect-ratio: 16 / 9; max-height: calc(100vh - var(--alto-cabecera) - 34px); }
  .heroe.claro .marco::after { background: linear-gradient(to right, rgba(48, 32, 6, .5), rgba(48, 32, 6, 0) 60%); }
  .heroe-texto { top: 0; right: auto; width: 46%; display: flex; flex-direction: column; justify-content: center; padding: 0 0 0 max(var(--gutter), calc((100vw - var(--ancho)) / 2 + var(--gutter))); }
  .heroe-texto h1 { font-size: clamp(56px, 6vw, 92px); }
}

.seccion { padding: 56px 0; }
.seccion-cabeza { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 26px; }
@media (min-width: 900px) { .seccion { padding: 88px 0; } .seccion-cabeza { margin-bottom: 36px; } }

.categorias {
  display: grid; grid-auto-flow: column; grid-auto-columns: 62%; gap: 12px;
  overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px;
  scrollbar-width: none;
}
.categorias::-webkit-scrollbar { display: none; }
.categoria { scroll-snap-align: start; }
/* Flechas para las categorías, solo con ratón y si no caben todas. */
.flechas { display: none; gap: 8px; }
@media (hover: hover) and (min-width: 900px) { .flechas.hacen-falta { display: flex; } }
.flecha { width: 40px; height: 40px; border: 1px solid var(--linea-fuerte); border-radius: 50%; display: grid; place-items: center; transition: border-color .2s, opacity .2s; }
.flecha:hover:not(:disabled) { border-color: var(--cafe); }
.flecha:disabled { opacity: .3; cursor: default; }
.flecha svg { width: 16px; height: 16px; stroke: currentColor; stroke-width: 1.4; fill: none; }
.categoria .foto { aspect-ratio: 3 / 4; background: var(--foto); overflow: hidden; }
.categoria .foto img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--suave); }
.categoria:hover .foto img { transform: scale(1.03); }
.categoria .nombre { margin-top: 12px; font-size: 12px; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; }
@media (min-width: 700px) { .categorias { grid-auto-columns: 32%; } }
@media (min-width: 1100px) { .categorias { grid-auto-columns: calc((100% - 48px) / 5); } }

.editorial { display: grid; background: var(--crema); }
.editorial .imagen { aspect-ratio: 4 / 5; overflow: hidden; }
.editorial .imagen img { width: 100%; height: 100%; object-fit: cover; }
.editorial .texto { padding: 48px var(--gutter); display: flex; flex-direction: column; justify-content: center; gap: 18px; }
.editorial h2 { font-family: var(--serif); font-weight: 500; font-size: 34px; line-height: 1.1; }
.editorial p { max-width: 34em; color: var(--marron); }
@media (min-width: 900px) {
  .editorial { grid-template-columns: 1fr 1fr; }
  .editorial .texto { padding: 64px clamp(40px, 7vw, 120px); }
  .editorial h2 { font-size: 48px; }
}

.ventajas { display: grid; gap: 28px; border-top: 1px solid var(--linea); padding-top: 40px; }
.ventaja h3 { font-size: 12px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; margin-bottom: 8px; }
.ventaja p { color: var(--tinta-suave); font-size: 14px; }
@media (min-width: 900px) { .ventajas { grid-template-columns: repeat(3, 1fr); gap: 48px; } }

/* ---- Rejilla de productos ---- */
.rejilla {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 28px 10px;
}
@media (min-width: 700px) { .rejilla { grid-template-columns: repeat(3, 1fr); gap: 40px 16px; } }
@media (min-width: 1100px) { .rejilla { grid-template-columns: repeat(4, 1fr); gap: 48px 20px; } }

.producto { position: relative; display: flex; flex-direction: column; }
.producto .foto { position: relative; aspect-ratio: 3 / 4; background: var(--foto); overflow: hidden; }
.producto .foto img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transition: opacity .5s var(--suave), transform .8s var(--suave);
}
.producto .foto img.segunda { opacity: 0; }
@media (hover: hover) {
  .producto:hover .foto img.segunda { opacity: 1; }
  .producto:hover .foto img.primera.con-segunda { opacity: 0; }
}
.producto .sello {
  position: absolute; left: 10px; top: 10px; z-index: 2;
  background: var(--hueso); color: var(--cafe);
  font-size: 10px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; padding: 4px 8px;
}
.producto .anadir {
  position: absolute; right: 8px; bottom: 8px; z-index: 2;
  width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(248, 245, 239, .92); color: var(--cafe);
  transition: transform .2s, background .2s;
}
.producto .anadir:hover { background: var(--hueso); transform: scale(1.06); }
.producto .anadir svg { width: 16px; height: 16px; stroke: currentColor; stroke-width: 1.4; fill: none; }
.producto .info { padding-top: 12px; display: grid; gap: 3px; }
.producto .nombre { font-family: var(--serif); font-weight: 500; font-size: 17px; line-height: 1.25; }
.producto .precio { font-size: 13px; letter-spacing: .04em; }
.producto .colores { display: flex; gap: 5px; margin-top: 5px; }
.punto-color { width: 10px; height: 10px; border-radius: 50%; border: 1px solid rgba(48, 32, 6, .25); }
.producto .quedan { font-size: 11px; color: var(--error); letter-spacing: .04em; }
@media (min-width: 900px) { .producto .nombre { font-size: 19px; } .producto .precio { font-size: 14px; } }

/* ---- Catálogo ---- */
.catalogo-cabeza { padding: 30px 0 8px; }
.filtros {
  display: flex; gap: 8px; overflow-x: auto; padding: 14px 0 18px; scrollbar-width: none;
  position: sticky; top: var(--alto-barra, var(--alto-cabecera)); z-index: 20; background: var(--hueso);
}
.filtros::-webkit-scrollbar { display: none; }
.chip {
  flex: none; padding: 8px 16px; border: 1px solid var(--linea-fuerte); border-radius: 100px;
  font-size: 11px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; white-space: nowrap;
  transition: background .2s, color .2s, border-color .2s;
}
.chip:hover { border-color: var(--cafe); }
.chip.activa { background: var(--cafe); border-color: var(--cafe); color: var(--crema); }
.barra-catalogo { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 22px; }
.barra-catalogo select {
  appearance: none; -webkit-appearance: none; border: 0; background: transparent;
  font-size: 11px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; padding: 6px 18px 6px 0;
  background-image: linear-gradient(45deg, transparent 50%, var(--cafe) 50%), linear-gradient(135deg, var(--cafe) 50%, transparent 50%);
  background-position: right 4px top 52%, right 0 top 52%; background-size: 4px 4px; background-repeat: no-repeat;
}
.vacio { text-align: center; padding: 70px 0; color: var(--tinta-suave); }
.vacio .titulo-seccion { color: var(--cafe); margin-bottom: 10px; }

/* ---- Ficha de producto ---- */
.ficha { display: grid; gap: 0; padding-bottom: 40px; }
.galeria {
  display: grid; grid-auto-flow: column; grid-auto-columns: 100%;
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  margin: 0 calc(var(--gutter) * -1);
}
.galeria::-webkit-scrollbar { display: none; }
.galeria figure { margin: 0; scroll-snap-align: start; aspect-ratio: 3 / 4; background: var(--foto); }
.galeria img { width: 100%; height: 100%; object-fit: cover; }
.puntos-galeria { display: flex; justify-content: center; gap: 6px; padding: 12px 0 0; }
.puntos-galeria span { width: 6px; height: 6px; border-radius: 50%; background: var(--linea-fuerte); transition: background .2s, transform .2s; }
.puntos-galeria span.activo { background: var(--cafe); transform: scale(1.2); }
.ficha-info { padding-top: 22px; }
.migas { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--tinta-suave); margin-bottom: 14px; }
.migas a:hover { color: var(--cafe); }
.ficha-info h1 { font-family: var(--serif); font-weight: 500; font-size: 32px; line-height: 1.1; }
.ficha-info .precio { font-size: 16px; letter-spacing: .04em; margin-top: 10px; }
.bloque-opcion { margin-top: 26px; }
.bloque-opcion .etiqueta { display: flex; justify-content: space-between; margin-bottom: 10px; }
.bloque-opcion .etiqueta span:last-child { color: var(--tinta-suave); text-transform: none; letter-spacing: .02em; font-weight: 400; font-size: 13px; }
.colores-ficha { display: flex; gap: 10px; flex-wrap: wrap; }
.boton-color {
  width: 34px; height: 34px; border-radius: 50%; padding: 3px; border: 1px solid transparent;
}
.boton-color span { display: block; width: 100%; height: 100%; border-radius: 50%; border: 1px solid rgba(48, 32, 6, .2); }
.boton-color.activa { border-color: var(--cafe); }
.tallas { display: grid; grid-template-columns: repeat(auto-fill, minmax(62px, 1fr)); gap: 8px; }
.talla {
  min-height: 46px; border: 1px solid var(--linea-fuerte); font-size: 13px; letter-spacing: .06em;
  transition: border-color .2s, background .2s, color .2s;
}
.talla:hover:not(:disabled) { border-color: var(--cafe); }
.talla.activa { background: var(--cafe); color: var(--crema); border-color: var(--cafe); }
.talla:disabled { color: #B5AAA0; text-decoration: line-through; cursor: not-allowed; background: transparent; }
.aviso-stock { font-size: 13px; color: var(--error); margin-top: 10px; min-height: 1.4em; }
.ficha-acciones { margin-top: 24px; display: grid; gap: 10px; }
.acordeon { margin-top: 34px; border-top: 1px solid var(--linea); }
.acordeon details { border-bottom: 1px solid var(--linea); }
.acordeon summary {
  list-style: none; cursor: pointer; padding: 18px 0;
  font-size: 12px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase;
  display: flex; justify-content: space-between; align-items: center;
}
.acordeon summary::-webkit-details-marker { display: none; }
.acordeon summary::after { content: "+"; font-weight: 300; font-size: 20px; line-height: 1; }
.acordeon details[open] summary::after { content: "−"; }
.acordeon .contenido { padding: 0 0 20px; color: var(--marron); font-size: 14px; }
.acordeon .contenido p + p { margin-top: 10px; }
@media (min-width: 900px) {
  .ficha { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 56px; padding-top: 24px; }
  .galeria { grid-auto-flow: row; grid-auto-columns: auto; grid-template-columns: 1fr 1fr; gap: 6px; overflow: visible; margin: 0; }
  .galeria figure:first-child { grid-column: 1 / -1; }
  .puntos-galeria { display: none; }
  .ficha-info { position: sticky; top: calc(var(--alto-barra, var(--alto-cabecera)) + 24px); align-self: start; padding-top: 0; }
  .ficha-info h1 { font-size: 40px; }
}

/* ---- Hoja que sube desde abajo (tallas rápidas, «añadido») ---- */
.velo {
  position: fixed; inset: 0; z-index: 70; background: rgba(48, 32, 6, .35);
  opacity: 0; visibility: hidden; transition: opacity .3s, visibility 0s linear .3s;
}
.velo.abierto { opacity: 1; visibility: visible; transition: opacity .3s; }
.hoja {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 80; background: var(--hueso);
  padding: 22px var(--gutter) calc(22px + env(safe-area-inset-bottom));
  transform: translateY(100%); transition: transform .4s var(--suave);
  max-height: 85vh; overflow-y: auto;
}
.hoja.abierta { transform: none; }
.hoja-cabeza { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; gap: 16px; }
.hoja-cabeza h2 { font-family: var(--serif); font-weight: 500; font-size: 24px; }
.hoja .linea-anadida { display: grid; grid-template-columns: 78px 1fr auto; gap: 14px; align-items: start; margin-bottom: 20px; }
.hoja .linea-anadida img { width: 78px; aspect-ratio: 3 / 4; object-fit: cover; background: var(--foto); }
@media (min-width: 700px) {
  .hoja { left: auto; top: 0; bottom: 0; width: 440px; max-height: none; transform: translateX(100%); padding-top: 26px; }
  .hoja.abierta { transform: none; }
}

/* ---- Formularios ---- */
.campo { display: grid; gap: 4px; margin-bottom: 18px; }
.campo label { font-size: 11px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--tinta-suave); }
.campo input, .campo select, .campo textarea {
  width: 100%; border: 0; border-bottom: 1px solid var(--linea-fuerte); background: transparent;
  padding: 10px 0; font-size: 16px; border-radius: 0; outline: none; transition: border-color .2s;
}
.campo textarea { resize: vertical; min-height: 70px; }
.campo input:focus, .campo select:focus, .campo textarea:focus { border-bottom-color: var(--cafe); }
.campo .ayuda { font-size: 12px; color: var(--tinta-suave); }
.campo-codigo input { font-size: 30px; letter-spacing: .5em; text-align: center; font-family: var(--serif); }
.dos-campos { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.mensaje-error {
  border-left: 2px solid var(--error); background: #F7ECE8; color: var(--error);
  padding: 12px 14px; font-size: 14px; margin-bottom: 18px;
}
.mensaje-ok {
  border-left: 2px solid var(--exito); background: #EEF1E6; color: var(--exito);
  padding: 12px 14px; font-size: 14px; margin-bottom: 18px;
}

.pestanas { display: flex; border-bottom: 1px solid var(--linea); margin-bottom: 28px; }
.pestanas button {
  flex: 1; padding: 14px 0; font-size: 12px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase;
  color: var(--tinta-suave); border-bottom: 1px solid transparent; margin-bottom: -1px;
}
.pestanas button.activa { color: var(--cafe); border-bottom-color: var(--cafe); }

.opciones { display: grid; gap: 10px; margin-bottom: 22px; }
.opcion {
  display: grid; grid-template-columns: 20px 1fr auto; gap: 12px; align-items: start;
  border: 1px solid var(--linea-fuerte); padding: 16px; cursor: pointer; transition: border-color .2s;
}
.opcion:has(input:checked) { border-color: var(--cafe); background: #FBF9F5; }
.opcion input { accent-color: var(--cafe); margin: 3px 0 0; width: 16px; height: 16px; }
.opcion .t { font-size: 13px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; }
.opcion .d { font-size: 13px; color: var(--tinta-suave); margin-top: 3px; }
.opcion .p { font-size: 14px; white-space: nowrap; }
.opcion.desactivada { opacity: .5; cursor: not-allowed; }

/* ---- Carrito ---- */
.pagina-estrecha { max-width: 760px; }
.carrito-lineas { border-top: 1px solid var(--linea); }
.linea-carrito {
  display: grid; grid-template-columns: 92px 1fr; gap: 16px; padding: 18px 0;
  border-bottom: 1px solid var(--linea);
}
.linea-carrito .foto { aspect-ratio: 3 / 4; background: var(--foto); }
.linea-carrito .foto img { width: 100%; height: 100%; object-fit: cover; }
.linea-carrito .arriba { display: flex; justify-content: space-between; gap: 10px; }
.linea-carrito .nombre { font-family: var(--serif); font-weight: 500; font-size: 18px; line-height: 1.2; }
.linea-carrito .detalle { font-size: 13px; color: var(--tinta-suave); margin-top: 3px; }
.linea-carrito .problema { font-size: 13px; color: var(--error); margin-top: 4px; }
.linea-carrito .abajo { display: flex; justify-content: space-between; align-items: center; margin-top: 14px; }
.cantidad { display: flex; align-items: center; border: 1px solid var(--linea-fuerte); }
.cantidad button { width: 36px; height: 36px; font-size: 18px; font-weight: 300; }
.cantidad button:disabled { opacity: .3; }
.cantidad span { min-width: 30px; text-align: center; font-size: 14px; }
.quitar { width: 30px; height: 30px; display: grid; place-items: center; color: var(--tinta-suave); }
.quitar svg { width: 15px; height: 15px; stroke: currentColor; stroke-width: 1.4; }
.resumen { margin-top: 26px; display: grid; gap: 8px; font-size: 14px; }
.resumen .fila { display: flex; justify-content: space-between; gap: 16px; }
.resumen .fila.total { font-size: 17px; padding-top: 12px; border-top: 1px solid var(--linea); margin-top: 6px; }
.resumen .tachado { text-decoration: line-through; color: var(--tinta-suave); margin-right: 6px; }
.resumen .nota { font-size: 13px; color: var(--oliva); }
.barra-pagar {
  position: sticky; bottom: 0; background: var(--hueso); border-top: 1px solid var(--linea);
  padding: 14px 0 calc(14px + env(safe-area-inset-bottom)); margin-top: 26px; z-index: 10;
}
.barra-pagar .fila { display: flex; justify-content: space-between; font-size: 15px; margin-bottom: 12px; }
.pasos { display: flex; gap: 8px; align-items: center; margin: 4px 0 26px; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--tinta-suave); }
.pasos .activo { color: var(--cafe); font-weight: 500; }
.pasos .raya { flex: 0 0 22px; height: 1px; background: var(--linea-fuerte); }

/* ---- Cuenta y pedidos ---- */
.tarjeta-pedido {
  display: grid; grid-template-columns: 1fr auto; gap: 6px 16px; align-items: center;
  padding: 18px 0; border-bottom: 1px solid var(--linea);
}
.tarjeta-pedido .num { font-family: var(--serif); font-size: 20px; font-weight: 500; }
.tarjeta-pedido .fecha { font-size: 13px; color: var(--tinta-suave); }
.estado {
  display: inline-block; padding: 4px 10px; font-size: 10px; font-weight: 500;
  letter-spacing: .16em; text-transform: uppercase; background: var(--crema); color: var(--cafe);
}
.estado.Preparando { background: var(--arena); }
.estado.Listo { background: var(--oliva); color: var(--crema); }
.estado.Entregado { background: var(--cafe); color: var(--crema); }
.estado.Cancelado { background: var(--piedra); color: var(--marron); }
.camino { display: grid; grid-template-columns: repeat(4, 1fr); margin: 28px 0; }
.camino div { position: relative; text-align: center; font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--tinta-suave); padding-top: 22px; }
.camino div::before { content: ""; position: absolute; top: 6px; left: 50%; width: 9px; height: 9px; border-radius: 50%; background: var(--linea-fuerte); transform: translateX(-50%); z-index: 1; }
.camino div::after { content: ""; position: absolute; top: 10px; left: -50%; width: 100%; height: 1px; background: var(--linea-fuerte); }
.camino div:first-child::after { display: none; }
.camino div.hecho { color: var(--cafe); }
.camino div.hecho::before, .camino div.hecho::after { background: var(--cafe); }
.bloque { border-top: 1px solid var(--linea); padding: 22px 0; }
.bloque h2 { font-size: 12px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; margin-bottom: 12px; }

/* ---- Páginas de texto (ayuda, nosotros) ---- */
.texto-largo { max-width: 720px; }
.texto-largo h2 { font-family: var(--serif); font-weight: 500; font-size: 28px; margin: 48px 0 14px; }
.texto-largo p, .texto-largo li { color: var(--marron); }
.texto-largo p a:not(.boton) { color: var(--cafe); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.texto-largo p + p { margin-top: 12px; }
.tabla-tallas { width: 100%; border-collapse: collapse; font-size: 14px; margin-top: 12px; }
.tabla-tallas th, .tabla-tallas td { border-bottom: 1px solid var(--linea); padding: 10px 8px; text-align: center; }
.tabla-tallas th { font-size: 11px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; }
.tabla-tallas td:first-child, .tabla-tallas th:first-child { text-align: left; }

/* ---- Pie ---- */
.pie { background: var(--marron); color: var(--crema); margin-top: 72px; }
.pie a:hover { text-decoration: underline; text-underline-offset: 4px; }
.pie-arriba { display: grid; gap: 34px; padding: 56px 0 34px; }
.pie .logo-pie svg { height: 54px; width: auto; color: var(--crema); }
.pie .lema { margin-top: 14px; color: var(--piedra); font-size: 14px; max-width: 24em; }
.pie h3 { font-size: 11px; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; margin-bottom: 14px; color: var(--arena); }
.pie ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 14px; }
.pie-abajo {
  border-top: 1px solid rgba(239, 231, 212, .18); padding: 18px 0 calc(18px + env(safe-area-inset-bottom));
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--piedra);
}
@media (min-width: 900px) { .pie-arriba { grid-template-columns: 1.4fr 1fr 1fr 1fr; padding: 72px 0 48px; } }

/* ---- Aviso flotante ---- */
.aviso-flotante {
  position: fixed; left: 50%; bottom: calc(18px + env(safe-area-inset-bottom)); z-index: 90;
  transform: translate(-50%, 20px); opacity: 0; transition: transform .3s var(--suave), opacity .3s;
  background: var(--cafe); color: var(--crema); padding: 12px 18px; font-size: 13px; letter-spacing: .04em;
  max-width: calc(100vw - 32px); text-align: center; pointer-events: none;
}
.aviso-flotante.visible { opacity: 1; transform: translate(-50%, 0); }
.aviso-flotante.malo { background: var(--error); }

/* ---- Cargando ---- */
.esqueleto { background: linear-gradient(90deg, var(--foto) 0%, #F3EFEA 50%, var(--foto) 100%); background-size: 200% 100%; animation: brillo 1.4s infinite linear; }
@keyframes brillo { from { background-position: 200% 0; } to { background-position: -200% 0; } }
.cargando { text-align: center; padding: 60px 0; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--tinta-suave); }

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

/* ---- «Ir al contenido», para quien navega con el teclado ---- */
.saltar { position: absolute; left: -9999px; top: 0; z-index: 100; background: var(--cafe); color: var(--crema); padding: 10px 16px; font-size: 13px; }
.saltar:focus { left: 12px; top: 12px; }
main:focus { outline: none; }
