/* Alpalac Quesos Artesanales */

:root {
  --rojo: #d9161d;
  --rojo-hondo: #b30f15;
  --cera: #5a0e18;
  --cera-honda: #420a11;
  --pasta: #f5c044;
  --leche: #ffffff;
  --chapa: #f0f0ed;
  --tinta: #2b1a12;
  --tinta-suave: #6b5a50;
  --linea: #e6dfd8;
  --madera: #9c6a3c;
  --madera-clara: #c48d57;
  --madera-oscura: #6b4223;
  --verde-wa: #157a43;
  --verde-wa-hondo: #0f6236;

  --display: "Alfa Slab One", Rockwell, Georgia, serif;
  --texto: "Instrument Sans", "Segoe UI", system-ui, sans-serif;

  --radio: 12px;
  --barra-alto: 72px;
  --propuesta-alto: 44px;
  --encabezado-alto: calc(var(--barra-alto) + var(--propuesta-alto));
}

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

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--encabezado-alto) + 64px); }

body {
  margin: 0;
  background: var(--leche);
  color: var(--tinta);
  font-family: var(--texto);
  font-size: 1.0625rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }

h1, h2, h3, h4 { margin: 0; line-height: 1.1; }
p { margin: 0; }

a { color: inherit; }

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

.envoltura {
  width: min(100% - 32px, 1180px);
  margin-inline: auto;
}

.saltar {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--tinta);
  color: var(--leche);
  border-radius: var(--radio);
}
.saltar:focus { top: 12px; }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* Botones */

.boton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 22px;
  border: 2px solid transparent;
  border-radius: 999px;
  font: 600 1rem/1.2 var(--texto);
  text-decoration: none;
  cursor: pointer;
  transition: background-color .15s, color .15s, border-color .15s;
}

.boton--blanco { background: var(--leche); color: var(--rojo-hondo); }
.boton--blanco:hover { background: var(--pasta); color: var(--tinta); }

.boton--contorno { border-color: rgba(255, 255, 255, .7); color: var(--leche); }
.boton--contorno:hover { border-color: var(--leche); background: rgba(255, 255, 255, .12); }

.boton--rojo { background: var(--rojo); color: var(--leche); }
.boton--rojo:hover { background: var(--rojo-hondo); }

.boton--whatsapp { background: var(--verde-wa); color: var(--leche); }
.boton--whatsapp:hover { background: var(--verde-wa-hondo); }

.boton--ancho { width: 100%; }

.boton-texto {
  display: block;
  margin: 12px auto 0;
  padding: 8px;
  border: 0;
  background: none;
  color: var(--tinta-suave);
  font: 500 .95rem var(--texto);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.boton-texto:hover { color: var(--rojo-hondo); }

/* Barra superior */

.barra {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--leche);
  border-bottom: 1px solid var(--linea);
}

/* Franja de propuesta: es de EcoSoftware, no de Alpalac, por eso usa otros colores. */
.propuesta {
  position: relative;
  background: #241610;
  color: rgba(255, 255, 255, .85);
  font-size: .9rem;
}

/* Una luz cruza la franja y, al llegar al final, brilla el botón. Las tres animaciones
   duran lo mismo para que vayan siempre sincronizadas. */
.propuesta__luz {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}
.propuesta__luz::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 260px;
  background: linear-gradient(90deg,
    transparent,
    rgba(47, 214, 112, .18) 30%,
    rgba(255, 255, 255, .4) 50%,
    rgba(47, 214, 112, .18) 70%,
    transparent);
  transform: translateX(-300px) skewX(-20deg);
  animation: propuesta-luz 6s infinite;
}

@keyframes propuesta-luz {
  0% { transform: translateX(-300px) skewX(-20deg); animation-timing-function: cubic-bezier(.4, 0, .6, 1); }
  40%, 100% { transform: translateX(100vw) skewX(-20deg); }
}

@keyframes propuesta-brillo {
  0%, 36% { box-shadow: 0 0 0 0 rgba(47, 214, 112, 0); background: #2fd670; }
  44% { box-shadow: 0 0 0 4px rgba(47, 214, 112, .35), 0 0 22px 6px rgba(47, 214, 112, .8); background: #6ff5a3; }
  56% { box-shadow: 0 0 0 9px rgba(47, 214, 112, 0), 0 0 16px 3px rgba(47, 214, 112, .4); background: #2fd670; }
  70%, 100% { box-shadow: 0 0 0 0 rgba(47, 214, 112, 0); background: #2fd670; }
}

@keyframes propuesta-destello {
  0%, 40% { left: -70%; }
  56%, 100% { left: 130%; }
}

.propuesta__dentro {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  height: var(--propuesta-alto);
}
.propuesta img { flex: none; width: 28px; height: 28px; }
.propuesta p {
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.propuesta strong { color: var(--leche); font-weight: 700; }
.propuesta__corto { display: none; }
.propuesta__boton {
  position: relative;
  overflow: hidden;
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  padding: 4px 16px;
  border-radius: 999px;
  background: #2fd670;
  color: #241610;
  font-size: .9rem;
  font-weight: 700;
  text-decoration: none;
  animation: propuesta-brillo 6s ease-out infinite;
}
.propuesta__boton::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: -70%;
  width: 45%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .8), transparent);
  transform: skewX(-20deg);
  animation: propuesta-destello 6s ease-in-out infinite;
  pointer-events: none;
}
.propuesta__boton:hover { animation: none; background: var(--leche); box-shadow: 0 0 0 4px rgba(47, 214, 112, .45); }

@media (prefers-reduced-motion: reduce) {
  .propuesta__luz::before,
  .propuesta__boton::after { display: none; }
  .propuesta__boton { animation: none; box-shadow: 0 0 0 3px rgba(47, 214, 112, .35); }
}
.propuesta__boton:focus-visible { outline-color: var(--leche); }

@media (max-width: 860px) {
  .propuesta__largo { display: none; }
  .propuesta__corto { display: inline; }
}
@media (max-width: 480px) {
  .propuesta { font-size: .85rem; }
  .propuesta__dentro { gap: 8px; }
  .propuesta img,
  .propuesta__boton svg { display: none; }
  .propuesta__boton { padding: 4px 12px; font-size: .85rem; }
}
@media (max-width: 359px) {
  .propuesta__prefijo { display: none; }
}

.barra__dentro {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: var(--barra-alto);
}

.marca img { width: 56px; height: 56px; }

.menu {
  display: flex;
  gap: 28px;
  margin-left: auto;
}

.menu a {
  font-weight: 600;
  text-decoration: none;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
}
.menu a:hover { border-bottom-color: var(--rojo); }

.menu-boton { display: none; }

.boton-pedido {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 8px 18px;
  border: 0;
  border-radius: 999px;
  background: var(--rojo);
  color: var(--leche);
  font: 600 1rem var(--texto);
  cursor: pointer;
}
.boton-pedido:hover { background: var(--rojo-hondo); }

.contador {
  display: inline-grid;
  place-items: center;
  min-width: 24px;
  height: 24px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--pasta);
  color: var(--tinta);
  font-size: .85rem;
  font-weight: 700;
}
.contador[hidden] { display: none; }
.contador.salta { animation: salto .35s ease-out; }

@keyframes salto {
  40% { transform: scale(1.35); }
}

@media (max-width: 860px) {
  .barra__dentro { gap: 12px; }
  .menu-boton {
    display: inline-flex;
    margin-left: auto;
    min-height: 44px;
    padding: 8px 14px;
    border: 2px solid var(--linea);
    border-radius: 999px;
    background: none;
    color: var(--tinta);
    font: 600 1rem var(--texto);
    cursor: pointer;
  }
  .menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    padding: 8px 16px 16px;
    background: var(--leche);
    border-bottom: 1px solid var(--linea);
    box-shadow: 0 12px 24px rgba(43, 26, 18, .12);
  }
  .menu.abierto { display: flex; }
  .menu a { padding: 14px 0; border-bottom: 1px solid var(--linea); }
  .menu a:last-child { border-bottom: 0; }
  .boton-pedido { display: none; }
}

/* Portada: hormas rodando sobre el estante */

.portada {
  position: relative;
  background: var(--rojo);
  color: var(--leche);
  overflow: hidden;
  padding-top: clamp(40px, 7vw, 88px);
}

.portada__dentro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  align-items: end;
  gap: 32px;
}

.portada__texto { padding-bottom: clamp(32px, 4vw, 56px); }

.portada h1 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(2.6rem, 6.2vw, 5.4rem);
  line-height: 1;
  letter-spacing: -.01em;
  max-width: 11ch;
}

.portada__bajada {
  margin-top: 24px;
  max-width: 44ch;
  font-size: 1.15rem;
  line-height: 1.5;
}

.portada__acciones {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.portada__resenas {
  padding: 20px 0 28px;
  font-size: .95rem;
  color: rgba(255, 255, 255, .88);
}

.estante {
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  min-width: 0;
}

.horma {
  flex: none;
  border-radius: 50%;
  filter: drop-shadow(0 10px 8px rgba(43, 10, 10, .35));
  animation: rodar 1.5s cubic-bezier(.22, .75, .25, 1) both;
}

/* Anchos en % del estante: suman 112% y se solapan 12% */
.horma--holanda  { width: 36%; --giro: 340deg; animation-delay: .45s; }
.horma--amarilla { width: 29%; margin-left: -4%; --giro: 420deg; animation-delay: .3s; }
.horma--pategras { width: 25%; margin-left: -4%; --giro: 480deg; animation-delay: .15s; }
.horma--gouda    { width: 22%; margin-left: -4%; --giro: 540deg; animation-delay: 0s; }

@keyframes rodar {
  from { transform: translateX(70vw) rotate(var(--giro)); }
  to   { transform: translateX(0) rotate(0); }
}

.tabla {
  position: relative;
  height: 24px;
  background:
    linear-gradient(var(--madera-clara) 0 5px, var(--madera) 5px 17px, var(--madera-oscura) 17px);
  box-shadow: 0 12px 20px rgba(60, 10, 10, .35);
}

@media (max-width: 760px) {
  .portada__dentro { grid-template-columns: 1fr; gap: 8px; }
  .portada__texto { padding-bottom: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .horma { animation: none; }
  .contador.salta { animation: none; }
}

/* Encabezados de sección */

.cabeza {
  max-width: 62ch;
  margin-bottom: 40px;
}

.cabeza h2 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(2.2rem, 4.4vw, 3.4rem);
  color: var(--rojo);
}

.cabeza p {
  margin-top: 14px;
  font-size: 1.1rem;
  color: var(--tinta-suave);
}

/* Catálogo */

.catalogo { padding: clamp(56px, 8vw, 104px) 0; }

.filtros {
  position: sticky;
  top: var(--encabezado-alto);
  z-index: 20;
  display: flex;
  gap: 8px;
  padding: 12px 0;
  margin-bottom: 8px;
  background: var(--leche);
  overflow-x: auto;
  scrollbar-width: none;
}
.filtros::-webkit-scrollbar { display: none; }

.filtro {
  flex: none;
  min-height: 40px;
  padding: 8px 16px;
  border: 2px solid var(--linea);
  border-radius: 999px;
  background: var(--leche);
  color: var(--tinta);
  font: 600 .95rem var(--texto);
  cursor: pointer;
}
.filtro:hover { border-color: var(--tinta); }
.filtro[aria-pressed="true"] {
  background: var(--tinta);
  border-color: var(--tinta);
  color: var(--leche);
}

.grupo { padding-top: 40px; }
.grupo[hidden] { display: none; }

.grupo__titulo {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  padding-bottom: 16px;
  border-bottom: 3px solid var(--tinta);
}

.productos {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 460px), 1fr));
  column-gap: 56px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.producto {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 20px;
  padding: 24px 0;
  border-bottom: 1px solid var(--linea);
}

.producto__foto {
  width: 112px;
  height: 112px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--chapa);
  box-shadow: 0 0 0 4px var(--leche), 0 0 0 5px var(--linea);
  margin: 4px;
}

.producto__nombre {
  font-size: 1.25rem;
  font-weight: 700;
}

.producto__desc { margin-top: 4px; }

.producto__maridaje {
  margin-top: 6px;
  font-size: .95rem;
  color: var(--tinta-suave);
}
.producto__maridaje strong { color: var(--tinta); font-weight: 600; }

.producto__pedido {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 12px;
  margin-top: 14px;
}

.presentaciones {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 0;
  border: 0;
}

.presentaciones label { position: relative; cursor: pointer; }

.presentaciones input {
  position: absolute;
  opacity: 0;
  inset: 0;
  margin: 0;
  cursor: pointer;
}

.presentaciones span {
  display: inline-grid;
  place-items: center;
  min-height: 38px;
  padding: 6px 12px;
  border: 1.5px solid var(--linea);
  border-radius: 8px;
  font-size: .92rem;
  font-weight: 600;
  white-space: nowrap;
}
.presentaciones label:hover span { border-color: var(--tinta-suave); }
.presentaciones input:checked + span {
  border-color: var(--rojo);
  background: #fdeceb;
  color: var(--rojo-hondo);
}
.presentaciones input:focus-visible + span {
  outline: 3px solid var(--pasta);
  outline-offset: 2px;
}

.boton-agregar {
  min-height: 40px;
  padding: 8px 18px;
  border: 0;
  border-radius: 999px;
  background: var(--rojo);
  color: var(--leche);
  font: 600 .95rem var(--texto);
  cursor: pointer;
}
.boton-agregar:hover { background: var(--rojo-hondo); }

/* Compartir por WhatsApp */

.producto__cabeza {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.boton-compartir {
  flex: none;
  margin-top: -6px;
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1.5px solid var(--linea);
  border-radius: 50%;
  color: var(--verde-wa);
}
.boton-compartir:hover { border-color: var(--verde-wa); background: #e8f4ed; }

.boton-compartir-texto {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  min-height: 44px;
  padding: 8px 18px;
  border: 2px solid var(--verde-wa);
  border-radius: 999px;
  color: var(--verde-wa);
  font-weight: 600;
  text-decoration: none;
}
.boton-compartir-texto:hover { background: var(--verde-wa); color: var(--leche); }
.boton-compartir-texto[hidden] { display: none; }
.boton-compartir-texto--pedido {
  display: flex;
  justify-content: center;
  margin: 0 0 24px;
  font-size: .95rem;
  text-align: center;
}

/* Producto que llegó por un link compartido */
.producto.destacado { animation: resaltar 2.8s ease-out; }
@keyframes resaltar {
  0%, 35% { background: #fff1c7; box-shadow: 0 0 0 12px #fff1c7; }
  100% { background: transparent; box-shadow: 0 0 0 12px transparent; }
}
@media (prefers-reduced-motion: reduce) {
  .producto.destacado { animation: none; background: #fff1c7; box-shadow: 0 0 0 12px #fff1c7; }
}

@media (max-width: 520px) {
  .producto { grid-template-columns: 84px minmax(0, 1fr); gap: 14px; }
  .producto__foto { width: 80px; height: 80px; margin: 2px; }
  .producto__pedido { margin-left: -98px; }
}

/* Historia */

.historia {
  padding: clamp(56px, 8vw, 104px) 0;
  background: var(--chapa);
}

.historia__cuerpo {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 80px);
  align-items: start;
}

.linea-tiempo {
  margin: 0;
  padding: 0;
  list-style: none;
}

.linea-tiempo li {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 20px;
  padding: 28px 0;
  border-top: 2px solid var(--tinta);
}
.linea-tiempo li:last-child { border-bottom: 2px solid var(--tinta); }

.linea-tiempo__anio {
  font-family: var(--display);
  font-size: 2rem;
  line-height: 1;
  color: var(--rojo);
}

.linea-tiempo h3 { font-size: 1.25rem; font-weight: 700; }
.linea-tiempo p { margin-top: 8px; max-width: 52ch; }

.historia__fotos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 0;
}
.historia__fotos img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--radio);
}
.historia__fotos img:first-child {
  grid-column: 1 / -1;
  aspect-ratio: 16 / 10;
}
.historia__fotos figcaption {
  grid-column: 1 / -1;
  font-size: .92rem;
  color: var(--tinta-suave);
}

.proceso { margin-top: clamp(56px, 7vw, 88px); }

.proceso__titulo {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(1.5rem, 2.6vw, 2rem);
}

.proceso__pasos {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: paso;
}

.proceso__pasos li {
  counter-increment: paso;
  padding: 20px;
  background: var(--leche);
  border-top: 4px solid var(--rojo);
}
.proceso__pasos li::before {
  content: counter(paso);
  display: block;
  margin-bottom: 10px;
  font-family: var(--display);
  font-size: 1.6rem;
  line-height: 1;
  color: var(--rojo);
}
.proceso__pasos h4 { font-size: 1.05rem; font-weight: 700; }
.proceso__pasos p { margin-top: 6px; font-size: .95rem; color: var(--tinta-suave); }

.ambiente {
  margin-top: 48px;
  padding: clamp(24px, 4vw, 40px);
  background: var(--leche);
  border-left: 6px solid var(--verde-wa);
  max-width: 820px;
}
.ambiente h3 { font-size: 1.3rem; font-weight: 700; }
.ambiente p { margin-top: 10px; }

@media (max-width: 960px) {
  .proceso__pasos { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
}

@media (max-width: 760px) {
  .historia__cuerpo { grid-template-columns: 1fr; }
  .linea-tiempo li { grid-template-columns: 76px minmax(0, 1fr); gap: 14px; }
  .linea-tiempo__anio { font-size: 1.6rem; }
}

/* Mayoristas */

.mayoristas {
  padding: clamp(56px, 8vw, 104px) 0;
  background: var(--cera);
  color: var(--leche);
}

.mayoristas__dentro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 80px);
  align-items: start;
}

.mayoristas h2 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(2.2rem, 4.4vw, 3.4rem);
}

.mayoristas__texto > p { margin-top: 16px; font-size: 1.15rem; max-width: 40ch; }

.mayoristas__texto ul {
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}
.mayoristas__texto li {
  padding: 12px 0 12px 28px;
  border-top: 1px solid rgba(255, 255, 255, .2);
  position: relative;
}
.mayoristas__texto li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 19px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--pasta);
}
.mayoristas__texto img {
  margin-top: 32px;
  width: 200px;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--radio);
}

.tarjeta-form {
  padding: clamp(24px, 4vw, 36px);
  background: var(--leche);
  color: var(--tinta);
  border-radius: var(--radio);
}
.tarjeta-form h3 { font-size: 1.4rem; font-weight: 700; }
.tarjeta-form__nota { margin: 8px 0 20px; color: var(--tinta-suave); font-size: .95rem; }
.tarjeta-form .boton { margin-top: 8px; }

@media (max-width: 860px) {
  .mayoristas__dentro { grid-template-columns: 1fr; }
  .mayoristas__texto img { display: none; }
}

/* Campos de formulario */

.campo { margin: 0 0 16px; padding: 0; border: 0; }

.campo label,
.campo legend {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  font-size: .95rem;
}

.campo input,
.campo select,
.campo textarea {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  border: 1.5px solid #cfc5bc;
  border-radius: 8px;
  background: var(--leche);
  color: var(--tinta);
  font: 400 1rem var(--texto);
}
.campo textarea { resize: vertical; }
.campo input:focus,
.campo select:focus,
.campo textarea:focus {
  outline: none;
  border-color: var(--tinta);
  box-shadow: 0 0 0 3px var(--pasta);
}
.campo [aria-invalid="true"] { border-color: var(--rojo); }

.campos-dobles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 12px;
}
@media (max-width: 480px) { .campos-dobles { grid-template-columns: 1fr; } }

.opcional { font-weight: 400; color: var(--tinta-suave); }

.entrega .opcion {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 40px;
  font-weight: 500;
  cursor: pointer;
}
.entrega input { width: 20px; height: 20px; min-height: 0; accent-color: var(--rojo); }

.error {
  margin: 0 0 12px;
  padding: 10px 12px;
  border-radius: 8px;
  background: #fdeceb;
  color: var(--rojo-hondo);
  font-weight: 600;
  font-size: .95rem;
}
.error[hidden] { display: none; }

/* Sucursales */

.sucursales { padding: clamp(56px, 8vw, 104px) 0; }

.cabeza--con-foto {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  max-width: none;
}
.cabeza--con-foto > div { max-width: 56ch; }
.cabeza--con-foto img {
  width: 168px;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--radio);
}

.sucursales__cuerpo {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: 32px;
  align-items: stretch;
}

.lista-sucursales {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}

.sucursal {
  padding: 18px 20px;
  border: 2px solid var(--linea);
  border-radius: var(--radio);
}
.sucursal.activa { border-color: var(--rojo); }

.sucursal__ver {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  text-align: left;
  color: inherit;
  font: inherit;
  cursor: pointer;
}
.sucursal__nombre,
.sucursal__dato { display: block; }
.sucursal__nombre { font-size: 1.15rem; font-weight: 700; }
.sucursal.activa .sucursal__nombre { color: var(--rojo-hondo); }
.sucursal__dato { margin-top: 2px; color: var(--tinta-suave); }
.sucursal__dato--horario { font-size: .95rem; }

.sucursal__acciones {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 12px;
}
.sucursal__acciones a {
  font-weight: 600;
  font-size: .95rem;
  color: var(--rojo-hondo);
  text-underline-offset: 3px;
}

.mapa {
  min-height: 420px;
  border-radius: var(--radio);
  overflow: hidden;
  background: var(--chapa);
}
.mapa iframe { display: block; width: 100%; height: 100%; min-height: 420px; border: 0; }

@media (max-width: 860px) {
  .sucursales__cuerpo { grid-template-columns: 1fr; }
  .mapa, .mapa iframe { min-height: 320px; }
}
@media (max-width: 520px) {
  .cabeza--con-foto img { width: 96px; }
}

/* Pie */

.pie {
  background: var(--cera-honda);
  color: rgba(255, 255, 255, .82);
  padding: clamp(48px, 7vw, 80px) 0 24px;
  font-size: .98rem;
}
.pie a { color: var(--leche); text-underline-offset: 3px; }

.pie__dentro {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, .8fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: start;
}

.pie__marca img { width: 96px; height: 96px; }
.pie__lema {
  margin-top: 16px;
  max-width: 24ch;
  font-family: var(--display);
  font-size: 1.3rem;
  line-height: 1.2;
  color: var(--leche);
}
.pie__acciones {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
}
.pie__acciones .boton { min-height: 44px; padding: 10px 18px; font-size: .95rem; }

.pie__red {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1.5px solid rgba(255, 255, 255, .25);
  border-radius: 50%;
}
.pie__red:hover { border-color: var(--leche); background: rgba(255, 255, 255, .08); }

.pie__titulo {
  margin-bottom: 14px;
  font-size: .95rem;
  font-weight: 700;
  color: var(--pasta);
}

.pie__lista { margin: 0; padding: 0; list-style: none; }
.pie__lista li { padding: 6px 0; line-height: 1.4; }
.pie__lista strong { color: var(--leche); font-weight: 600; }
.pie__lista--enlaces a { text-decoration: none; }
.pie__lista--enlaces a:hover { text-decoration: underline; }

.pie__legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  margin-top: clamp(40px, 6vw, 64px);
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, .15);
  font-size: .9rem;
  color: rgba(255, 255, 255, .65);
}
.pie__legal a { color: rgba(255, 255, 255, .85); }

@media (max-width: 860px) {
  .pie__dentro { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pie__marca { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .pie__dentro { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 860px) {
  /* deja lugar para el botón flotante del pedido */
  .pie { padding-bottom: 96px; }
}

/* Botón flotante del pedido (celulares) */

.pedido-flotante {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 45;
  display: none;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 54px;
  border: 0;
  border-radius: 999px;
  background: var(--rojo);
  color: var(--leche);
  font: 700 1.05rem var(--texto);
  box-shadow: 0 10px 24px rgba(90, 14, 24, .35);
  cursor: pointer;
}
@media (max-width: 860px) {
  .pedido-flotante:not([hidden]) { display: flex; }
}

/* Panel del pedido */

.pedido {
  position: fixed;
  inset: 0;
  z-index: 60;
}
.pedido[hidden] { display: none; }

.pedido__fondo {
  position: absolute;
  inset: 0;
  background: rgba(43, 26, 18, .5);
  animation: aparecer .2s ease-out;
}

.pedido__panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(100%, 440px);
  display: flex;
  flex-direction: column;
  background: var(--leche);
  box-shadow: -12px 0 32px rgba(43, 26, 18, .2);
  animation: entrar .25s cubic-bezier(.2, .8, .3, 1);
}
.pedido__panel:focus { outline: none; }

@keyframes aparecer { from { opacity: 0; } }
@keyframes entrar { from { transform: translateX(100%); } }

@media (prefers-reduced-motion: reduce) {
  .pedido__fondo, .pedido__panel { animation: none; }
}

.pedido__cabeza {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--linea);
}
.pedido__cabeza h2 {
  font-family: var(--display);
  font-weight: 400;
  font-size: 1.6rem;
  color: var(--rojo);
}

.cerrar {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: var(--chapa);
  color: var(--tinta);
  cursor: pointer;
}
.cerrar:hover { background: var(--linea); }

.pedido__cuerpo {
  flex: 1;
  overflow-y: auto;
  padding: 8px 20px 24px;
}

.pedido__items { margin: 0 0 20px; padding: 0; list-style: none; }

.item {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--linea);
}
.item img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; }
.item__nombre { font-weight: 700; line-height: 1.25; }
.item__pres { font-size: .92rem; color: var(--tinta-suave); }
.item__quitar {
  margin-top: 2px;
  padding: 2px 0;
  border: 0;
  background: none;
  color: var(--tinta-suave);
  font: 500 .88rem var(--texto);
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}
.item__quitar:hover { color: var(--rojo-hondo); }

.cantidad {
  display: flex;
  align-items: center;
  border: 1.5px solid var(--linea);
  border-radius: 999px;
}
.cantidad button {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: none;
  color: var(--tinta);
  font: 700 1.15rem var(--texto);
  cursor: pointer;
}
.cantidad button:hover { background: var(--chapa); }
.cantidad output { min-width: 24px; text-align: center; font-weight: 700; }

.pedido__vacio { padding: 32px 0; text-align: center; }
.pedido__vacio p { margin-bottom: 16px; color: var(--tinta-suave); }
.pedido__vacio[hidden],
.pedido__form[hidden] { display: none; }

.pedido__aviso { margin-bottom: 14px; font-size: .92rem; color: var(--tinta-suave); }

/* Aviso al agregar */

.aviso {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 70;
  width: max-content;
  max-width: calc(100% - 32px);
  text-align: center;
  padding: 12px 20px;
  border-radius: 999px;
  background: var(--tinta);
  color: var(--leche);
  font-weight: 600;
  transform: translate(-50%, 24px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s, transform .2s;
}
.aviso.visible { opacity: 1; transform: translate(-50%, 0); }
@media (max-width: 860px) {
  .aviso { bottom: 84px; }
}
