/* ==========================================================================
   WIR Cerveza Artesanal — shared stylesheet
   Used by every static page (index, choperas, visitas, visitas-en,
   lista-precios keeps its own copy of these tokens for now).
   ========================================================================== */

:root {
  --gold: #F2A900;
  --orange: #E8940C;
  --dark: #1A1A1A;
  --light: #F7F1E3;
  --red: #D6262B;
  --whatsapp: #25D366;
  --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }
body {
  font-family: 'Work Sans', sans-serif;
  background: var(--light);
  color: var(--dark);
  overflow-x: hidden;
  min-height: 100vh;
}

a { color: var(--gold); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--orange); }

img, picture, svg { max-width: 100%; display: block; }

.wrap { max-width: var(--container); margin: 0 auto; padding: 0 clamp(20px, 5vw, 64px); }

h1, h2, h3 {
  font-family: 'Anton', sans-serif;
  font-weight: 400;
  text-transform: uppercase;
  margin: 0;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 700;
  font-size: 15px;
  padding: 14px 28px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  font-family: inherit;
}
.btn-whatsapp { background: var(--whatsapp); color: #fff; }
.btn-gold { background: linear-gradient(135deg, var(--gold), var(--orange)); color: var(--dark); box-shadow: 0 8px 24px rgba(242, 169, 0, .35); }
.btn-dark { background: var(--dark); color: var(--light); }
.btn-outline-light { background: transparent; border: 2px solid var(--light); color: var(--light); }
.btn-outline-dark { background: transparent; border: 2px solid var(--dark); color: var(--dark); }
.btn-outline-gold { background: transparent; border: 2px solid var(--gold); color: var(--gold); }
.btn-block { width: 100%; }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px clamp(16px, 4vw, 48px);
  background: rgba(26, 26, 26, .92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(242, 169, 0, .25);
}
.brand { display: flex; align-items: center; gap: 10px; }
.logo-mark { position: relative; width: 30px; height: 30px; flex-shrink: 0; }
.logo-mark span { position: absolute; display: block; border-radius: 50%; }
.logo-mark .cap   { width: 14px; height: 20px; background: var(--red); border-radius: 60% 60% 50% 50%; top: 2px; left: 8px; }
.logo-mark .foam-top { width: 12px; height: 10px; background: var(--gold); top: 0; left: 9px; }
.logo-mark .foam-l   { width: 10px; height: 8px; background: var(--gold); top: 9px; left: 2px; }
.logo-mark .foam-r   { width: 10px; height: 8px; background: var(--gold); top: 9px; left: 16px; }
.brand-name { font-family: 'Fredoka', sans-serif; font-weight: 700; font-size: 26px; color: var(--light); letter-spacing: .5px; transform: rotate(-2deg); display: inline-block; }

.site-nav { display: flex; align-items: center; gap: clamp(14px, 2vw, 32px); }
.nav-links { display: flex; gap: 28px; align-items: center; }
.nav-links a { color: var(--light); font-weight: 600; font-size: 15px; }
.nav-links a.is-current { color: var(--gold); }

.menu-btn {
  display: none; background: none; border: none; width: 34px; height: 24px;
  flex-direction: column; justify-content: space-between; cursor: pointer; padding: 0;
}
.menu-btn span { display: block; height: 3px; background: var(--gold); border-radius: 2px; }

.mobile-menu {
  display: none; flex-direction: column; gap: 18px; padding: 24px;
  background: var(--dark); border-bottom: 1px solid rgba(242, 169, 0, .25);
}
.mobile-menu a, .mobile-menu .btn { color: var(--light); font-weight: 600; font-size: 18px; }
.mobile-menu.is-open { display: flex; }

@media (max-width: 860px) {
  .nav-links, .site-nav > .btn-whatsapp { display: none; }
  .menu-btn { display: flex; }
}

/* ---------- Sections ---------- */
section { padding: clamp(60px, 10vw, 110px) 0; }
.section-head { text-align: center; margin-bottom: 48px; }
.section-head h2 { font-size: clamp(32px, 5vw, 52px); margin: 0 0 12px; }
.section-head p { font-size: 17px; opacity: .7; margin: 0; }
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; margin: 0 0 10px; color: var(--orange); }

.reveal { opacity: 0; transform: translateY(36px); transition: opacity .8s ease, transform .8s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

/* ---------- Cards / grids ---------- */
.grid-auto { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 28px; }

.plan-card {
  background: rgba(247, 241, 227, .06);
  border: 1px solid rgba(247, 241, 227, .15);
  border-radius: 20px; padding: 32px 24px; text-align: center;
}
.plan-card.is-featured {
  position: relative;
  background: linear-gradient(160deg, var(--gold), var(--orange));
  border: 2px solid var(--light);
  border-radius: 22px; padding: 38px 26px;
  box-shadow: 0 20px 50px rgba(242, 169, 0, .35);
}
.plan-card.is-featured .plan-size,
.plan-card.is-featured .plan-sub,
.plan-card.is-featured .plan-kicker { color: var(--dark); }
.plan-badge {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: var(--dark); color: var(--gold); font-size: 11px; font-weight: 700;
  padding: 6px 16px; border-radius: 999px; letter-spacing: .5px; white-space: nowrap;
}
.plan-kicker { font-size: 13px; color: var(--gold); font-weight: 700; letter-spacing: 1px; text-transform: uppercase; margin: 0 0 8px; }
.plan-size { font-family: 'Anton', sans-serif; font-weight: 400; font-size: 30px; color: var(--light); margin: 0 0 10px; }
.plan-sub { font-size: 14px; color: var(--light); opacity: .7; margin: 0 0 24px; }

.beer-card { background: #fff; border-radius: 20px; overflow: hidden; box-shadow: 0 12px 32px rgba(26, 26, 26, .1); transition: transform .4s ease, box-shadow .4s ease; }
.beer-card:hover { transform: translateY(-6px); box-shadow: 0 20px 44px rgba(242, 169, 0, .28); }
.beer-card .art { height: 300px; background: var(--dark); padding: 20px; }
.beer-card .art picture { display: block; width: 100%; height: 100%; }
.beer-card .art img { display: block; width: 100%; height: 100%; object-fit: contain; }
.beer-card .body { padding: 24px; }
.beer-card h3 { font-size: 22px; margin: 0 0 4px; color: var(--dark); }
.beer-card .style { margin: 0 0 10px; font-size: 14px; color: var(--orange); font-weight: 600; }
.beer-card .desc { margin: 0 0 14px; font-size: 14px; color: var(--dark); opacity: .7; line-height: 1.5; }
.beer-card .tags { display: flex; gap: 10px; }
.beer-card .tag { background: var(--light); color: var(--dark); font-size: 12px; font-weight: 700; padding: 6px 12px; border-radius: 999px; }

/* ---------- FAQ ---------- */
.faq-item { border-bottom: 1px solid rgba(247, 241, 227, .2); padding: 18px 4px; }
.faq-q { display: flex; justify-content: space-between; align-items: center; cursor: pointer; gap: 16px; background: none; border: none; width: 100%; text-align: left; font-family: inherit; padding: 0; }
.faq-q p { font-weight: 600; font-size: 15px; color: var(--light); margin: 0; }
.faq-sign { color: var(--gold); font-size: 20px; font-weight: 700; flex-shrink: 0; }
.faq-a { margin: 0; max-height: 0; opacity: 0; overflow: hidden; font-size: 14px; color: var(--light); line-height: 1.6; transition: all .3s ease; }
.faq-item.is-open .faq-a { margin: 12px 0 0; max-height: 240px; opacity: 1; }

/* ---------- Footer ---------- */
.site-footer { padding: 48px clamp(20px, 5vw, 64px) 32px; background: var(--dark); color: var(--light); }
.footer-top { max-width: var(--container); margin: 0 auto; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 32px; padding-bottom: 28px; border-bottom: 1px solid rgba(247, 241, 227, .15); }
.footer-links { display: flex; gap: 24px; flex-wrap: wrap; }
.footer-links a { color: var(--light); opacity: .8; font-size: 14px; font-weight: 600; }
.footer-bottom { max-width: var(--container); margin: 24px auto 0; text-align: center; display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; align-items: center; }
.footer-bottom p { font-size: 12px; opacity: .5; margin: 0; }
.text-link-muted { background: none; border: none; color: var(--light); opacity: .45; font-size: 12px; cursor: pointer; text-decoration: underline; font-family: inherit; padding: 0; }
.text-link-muted:hover { opacity: .8; }
.social-row { display: flex; gap: 16px; }
.social-circle { width: 38px; height: 38px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--light); font-size: 13px; font-weight: 700; border: 1px solid rgba(247, 241, 227, .3); }
.social-circle.is-whatsapp { background: var(--whatsapp); color: #fff; border: none; }

/* ---------- Modal ---------- */
.modal-overlay {
  display: none; position: fixed; inset: 0; z-index: 300;
  background: rgba(20, 16, 8, .88); backdrop-filter: blur(4px);
  align-items: center; justify-content: center; padding: 16px;
}
.modal-overlay.is-open { display: flex; }
.modal-box { background: var(--dark); border: 1px solid rgba(242, 169, 0, .3); border-radius: 20px; max-width: 780px; width: 100%; max-height: 88vh; overflow-y: auto; padding: clamp(24px, 5vw, 48px); }

/* ---------- WhatsApp floating button (secondary pages) ---------- */
.wa-float {
  position: fixed; bottom: 24px; right: 24px; z-index: 200;
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--whatsapp); color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 25px rgba(37, 211, 102, .4);
}
.wa-float svg { width: 28px; height: 28px; fill: currentColor; }

@keyframes pulseWA { 0%, 100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, .55); } 50% { box-shadow: 0 0 0 14px rgba(37, 211, 102, 0); } }
