/* ════════════════════════════════════════════════════════════════
   NutriSense — style.css  ·  2026
   Rediseño Bento Grid Bold
   Mobile-first · CSS-only animations · IntersectionObserver reveals
════════════════════════════════════════════════════════════════ */

/*
 * TABLA DE CONTENIDOS
 * ─────────────────────────────────────────────────────────────
 *  1.  Variables CSS
 *  2.  Reset
 *  3.  Animaciones globales (@keyframes)
 *  4.  Accesibilidad — prefers-reduced-motion
 *  5.  Utilidades — scroll reveal
 *  6.  Elementos compartidos de sección
 *  7.  Cookie Banner
 *  8.  Header & Nav
 *  9.  Panel 1 — Hero
 * 10.  Panel 2 — Artículos Bento
 * 11.  Panel 3 — Comunidad
 * 12.  Panel 4 — Sobre Mí
 * 13.  Panel 5 — Contacto
 * 14.  Footer
 * ─────────────────────────────────────────────────────────────
 * 15.  RESPONSIVE — por breakpoint
 *       15a. ≤ 767px          Mobile
 *       15b. ≥ 600px          Mobile largo / tablet pequeño
 *       15c. 600–1023px       Tablet (rango cerrado)
 *       15d. ≥ 768px          Tablet
 *       15e. 768–1023px       Tablet medio
 *       15f. ≥ 900px          Tablet grande
 *       15g. ≥ 1024px         Desktop
 *       15h. ≥ 1200px         Desktop grande
 *       15i. ≥ 1400px         Wide
 *       15j. Landscape + pantalla corta (≤ 600px alto)
 * ─────────────────────────────────────────────────────────────
 * 16.  Accesibilidad — focus-visible
 */


/* ════════════════════════════════════════
   1. VARIABLES CSS
════════════════════════════════════════ */
:root {
  /* Colores */
  --bg:            #f5f2ee;
  --primary:       #1F242F;
  --green:         #649733;
  --green-dark:    #4a6e24;
  --green-pale:    #eef7e2;
  --citron:        #EEFB87;
  --citron-dim:    rgba(238,251,135,.55);
  --gray-text:     #525965;
  --gray-line:     rgba(100,151,51,.13);
  --white:         #fff;

  /* Sombras */
  --shadow-sm:     0 2px 12px rgba(31,36,47,.07);
  --shadow-md:     0 8px 32px rgba(31,36,47,.13);
  --shadow-lg:     0 24px 60px rgba(31,36,47,.18);

  /* Radios */
  --r-sm:  12px;
  --r-md:  20px;
  --r-lg:  28px;
  --r-xl:  40px;

  /* Animación */
  --ease:     cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out: cubic-bezier(0, 0, 0.3, 1);
  --dur:      0.7s;

  /* Layout */
  --hdr-h: 64px;
  --ftr-h: 0px;
}


/* ════════════════════════════════════════
   2. RESET
════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  font-size: 15px;
  line-height: 1.65;
  color: var(--primary);
  background: var(--bg);
  overflow-x: hidden;
}
img, picture, svg { display: block; max-width: 100%; }
a { color: #649733; text-decoration: none; }
button { cursor: pointer; font: inherit; border: none; background: none; }
ul { list-style: none; }


/* ════════════════════════════════════════
   3. ANIMACIONES GLOBALES (@keyframes)
════════════════════════════════════════ */

/* Entrada hero — paneles izq/der */
@keyframes heroSlideLeft {
  from { clip-path: inset(0 100% 0 0); }
  to   { clip-path: inset(0 0% 0 0); }
}
@keyframes heroSlideRight {
  from { clip-path: inset(0 0 0 100%); }
  to   { clip-path: inset(0 0 0 0%); }
}

/* Palabras del título */
@keyframes wordReveal {
  to { opacity: 1; transform: none; }
}

/* Fade general */
@keyframes fadeIn {
  to { opacity: 1; }
}
@keyframes fadeSlideUp {
  to { opacity: 1; transform: none; }
}

/* Glow del hero */
@keyframes glowPulse {
  0%, 100% { transform: scale(1);    opacity: .85; }
  50%       { transform: scale(1.12); opacity: 1; }
}

/* Anillo pulsante (mobile) */
@keyframes ringPulse {
  0%, 100% { transform: translate(-50%, -50%) scale(1);    opacity: .8; }
  50%       { transform: translate(-50%, -50%) scale(1.07); opacity: 1; }
}

/* Badge flotante */
@keyframes badgePop {
  from { opacity: 0; transform: scale(.7) translateY(10px); }
  to   { opacity: 1; transform: none; }
}
@keyframes badgeParallax {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(6px); }
}

/* Barra cookie */
@keyframes cookieBar {
  to { transform: scaleX(0); }
}


/* ════════════════════════════════════════
   4. ACCESIBILIDAD — prefers-reduced-motion
════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .wrd, .reveal-item { opacity: 1 !important; transform: none !important; }
}


/* ════════════════════════════════════════
   5. UTILIDADES — sistema de scroll reveal
════════════════════════════════════════ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .65s var(--ease), transform .65s var(--ease);
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}

.reveal-item {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeSlideUp .6s var(--ease) both;
  animation-delay: calc(.7s + var(--di) * 0.08s);
}


/* ════════════════════════════════════════
   6. ELEMENTOS COMPARTIDOS DE SECCIÓN
════════════════════════════════════════ */
.section-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 64px);
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'DM Mono', monospace;
  font-size: clamp(10px, 3.2vw, 16px);
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 12px;
}

.section-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(2rem, 4.5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.05;
  color: var(--primary);
  letter-spacing: -.03em;
  overflow-wrap: break-word;
}
.section-title em {
  font-style: italic;
  color: var(--green);
}


/* ════════════════════════════════════════
   7. COOKIE BANNER
════════════════════════════════════════ */
#cookie-banner {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 300;
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--primary);
  color: #f5f2ee;
  padding: 13px 18px 13px 22px;
  border-radius: var(--r-md);
  box-shadow: var(--shadow-lg);
  max-width: min(520px, calc(100vw - 32px));
  width: max-content;
  overflow: hidden;
  transition: opacity .4s ease;
  font-size: 13px;
  line-height: 1.45;
}
#cookie-banner span { flex: 1; }

#cookie-close {
  flex-shrink: 0;
  color: #f5f2ee;
  font-size: 1.3rem;
  width: 32px; height: 32px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,.2);
  display: flex; align-items: center; justify-content: center;
  transition: background .2s;
  line-height: 1;
}
#cookie-close:hover { background: rgba(255,255,255,.12); }

#cookie-progress {
  position: absolute;
  bottom: 0; left: 0;
  height: 3px; width: 100%;
  background: var(--citron);
  transform-origin: left;
  animation: cookieBar 7s linear forwards;
}


/* ════════════════════════════════════════
   8. HEADER & NAV
════════════════════════════════════════ */
#header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  background: rgba(245,242,238,0);
  transition: background .3s ease, box-shadow .3s ease, backdrop-filter .3s ease;
}
#header.scrolled {
  background: rgba(245,242,238,.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 rgba(100,151,51,.12);
}

.header-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 48px);
  height: var(--hdr-h);
  display: flex;
  align-items: center;
  gap: 24px;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}
.logo img { width: 36px; height: 36px; border-radius: 8px; }
.logo span {
  font-size: 18px;
  font-weight: 650;
  color: var(--green);
  letter-spacing: -0.4px;
  white-space: nowrap;
}

/* Nav (mobile: oculto/expandible) */
#nav {
  display: none;
  flex-direction: column;
  position: absolute;
  top: var(--hdr-h);
  left: 0; right: 0;
  background: var(--bg);
  padding: 8px 20px 16px;
  box-shadow: var(--shadow-md);
  border-top: 1px solid var(--gray-line);
}
#nav.open { display: flex; }

.nav-link {
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 500;
  color: var(--gray-text);
  border-radius: var(--r-sm);
  white-space: nowrap;
  transition: color .2s, background .2s;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.nav-link:hover,
.nav-link.active { color: var(--green); background: rgba(100,151,51,.07); }

.nav-cta {
  background: var(--green);
  color: #fff !important;
  border-radius: var(--r-sm);
  font-weight: 700;
  margin-left: 4px;
}
.nav-cta:hover { background: var(--green-dark) !important; }

/* Burger */
.burger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  margin-left: auto;
  border-radius: var(--r-sm);
  border: 1px solid rgba(100,151,51,.2);
  min-width: 44px; min-height: 44px;
  align-items: center; justify-content: center;
  transition: background .2s;
}
.burger:hover { background: rgba(100,151,51,.08); }
.burger span {
  display: block;
  width: 20px; height: 2px;
  background: var(--gray-text);
  border-radius: 2px;
  transition: transform .3s var(--ease), opacity .3s;
}
.burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }


/* ════════════════════════════════════════
   9. PANEL 1 — HERO
════════════════════════════════════════ */
.hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  overflow: visible;
  position: relative;
}

/* ── Hero Left (panel crema) ── */
.hero-left {
  flex: 1;
  background: var(--bg);
  display: flex;
  align-items: center;
  padding: clamp(80px, 10vh, 120px) clamp(20px, 5vw, 80px) clamp(48px, 6vh, 80px);
  position: relative;
  z-index: 2;
  animation: heroSlideLeft .9s var(--ease) both;
}
.hero-content { max-width: 600px; }

/* Eyebrow */
.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: 'DM Mono', monospace;
  font-size: clamp(10px, 3.3vw, 17px);
  letter-spacing: .25em;
  text-transform: uppercase;
  color: var(--gray-text);
  margin-bottom: 20px;
  opacity: 0;
  animation: fadeIn .5s ease .5s both;
}
.eyebrow-line {
  display: block;
  width: 32px; height: 1px;
  background: var(--green);
  flex-shrink: 0;
}

/* Título H1 con word reveal */
.hero-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(2.4rem, 5.5vw, 5.2rem);
  font-weight: 700;
  line-height: 1.02;
  color: var(--primary);
  letter-spacing: -.04em;
  margin-bottom: clamp(20px, 3vh, 32px);
  overflow-wrap: break-word;
}
.hero-title em { font-style: italic; color: var(--green); }

.wrd {
  display: inline-block;
  opacity: 0;
  transform: translateY(40px) skewY(2deg);
  animation: wordReveal .6s var(--ease) both;
  animation-delay: calc(.65s + var(--i) * 0.075s);
}
.punct { transform: none; }

/* Subtítulo */
.hero-sub {
  font-size: clamp(14px, 1.6vw, 17px);
  color: var(--gray-text);
  line-height: 1.6;
  margin-bottom: clamp(24px, 4vh, 40px);
}

/* CTAs */
.hero-ctas {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.cta-pill {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  background: var(--white);
  border: 1.5px solid rgba(31,36,47,.08);
  border-radius: var(--r-md);
  font-size: clamp(13px, 1.4vw, 15px);
  font-weight: 500;
  color: var(--primary);
  text-decoration: none;
  box-shadow: var(--shadow-sm);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .2s;
  min-height: 52px;
}
.cta-pill:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: rgba(100,151,51,.25);
}
.cta-icon { font-size: 18px; flex-shrink: 0; }
.cta-pill > span:nth-child(2) { flex: 1; line-height: 1.3; }
.cta-arrow {
  flex-shrink: 0;
  color: var(--green);
  transition: transform .2s;
}
.cta-pill:hover .cta-arrow { transform: translateX(4px); }

.cta-pill--accent {
  background: var(--green);
  color: var(--white);
  border-color: var(--green);
}
.cta-pill--accent:hover { background: var(--green-dark); border-color: var(--green-dark); }
.cta-pill--accent .cta-arrow { color: var(--citron); }

/* ── Hero Right (panel imagen) ── */
.hero-right {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden; /* mobile — se cambia a visible en ≥768px */
  min-height: clamp(340px, 52vw, 640px);
  animation: heroSlideRight .9s var(--ease) both;
  z-index: 2;
}

/* Dot grid de fondo */
.hero-dot-grid {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(238,251,135,.12) 1px, transparent 1px);
  background-size: 30px 30px;
  z-index: 0;
  mask-image: radial-gradient(ellipse 85% 85% at 50% 50%, black 20%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 85% 85% at 50% 50%, black 20%, transparent 100%);
}

/* Glow pulsante */
.hero-glow {
  position: absolute;
  width: clamp(320px, 70%, 640px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle,
    rgba(100,151,51,.26) 0%,
    rgba(238,251,135,.08) 45%,
    transparent 68%);
  z-index: 1;
  pointer-events: none;
  animation: glowPulse 4.5s ease-in-out infinite;
}

/* ── Imagen producto ── */
.hero-img-float {
  position: absolute;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  animation: productFloat 5.5s ease-in-out infinite;
  animation-delay: .9s;
  animation-fill-mode: both;
}
.hero-product-img {
  width: 100%;
  height: auto;
  object-fit: contain;
  filter:
    drop-shadow(0 32px 60px rgba(60,100,20,.55))
    drop-shadow(0  0px 70px rgba(238,251,135,.13))
    drop-shadow(0 12px 28px rgba(0,0,0,.55));
}

/* ── Badge flotante ── */
.hero-badge {
  position: absolute;
  bottom: clamp(20px, 27vh, 220px);
  right: clamp(16px, 58vw, 540px);
  z-index: 3;
  background: var(--citron);
  color: var(--primary);
  border-radius: var(--r-md);
  padding: 16px 22px;
  text-align: center;
  box-shadow:
    0 0 0 1.5px rgba(100,151,51,.3),
    0 16px 48px rgba(0,0,0,.50),
    0  6px 20px rgba(100,151,51,.35);
  animation-name: badgePop, badgeParallax;
  animation-duration: .65s, 5s;
  animation-timing-function: var(--ease), ease-in-out;
  animation-delay: 1.5s, 1.5s;
  animation-fill-mode: both, both;
  animation-iteration-count: 1, infinite;
}
.badge-num {
  display: block;
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 700;
  line-height: 1;
  color: var(--primary);
}
.badge-label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: rgba(31,36,47,.7);
  margin-top: 4px;
}


/* ════════════════════════════════════════
   10. PANEL 2 — ARTÍCULOS BENTO
════════════════════════════════════════ */
.section--articles {
  padding: clamp(40px, 5vw, 72px) 0;
  background: var(--bg);
  position: relative;
}
.section--articles::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--citron) 0%, var(--green) 50%, var(--citron) 100%);
}

/* Cabecera de sección */
.section-header { margin-bottom: clamp(20px, 3vw, 36px); }
.section-header-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.view-all {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  color: var(--green);
  letter-spacing: .06em;
  text-transform: uppercase;
  border-bottom: 1.5px solid var(--green);
  padding-bottom: 2px;
  transition: opacity .2s;
  flex-shrink: 0;
  margin-bottom: 6px;
}
.view-all:hover { opacity: .7; }
.view-all svg { transition: transform .2s; }
.view-all:hover svg { transform: translateX(3px); }

/* Grid (mobile: 1 columna — ampliado en responsive) */
.bento-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
}

/* Card */
.bento-card {
  position: relative;
  background: var(--white);
  border-radius: var(--r-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.bento-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

/* Overlay de enlace sobre toda la card */
.bento-card-link {
  position: absolute;
  inset: 0;
  z-index: 2;
  border-radius: inherit;
}

/* Imagen */
.bento-card-img {
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
  height: 180px;
}
.bento-card--featured .bento-card-img { height: clamp(200px, 30vw, 320px); }
.bento-card-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .5s var(--ease);
}
.bento-card:hover .bento-card-img img { transform: scale(1.05); }

/* Badge categoría */
.bento-cat {
  position: absolute;
  top: 14px; left: 14px;
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--white);
  background: var(--green);
  border-radius: 6px;
  padding: 5px 10px;
  font-weight: 700;
  z-index: 1;
}

/* Badge fecha */
.bento-date-badge {
  position: absolute;
  top: 14px; right: 14px;
  background: rgba(31,36,47,.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 10px;
  padding: 8px 12px;
  text-align: center;
  line-height: 1.1;
  z-index: 1;
}
.bento-date-badge strong {
  display: block;
  font-size: 20px;
  font-weight: 900;
  color: var(--white);
}
.bento-date-badge span {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: rgba(255,255,255,.75);
}

/* Cuerpo de la card */
.bento-card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: clamp(14px, 2vw, 22px);
  gap: 8px;
}
.bento-card--featured .bento-card-body { padding: clamp(18px, 2.5vw, 28px); }

.bento-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(.9rem, 1.3vw, 1.1rem);
  font-weight: 700;
  color: var(--primary);
  line-height: 1.2;
  overflow-wrap: break-word;
}
.bento-card--featured .bento-title { font-size: clamp(1.1rem, 1.8vw, 1.45rem); }
.bento-title a {
  text-decoration: none;
  color: inherit;
  transition: color .2s;
  position: relative;
  z-index: 3;
}
.bento-title a:hover { color: var(--green); }

.bento-excerpt {
  font-size: 13px;
  color: var(--gray-text);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}
.bento-meta {
  display: flex;
  gap: 6px;
  font-size: 11px;
  color: #aaa;
  flex-wrap: wrap;
}
.bento-read {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 700;
  color: var(--green);
  letter-spacing: .08em;
  text-transform: uppercase;
  border-bottom: 1.5px solid rgba(100,151,51,.3);
  padding-bottom: 1px;
  align-self: flex-start;
  margin-top: auto;
  transition: border-color .2s;
  position: relative;
  z-index: 3;
}
.bento-card:hover .bento-read { border-color: var(--green); }


/* ════════════════════════════════════════
   11. PANEL 3 — COMUNIDAD
════════════════════════════════════════ */
.section--community {
  background: var(--green-pale);
  padding: clamp(64px, 9vw, 120px) 0;
  clip-path: polygon(0 3.5vw, 100% 0, 100% calc(100% - 3.5vw), 0 100%);
  margin: -3.5vw 0;
  position: relative;
  z-index: 1;
}

/* Grid (mobile: 1 columna) */
.community-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(40px, 6vw, 80px);
}

/* Columna izquierda */
.community-left { display: flex; flex-direction: column; margin-top: -90px; }

.community-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(2rem, 4.5vw, 3.8rem);
  font-weight: 700;
  line-height: 1.05;
  color: var(--primary);
  letter-spacing: -.03em;
  margin: 8px 0 16px;
  overflow-wrap: break-word;
}
.community-title em { font-style: italic; color: var(--green); }

.community-sub {
  font-size: clamp(14px, 1.5vw, 16px);
  color: var(--gray-text);
  line-height: 1.6;
  max-width: 440px;
  margin-bottom: 36px;
}

/* Estadísticas */
.stats-row {
  display: flex;
  gap: clamp(24px, 4vw, 48px);
  flex-wrap: wrap;
  justify-content: center;
}
.stat-item { display: flex; flex-direction: column; gap: 4px; }
.stat-num {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 700;
  color: var(--green);
  line-height: 1;
  letter-spacing: -.03em;
}
.stat-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--gray-text);
  text-transform: uppercase;
  letter-spacing: .06em;
  line-height: 1.3;
}

/* Columna derecha — glass card */
.glass-card {
  background: rgba(255,255,255,.72);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255,255,255,.8);
  border-radius: var(--r-xl);
  padding: clamp(24px, 4vw, 40px);
  box-shadow: 0 8px 40px rgba(100,151,51,.12), var(--shadow-md);
}

/* Perks */
.perks-list { display: flex; flex-direction: column; gap: 18px; margin-bottom: 28px; }
.perk { display: flex; align-items: flex-start; gap: 14px; }
.perk-icon {
  flex-shrink: 0;
  width: 36px; height: 36px;
  background: var(--green-pale);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px;
}
.perk-text strong {
  display: block;
  font-size: 16px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 3px;
  overflow-wrap: break-word;
}
.perk-text span {
  font-size: 14px;
  color: var(--gray-text);
  line-height: 1.5;
  overflow-wrap: break-word;
}

/* Canales */
.channels {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 20px;
  justify-content: center;
}
.ch-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: var(--r-md);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  min-height: 44px;
  transition: transform .2s, box-shadow .2s;
}
.ch-btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.ch-btn--wa { background: #25D366; color: #fff; }
.ch-btn--tg { background: #229ED9; color: #fff; }
.ch-btn--em { background: var(--primary); color: #fff; }

.community-badge {
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 600;
  color: var(--green);
  letter-spacing: .02em;
justify-self:center;
}
.badge-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--green);
  flex-shrink: 0;
}


/* ════════════════════════════════════════
   12. PANEL 4 — SOBRE MÍ
════════════════════════════════════════ */
.section--about {
  background: var(--white);
  padding: clamp(64px, 9vw, 120px) 0;
  position: relative;
  z-index: 2;
}

/* Grid (mobile: 1 columna) */
.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}

/* Foto */
.about-media { display: flex; justify-content: center; }
.about-img-wrap {
  position: relative;
  display: inline-block;
}
.about-img-wrap img {
  width: clamp(200px, 30vw, 340px);
  height: clamp(200px, 30vw, 340px);
  object-fit: cover;
  border-radius: var(--r-xl);
  position: relative;
  z-index: 1;
  display: block;
}
.about-img-frame {
  position: absolute;
  inset: -12px;
  border: 2px solid var(--green);
  border-radius: calc(var(--r-xl) + 8px);
  z-index: 0;
  opacity: .4;
}
.about-img-wrap::after {
  content: '';
  position: absolute;
  bottom: -16px; right: -16px;
  width: 80px; height: 80px;
  border-radius: 50%;
  background: var(--citron);
  z-index: 0;
  opacity: .6;
}

/* Texto */
.about-text { display: flex; flex-direction: column; }
.about-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(1.8rem, 3.5vw, 3rem);
  font-weight: 700;
  line-height: 1.08;
  color: var(--primary);
  letter-spacing: -.03em;
  margin: 8px 0 16px;
  overflow-wrap: break-word;
}
.about-title em { font-style: italic; color: var(--green); font-size: clamp(1.6rem, 1vw, 3rem); }

.about-role {
  font-size: 13px;
  font-weight: 700;
  color: var(--green);
  letter-spacing: .04em;
  text-transform: uppercase;
  margin-bottom: 24px;
  border-left: 3px solid var(--green);
  padding-left: 12px;
}

.about-bio { margin-bottom: 28px; }
.about-bio p {
  font-size: clamp(14px, 1.4vw, 16px);
  color: var(--gray-text);
  line-height: 1.75;
  margin-bottom: 14px;
  overflow-wrap: break-word;
}
.about-bio p:last-child { margin-bottom: 0; }
.about-bio strong { color: var(--primary); }

.about-credentials {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.credential {
  background: var(--green-pale);
  color: var(--green);
  border-radius: var(--r-sm);
  padding: 7px 14px;
  font-size: 13px;
  font-weight: 600;
  border: 1px solid rgba(100,151,51,.2);
}


/* ════════════════════════════════════════
   13. PANEL 5 — CONTACTO
════════════════════════════════════════ */
.section--contact {
  background: var(--primary);
  padding: clamp(64px, 9vw, 120px) 0 0;
  position: relative;
  z-index: 2;
  clip-path: polygon(0 3.5vw, 100% 0, 100% 100%, 0 100%);
  margin-top: -3.5vw;
}

/* Grid (mobile: 1 columna) */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(48px, 6vw, 80px);
  margin-bottom: clamp(64px, 8vw, 100px);
}

/* Columna izquierda */
.contact-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(2.5rem, 5.5vw, 5rem);
  font-weight: 700;
  line-height: 1;
  color: var(--citron);
  letter-spacing: -.04em;
  margin: 12px 0 20px;
  overflow-wrap: break-word;
}
.contact-sub {
  font-size: clamp(14px, 1.5vw, 17px);
  color: rgba(245,242,238,.65);
  line-height: 1.6;
  margin-bottom: 20px;
}
.contact-nosocial {
  font-size: 14px;
  color: rgba(245,242,238,.45);
  line-height: 1.65;
  max-width: 440px;
  border-left: 2px solid rgba(238,251,135,.2);
  padding-left: 16px;
}

/* Columna derecha — lista de enlaces */
.contact-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 16px;
}
.contact-link {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 22px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--r-md);
  color: rgba(245,242,238,.85);
  text-decoration: none;
  transition: background .25s, border-color .25s, transform .25s var(--ease);
  min-height: 66px;
}
.contact-link:hover {
  background: rgba(255,255,255,.09);
  border-color: rgba(238,251,135,.25);
  transform: translateX(6px);
}

.cl-icon {
  flex-shrink: 0;
  width: 40px; height: 40px;
  background: rgba(255,255,255,.07);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: var(--citron);
}
.cl-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex: 1;
  min-width: 0;
}
.cl-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(245,242,238,.45);
  line-height: 1;
}
.cl-value {
  display: block;
  font-size: 15px;
  font-weight: 600;
  color: rgba(245,242,238,.9);
  line-height: 1.2;
}
.cl-arrow {
  flex-shrink: 0;
  color: rgba(238,251,135,.4);
  transition: transform .2s, color .2s;
}
.contact-link:hover .cl-arrow { transform: translateX(3px); color: var(--citron); }


/* ════════════════════════════════════════
   14. FOOTER
════════════════════════════════════════ */
.site-footer {
  background: rgba(0,0,0,.25);
  padding: 28px 0;
  border-top: 1px solid rgba(255,255,255,.06);
}
.footer-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 64px);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 24px;
}
.footer-brand {
  font-size: 16px;
  font-weight: 900;
  color: var(--citron);
  letter-spacing: -.02em;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  flex: 1;
}
.footer-links a {
  font-size: 12px;
  color: rgba(245,242,238,.4);
  text-decoration: none;
  transition: color .2s;
  justify-content: center;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
}
.footer-links a:hover { color: rgba(245,242,238,.8); }

.footer-bottom {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-left: auto;
}
.footer-bottom span {
  font-size: 12px;
  color: rgba(245,242,238,.3);
}
.back-top {
  width: 36px; height: 36px;
  border-radius: 8px;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.12);
  color: rgba(245,242,238,.6);
  font-size: 16px;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s, color .2s;
  cursor: pointer;
}
.back-top:hover { background: rgba(255,255,255,.14); color: var(--citron); }


/* ╔══════════════════════════════════════════════════════════════╗
   ║                15. RESPONSIVE — POR BREAKPOINT              ║
   ╚══════════════════════════════════════════════════════════════╝ */
/* ────────────────────────────────────────
   15a. ≤ 767px  —  MOBILE
──────────────────────────────────────── */
@media (max-width: 767px) {
 body {
margin-right: 5vw;
 }
.hero-badge { bottom: 85vh; right: 7vw; padding: 10px 14px; }
  /* Hero: panel imagen arriba, panel texto abajo */
  .hero-right {
    order: -1;
    min-height: clamp(295px, 72vw, 540px);
  }
.hero-ctas { margin-right: 4vw; }
  /* Anillo de acento en mobile */
  .hero-right::before {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: clamp(220px, 72vw, 420px);
    aspect-ratio: 1;
    border-radius: 50%;
    border: 1.5px solid rgba(238,251,135,.20);
    box-shadow:
      0 0 0 14px rgba(100,151,51,.07),
      0 0 55px 8px rgba(100,151,51,.22),
      inset 0 0 35px rgba(238,251,135,.05);
    animation: ringPulse 3.5s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
  }

  /* Viñeta en la base del panel imagen */
  .hero-right::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 38%;
    background: linear-gradient(to top, rgba(36,60,19,.80) 0%, transparent 100%);
    pointer-events: none;
    z-index: 3;
  }

  /* Imagen cubre exactamente el espacio del panel imagen */
  .hero-img-float {
    top: 0;
    left: 0;
    right: 0;
    height: clamp(360px, 72vw, 550px);
    width: 100%;
    z-index: 2;
  }
  .hero-img-float picture { width: clamp(240px, 100vw, 440px); }

  .hero-product-img {
    filter:
      drop-shadow(0 24px 50px rgba(60,100,20,.60))
      drop-shadow(0  0px 80px rgba(238,251,135,.15))
      drop-shadow(0 10px 22px rgba(0,0,0,.60));
  }

  /* Hero left: reducir padding superior en mobile */
  .hero-left {
    animation-delay: .2s;
    padding: clamp(40px, 4vh, 110px) clamp(20px, 5vw, 80px) clamp(48px, 6vh, 80px);
  }

  /* Reemplazar la animación de slide por fade en mobile */
  @keyframes heroSlideLeft {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: none; }
  }
  @keyframes heroSlideRight {
    from { opacity: 0; transform: translateY(-12px); }
    to   { opacity: 1; transform: none; }
  }

  /* Float de la imagen en mobile */
  @keyframes productFloat {
    0%, 100% { transform: translateY(0)      rotate(0deg); }
    30%       { transform: translateY(-13px)  rotate(.3deg); }
    70%       { transform: translateY(-6px)   rotate(-.25deg); }
  }
}
/* ────────────────────────────────────────
   15b. ≥ 600px  —  MOBILE LARGO / TABLET PEQUEÑO
──────────────────────────────────────── */
@media (min-width: 600px) {
  /* Bento grid: 2 columnas */
  .bento-grid { grid-template-columns: 1fr 1fr; }
  }
/* ────────────────────────────────────────
   15c. 600–1023px  —  TABLET (rango cerrado)
──────────────────────────────────────── */
@media (min-width: 600px) and (max-width: 1023px) {
  /* Card destacada ocupa el ancho completo del grid de 2 columnas */
  .bento-card:nth-child(1) { grid-column: 1 / 3; }
}
/* ────────────────────────────────────────
   15d. ≥ 768px  —  TABLET
──────────────────────────────────────── */
@media (min-width: 768px) {

  /* Hero: layout horizontal */
  .hero { flex-direction: row; }

  /* Hero left */
  .hero-left { flex: 0 0 52%; max-width: 52%; }

  /* Hero right: overflow visible (imagen puede sangrar en desktop) */
  .hero-right { flex: 0 0 48%; max-width: 48%; min-height: auto; overflow: visible; }

  /* Logo: texto más grande */
  .logo span { font-size: 28px; }

  /* Perks: más espacio entre items */
  .perks-list { gap: 20px; }

  /* About: 2 columnas */
  .about-grid { grid-template-columns: 1fr 1.4fr; }

  /* Contacto: 2 columnas */
  .contact-grid { grid-template-columns: 1fr 1fr; }
}
/* ────────────────────────────────────────
   15e. 768–1023px  —  TABLET MEDIO
──────────────────────────────────────── */
@media (min-width: 768px) and (max-width: 1023px) {

  .hero-title { font-size: clamp(2rem, 4.5vw, 3.5rem); }
  .bento-grid { grid-template-columns: 1fr 1fr; }
  .community-grid { grid-template-columns: 1fr 1.1fr; }

  /* Imagen producto: centrada en el panel derecho */
  .hero-img-float {
    top: 48%;
    left: 76%; /* centro de hero-right: hero-left 52% + 48%/2 */
    right: auto;
    width: clamp(300px, 64vw, 550px);
    transform: translate(-50%, -50%);
    z-index: 2;
  }

  @keyframes productFloat {
    0%, 100% { transform: translate(-50%, -50%)               rotate(0deg); }
    30%       { transform: translate(-50%, calc(-50% - 14px)) rotate(.4deg); }
    70%       { transform: translate(-50%, calc(-50% - 6px))  rotate(-.3deg); }
  }
}
/* ────────────────────────────────────────
   15f. ≥ 900px  —  TABLET GRANDE
──────────────────────────────────────── */
@media (min-width: 900px) {
  /* Comunidad: 2 columnas */
  .community-grid { grid-template-columns: 1fr 1fr; align-items: center; }
}
/* ────────────────────────────────────────
   15g. ≥ 1024px  —  DESKTOP
──────────────────────────────────────── */
@media (min-width: 1024px) {

  /* Nav horizontal */
  #nav {
    display: flex;
    flex-direction: row;
    position: static;
    background: none;
    padding: 0;
    box-shadow: none;
    border-top: none;
    align-items: center;
    gap: 4px;
    flex: 1;
    justify-content: center;
  }

  /* Burger oculto en desktop */
  .burger { display: none; }

  /* Bento grid: layout de 3 columnas con card destacada grande */
  .bento-grid {
    grid-template-columns: 2fr 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 18px;
  }
  .bento-card:nth-child(1) { grid-column: 1; grid-row: 1 / 3; }
  .bento-card:nth-child(2) { grid-column: 2; grid-row: 1; }
  .bento-card:nth-child(3) { grid-column: 3; grid-row: 1; }
  .bento-card:nth-child(4) { grid-column: 2; grid-row: 2; }
  .bento-card:nth-child(5) { grid-column: 3; grid-row: 2; }

  /* Imagen producto: sobresale hacia el panel crema
     z-index:1 < hero-left z-index:2 → texto siempre encima */
  .hero-img-float {
    top: 50%;
    right: -2%;
    left: auto;
    transform: translateY(-50%);
    width: clamp(520px, 62vw, 950px);
    max-height: 92vh;
    /* Difuminado suave en el borde izquierdo para evitar corte duro */
    mask-image: linear-gradient(to right, transparent 0%, black 4%);
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 4%);
  }

  .hero-product-img {
    width: 100%;
    height: auto;
    max-height: 92vh;
    object-fit: contain;
    filter:
      drop-shadow(0 44px 80px rgba(60,100,20,.65))
      drop-shadow(0  0px 110px rgba(238,251,135,.16))
      drop-shadow(0 20px 50px rgba(0,0,0,.70))
      drop-shadow(-20px 0 55px rgba(100,151,51,.18));
  }

  @keyframes productFloat {
    0%, 100% { transform: translateY(-50%)               rotate(0deg); }
    30%       { transform: translateY(calc(-50% - 16px)) rotate(.45deg); }
    70%       { transform: translateY(calc(-50% - 7px))  rotate(-.3deg); }
  }
}
/* ────────────────────────────────────────
   15h. ≥ 1200px  —  DESKTOP GRANDE
──────────────────────────────────────── */
@media (min-width: 1200px) {
  .hero-left  { flex: 0 0 50%; max-width: 50%; }
  .hero-right { flex: 0 0 50%; max-width: 50%; }
}
/* ────────────────────────────────────────
   15i. ≥ 1400px  —  WIDE
──────────────────────────────────────── */
@media (min-width: 1400px) {
  .hero-title { font-size: 5.5rem; }

  .hero-img-float {
    width: clamp(740px, 66vw, 1100px);
    right: -3%;
  }

  .bento-grid { grid-template-columns: 2.2fr 1fr 1fr; gap: 22px; }
}
/* ────────────────────────────────────────
   15j. LANDSCAPE + PANTALLA CORTA (≤ 600px alto)
──────────────────────────────────────── */
@media (orientation: landscape) and (max-height: 600px) {
  :root { --hdr-h: 50px; }

  .hero { min-height: auto; }
  .hero-left {
    padding-top: 60px;
    padding-bottom: 24px;
  }
  .hero-title { font-size: clamp(1.6rem, 4vw, 2.8rem); }

  .hero-badge { bottom: 115px; right: 300px; padding: 10px 14px; }
  .badge-num  { font-size: 1.5rem; }

  /* Eliminar clip-path diagonal en pantallas cortas */
  .section--community { clip-path: none; margin: 0; }
  .section--contact   { clip-path: none; margin-top: 0; }
}
/* ════════════════════════════════════════
   16. ACCESIBILIDAD — focus-visible
════════════════════════════════════════ */
:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
  border-radius: 4px;
}
.bento-card-link:focus-visible,
.cta-pill:focus-visible {
  outline-offset: 4px;
}


/* ════════════════════════════════════════
   17. COMPONENTES NUEVOS
════════════════════════════════════════ */

/* ── Nombre del autor (sección Sobre mí) ── */
.about-name {
  font-family: 'DM Mono', monospace;
  font-size: clamp(11px, 1.2vw, 14px);
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 4px;
}

/* ── Cookie banner: botón Aceptar ── */
.cookie-accept-btn {
  flex-shrink: 0;
  background: var(--green);
  color: #fff;
  font-size: .73rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 8px;
  white-space: nowrap;
  transition: background .2s;
  min-height: 36px;
}
.cookie-accept-btn:hover { background: var(--green-dark); }

/* ── Favoritos: corazón en nav ── */
.nav-fav-link {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border-radius: var(--r-sm);
  border: 1px solid rgba(100,151,51,.2);
  color: var(--gray-text);
  position: relative;
  transition: background .2s, color .2s, border-color .2s;
}
.nav-fav-link:hover {
  background: rgba(100,151,51,.08);
  color: #e05a5a;
  border-color: rgba(224,90,90,.3);
}

.nav-fav-count {
  position: absolute;
  top: -4px; right: -4px;
  min-width: 18px; height: 18px;
  padding: 0 4px;
  background: var(--green);
  color: #fff;
  border-radius: 10px;
  font-size: .62rem;
  font-weight: 700;
  font-family: 'DM Mono', monospace;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  pointer-events: none;
}

/* ── Favoritos en menú hamburguesa ── */
.nav-fav-mobile {
  display: flex;
  align-items: center;
  gap: 9px;
  border-top: 1px solid var(--gray-line);
  margin-top: 4px;
  padding-top: 14px !important;
  color: var(--gray-text);
}
.nav-fav-mobile svg { flex-shrink: 0; }
.nav-fav-mobile:hover { color: #e05a5a; }

.nav-fav-count-m {
  margin-left: auto;
  min-width: 20px; height: 20px;
  padding: 0 6px;
  background: #e05a5a;
  color: #fff;
  border-radius: 10px;
  font-size: .62rem;
  font-weight: 700;
  font-family: 'DM Mono', monospace;
  display: none;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
.nav-fav-count-m:not(:empty) { display: flex; }

/* En desktop: ocultar el ítem del menú (ya existe el icono de corazón en el header) */
@media (min-width: 1024px) {
  .nav-fav-mobile { display: none !important; }
}

/* ── Resalte de búsqueda ── */
mark {
  background: rgba(238,251,135,.7);
  color: var(--primary);
  border-radius: 2px;
  padding: 0 2px;
}

/* ── Galería: wrapper con botón favorito ── */
.spl-li-wrap { position: relative; }

.spl-fav-btn {
  position: absolute;
  top: 8px; right: 8px;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: rgba(245,242,238,.92);
  border: 1px solid rgba(0,0,0,.08);
  color: #ccc;
  opacity: 0;
  transform: scale(.85);
  transition: opacity .18s, transform .18s, color .18s, background .18s, border-color .18s;
  backdrop-filter: blur(4px);
}
.spl-li-wrap:hover .spl-fav-btn,
.spl-fav-btn:focus-visible,
.spl-fav-btn.active {
  opacity: 1;
  transform: scale(1);
}
.spl-fav-btn:hover { color: #e05a5a; border-color: rgba(224,90,90,.3); }
.spl-fav-btn.active {
  color: #e05a5a;
  background: rgba(255,235,235,.95);
  border-color: rgba(224,90,90,.35);
}
.spl-fav-btn.active svg { fill: #e05a5a; }
/* Sin hover (táctil): botón siempre visible en esquina */
@media (hover: none) {
  .spl-fav-btn { opacity: .55; transform: scale(1); }
}

/* ════════════════════════════════════════
   18. BUSCADOR INTEGRADO EN EL HERO
════════════════════════════════════════ */

/* Posicionado en la zona superior derecha del hero (sobre el panel oscuro) */
.hero-search {
  position: absolute;
  top: calc(var(--hdr-h) + 24px);
  right: clamp(24px, 5vw, 60px);
  width: min(380px, 44%);
  z-index: 15;
  opacity: 0;
  animation: fadeIn .7s var(--ease) 1.2s both;
}

.hero-search-form { display: flex; flex-direction: column; }

.hero-search-row {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,.07);
  border: 1.5px solid #e4e1dc;
  border-radius: 14px;
  padding: 4px 4px 4px 13px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: border-color .25s, background .25s;
}
.hero-search-row:focus-within {
  border-color: rgba(238,251,135,.6);
  background: rgba(255,255,255,.12);
}

.hero-search-input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  font-size: 15px;
  font-family: inherit;
  color: black;
  min-width: 0;
  -webkit-appearance: none;
}
.hero-search-input::placeholder { color: rgba(245,242,238,.35); }
.hero-search-input::-webkit-search-cancel-button,
.hero-search-input::-webkit-search-decoration { display: none; }

.hero-search-btn {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px; height: 42px;
  border-radius: 10px;
  background: var(--green);
  color: #fff;
  transition: background .2s, transform .15s;
}
.hero-search-btn:hover {
  background: var(--green-dark);
  transform: scale(1.04);
}
.hero-search-btn:active { transform: scale(.96); }

/* Ocultar en mobile — la zona derecha del hero está cubierta por la imagen */
@media (max-width: 767px) {
  .hero-search { display: none; }
}

/* En tablets (768-1023px): ajustar ancho */
@media (min-width: 768px) and (max-width: 1023px) {
  .hero-search {
    width: min(320px, 42%);
    right: clamp(20px, 3vw, 36px);
  }
}

/* ════════════════════════════════════════
   19. BOTÓN FLOTANTE FAVORITOS
════════════════════════════════════════ */
.fav-float {
  position: fixed;
  bottom: calc(1.5rem + env(safe-area-inset-bottom, 0px));
  right: 1.5rem;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: #fff;
  border: 1.5px solid rgba(224,90,90,.45);
  color: #e05a5a;
  box-shadow: 0 2px 12px rgba(224,90,90,.18), 0 1px 4px rgba(0,0,0,.07);
  z-index: 205;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  text-decoration: none;
  transition: box-shadow .2s, transform .2s;
}
.fav-float[hidden] { display: none; }
.fav-float:hover {
  box-shadow: 0 4px 20px rgba(224,90,90,.32);
  transform: scale(1.1);
}
@media (prefers-reduced-motion: reduce) { .fav-float:hover { transform: none; } }

.fav-float svg { flex-shrink: 0; }

.fav-float-count {
  font-size: 10px;
  font-weight: 700;
  font-family: 'DM Mono', monospace;
  line-height: 1;
  color: #e05a5a;
}

/* Latido al guardar favorito */
@keyframes fav-beat {
  0%   { transform: scale(1); }
  20%  { transform: scale(1.38); }
  40%  { transform: scale(1.12); }
  65%  { transform: scale(1.28); }
  85%  { transform: scale(1.05); }
  100% { transform: scale(1); }
}
.fav-float--beat {
  animation: fav-beat .55s ease-out;
}
@media (prefers-reduced-motion: reduce) {
  .fav-float--beat { animation: none; }
}

@media (max-width: 767px) {
  .fav-float { bottom: calc(1.1rem + env(safe-area-inset-bottom, 0px)); right: 1rem; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-search { opacity: 1; animation: none; }
  .hero-search-btn:hover { transform: none; }
}


/* ════════════════════════════════════════
   17. NEWS GRID — featured + lista
════════════════════════════════════════ */

/* Wrapper: columna única en mobile */
.news-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* ── FEATURED CARD ── */
.ng-featured {
  position: relative;
  display: block;
  border-radius: var(--r-md);
  overflow: hidden;
  text-decoration: none;
  aspect-ratio: 16 / 9;
  background: var(--primary);
  box-shadow: var(--shadow-md);
}

.ng-featured-img {
  position: absolute;
  inset: 0;
}
.ng-featured-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s var(--ease);
}
.ng-featured:hover .ng-featured-img img { transform: scale(1.05); }

/* Gradiente oscuro en el tercio inferior */
.ng-featured::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(15,18,24,.85) 0%,
    rgba(15,18,24,.45) 45%,
    transparent 75%
  );
  pointer-events: none;
}

.ng-featured-body {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: clamp(16px, 4%, 26px);
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ng-featured-cat {
  display: inline-block;
  align-self: flex-start;
  font-family: 'DM Mono', monospace;
  font-size: 9px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--primary);
  background: var(--citron);
  border-radius: 4px;
  padding: 4px 10px;
  font-weight: 600;
  line-height: 1;
}

.ng-featured-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(1.05rem, 3vw, 1.55rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.22;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  transition: color .2s;
}
.ng-featured:hover .ng-featured-title { color: var(--citron); }

.ng-featured-date {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  color: rgba(255,255,255,.55);
  letter-spacing: .08em;
  text-transform: uppercase;
}

/* ── LIST ITEMS ── */
.ng-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.ng-item {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 13px 4px;
  border-bottom: 1px solid var(--gray-line);
  text-decoration: none;
  transition: background .2s;
  border-radius: 6px;
}
.ng-list .ng-item:first-child { border-top: 1px solid var(--gray-line); }
.ng-item:hover { background: rgba(100,151,51,.04); }

.ng-item-img {
  flex-shrink: 0;
  width: 82px;
  height: 62px;
  border-radius: 10px;
  overflow: hidden;
  background: var(--primary);
}
.ng-item-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s var(--ease);
  display: block;
}
.ng-item:hover .ng-item-img img { transform: scale(1.08); }

.ng-item-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.ng-item-cat {
  font-family: 'DM Mono', monospace;
  font-size: 9px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--green);
  font-weight: 500;
}

.ng-item-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(.85rem, 1.1vw, .95rem);
  font-weight: 700;
  color: var(--primary);
  line-height: 1.3;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  transition: color .2s;
}
.ng-item:hover .ng-item-title { color: var(--green); }

.ng-item-date {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  color: #b8b8b8;
  letter-spacing: .04em;
  text-transform: uppercase;
}

/* Estado vacío */
.ng-empty {
  padding: 32px 0;
  text-align: center;
  font-size: 14px;
  color: var(--gray-text);
}

/* ── Tablet portrait (≥600px) ──
   Featured ocupa las 2 columnas, items en 2×2 */
@media (min-width: 600px) and (max-width: 1023px) {
  .news-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    align-items: start;
  }
  .ng-featured {
    grid-column: 1 / -1;
    aspect-ratio: 21 / 8;
  }
  .ng-list {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
  .ng-item,
  .ng-list .ng-item:first-child {
    flex-direction: column;
    align-items: flex-start;
    padding: 0;
    border: 1px solid var(--gray-line);
    border-radius: var(--r-sm);
    overflow: hidden;
    background: #fff;
    box-shadow: var(--shadow-sm);
    gap: 0;
    transition: box-shadow .2s, transform .2s;
  }
  .ng-item:hover {
    background: #fff;
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
  }
  .ng-item-img {
    width: 100%;
    height: 130px;
    border-radius: 0;
  }
  .ng-item-body { padding: 12px 14px 14px; gap: 5px; }
  .ng-item-title { font-size: .9rem; -webkit-line-clamp: 3; }
}

/* ── Landscape mobile (pantalla corta, landscape) ── */
@media (max-height: 520px) and (orientation: landscape) {
  .news-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    align-items: start;
  }
  .ng-featured { aspect-ratio: 4 / 3; }
  .ng-list { gap: 0; }
  .ng-item { padding: 9px 4px; gap: 10px; }
  .ng-item-img { width: 64px; height: 50px; border-radius: 7px; }
  .ng-item-title { font-size: .8rem; }
}

/* ── Desktop (≥1024px) ──
   Featured izquierda (60%), lista derecha (40%) */
@media (min-width: 1024px) {
  .news-grid {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 22px;
    align-items: stretch;
  }
  .ng-featured {
    aspect-ratio: unset;
    height: 100%;
    min-height: 320px;
    border-radius: var(--r-lg);
  }
  .ng-featured-title { font-size: clamp(1.2rem, 1.6vw, 1.6rem); }
  .ng-list { gap: 0; }
  .ng-item { padding: 15px 6px; gap: 14px; }
  .ng-item-img { width: 92px; height: 68px; border-radius: 10px; }
  .ng-item-title { font-size: .9rem; }
}

/* ── Wide desktop (≥1400px) ── */
@media (min-width: 1400px) {
  .news-grid { gap: 28px; grid-template-columns: 58% 1fr; }
  .ng-featured-title { font-size: 1.65rem; }
  .ng-item-img { width: 104px; height: 76px; border-radius: 12px; }
  .ng-item-title { font-size: .95rem; }
  .ng-item { padding: 17px 8px; }
}

/* ════════════════════════════════════════
   CANALES — QR popover + subscribe form
════════════════════════════════════════ */

/* Accesibilidad */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border-width: 0;
}

/* Honeypot: fuera de pantalla para humanos, visible para scrapers */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px; height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

/* Contenedor relativo para posicionar el popover */
.ch-wrap { position: relative; }

/* En Panel 5, el wrap hereda el ancho completo del flex-column padre */
.ch-wrap--contact { display: block; }

/* Popover abierto hacia abajo (Panel 5): flecha apunta hacia arriba, al trigger */
.ch-qr-pop--below {
  /* Reemplaza la animación — la original usa translateX(-50%) que
     interfiere con el left calculado por JS en position:fixed */
  animation: qrFadeInBelow .18s var(--ease) both;
}
.ch-qr-pop.ch-qr-pop--below::after {
  top:                 auto;
  bottom:              100%;          /* flecha en el borde superior */
  border-top-color:    transparent;   /* quitar flecha hacia abajo */
  border-bottom-color: var(--white);  /* añadir flecha hacia arriba */
}
@keyframes qrFadeInBelow {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0);    }
}

/* Popover QR */
.ch-qr-pop {
  position: absolute;
  bottom: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--white);
  border: 1px solid rgba(0,0,0,.1);
  border-radius: var(--r-sm);
  padding: 16px;
  box-shadow: var(--shadow-lg);
  text-align: center;
  z-index: 200;
  width: 216px;
  /* Animación de entrada */
  animation: qrFadeIn .18s var(--ease) both;
}
@keyframes qrFadeIn {
  from { opacity: 0; transform: translateX(-50%) translateY(6px); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0);   }
}
/* Triángulo apuntando al botón */
.ch-qr-pop::after {
  content: '';
  position: absolute;
  top: 100%; left: 50%;
  transform: translateX(-50%);
  border: 9px solid transparent;
  border-top-color: var(--white);
}
.ch-qr-pop img {
  display: block; margin: 0 auto 10px;
  border-radius: 8px;
  border: 1px solid var(--gray-line);
}
.ch-qr-label {
  font-size: 12px; color: var(--gray-text);
  margin: 0 0 8px; line-height: 1.4;
}
.ch-qr-direct {
  font-size: 12px; font-weight: 700;
  color: var(--green); text-decoration: none;
}
.ch-qr-direct:hover { text-decoration: underline; }

/* Mensaje instrucciones email */
.ch-sub-info {
  width: 100%; margin-top: 8px;
  padding: 12px 14px;
  font-size: 13px; line-height: 1.6;
  color: var(--gray-text);
  background: var(--white);
  border: 1.5px solid var(--green);
  border-radius: var(--r-md);
  border-left: 4px solid var(--green);
}
.ch-sub-info a {
  color: var(--green); font-weight: 600;
  text-decoration: none;
}
.ch-sub-info a:hover { text-decoration: underline; }
