:root {
  color-scheme: only light;
  --verde: #1f3a2b;
  --verde-2: #2c4f3b;
  --naranja: #ee6a1f;
  --naranja-2: #d55a12;
  --crema: #f6f0e3;
  --crema-2: #ece3cf;
  --tinta: #1d2a22;
  --gris: #5d6a61;
  --morado: #6b3a8c;
  --dorado: #c8961c;
  --wa: #1fa855;
  --radio: 18px;
  --sombra: 0 10px 30px rgba(31, 58, 43, .12);
  --font: "Montserrat", system-ui, sans-serif;
  --script: "Kaushan Script", cursive;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); color: var(--tinta); background: var(--crema); line-height: 1.5; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; }
svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
h1, h2, h3 { line-height: 1.1; margin: 0; letter-spacing: -.01em; }
.script { font-family: var(--script); color: var(--naranja); font-size: 1.35rem; margin: 0; }

/* Botones */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .55rem; padding: .95rem 1.4rem; border-radius: 999px; border: 0; font: 700 1rem var(--font); text-decoration: none; cursor: pointer; transition: transform .15s, background .15s, box-shadow .15s; }
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--naranja); color: #fff; box-shadow: 0 6px 18px rgba(238, 106, 31, .35); }
.btn-primary:hover { background: var(--naranja-2); }
.btn-ghost { background: transparent; color: var(--verde); box-shadow: inset 0 0 0 2px var(--verde); }
.btn-ghost:hover { background: var(--verde); color: var(--crema); }
.btn-wa { background: var(--wa); color: #fff; }
.btn-wa:hover { background: #178a45; }
.btn-wa svg { width: 22px; height: 22px; }
.btn-full { width: 100%; }
.btn:disabled { opacity: .45; cursor: not-allowed; box-shadow: none; }

/* Encabezado */
.top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; padding: .6rem 16px; background: rgba(246, 240, 227, .92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--crema-2); }
.marca { display: flex; align-items: center; gap: .6rem; text-decoration: none; }
.marca img { width: 44px; height: 44px; border-radius: 50%; }
.marca span { font-weight: 900; font-size: 1.35rem; letter-spacing: .02em; }
.marca b { color: var(--verde); }
.marca em { color: var(--naranja); font-style: normal; }
.cart-btn { position: relative; display: flex; align-items: center; gap: .45rem; padding: .6rem 1rem; border: 0; border-radius: 999px; background: var(--verde); color: var(--crema); font: 700 .95rem var(--font); cursor: pointer; }
.badge { position: absolute; top: -6px; right: -6px; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: var(--naranja); color: #fff; font-size: .75rem; display: grid; place-items: center; }
.badge.pop { animation: pop .35s; }
@keyframes pop { 50% { transform: scale(1.35); } }

/* Hero */
.hero { display: grid; gap: 2rem; padding: 2.5rem 16px 2rem; max-width: 1180px; margin: 0 auto; align-items: center; }
.eyebrow { margin: 0 0 .8rem; font-weight: 700; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gris); }
.hero h1 { font-size: clamp(2.3rem, 7vw, 4rem); font-weight: 900; color: var(--verde); }
.hero h1 span { color: var(--naranja); }
.hero-sub { font-size: 1.08rem; color: var(--gris); max-width: 34rem; margin: 1rem 0 1.6rem; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: .75rem; }
.hero .script { margin-top: 1.5rem; font-size: 1.6rem; }
/* Los anuncios del cliente ya traen logo y textos: se muestran completos, sin recortar. */
.hero-img img { border-radius: 28px; box-shadow: var(--sombra); width: 100%; height: auto; max-width: 480px; margin: 0 auto; }

/* Beneficios */
.beneficios { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--verde-2); color: var(--crema); }
.beneficios div { display: flex; align-items: center; justify-content: center; gap: .6rem; padding: 1.1rem .6rem; background: var(--verde); font-weight: 700; font-size: .9rem; text-align: left; }
.beneficios svg { color: var(--naranja); width: 26px; height: 26px; }

/* Menú */
.menu { max-width: 1180px; margin: 0 auto; padding: 3.5rem 16px 2rem; }
.seccion-titulo { text-align: center; margin-bottom: 1.6rem; }
.seccion-titulo h2 { font-size: clamp(1.9rem, 5vw, 2.6rem); font-weight: 900; color: var(--verde); }
.seccion-titulo p:last-child { color: var(--gris); margin: .6rem 0 0; }
.filtros { display: flex; gap: .5rem; overflow-x: auto; padding: .2rem 0 1rem; scrollbar-width: none; justify-content: flex-start; }
.filtros::-webkit-scrollbar { display: none; }
.filtros button { flex: none; padding: .55rem 1.1rem; border-radius: 999px; border: 0; background: #fff; color: var(--verde); font: 700 .9rem var(--font); cursor: pointer; box-shadow: inset 0 0 0 1.5px var(--crema-2); }
.filtros button[aria-pressed="true"] { background: var(--verde); color: var(--crema); box-shadow: none; }

.grid { display: grid; gap: 1.1rem; grid-template-columns: 1fr; }
.card { --acento: var(--verde); display: flex; flex-direction: column; background: #fff; border-radius: var(--radio); overflow: hidden; box-shadow: var(--sombra); border-top: 5px solid var(--acento); }
.card[data-linea="equino"] { --acento: var(--morado); }
.card[data-linea="pollo"] { --acento: var(--dorado); }
.card[data-linea="mixto"] { --acento: var(--naranja); }
.card[data-linea="aceite"] { --acento: #d9822b; }
.card-img { aspect-ratio: 4 / 5; background: #f4efe3; overflow: hidden; }
/* Etiquetas del cliente: se muestran completas, sin recortar. */
.card-img img { width: 100%; height: 100%; object-fit: contain; }
.card-img.sin-foto { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1rem; padding: 1.5rem; background: radial-gradient(circle at 50% 35%, #fff, #f4efe3 70%); color: var(--verde); }
.card-img.sin-foto img { width: 52%; height: auto; border-radius: 50%; box-shadow: var(--sombra); }
.card-img.sin-foto span { font-weight: 900; font-size: 1.35rem; text-align: center; line-height: 1.15; }
.card-img.sin-foto small { display: block; font-family: var(--script); font-weight: 400; color: var(--naranja); font-size: 1.1rem; margin-top: .4rem; }
.card-body { padding: 1.1rem 1.1rem 1.2rem; display: flex; flex-direction: column; gap: .7rem; flex: 1; }
.card h3 { font-size: 1.15rem; font-weight: 800; color: var(--verde); }
.card p { margin: 0; color: var(--gris); font-size: .92rem; }
.variantes { display: flex; flex-wrap: wrap; gap: .4rem; }
.variantes button { padding: .4rem .85rem; border-radius: 999px; border: 0; background: var(--crema); color: var(--tinta); font: 700 .85rem var(--font); cursor: pointer; }
.variantes button[aria-pressed="true"] { background: var(--acento); color: #fff; }
.card-pie { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: .6rem; }
.precio { font-size: 1.5rem; font-weight: 900; color: var(--tinta); }
.precio small { font-size: .8rem; font-weight: 600; color: var(--gris); }
.agregar { padding: .7rem 1.1rem; border-radius: 999px; border: 0; background: var(--naranja); color: #fff; font: 700 .92rem var(--font); cursor: pointer; display: inline-flex; align-items: center; gap: .3rem; }
.agregar:hover { background: var(--naranja-2); }
.stepper { display: inline-flex; align-items: center; background: var(--verde); border-radius: 999px; color: #fff; }
.stepper button { width: 40px; height: 40px; border: 0; background: none; color: inherit; font: 700 1.2rem var(--font); cursor: pointer; }
.stepper output { min-width: 1.6rem; text-align: center; font-weight: 800; }

/* Asesoría */
.asesoria { display: grid; gap: 1.6rem; max-width: 1180px; margin: 2rem auto; padding: 0 16px; align-items: center; }
.asesoria-img img { border-radius: 28px; box-shadow: var(--sombra); width: 100%; height: auto; max-width: 480px; margin: 0 auto; }
.asesoria h2 { font-size: clamp(1.7rem, 4.5vw, 2.3rem); font-weight: 900; color: var(--verde); }
.asesoria p { color: var(--gris); font-size: 1.05rem; margin: 1rem 0 1.5rem; }

/* Pasos */
.pasos { background: var(--verde); color: var(--crema); padding: 3rem 16px; text-align: center; margin-top: 3rem; }
.pasos h2 { font-size: clamp(1.6rem, 4vw, 2.1rem); font-weight: 900; margin-bottom: 1.6rem; }
.pasos ol { list-style: none; margin: 0 auto; padding: 0; display: grid; gap: 1rem; max-width: 980px; }
.pasos li { display: flex; align-items: center; gap: .9rem; text-align: left; background: var(--verde-2); padding: 1rem 1.1rem; border-radius: var(--radio); font-weight: 600; }
.pasos b { flex: none; width: 40px; height: 40px; border-radius: 50%; background: var(--naranja); color: #fff; display: grid; place-items: center; font-weight: 900; }

/* Pie */
.pie { display: grid; justify-items: center; gap: 1rem; text-align: center; padding: 3rem 16px 7rem; color: var(--gris); }
.pie img { width: 120px; height: 120px; border-radius: 50%; }
.pie p { margin: .2rem 0; }
.pie-lema { font-family: var(--script); color: var(--verde); font-size: 1.5rem; }
.pie a { color: var(--verde); font-weight: 700; }
.creditos { font-size: .8rem; }

/* Barra de pedido */
.barra-pedido { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 30; display: flex; justify-content: space-between; align-items: center; padding: 1rem 1.3rem; border: 0; border-radius: 999px; background: var(--verde); color: #fff; font: 700 1rem var(--font); box-shadow: 0 12px 30px rgba(0, 0, 0, .25); cursor: pointer; max-width: 560px; margin: 0 auto; }
.barra-pedido b { background: var(--naranja); padding: .35rem .8rem; border-radius: 999px; }

/* Carrito */
.overlay { position: fixed; inset: 0; background: rgba(15, 25, 19, .5); z-index: 40; }
.carrito { position: fixed; top: 0; right: 0; bottom: 0; z-index: 50; width: min(440px, 100%); display: flex; flex-direction: column; background: var(--crema); transform: translateX(100%); transition: transform .28s ease; box-shadow: -10px 0 40px rgba(0, 0, 0, .2); }
.carrito.abierto { transform: none; }
.carrito-head { display: flex; justify-content: space-between; align-items: center; padding: 1rem 16px; background: var(--verde); color: var(--crema); }
.carrito-head h2 { font-size: 1.3rem; font-weight: 800; }
.cerrar { width: 40px; height: 40px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .12); color: inherit; font-size: 1.6rem; cursor: pointer; line-height: 1; }
.carrito-body { flex: 1; overflow-y: auto; padding: 1rem 16px; }
.items { list-style: none; margin: 0 0 1rem; padding: 0; display: grid; gap: .6rem; }
.items li { display: grid; grid-template-columns: 1fr auto; gap: .3rem .8rem; align-items: center; background: #fff; padding: .8rem .9rem; border-radius: 14px; }
.items .nom { font-weight: 700; font-size: .95rem; }
.items .nom small { display: block; color: var(--gris); font-weight: 600; }
.items .sub { font-weight: 800; text-align: right; }
.items .stepper { grid-column: 1 / -1; justify-self: start; transform: scale(.9); transform-origin: left; }
.vacio { color: var(--gris); text-align: center; padding: 1.5rem 0; margin: 0; }
.form { display: grid; gap: .8rem; }
.form label { display: grid; gap: .3rem; font-weight: 700; font-size: .88rem; color: var(--verde); }
.form input, .form textarea, .form select { width: 100%; padding: .75rem .85rem; border: 1.5px solid var(--crema-2); border-radius: 12px; background: #fff; font: 500 1rem var(--font); color: var(--tinta); }
.form input:focus, .form textarea:focus, .form select:focus { outline: 2px solid var(--naranja); border-color: transparent; }
.form .invalido { border-color: #c0392b; }
.zonas { border: 0; padding: 0; margin: 0; display: grid; gap: .45rem; }
.zonas legend { font-weight: 700; font-size: .88rem; color: var(--verde); margin-bottom: .35rem; padding: 0; }
.zonas label { display: flex; align-items: flex-start; gap: .6rem; background: #fff; padding: .7rem .8rem; border-radius: 12px; border: 1.5px solid var(--crema-2); cursor: pointer; color: var(--tinta); font-weight: 700; }
.zonas label:has(input:checked) { border-color: var(--verde); background: #eef3ee; }
.zonas input { accent-color: var(--verde); width: auto; margin-top: .2rem; }
.zonas small { display: block; font-weight: 500; color: var(--gris); font-size: .8rem; }
.minimo { margin: 0 0 .7rem; font-size: .85rem; color: var(--tinta); }
.minimo p { margin: 0 0 .4rem; }
.minimo .barra { height: 8px; border-radius: 4px; background: var(--crema-2); overflow: hidden; }
.minimo .barra span { display: block; height: 100%; width: 0; background: var(--naranja); border-radius: 4px; transition: width .3s; }
.minimo.ok .barra span { background: var(--wa); }
.envios { list-style: none; margin: 0 auto 1.4rem; padding: 0; display: grid; gap: .5rem; max-width: 900px; }
.envios li { display: flex; flex-direction: column; gap: .1rem; background: #fff; border-left: 4px solid var(--naranja); padding: .7rem 1rem; border-radius: 12px; font-size: .9rem; }
.envios span { color: var(--gris); }
.carrito-foot { padding: 1rem 16px calc(1rem + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid var(--crema-2); }
.totales { margin: 0 0 .7rem; display: grid; gap: .15rem; }
.totales div { display: flex; justify-content: space-between; }
.totales dt { font-weight: 700; }
.totales dd { margin: 0; font-weight: 700; }
.totales .total dd { font-weight: 900; font-size: 1.35rem; }
.aviso { margin: 0 0 .8rem; font-size: .82rem; color: var(--gris); }
.error { margin: 0 0 .6rem; color: #c0392b; font-size: .88rem; font-weight: 600; }
.error:empty { display: none; }

.toast { position: fixed; left: 50%; bottom: 92px; z-index: 35; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; background: var(--verde); color: #fff; padding: .7rem 1.2rem; border-radius: 999px; font-weight: 700; font-size: .9rem; transition: .25s; box-shadow: var(--sombra); white-space: nowrap; }
.toast.ver { opacity: 1; transform: translate(-50%, 0); }

[hidden] { display: none !important; }

@media (max-width: 420px) {
  .cart-label { display: none; }
}

@media (min-width: 640px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .beneficios { grid-template-columns: repeat(4, 1fr); }
  .pasos ol { grid-template-columns: repeat(3, 1fr); }
  .envios { grid-template-columns: repeat(3, 1fr); }
  .pasos li { flex-direction: column; text-align: center; padding: 1.4rem 1rem; }
}

@media (min-width: 900px) {
  .hero { grid-template-columns: 1.1fr .9fr; padding-top: 4rem; gap: 3rem; }
  .grid { grid-template-columns: repeat(3, 1fr); }
  .filtros { justify-content: center; }
  .asesoria { grid-template-columns: .8fr 1.2fr; gap: 3rem; }
}

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

/* Club Ahumakan (registro) */
.club { display: grid; gap: 1.5rem; max-width: 1180px; margin: 3rem auto 0; padding: 2rem 16px; align-items: center; }
.club-texto h2 { font-size: clamp(1.6rem, 4.5vw, 2.2rem); font-weight: 900; color: var(--verde); margin-top: .3rem; }
.club-texto p:last-child { color: var(--gris); font-size: 1.02rem; }
.club-form { display: grid; gap: .8rem; background: #fff; padding: 1.4rem 1.2rem; border-radius: 22px; box-shadow: var(--sombra); border-top: 5px solid var(--naranja); }
.club-form label { display: grid; gap: .3rem; font-weight: 700; font-size: .88rem; color: var(--verde); }
.club-form input:not([type="checkbox"]) { width: 100%; padding: .8rem .9rem; border: 1.5px solid var(--crema-2); border-radius: 12px; background: var(--crema); font: 500 1rem var(--font); color: var(--tinta); }
.club-form input:focus { outline: 2px solid var(--naranja); border-color: transparent; }
.club-form .invalido { border-color: #c0392b !important; }
.club-form .acepto { display: flex; align-items: flex-start; gap: .55rem; font-weight: 500; color: var(--gris); font-size: .82rem; }
.club-form .acepto input { margin-top: .2rem; accent-color: var(--verde); width: 18px; height: 18px; flex: none; }
.club-form .acepto a { color: var(--verde); font-weight: 700; }
.club-ok { margin: 0; padding: .8rem; border-radius: 12px; background: #eef3ee; color: var(--verde); font-weight: 700; text-align: center; }
.trampa { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
@media (min-width: 900px) { .club { grid-template-columns: 1fr 1fr; gap: 3rem; } }

/* Botón flotante de WhatsApp */
.wa-flotante { position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 32; display: flex; align-items: center; gap: .5rem; height: 58px; padding: 0 17px; border-radius: 29px; background: var(--wa); color: #fff; text-decoration: none; font-weight: 700; font-size: .95rem; box-shadow: 0 10px 25px rgba(0, 0, 0, .25); transition: bottom .25s, transform .15s, background .15s; }
.wa-flotante:hover { background: #178a45; transform: translateY(-2px); }
.wa-flotante svg { width: 26px; height: 26px; }
.wa-flotante span { display: none; }
body.con-barra .wa-flotante { bottom: calc(88px + env(safe-area-inset-bottom)); }
body.con-barra .toast { bottom: 160px; }
@media (min-width: 640px) { .wa-flotante span { display: inline; } }
@media (prefers-reduced-motion: no-preference) {
  .wa-flotante::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: 0 0 0 0 rgba(31, 168, 85, .5); animation: latido 2.4s ease-out 1.5s 3; }
}
@keyframes latido { to { box-shadow: 0 0 0 16px rgba(31, 168, 85, 0); } }

/* Video de perros corriendo a comer */
.hora-comer { display: grid; gap: 1.5rem; max-width: 1180px; margin: 3rem auto 0; padding: 0 16px; align-items: center; }
.hora-comer-video { position: relative; justify-self: center; width: min(100% - 28px, 320px); margin: 10px 0; }
.hora-comer-video::before { content: ""; position: absolute; inset: -10px; border-radius: 34px; background: var(--naranja); transform: rotate(-3deg); z-index: -1; opacity: .9; }
.hora-comer video { display: block; width: 100%; aspect-ratio: 478 / 850; object-fit: cover; border-radius: 28px; box-shadow: var(--sombra); background: var(--crema-2); }
.hora-comer-texto { text-align: center; }
.hora-comer h2 { font-size: clamp(1.8rem, 5vw, 2.6rem); font-weight: 900; color: var(--verde); margin: .3rem 0 .8rem; }
.hora-comer-texto p:not(.script) { color: var(--gris); font-size: 1.05rem; margin: 0 0 1.4rem; }
@media (min-width: 900px) {
  .hora-comer { grid-template-columns: auto 1fr; gap: 4rem; padding: 0 2rem; }
  .hora-comer-texto { text-align: left; }
}
