/* ================================================================
   Panela Orgánica — site-v2.css (rediseño 2026-10-08)
   Va DESPUÉS de styles.css en todas las páginas: fuentes autoalojadas,
   paleta nueva, cabecera, buscador, menú móvil y pie.
   ================================================================ */

@font-face { font-family: 'Playfair Display'; font-style: normal; font-weight: 400 900; font-display: swap;
  src: url(/assets/fonts/playfair.woff2) format('woff2'); }
@font-face { font-family: 'Playfair Display'; font-style: italic; font-weight: 400 900; font-display: swap;
  src: url(/assets/fonts/playfair-italic.woff2) format('woff2'); }
@font-face { font-family: 'Nunito'; font-style: normal; font-weight: 200 1000; font-display: swap;
  src: url(/assets/fonts/nunito.woff2) format('woff2'); }
/* Respaldos con el mismo ancho que las fuentes reales (medido 2026-10-08): mientras carga Playfair
   el texto ocupa casi lo mismo y la página no salta (CLS). */
@font-face { font-family: 'Playfair Respaldo'; font-style: normal; font-weight: 600 900;
  src: local('Georgia Bold'), local('Georgia-Bold'); size-adjust: 90.7%; }
@font-face { font-family: 'Playfair Respaldo'; font-style: normal; font-weight: 400 599;
  src: local('Georgia'); size-adjust: 92%; }
@font-face { font-family: 'Playfair Respaldo'; font-style: italic; font-weight: 400 900;
  src: local('Georgia Bold Italic'), local('Georgia-BoldItalic'); size-adjust: 86%; }
@font-face { font-family: 'Nunito Respaldo'; font-style: normal; font-weight: 400 1000;
  src: local('Arial'), local('Helvetica'); size-adjust: 98%; }
@font-face { font-family: 'Caveat'; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url(/assets/fonts/caveat.woff2) format('woff2'); }

:root {
  --v2-crema: #faf6ee;
  --v2-crema-2: #f3ebdd;
  --v2-arena: #e8dcc6;
  --v2-verde: #2f4a1f;
  --v2-verde-h: #3d5f28;
  --v2-oliva: #4e7a26;
  --v2-cafe: #8a5a2b;
  --v2-cafe-2: #a8743a;
  --v2-tinta: #1e1a14;
  --v2-texto: #4a4236;
  --v2-salvia: #ece8d6;
  --v2-hdr: 80px;
}

body { background: var(--v2-crema); color: var(--v2-tinta); font-family: 'Nunito', 'Nunito Respaldo', system-ui, sans-serif; }
body::before { display: none; }            /* textura de ruido fija: costaba GPU y no aporta en fondo claro */

/* ── CABECERA ── */
#mainHeader.hdr {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  display: block; padding: 0;
  background: rgba(250,246,238,.97);
  -webkit-backdrop-filter: none; backdrop-filter: none;
  border-bottom: 1px solid rgba(138,90,43,.13);
  transition: box-shadow .3s ease;
}
#mainHeader.hdr.scrolled { box-shadow: 0 6px 24px rgba(42,31,14,.08); }
.hdr__in {
  max-width: 1240px; margin: 0 auto; height: var(--v2-hdr);
  padding: 0 28px; display: flex; align-items: center; gap: 28px;
}
#mainHeader .hdr__logo img { height: 54px; width: auto; display: block; }
#mainHeader .hdr__nav { flex: 1; display: flex; justify-content: center; gap: 2.6rem; }
#mainHeader .hdr__nav a {
  font-family: 'Playfair Display', 'Playfair Respaldo', Georgia, serif; font-weight: 500; font-size: .98rem;
  text-transform: none; letter-spacing: 0; color: #2a2118; padding: 6px 0; text-decoration: none;
}
#mainHeader .hdr__nav a::after {
  left: 50%; width: 0; height: 2px; bottom: -2px; transform: translateX(-50%);
  background: var(--v2-cafe-2); border-radius: 2px; transition: width .25s ease;
}
#mainHeader .hdr__nav a:hover { color: var(--v2-oliva); }
#mainHeader .hdr__nav a:hover::after { width: 22px; }
#mainHeader .hdr__nav a[aria-current="page"] { font-weight: 700; color: var(--v2-tinta); }
#mainHeader .hdr__nav a[aria-current="page"]::after { width: 30px; }
.hdr__acc { display: flex; align-items: center; gap: 14px; margin-left: auto; }
.hdr__buscar {
  width: 44px; height: 44px; border-radius: 50%; border: 0; background: transparent; color: #2a2118;
  display: grid; place-items: center; cursor: pointer; transition: background .2s;
  -webkit-tap-highlight-color: transparent; touch-action: manipulation;
}
.hdr__buscar:hover { background: var(--v2-crema-2); }
.hdr__buscar svg { width: 22px; height: 22px; }
.hdr__cta {
  display: inline-flex; align-items: center; gap: 10px; height: 48px; padding: 0 26px;
  border-radius: 999px; background: var(--v2-verde); color: #fff; text-decoration: none;
  font: 800 .92rem/1 'Nunito', 'Nunito Respaldo', system-ui, sans-serif; letter-spacing: .07em; text-transform: uppercase;
  box-shadow: 0 6px 18px -8px rgba(47,74,31,.7); transition: background .2s, transform .2s;
}
.hdr__cta:hover { background: var(--v2-verde-h); transform: translateY(-1px); }
.hdr__cta svg { width: 18px; height: 18px; transition: transform .2s; }
.hdr__cta:hover svg { transform: translateX(3px); }
:is(.hdr__buscar, .hdr__cta, .hamburger):focus-visible { outline: 3px solid var(--v2-cafe-2); outline-offset: 3px; }
#mainHeader .hamburger { padding: 10px 8px; }
#mainHeader .hamburger span { background: var(--v2-tinta); width: 24px; }

/* Las páginas internas compensaban una cabecera de ~86 px con 6rem; la nueva mide 80. */
.breadcrumbs { margin-top: calc(var(--v2-hdr) + 1.4rem); }

/* ── BUSCADOR ── */
.buscador { position: fixed; inset: 0; z-index: 1150; background: rgba(30,26,20,.38); display: flex;
  justify-content: center; align-items: flex-start; padding: calc(var(--v2-hdr) + 12px) 16px 16px; }
.buscador[hidden] { display: none !important; }
.buscador__caja { width: min(640px, 100%); background: #fffdf8; border: 1px solid var(--v2-arena);
  border-radius: 20px; box-shadow: 0 30px 60px -20px rgba(42,31,14,.45); overflow: hidden;
  animation: v2-baja .22s ease both; }
@keyframes v2-baja { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
.buscador__fila { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--v2-arena); }
.buscador__fila > svg { width: 22px; height: 22px; color: var(--v2-cafe); flex-shrink: 0; }
.buscador__fila input { flex: 1; min-width: 0; border: 0; background: transparent; outline: none;
  font: 400 1.05rem/1.3 'Nunito', 'Nunito Respaldo', system-ui, sans-serif; color: var(--v2-tinta); padding: 6px 0; }
.buscador__x { border: 0; background: var(--v2-crema-2); color: var(--v2-tinta); width: 36px; height: 36px; border-radius: 50%;
  cursor: pointer; font-size: 1rem; flex-shrink: 0; }
.buscador__res { list-style: none; margin: 0; padding: 6px; max-height: min(60vh, 440px); overflow-y: auto; }
.buscador__res a { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 11px 12px;
  border-radius: 12px; color: var(--v2-tinta); text-decoration: none; font: 600 .98rem/1.35 'Nunito', 'Nunito Respaldo', system-ui, sans-serif; }
.buscador__res a:hover, .buscador__res a:focus-visible { background: var(--v2-crema-2); outline: none; }
.buscador__res small { flex-shrink: 0; font: 800 .66rem/1 'Nunito', 'Nunito Respaldo', sans-serif; letter-spacing: .1em; text-transform: uppercase;
  color: var(--v2-cafe); background: #f1e6d2; padding: 5px 8px; border-radius: 6px; }
.buscador__vacio { padding: 14px 12px; color: var(--v2-texto); font-size: .95rem; }

/* ── MENÚ MÓVIL ── */
.mobile-menu { background: var(--v2-crema); -webkit-backdrop-filter: none; backdrop-filter: none; gap: 1.3rem; }
.mobile-menu a { color: var(--v2-tinta); font-size: 1.85rem; }
.mobile-menu a[aria-current="page"] { color: var(--v2-oliva); font-style: italic; }
.mobile-menu .mobile-link--cta { margin-top: .8rem; font: 800 1rem/1 'Nunito', 'Nunito Respaldo', sans-serif; letter-spacing: .08em; text-transform: uppercase;
  background: var(--v2-verde); color: #fff; padding: 16px 34px; border-radius: 999px; }
.mobile-menu .mobile-link--wa { font: 700 1rem/1 'Nunito', 'Nunito Respaldo', sans-serif; color: var(--v2-cafe); }
.mobile-close { background: var(--v2-verde); }

/* ── PIE ── */
footer { background: #1f3314; color: rgba(250,246,238,.74); }
.footer-logo img { height: 66px; filter: none; }
.footer-col h4 { color: #f4e9cf; }
.footer-col ul li a:hover { color: #d9e7a6; }
.footer-bottom a { color: #d9b77a; }
.footer-social .social-btn { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%;
  background: rgba(250,246,238,.08); color: #f4e9cf; border: 1px solid rgba(250,246,238,.16); font-size: 0; transition: background .2s, color .2s; }
.footer-social .social-btn:hover { background: #f4e9cf; color: #1f3314; }
.footer-social .social-btn svg { width: 19px; height: 19px; }

/* ── RESPONSIVE ── */
@media (max-width: 1080px) {
  #mainHeader .hdr__nav { gap: 1.6rem; }
  .hdr__in { gap: 18px; padding: 0 20px; }
}
@media (max-width: 900px) {
  :root { --v2-hdr: 68px; }
  #mainHeader .hdr__nav { display: none; }
  #mainHeader .hamburger { display: flex; }
  #mainHeader .hdr__logo img { height: 46px; }
  .hdr__acc { gap: 6px; }
  .hdr__cta { height: 40px; padding: 0 16px; font-size: .8rem; }
}
@media (max-width: 420px) {
  .hdr__in { padding: 0 14px; gap: 8px; }
  #mainHeader .hdr__logo img { height: 42px; }
  .hdr__cta svg { display: none; }
  .hdr__cta { padding: 0 14px; }
}
