/* ==========================================================
   IDENTIDAD — tokens de marca (los hereda la app de ventas).
   Ver docs/identidad.md
   ========================================================== */
:root {
  --amarillo: #F5B323;       /* fondo principal del volante */
  --amarillo-claro: #FFE7A8;
  --rojo: #D62B1F;           /* logo, franjas, botones de acción */
  --rojo-oscuro: #A81E14;
  --negro: #1E1A17;          /* texto y franja diagonal */
  --crema: #FFF8E7;          /* fondos neutros */
  --blanco: #FFFFFF;
  --rosado: #F7C4BC;         /* acento del cerdo */

  --fuente-titulos: "Bree Serif", "Rockwell", Georgia, serif;
  --fuente-texto: "Nunito", "Trebuchet MS", system-ui, sans-serif;

  --radio: 18px;
  --radio-chico: 10px;
  --sombra: 0 6px 0 var(--negro);
  --ancho: 1100px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  font-family: var(--fuente-texto);
  font-size: 1.0625rem;
  line-height: 1.5;
  color: var(--negro);
  background: var(--crema);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
h1, h2, h3 { font-family: var(--fuente-titulos); font-weight: 400; line-height: 1.1; margin: 0; }
p { margin: 0; }
a { color: inherit; }

.contenedor { width: 100%; max-width: var(--ancho); margin: 0 auto; padding: 0 16px; }
.contenedor--angosto { max-width: 620px; }

/* ---------- Botones ---------- */
.boton {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 52px; padding: .75rem 1.4rem;
  border: 3px solid var(--negro); border-radius: 999px;
  font: 800 1.05rem/1 var(--fuente-texto);
  text-decoration: none; cursor: pointer;
  box-shadow: 0 4px 0 var(--negro);
  transition: transform .1s, box-shadow .1s;
}
.boton:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--negro); }
.boton--rojo { background: var(--rojo); color: var(--blanco); }
.boton--negro { background: var(--negro); color: var(--amarillo); }
.boton--chico { min-height: 42px; padding: .5rem 1rem; font-size: .95rem; box-shadow: 0 3px 0 var(--negro); }
.boton--ancho { width: 100%; }
.boton:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, button:focus-visible {
  outline: 3px solid var(--rojo); outline-offset: 3px;
}

/* ---------- Barra superior ---------- */
.barra {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 12px;
  padding: 10px 16px;
  background: var(--negro); color: var(--blanco);
}
.barra__marca { display: flex; align-items: center; gap: 10px; text-decoration: none; margin-right: auto; }
.barra__marca span { font-family: var(--fuente-titulos); font-size: 1.15rem; line-height: 1; }
.barra__marca em { font-style: normal; color: var(--amarillo); }
.barra__nav { display: none; gap: 24px; font-weight: 700; }
.barra__nav a { text-decoration: none; }
.barra__nav a:hover { color: var(--amarillo); }
.barra .boton { border-color: var(--amarillo); box-shadow: none; }

/* ---------- Portada ---------- */
.portada {
  position: relative; overflow: hidden;
  background: var(--amarillo);
  padding: 20px 0 40px;
}
.portada__franja {
  position: absolute; inset: 0 0 auto 0; height: 140px;
  background: var(--negro);
  clip-path: polygon(0 0, 100% 0, 100% 15%, 0 100%);
}
.portada__grid { position: relative; display: grid; gap: 20px; justify-items: center; text-align: center; }
.portada__logo { width: min(56vw, 220px); height: auto; filter: drop-shadow(0 8px 0 rgba(30,26,23,.25)); }
.etiqueta {
  display: inline-block; margin-bottom: 12px; padding: 4px 12px;
  background: var(--negro); color: var(--amarillo);
  border-radius: 999px; font-weight: 800; font-size: .85rem; letter-spacing: .04em; text-transform: uppercase;
}
.portada__lema { font-size: clamp(1.7rem, 7vw, 3.4rem); }
.portada__precio { margin-top: 14px; font-size: 1.15rem; font-weight: 700; }
.portada__precio strong {
  display: block; font-family: var(--fuente-titulos); font-weight: 400;
  font-size: clamp(2.8rem, 13vw, 5rem); line-height: 1; color: var(--rojo);
  text-shadow: 2px 2px 0 var(--negro);
}
.portada__acciones { display: flex; flex-direction: column; gap: 12px; margin-top: 18px; width: 100%; }

/* ---------- Títulos de sección ---------- */
.titulo { font-size: clamp(2rem, 8vw, 2.8rem); text-align: center; }
.titulo--claro { color: var(--blanco); }
.subtitulo { text-align: center; margin: 8px auto 24px; max-width: 32rem; }

/* ---------- Productos ---------- */
.productos { background: var(--rojo); padding: 48px 0; }
.productos__lista { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 16px; }
.producto {
  display: grid; grid-template-columns: 64px 1fr; column-gap: 14px; align-items: center;
  background: var(--crema); border: 3px solid var(--negro); border-radius: var(--radio);
  box-shadow: var(--sombra); padding: 16px;
}
.producto__icono { grid-row: span 3; width: 64px; height: 64px; color: var(--negro); }
.producto h3 { font-size: 1.5rem; }
.producto p { font-size: .95rem; }
.producto__precio { margin-top: 4px; font-weight: 800; color: var(--rojo); }
.producto--destacado { background: var(--amarillo); }
.producto--destacado .producto__precio { font-family: var(--fuente-titulos); font-weight: 400; font-size: 1.6rem; }

/* ---------- Sedes ---------- */
.sedes { padding: 48px 0; }
.sedes__lista { display: grid; gap: 16px; }
.sede {
  background: var(--blanco); border: 3px solid var(--negro); border-radius: var(--radio);
  box-shadow: var(--sombra); overflow: hidden;
}
.sede__mapa { display: block; width: 100%; height: 220px; border: 0; border-bottom: 3px solid var(--negro); }
.sede__info { padding: 16px; display: grid; gap: 6px; }
.sede h3 { font-size: 1.6rem; color: var(--rojo); }
.sede__dir { font-weight: 800; font-size: 1.1rem; }
.sede__acciones { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.sede--pronto { padding: 16px; display: grid; gap: 6px; background: var(--crema); border-style: dashed; box-shadow: none; }
.sede--pronto h3 { color: var(--negro); }
.sede--pronto .sede__dir { color: #6b625b; font-weight: 700; }
.sede__pronto {
  justify-self: start; padding: 2px 10px; border-radius: 999px;
  background: var(--amarillo); font-weight: 800; font-size: .8rem; text-transform: uppercase; letter-spacing: .05em;
}

/* ---------- Formularios ---------- */
.formulario-seccion { padding: 48px 0; }
.formulario-seccion--amarillo { background: var(--amarillo); }
.tarjeta-form {
  display: grid; gap: 14px;
  background: var(--blanco); border: 3px solid var(--negro); border-radius: var(--radio);
  box-shadow: var(--sombra); padding: 18px;
}
.tarjeta-form fieldset { border: 0; margin: 0; padding: 0; }
.tarjeta-form legend { font-family: var(--fuente-titulos); font-size: 1.3rem; margin-bottom: 8px; }
.tarjeta-form label { display: grid; gap: 4px; font-weight: 700; font-size: .95rem; }
.tarjeta-form input, .tarjeta-form select, .tarjeta-form textarea {
  width: 100%; min-height: 48px; padding: 10px 12px;
  font: 400 1rem var(--fuente-texto); color: var(--negro);
  background: var(--crema); border: 2px solid var(--negro); border-radius: var(--radio-chico);
}
.tarjeta-form textarea { resize: vertical; }
.cantidades { display: grid; gap: 8px; }
.cantidad {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 8px 10px; background: var(--crema); border-radius: var(--radio-chico);
}
.cantidad__nombre { font-weight: 800; display: grid; }
.cantidad__nombre small { font-weight: 600; color: var(--rojo); }
.cantidad__control { display: flex; align-items: center; gap: 4px; }
.cantidad__control button {
  width: 40px; height: 40px; border-radius: 50%;
  border: 2px solid var(--negro); background: var(--amarillo);
  font: 800 1.3rem/1 var(--fuente-texto); color: var(--negro); cursor: pointer;
}
.tarjeta-form .cantidad__control input {
  width: 48px; min-height: 40px; padding: 4px; text-align: center; font-weight: 800;
  background: var(--blanco); -moz-appearance: textfield;
}
.cantidad__control input::-webkit-outer-spin-button,
.cantidad__control input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.form-error { color: var(--rojo-oscuro); font-weight: 800; }

/* ---------- Pie ---------- */
.pie { background: var(--negro); color: var(--crema); padding: 32px 0 96px; }
.pie__grid { display: flex; align-items: center; gap: 16px; }
.pie__nombre { font-family: var(--fuente-titulos); font-size: 1.3rem; color: var(--amarillo); }
.pie a { color: var(--amarillo); font-weight: 800; }

/* ---------- Botón flotante WhatsApp ---------- */
.flotante {
  position: fixed; right: 16px; bottom: 16px; z-index: 30;
  display: grid; place-items: center; width: 60px; height: 60px; border-radius: 50%;
  background: #25D366; color: var(--blanco);
  border: 3px solid var(--negro); box-shadow: 0 4px 0 var(--negro);
}

/* ---------- Pantallas grandes ---------- */
@media (min-width: 720px) {
  .barra { padding: 12px 32px; }
  .barra__nav { display: flex; }
  .portada { padding: 56px 0 72px; }
  .portada__franja { height: 220px; }
  .portada__acciones { flex-direction: row; width: auto; }
  .productos__lista { grid-template-columns: repeat(3, 1fr); }
  .producto { grid-template-columns: 1fr; text-align: center; justify-items: center; row-gap: 6px; padding: 24px 18px; }
  .producto__icono { grid-row: auto; width: 84px; height: 84px; }
  .sedes__lista { grid-template-columns: repeat(3, 1fr); align-items: start; }
  .tarjeta-form { padding: 28px; }
}
@media (min-width: 960px) {
  .portada__grid { grid-template-columns: 1fr 1.2fr; text-align: left; justify-items: start; align-items: center; gap: 48px; }
  .portada__logo { width: 380px; justify-self: center; }
  .portada__franja { height: 100%; clip-path: polygon(0 0, 55% 0, 0 85%); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
