/*
 * El sitio de La Kollita.
 *
 * Los colores son los de su letrero: fondo verde oscuro con hojas, y el
 * rojo, amarillo y verde del logo. El amarillo es para lo que se toca; el
 * rojo, solo para llamar la atención.
 */
:root {
  --verde-profundo: #013e03;
  --verde-oscuro: #0a4c04;
  --verde: #0e6b12;
  --verde-claro: #4a9c0a;
  --verde-logo: #09b305;
  --amarillo: #f9da07;
  --rojo: #e20606;
  --crema: #f7f6ee;
  --tinta: #132312;
  --tinta-suave: #4b5a49;
  --whatsapp: #1faa53;
  --radio: 18px;
  --ancho: 1120px;
  /* Las hojas del letrero, dibujadas: no hace falta ninguna imagen. */
  --hojas: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220' viewBox='0 0 220 220'%3E%3Cg fill='%23ffffff' fill-opacity='.045'%3E%3Cpath d='M30 60c20-28 52-30 70-12-6 26-34 40-70 12z'/%3E%3Cpath d='M150 30c26 6 38 30 28 54-26 2-44-22-28-54z'/%3E%3Cpath d='M120 150c22-24 54-20 68 0-10 24-42 30-68 0z'/%3E%3Cpath d='M20 160c8-24 32-34 54-22 0 26-26 42-54 22z'/%3E%3C/g%3E%3C/svg%3E");
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  margin: 0;
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  color: var(--tinta);
  background: var(--verde-profundo);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

h1, h2, h3 { line-height: 1.15; margin: 0; text-wrap: balance; }
h2 {
  font-size: clamp(1.7rem, 4vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.01em;
}
p { margin: 0; }

.oculto, .saltar:not(:focus) {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap;
}
.saltar:focus {
  position: fixed; top: 8px; left: 8px; z-index: 100;
  background: var(--amarillo); color: var(--tinta);
  padding: 10px 16px; border-radius: 10px; font-weight: 700;
}

:focus-visible { outline: 3px solid var(--amarillo); outline-offset: 3px; }

/* ------------------------------------------------------------- Botones */

.boton {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px;
  border: 0; border-radius: 999px;
  font: inherit; font-weight: 700; text-decoration: none; cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease;
}
.boton:hover { transform: translateY(-2px); }
.boton:active { transform: translateY(0); }
.boton svg { width: 22px; height: 22px; fill: currentColor; flex: none; }
.boton--chico { min-height: 42px; padding: 0 18px; font-size: .95rem; }
.boton--whatsapp { background: var(--whatsapp); color: #fff; box-shadow: 0 10px 24px -10px rgba(31,170,83,.9); }
.boton--whatsapp:hover { background: #17964a; }
.boton--claro { background: rgba(255,255,255,.12); color: #fff; box-shadow: inset 0 0 0 2px rgba(255,255,255,.35); }
.boton--claro:hover { background: rgba(255,255,255,.2); }
.boton--oscuro { background: var(--verde-oscuro); color: #fff; }
.boton--oscuro:hover { background: var(--verde); }

/* --------------------------------------------------------------- Barra */

.barra {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 20px;
  padding: 10px clamp(16px, 4vw, 40px);
  background: rgba(1, 62, 3, .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.barra__marca img { height: 34px; width: auto; }
.barra__enlaces { display: flex; gap: 6px; margin-left: auto; }
.barra__enlaces a {
  padding: 8px 14px; border-radius: 999px;
  color: #e9f3e6; text-decoration: none; font-weight: 600; font-size: .97rem;
}
.barra__enlaces a:hover { background: rgba(255,255,255,.12); color: #fff; }

/* -------------------------------------------------------------- Portada */

.portada {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr);
  align-items: center; gap: clamp(20px, 5vw, 60px);
  padding: clamp(40px, 8vw, 96px) clamp(16px, 4vw, 40px) clamp(56px, 9vw, 110px);
  max-width: calc(var(--ancho) + 80px); margin: 0 auto;
  color: #fff;
}
/* El fondo va en el body para que llegue de lado a lado. */
body { background-image: var(--hojas), radial-gradient(1200px 700px at 50% 0, var(--verde-claro) 0, var(--verde-oscuro) 45%, var(--verde-profundo) 100%); background-attachment: scroll, fixed; background-repeat: repeat, no-repeat; }

.portada__antetitulo {
  display: inline-block;
  font-weight: 900; font-size: clamp(1.1rem, 3.2vw, 1.9rem);
  letter-spacing: .06em; text-transform: uppercase;
  color: var(--amarillo);
  text-shadow: 0 3px 0 rgba(0,0,0,.35);
}
.portada h1 { margin: 10px 0 4px; }
.portada h1 img { width: min(100%, 640px); filter: drop-shadow(0 12px 18px rgba(0,0,0,.35)); }
.portada__lema {
  font-size: clamp(1rem, 2.4vw, 1.25rem); font-weight: 700;
  letter-spacing: .32em; text-transform: uppercase; color: #dff5d6;
}
.portada__bajada { max-width: 34em; margin-top: 22px; font-size: 1.12rem; color: #e6f2e2; }
.portada__botones { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

.portada__figura { display: grid; place-items: center; }
.portada__sello {
  width: min(100%, 340px); aspect-ratio: 1;
  display: grid; place-items: center;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 35%, #fff 0, #f3f7ec 60%, #dfe9d3 100%);
  box-shadow: 0 0 0 10px rgba(249,218,7,.9), 0 0 0 16px rgba(255,255,255,.14), 0 40px 60px -24px rgba(0,0,0,.6);
  animation: flotar 6s ease-in-out infinite;
}
.portada__sello img { width: 66%; image-rendering: auto; }
@keyframes flotar { 50% { transform: translateY(-10px); } }

/* -------------------------------------------------------------- Franjas */

.franja { padding: clamp(48px, 8vw, 88px) clamp(16px, 4vw, 40px); color: #fff; }
.franja > * { max-width: var(--ancho); margin-left: auto; margin-right: auto; }
.franja__cabecera { text-align: center; margin-bottom: clamp(26px, 5vw, 44px); }
.franja__bajada { max-width: 38em; margin: 14px auto 0; color: #d9ead4; }
.rotulo {
  display: inline-block; margin-bottom: 12px; padding: 5px 14px;
  border-radius: 999px; background: rgba(249,218,7,.16); color: var(--amarillo);
  font-size: .82rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase;
}

.franja--clara {
  background: var(--crema); color: var(--tinta);
  border-radius: clamp(24px, 5vw, 48px);
  margin: 0 clamp(8px, 2vw, 24px);
}
.franja--clara .franja__bajada { color: var(--tinta-suave); }
.franja--clara .rotulo { background: rgba(14,107,18,.12); color: var(--verde); }

/* ---------------------------------------------------------- Variedades */

.variedades {
  list-style: none; padding: 0; margin: 0 auto;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px;
}
.variedad {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  padding: 18px 12px; text-align: center;
  border-radius: var(--radio);
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.1);
}
.variedad__punto {
  width: 62px; height: 62px; border-radius: 50%;
  background: var(--color, var(--verde-logo));
  box-shadow: inset 0 -8px 14px rgba(0,0,0,.22), 0 0 0 4px rgba(255,255,255,.14);
  display: grid; place-items: center;
}
.variedad__punto::after {
  /* La hojita del sello. */
  content: ""; width: 26px; height: 26px;
  background: rgba(255,255,255,.9);
  -webkit-mask: var(--hoja) center / contain no-repeat; mask: var(--hoja) center / contain no-repeat;
  --hoja: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 20C4 10 10 4 20 4c0 10-6 16-16 16zm2.500-2.500C8 13 11 10 15 8'/%3E%3C/svg%3E");
}
.variedad__nombre { font-weight: 700; line-height: 1.2; }
.variedad__tipo { font-size: .8rem; color: #cfe6c8; letter-spacing: .04em; text-transform: uppercase; }

/* ----------------------------------------------------------- Productos */

.buscador { display: flex; justify-content: center; margin-bottom: 16px; }
.buscador input {
  width: min(100%, 460px); min-height: 50px; padding: 0 22px;
  border: 2px solid #d8dccb; border-radius: 999px; background: #fff;
  font: inherit; color: var(--tinta);
}
.buscador input:focus { border-color: var(--verde); outline: none; box-shadow: 0 0 0 4px rgba(14,107,18,.16); }

.categorias { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 26px; }
.categoria {
  min-height: 40px; padding: 0 16px; border-radius: 999px;
  border: 2px solid #d8dccb; background: #fff; color: var(--tinta);
  font: inherit; font-size: .93rem; font-weight: 600; cursor: pointer;
}
.categoria:hover { border-color: var(--verde); }
.categoria[aria-selected="true"] { background: var(--verde-oscuro); border-color: var(--verde-oscuro); color: #fff; }

.estado { text-align: center; color: var(--tinta-suave); padding: 12px 0; }
.estado:empty { display: none; }

.productos {
  list-style: none; padding: 0; margin: 0 auto;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 16px;
}
.producto {
  display: flex; flex-direction: column;
  background: #fff; border-radius: var(--radio); overflow: hidden;
  border: 1px solid #e6e8dc;
  transition: transform .18s ease, box-shadow .18s ease;
}
.producto:hover { transform: translateY(-4px); box-shadow: 0 18px 30px -18px rgba(10,76,4,.45); }
.producto__foto {
  aspect-ratio: 1; background: #f1f3ea; display: grid; place-items: center;
}
.producto__foto img { width: 100%; height: 100%; object-fit: contain; padding: 10px; }
.producto__sin-foto { font-size: 2.4rem; opacity: .35; }
.producto__cuerpo { display: flex; flex-direction: column; gap: 6px; padding: 14px 14px 16px; flex: 1; }
.producto__nombre { font-weight: 700; line-height: 1.25; font-size: .98rem; }
.producto__categoria { font-size: .78rem; color: var(--tinta-suave); text-transform: uppercase; letter-spacing: .05em; }
.producto__pie { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 8px; }
.producto__precio { font-size: 1.18rem; font-weight: 800; color: var(--verde-oscuro); white-space: nowrap; }
.producto__pedir {
  display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px;
  border-radius: 999px; background: var(--amarillo); color: var(--tinta);
  font-size: .86rem; font-weight: 800; text-decoration: none;
}
.producto__pedir:hover { background: #ffe53b; }
.ver-mas { display: flex; justify-content: center; margin-top: 26px; }

/* ---------------------------------------------------------- Sucursales */

.sucursales {
  list-style: none; padding: 0; margin: 0 auto;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px;
}
.sucursal {
  display: block; height: 100%; padding: 20px 22px; text-decoration: none;
  border-radius: var(--radio);
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.1);
  transition: background-color .15s ease, transform .15s ease;
}
.sucursal:hover { background: rgba(255,255,255,.13); transform: translateY(-3px); }
.sucursal__nombre { font-weight: 800; font-size: 1.1rem; }
.sucursal__direccion { margin-top: 6px; color: #d9ead4; }
.sucursal__mapa { display: inline-block; margin-top: 12px; color: var(--amarillo); font-weight: 700; font-size: .92rem; }

/* ------------------------------------------------------------ Contacto */

.franja--contacto { text-align: center; }
.contacto { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.contacto .boton { font-size: 1.15rem; min-height: 60px; padding: 0 30px; }
.contacto__direccion { margin-top: 26px; color: #e6f2e2; }
.contacto__redes { margin-top: 12px; }
.contacto__redes a { color: var(--amarillo); font-weight: 700; }

/* ----------------------------------------------------------------- Pie */

.pie {
  padding: 34px clamp(16px, 4vw, 40px) 44px; text-align: center;
  color: #bcd3b6; font-size: .92rem;
  border-top: 1px solid rgba(255,255,255,.08);
  background: rgba(0,0,0,.18);
}
.pie p + p { margin-top: 8px; }
.pie__aviso { color: #fff; font-weight: 600; }
.pie__credito a { color: #fff; }

/* ------------------------------------------------------- Mayoría de edad */

.edad {
  position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 20px;
  background: rgba(1, 30, 2, .88); backdrop-filter: blur(6px);
}
.edad[hidden] { display: none; }
.edad__caja {
  width: min(100%, 440px); padding: 34px 28px; text-align: center;
  border-radius: 26px; color: #fff;
  background: var(--hojas), linear-gradient(180deg, var(--verde) 0, var(--verde-profundo) 100%);
  box-shadow: 0 30px 80px -20px #000, 0 0 0 1px rgba(255,255,255,.12);
}
.edad__caja img { width: 80%; margin: 0 auto 22px; }
.edad__caja h2 { font-size: 1.6rem; }
.edad__caja p { margin-top: 10px; color: #dcecd7; }
.edad__botones { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 24px; }

/* ------------------------------------------------------------ Teléfono */

@media (max-width: 820px) {
  .barra__enlaces { display: none; }
  .barra .boton { margin-left: auto; }
  .portada { grid-template-columns: 1fr; text-align: center; }
  .portada__figura { order: -1; }
  .portada__sello { width: min(62vw, 240px); }
  .portada__bajada { margin-left: auto; margin-right: auto; }
  .portada__botones { justify-content: center; }
  .portada__lema { letter-spacing: .2em; }
  .productos { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .producto__pie { flex-direction: column; align-items: stretch; }
  .producto__pedir { justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .portada__sello { animation: none; }
  .boton, .producto, .sucursal { transition: none; }
}
