:root {
  --green: #1f9d3a;
  --green-dark: #14702a;
  --green-soft: #eaf6ec;
  --warm: #f08a24;
  --cream: #fff8ec;
  --ink: #1c2b1f;
  --muted: #5b6b5f;
  --line: #e4ebe5;
  --radius: 18px;
  --shadow: 0 10px 30px rgba(20, 112, 42, 0.12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0;
  font-family: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--ink);
  background: #fff;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.15; margin: 0; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.2rem, 6vw, 3.8rem); font-weight: 700; }
h2 { font-size: clamp(1.7rem, 4vw, 2.5rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 600; }
p { margin: 0 0 1rem; }

.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(760px, 100% - 32px); margin-inline: auto; }
.center { text-align: center; }
.muted { color: var(--muted); font-size: 0.9rem; }

.eyebrow {
  color: var(--green);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.6rem;
}

/* Botones */
.btn {
  display: inline-block;
  background: var(--green);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  border: 2px solid var(--green);
  cursor: pointer;
  font-family: inherit;
  font-size: 1rem;
  box-shadow: 0 8px 20px rgba(31, 157, 58, 0.3);
  transition: transform 0.15s ease, background 0.15s ease;
}
.btn:hover { background: var(--green-dark); border-color: var(--green-dark); transform: translateY(-1px); }
.btn-small { padding: 0.5rem 1.1rem; font-size: 0.9rem; box-shadow: none; }
.btn-ghost { background: transparent; color: var(--green-dark); box-shadow: none; }
.btn-ghost:hover { background: var(--green-soft); color: var(--green-dark); }
.btn-light { background: #fff; color: var(--green-dark); border-color: #fff; box-shadow: none; }
.btn-light:hover { background: var(--cream); color: var(--green-dark); border-color: var(--cream); }
.btn-block { display: block; width: 100%; text-align: center; }
.btn[aria-disabled="true"] { background: #b9c7bc; border-color: #b9c7bc; box-shadow: none; pointer-events: none; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 10px 0; }
.brand img { height: 46px; width: auto; }
.nav { display: none; gap: 24px; font-size: 0.9rem; font-weight: 500; }
.nav a { text-decoration: none; color: var(--ink); }
.nav a:hover { color: var(--green); }
@media (min-width: 860px) { .nav { display: flex; } }

/* Hero */
.hero { background: radial-gradient(1100px 500px at 85% 10%, var(--green-soft), transparent 60%), #fff; padding: 48px 0 56px; }
.hero-inner { display: grid; gap: 36px; align-items: center; }
@media (min-width: 860px) { .hero-inner { grid-template-columns: 1.1fr 0.9fr; } .hero { padding: 72px 0 80px; } }
.hero h1 span { color: var(--green); }
.lead { font-size: 1.1rem; color: var(--muted); margin: 1.1rem 0 1.6rem; max-width: 34em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-points { list-style: none; padding: 0; margin: 1.6rem 0 0; display: grid; gap: 6px; font-size: 0.92rem; color: var(--muted); }
.hero-points li::before { content: "✓"; color: var(--green); font-weight: 700; margin-right: 8px; }

/* Fotos y placeholders */
.photo { margin: 0; border-radius: 28px; overflow: hidden; background: var(--cream); aspect-ratio: 1 / 1; box-shadow: var(--shadow); position: relative; }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo.no-img {
  display: grid; place-items: center; text-align: center; padding: 24px;
  background: repeating-linear-gradient(45deg, var(--cream), var(--cream) 14px, #fff1da 14px, #fff1da 28px);
  border: 2px dashed var(--warm);
}
.photo.no-img img { display: none; }
.photo.no-img::after { content: attr(data-label); color: #a65a0c; font-weight: 600; font-size: 0.95rem; }

.hero-photo { aspect-ratio: 3 / 2; }
.cta-avatar { width: 96px; height: 96px; border-radius: 50%; margin: 0 auto 14px; box-shadow: 0 8px 22px rgba(0,0,0,0.25); }

/* Banda */
.band { background: var(--green-dark); color: #fff; }
.band-grid { display: grid; gap: 18px; padding: 22px 0; text-align: center; }
.band-grid strong { display: block; font-size: 1.15rem; }
.band-grid span { font-size: 0.9rem; opacity: 0.85; }
@media (min-width: 760px) { .band-grid { grid-template-columns: repeat(3, 1fr); } }

/* Secciones */
.section { padding: 64px 0; }
.section-cream { background: var(--cream); }
.section-lead { color: var(--muted); max-width: 40em; margin-top: 0.8rem; }

/* Tarjetas de producto */
.cards { display: grid; gap: 22px; margin-top: 32px; }
@media (min-width: 760px) { .cards { grid-template-columns: repeat(2, 1fr); max-width: 860px; margin-inline: auto; } }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.card .photo { border-radius: 0; box-shadow: none; aspect-ratio: 1 / 1; }
.card-body { padding: 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card-body p { color: var(--muted); font-size: 0.94rem; margin: 0; }
.price { color: var(--green-dark); font-weight: 700; font-size: 1.2rem; }
.price small { color: var(--muted); font-weight: 500; font-size: 0.8rem; }
.card-body .btn { margin-top: auto; text-align: center; }

/* Pedido */
.order-layout { display: grid; gap: 36px; align-items: start; }
@media (min-width: 900px) { .order-layout { grid-template-columns: 0.9fr 1.1fr; } }
.steps { padding-left: 1.2rem; margin: 1.4rem 0 0; color: var(--muted); }
.steps li { margin-bottom: 8px; }
.steps strong { color: var(--ink); }
.order-form { background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: 24px; box-shadow: var(--shadow); display: grid; gap: 16px; }
.order-rows { display: grid; gap: 10px; }
.order-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px; }
.order-row .name { font-weight: 600; }
.order-row .sub { display: block; font-size: 0.82rem; color: var(--muted); font-weight: 400; }
.stepper { display: flex; align-items: center; gap: 10px; }
.stepper button { width: 36px; height: 36px; border-radius: 50%; border: 2px solid var(--green); background: #fff; color: var(--green-dark); font-size: 1.2rem; font-weight: 700; cursor: pointer; line-height: 1; }
.stepper button:hover { background: var(--green-soft); }
.stepper output { min-width: 1.6rem; text-align: center; font-weight: 700; }
.field { display: grid; gap: 6px; font-size: 0.88rem; font-weight: 500; }
.field input, .field select, .field textarea { font: inherit; padding: 0.7rem 0.9rem; border: 1px solid #cfd9d1; border-radius: 12px; background: #fff; color: var(--ink); width: 100%; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--green); outline-offset: 1px; border-color: var(--green); }
.check { display: flex; align-items: center; gap: 10px; font-weight: 500; cursor: pointer; }
.check input { width: 20px; height: 20px; accent-color: var(--green); }
.event-fields { display: grid; gap: 14px; padding: 14px; background: var(--green-soft); border-radius: 14px; }
.event-fields[hidden] { display: none; }
.summary { background: var(--green-soft); border-radius: 14px; padding: 14px 16px; }
.summary > div { display: flex; justify-content: space-between; align-items: baseline; }
.summary strong { font-size: 1.5rem; color: var(--green-dark); }
.summary p { margin: 4px 0 0; }

/* Eventos */
.events { display: grid; gap: 36px; align-items: center; }
@media (min-width: 860px) { .events { grid-template-columns: 1.1fr 0.9fr; } }
.ticks { list-style: none; padding: 0; margin: 1.2rem 0 1.6rem; display: grid; gap: 8px; }
.ticks li::before { content: "✓"; color: var(--green); font-weight: 700; margin-right: 10px; }

/* Entrega */
.two-col { display: grid; gap: 28px; align-items: center; }
@media (min-width: 860px) { .two-col { grid-template-columns: 1fr 1fr; } }
.info-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.info-card .ticks { margin-bottom: 0; }

/* FAQ */
details { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 14px 18px; margin-top: 12px; }
summary { cursor: pointer; font-weight: 600; }
details p { margin: 10px 0 0; color: var(--muted); }

/* CTA final */
.cta-final { background: var(--green); color: #fff; padding: 64px 0; }
.cta-final p { opacity: 0.92; margin: 0.6rem 0 1.4rem; }
.cta-final .phone { font-weight: 600; margin: 1.1rem 0 0; }

.site-footer { background: #0f3d1a; color: #cfe3d3; padding: 22px 0; font-size: 0.88rem; text-align: center; }
.site-footer p { margin: 0; }

/* WhatsApp flotante */
.wa-float { position: fixed; right: 16px; bottom: 16px; width: 56px; height: 56px; border-radius: 50%; background: #25d366; color: #fff; display: grid; place-items: center; box-shadow: 0 8px 22px rgba(0, 0, 0, 0.25); z-index: 30; text-decoration: none; }
.wa-float:hover { transform: scale(1.06); }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .btn, .wa-float { transition: none; } }

/* Celular: todo más compacto */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { overflow-x: clip; }

@media (max-width: 600px) {
  html { scroll-padding-top: 60px; }
  body { font-size: 15px; }
  .wrap, .narrow { width: calc(100% - 28px); }

  .header-inner { padding: 8px 0; gap: 10px; }
  .brand img { height: 44px; }
  .btn.btn-small { padding: 0.4rem 0.9rem; font-size: 0.82rem; }

  h1 { font-size: 1.95rem; }
  h2 { font-size: 1.45rem; }
  h3 { font-size: 1.05rem; }
  .eyebrow { font-size: 0.7rem; }
  .lead { font-size: 0.98rem; margin: 0.8rem 0 1.2rem; }
  .section-lead { font-size: 0.95rem; }

  .hero { padding: 28px 0 36px; }
  .hero-inner { gap: 24px; }
  .hero-actions { gap: 10px; }
  .hero-actions .btn { padding: 0.7rem 1.2rem; font-size: 0.92rem; }
  .hero-points { font-size: 0.85rem; margin-top: 1.1rem; }
  .photo { border-radius: 20px; }
  .events-photo { aspect-ratio: 4 / 3; }

  .band-grid { gap: 12px; padding: 18px 0; }
  .band-grid strong { font-size: 1rem; }
  .band-grid span { font-size: 0.82rem; }

  .section { padding: 40px 0; }
  .cards { gap: 16px; margin-top: 22px; }
  .card .photo { aspect-ratio: 16 / 10; }
  .card-body { padding: 16px; }
  .card-body p { font-size: 0.88rem; }
  .price { font-size: 1.05rem; }
  .btn { padding: 0.7rem 1.2rem; font-size: 0.92rem; }

  .order-form { padding: 16px; border-radius: 18px; gap: 14px; }
  .order-row { padding: 10px 12px; }
  .stepper { gap: 8px; }
  .stepper button { width: 32px; height: 32px; font-size: 1.05rem; }
  .field input, .field select, .field textarea { font-size: 16px; padding: 0.6rem 0.8rem; }
  .summary strong { font-size: 1.3rem; }

  .info-card { padding: 18px; }
  details { padding: 12px 14px; }
  .cta-final { padding: 40px 0; }

  .wa-float { width: 46px; height: 46px; right: 12px; bottom: 12px; }
  .wa-float svg { width: 24px; height: 24px; }
}

/* Zoom out general en celular y tablet: cabe más información por pantalla */
@media (max-width: 900px) { body { zoom: 0.95; } }
@media (max-width: 600px) {
  body { zoom: 0.9; }
  .cards { gap: 12px; }
  .card { flex-direction: row; }
  .card .photo { width: 36%; flex: none; aspect-ratio: auto; min-height: 150px; }
  .card-body { padding: 12px; gap: 6px; }
  .card-body .btn { padding: 0.55rem 0.9rem; font-size: 0.85rem; }
  .band-grid { grid-template-columns: repeat(3, 1fr); gap: 8px; text-align: center; }
  .band-grid strong { font-size: 0.85rem; }
  .band-grid span { font-size: 0.7rem; }
}

@media (max-width: 360px) {
  h1 { font-size: 1.7rem; }
  .btn.btn-small { padding: 0.35rem 0.75rem; }
  .brand img { height: 38px; }
}

/* Galería de eventos */
.events-gallery { display: grid; gap: 14px; }
.events-gallery .photo { aspect-ratio: 4 / 3; }
.gallery-note { margin: 0; text-align: center; }
@media (max-width: 600px) {
  .events-gallery { grid-template-columns: 1fr 1fr; }
  .events-gallery .photo { aspect-ratio: 3 / 4; }
  .gallery-note { grid-column: 1 / -1; }
}

/* Cantidad editable en el pedido */
.stepper input { width: 58px; text-align: center; font: inherit; font-weight: 700; padding: 0.35rem 0.2rem; border: 1px solid #cfd9d1; border-radius: 10px; background: #fff; color: var(--ink); -moz-appearance: textfield; appearance: textfield; }
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.stepper input:focus { outline: 2px solid var(--green); outline-offset: 1px; }

/* Nichos de pedidos grandes */
.niches { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin: 26px 0; }
@media (min-width: 760px) { .niches { grid-template-columns: repeat(3, 1fr); gap: 16px; } .events-gallery { grid-template-columns: 1fr 1fr; } .gallery-note { grid-column: 1 / -1; } }
.niche { background: var(--cream); border: 1px solid #f0e2c8; border-radius: 16px; padding: 16px; text-align: left; cursor: pointer; font: inherit; color: var(--ink); display: grid; gap: 4px; transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease; }
.niche:hover, .niche:focus-visible { transform: translateY(-2px); box-shadow: var(--shadow); border-color: var(--green); outline: none; }
.niche .ico { font-size: 1.7rem; line-height: 1; }
.niche strong { font-size: 0.98rem; line-height: 1.25; }
.niche span:last-child { font-size: 0.82rem; color: var(--muted); }
.events-gallery { margin-bottom: 24px; }

.min-line { font-size: 0.82rem; color: var(--muted); margin: 0; }
.order-row .eq { color: var(--green-dark); font-weight: 600; }

/* Pedido simplificado */
.order-form { gap: 18px; }
.block { border: 0; padding: 0; margin: 0; display: grid; gap: 12px; min-width: 0; }
.block legend { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.02rem; padding: 0; margin-bottom: 10px; float: left; width: 100%; }
.block legend + * { clear: both; }
.num { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--green); color: #fff; font-size: 0.82rem; }
.field em { font-style: normal; font-weight: 400; color: var(--muted); }
.order-row { align-items: center; }
.order-row .eq { color: var(--green-dark); font-weight: 600; min-height: 1.2em; }
.min-line { font-size: 0.82rem; color: var(--muted); margin: 0; }

/* Íconos circulares de los nichos */
.niche .ico { width: 64px; height: 64px; border-radius: 50%; display: block; margin-bottom: 4px; object-fit: cover; }
@media (min-width: 760px) {
  .niche { grid-template-columns: 72px 1fr; column-gap: 14px; align-items: center; }
  .niche .ico { width: 72px; height: 72px; grid-row: 1 / span 2; margin: 0; }
}

/* ---------- Revisión: accesibilidad y celular ---------- */
:root { --green-btn: #16832f; }
.btn { background: var(--green-btn); border-color: var(--green-btn); }
.btn:hover { background: var(--green-dark); border-color: var(--green-dark); }
.btn-ghost { background: transparent; border-color: var(--green-btn); color: var(--green-dark); }
.btn-light { background: #fff; border-color: #fff; color: var(--green-dark); }
.num { background: var(--green-btn); }
.eyebrow { color: var(--green-btn); }
.btn:focus-visible, a:focus-visible, button:focus-visible, summary:focus-visible, select:focus-visible { outline: 3px solid var(--warm); outline-offset: 2px; }

/* Tarjetas de nichos: texto alineado arriba/abajo sin huecos */
.niche .txt { display: grid; gap: 4px; align-content: center; min-width: 0; }
.niche small { font-size: 0.82rem; color: var(--muted); line-height: 1.35; }
.niche strong { font-size: 0.98rem; line-height: 1.25; }
.niche { align-items: center; }
@media (min-width: 760px) { .niche .ico { grid-row: auto; } }

/* Botones de cantidad más fáciles de tocar */
.stepper button { width: 40px; height: 40px; font-size: 1.25rem; }
.stepper input { height: 40px; }

/* Menú de secciones para celular */
.subnav { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 8px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.subnav::-webkit-scrollbar { display: none; }
.subnav a { white-space: nowrap; padding: 6px 14px; border-radius: 999px; background: var(--green-soft); color: var(--green-dark); font-size: 0.82rem; font-weight: 600; text-decoration: none; flex: none; }
.subnav a:active { background: #d6eddb; }
@media (min-width: 860px) { .subnav { display: none; } }
@media (max-width: 859px) { html { scroll-padding-top: 112px; } }

@media (max-width: 600px) {
  /* 18px x 0.9 de zoom = 16px reales: evita el zoom automático de iPhone al tocar un campo */
  .field input, .field select, .field textarea, .stepper input { font-size: 18px; }
  .stepper button { width: 40px; height: 40px; }
  .niche .txt { gap: 3px; }
  .order-row { gap: 8px; }
}

/* ---------- Mascota del cierre ---------- */
.cta-grid { display: grid; gap: 22px; align-items: center; justify-items: center; text-align: center; }
.cta-copy { max-width: 520px; }
.cta-mascot { width: 200px; height: 200px; border-radius: 50%; border: 6px solid var(--cream); box-shadow: 0 18px 40px rgba(0,0,0,0.28); background: #168f35; object-fit: cover; }
.cta-final .cta-avatar { display: none; }
@media (min-width: 760px) {
  .cta-grid { grid-template-columns: auto 1fr; justify-items: start; text-align: left; gap: 48px; max-width: 900px; }
  .cta-mascot { width: 240px; height: 240px; }
}

/* ---------- Botón flotante de WhatsApp ---------- */
.wa-float { width: auto; height: 62px; padding: 0 24px 0 18px; border-radius: 999px; display: inline-flex; align-items: center; gap: 10px; background: #25d366; color: #fff; font-weight: 700; font-size: 1.02rem; box-shadow: 0 10px 28px rgba(0,0,0,0.3); right: 18px; bottom: 18px; }
.wa-float span { color: #053b1a; letter-spacing: 0.01em; }
.wa-float svg { flex: none; }
.wa-float::after { content: ""; position: absolute; inset: 0; border-radius: 999px; border: 2px solid #25d366; animation: pulso 2.6s ease-out infinite; pointer-events: none; }
@keyframes pulso { 0% { transform: scale(1); opacity: 0.7; } 70%, 100% { transform: scale(1.22, 1.45); opacity: 0; } }
.site-footer { padding-bottom: 84px; }
@media (max-width: 600px) {
  .wa-float { height: 56px; padding: 0 20px 0 14px; font-size: 0.98rem; right: 12px; bottom: 12px; }
  .wa-float svg { width: 28px; height: 28px; }
}

/* ---------- Levitar suave ---------- */
@keyframes flotar { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
.hero-photo { animation: flotar 6s ease-in-out infinite; }
.card { animation: flotar 6.5s ease-in-out infinite; }
.card:nth-child(2) { animation-delay: -3.2s; }
.cta-mascot { animation: flotar 5s ease-in-out infinite; }
.card:hover { animation-play-state: paused; }

/* ---------- Aparecer al hacer scroll ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Progreso del pedido mínimo ---------- */
.progress { height: 8px; border-radius: 999px; background: #e7efe9; overflow: hidden; }
#progress-bar { height: 100%; width: 0; border-radius: 999px; background: var(--warm); transition: width .35s ease, background .35s ease; }
#progress-bar.listo { background: var(--green-btn); }

@media (prefers-reduced-motion: reduce) {
  .hero-photo, .card, .cta-mascot, .wa-float::after { animation: none !important; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* Fecha: tocar en cualquier parte del campo abre el calendario */
input[type="date"] { position: relative; cursor: pointer; }
input[type="date"]::-webkit-calendar-picker-indicator { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }

/* Lugar de entrega: puntos frecuentes y mapa */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips button { font: inherit; font-size: 0.84rem; font-weight: 600; padding: 6px 14px; border-radius: 999px; border: 1px solid #cfe3d3; background: var(--green-soft); color: var(--green-dark); cursor: pointer; }
.chips button:hover, .chips button.on { background: var(--green-btn); color: #fff; border-color: var(--green-btn); }
.btn-geo { padding: 0.6rem 1.2rem; font-size: 0.92rem; box-shadow: none; justify-self: start; }
.map-box { display: grid; gap: 6px; }
.map-box iframe { width: 100%; height: 220px; border: 0; border-radius: 14px; background: #e7efe9; }
.map-box a { font-size: 0.85rem; font-weight: 600; color: var(--green-dark); }
.small { font-size: 0.78rem; margin: 0; }
