/* ============================================================
   FoodPack J.L. — hoja de estilos
   ============================================================ */

* { box-sizing: border-box; }

/* ── Paleta tomada directamente del foodpack.html original ── */
:root {
  --navy: #0D2952;          /* h2 / aside original */
  --teal: #1A4D5C;          /* stop intermedio del gradiente original del hero */
  --olive: #3B6D11;         /* .c3 border-top / article .kicker original */
  --olive-light: #7FA33B;   /* misma familia, aclarado para uso sobre fondo oscuro */
  --green-dark: #173404;    /* footer / texto sobre botones original */
  --green-mid: #639922;     /* .kicker / .mini-stat .num / .product-card .more original */
  --green: #97C459;         /* acento principal original (botones, avatar, footer-title) */
  --green-pale: #C0DD97;    /* h1 em / eco-badge original */
  --mint-soft: #EAF3DE;     /* .badge original */
  --sky: #D8E5F0;           /* .hero-sub original */
  --text-cool: #AEB6C2;     /* versión clara de #5A6478 (product-card p / mini-stat lbl) */
  --text-warm: #B7C2A9;     /* versión clara de #3D4D2E (article p) */
  --bg: #070F09;            /* negro con matiz navy/verde, no negro neutro */
  --offwhite: #FAFAF7;      /* fondo claro original de las secciones de producto */
  --ink: #16241C;           /* texto oscuro principal sobre fondos claros */
  --ink-muted: #5B6B60;     /* texto secundario sobre fondos claros */
}

body {
  font-family: 'Inter', sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  margin: 0;
  background: var(--bg);
  color: #fff;
}

.liquid-glass {
  background: rgba(0, 0, 0, 0.4);
  background-blend-mode: luminosity;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border: none;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
}
.liquid-glass::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1.4px;
  background: linear-gradient(180deg,
    rgba(255,255,255,0.3) 0%, rgba(255,255,255,0.1) 20%,
    rgba(255,255,255,0) 40%, rgba(255,255,255,0) 60%,
    rgba(255,255,255,0.1) 80%, rgba(255,255,255,0.3) 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.btn-ghost-glass { transition: background-color 0.2s ease, color 0.2s ease; }
.btn-ghost-glass:hover { background-color: var(--green); color: var(--green-dark); }

.btn-primary { transition: filter 0.2s ease; }
.btn-primary:hover { filter: brightness(1.12); }

.char-span {
  display: inline-block;
  opacity: 0;
  transform: translateX(-18px);
  transition-property: opacity, transform;
  transition-duration: 500ms;
  transition-timing-function: ease-out;
}
.char-span.visible { opacity: 1; transform: translateX(0); }

.fade-in-el { opacity: 0; transition-property: opacity; }
.fade-in-el.visible { opacity: 1; }

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 800ms cubic-bezier(.16,.8,.24,1), transform 800ms cubic-bezier(.16,.8,.24,1);
}
.reveal.visible { opacity: 1; transform: none; }

.hero-bg-pattern {
  position: absolute;
  inset: 0;
  background-image: url('hero-bg.webp');
  background-repeat: repeat;
  background-size: 820px;
  filter: brightness(0.65) saturate(0.9);
}

/* Mismo gradiente diagonal (navy -> teal -> olive) del hero original, solo que ahora
   ademas funde a negro hacia abajo para que el texto sea legible al fondo. */
.hero-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(13,41,82,0.85) 0%, rgba(26,77,92,0.80) 45%, rgba(59,109,17,0.78) 100%),
    linear-gradient(180deg, rgba(7,15,9,0.20) 0%, rgba(7,15,9,0.70) 60%, rgba(7,15,9,0.95) 100%);
}

.stat-card {
  background: rgba(151,196,89,0.08);
  border: 1px solid rgba(151,196,89,0.22);
}
.product-card {
  background: #fff;
  border: 1px solid rgba(13,41,82,0.08);
  box-shadow: 0 1px 3px rgba(13,41,82,0.06);
  border-top: 3px solid transparent;
}
.testimonial-card {
  background: rgba(13,41,82,0.32);
  border: 0.5px solid rgba(151,196,89,0.14);
}
footer {
  background: linear-gradient(180deg, var(--green-dark) 0%, var(--bg) 100%);
}

/* ── Página Nosotros ── */
.stats-bar {
  background: linear-gradient(135deg, var(--navy) 0%, var(--green-dark) 100%);
  border-top: 1px solid rgba(151,196,89,0.15);
  border-bottom: 1px solid rgba(151,196,89,0.15);
}
.story-graphic {
  background: linear-gradient(135deg, var(--green-dark), var(--navy));
}
.icon-tile-green { background: rgba(151,196,89,0.18); }
.icon-tile-navy { background: var(--navy); }
.value-card {
  background: #fff;
  border: 1px solid rgba(13,41,82,0.08);
  box-shadow: 0 1px 3px rgba(13,41,82,0.06);
}
.quote-banner {
  background: linear-gradient(135deg, var(--navy) 0%, var(--teal) 100%);
}
.cta-banner {
  background: linear-gradient(135deg, var(--olive) 0%, var(--green-mid) 100%);
  border-top: 1px solid rgba(151,196,89,0.18);
}

/* ── Página Productos ── */
.size-pill {
  background: rgba(151,196,89,0.12);
  color: var(--navy);
  border: 1px solid rgba(151,196,89,0.25);
}
.features-strip-light {
  background: #fff;
  border-bottom: 1px solid rgba(13,41,82,0.08);
}
.product-hero-green {
  background: linear-gradient(135deg, var(--green) 0%, var(--olive) 100%);
}
.step-circle-navy {
  background: var(--navy);
}
.step-circle-green {
  background: var(--green);
  color: var(--green-dark);
}
.step-line {
  position: absolute;
  top: 28px;
  left: 10%;
  right: 10%;
  height: 1px;
  background: rgba(151,196,89,0.2);
  z-index: 0;
}

/* ── Página Contactanos ── */
.form-card {
  background: #fff;
  border: 1px solid rgba(13,41,82,0.08);
  box-shadow: 0 2px 10px rgba(13,41,82,0.08);
}
.form-input {
  width: 100%;
  background: #fff;
  border: 1px solid rgba(13,41,82,0.15);
  border-radius: 0.5rem;
  padding: 0.65rem 0.9rem;
  color: var(--ink);
  font-size: 0.875rem;
  font-family: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.form-input::placeholder { color: rgba(22,36,28,0.4); }
.form-input:focus {
  outline: none;
  border-color: var(--green-mid);
  box-shadow: 0 0 0 3px rgba(151,196,89,0.15);
}
.form-input option { background: #fff; color: var(--ink); }
.social-btn { transition: transform 0.15s ease, filter 0.15s ease; }
.social-btn:hover { filter: brightness(1.1); transform: translateY(-1px); }
.map-card {
  background: rgba(151,196,89,0.1);
  border: 1px solid rgba(151,196,89,0.25);
}
.contact-card {
  background: #fff;
  border: 1px solid rgba(13,41,82,0.08);
  box-shadow: 0 1px 3px rgba(13,41,82,0.06);
  transition: box-shadow 0.2s ease;
}
.contact-card:hover { box-shadow: 0 4px 12px rgba(13,41,82,0.1); }

/* ── Página Blog (fondo claro, solo el hero queda oscuro) ── */
.blog-grad-light {
  background: linear-gradient(135deg, var(--green-pale) 0%, var(--green) 100%);
}
.filter-pill {
  background: #fff;
  border: 1px solid rgba(13,41,82,0.15);
  color: var(--navy);
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  cursor: pointer;
}
.filter-pill.active {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
}
.filter-pill:hover:not(.active) {
  background: rgba(13,41,82,0.06);
}
.article-card {
  background: #fff;
  border: 1px solid rgba(13,41,82,0.08);
  box-shadow: 0 1px 3px rgba(13,41,82,0.06);
}
.article-badge {
  background: #fff;
  color: var(--navy);
}
.blog-newsletter-band { background: var(--navy); }
.blog-cta-band { background: linear-gradient(135deg, var(--green) 0%, var(--green-mid) 100%); }
.newsletter-input {
  border: none;
  border-radius: 9999px;
  padding: 0.75rem 1.25rem;
  color: var(--navy);
  font-size: 0.875rem;
  width: 100%;
}
.newsletter-input:focus { outline: 2px solid var(--green); }

@media (prefers-reduced-motion: reduce) {
  .char-span, .fade-in-el, .reveal { transition: none !important; }
}
