@import url("https://fonts.googleapis.com/css2?family=Nunito:wght@700&display=swap");

:root {
  color-scheme: dark;
  --bg: #0f1419;
  --bg-soft: #1e2a3a;
  --card: #1a2332;
  --card-border: rgba(201, 162, 39, 0.22);
  --text: #f3f6fb;
  --muted: #9aa8bc;
  --accent: #c9a227;
  --accent-hover: #e0bc4a;
  --accent-soft: rgba(201, 162, 39, 0.12);
  --brand-purple: #31007e;
  --brand-gold: #f9a800;
  --brand-font: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
  --header-bg: rgba(255, 255, 255, 0.96);
  --header-border: rgba(49, 0, 126, 0.1);
  --header-link: #3d4852;
  --header-link-hover: var(--brand-purple);
  --ok: #6bcf8a;
  --warn: #f0b429;
  --sans: system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: Georgia, "Times New Roman", serif;
  --max: 1120px;
  --header-h: 64px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--serif);
  background: radial-gradient(ellipse at top, var(--bg-soft) 0%, var(--bg) 55%);
  color: var(--text);
  line-height: 1.6;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--accent); }
a:hover { color: var(--accent-hover); }

.container {
  width: min(var(--max), calc(100% - 32px));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: var(--header-bg);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--header-border);
  box-shadow: 0 1px 0 rgba(15, 20, 25, 0.04);
}

.site-header .container {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-mark {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
}

.brand-name {
  font-family: var(--brand-font);
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0;
}

.brand-bebidas { color: var(--brand-purple); }
.brand-memo { color: var(--brand-gold); }

.brand:hover .brand-bebidas { color: #4a0099; }
.brand:hover .brand-memo { color: #ffbc33; }

.footer-brand .brand-mark {
  width: 36px;
  height: 36px;
  flex-basis: 36px;
}

.footer-brand .brand-name { font-size: 1.15rem; }

.logo {
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--accent);
  text-decoration: none;
}

.logo:hover { color: var(--accent-hover); }

.site-nav {
  display: flex;
  align-items: center;
  gap: 8px 20px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.site-nav a {
  font-family: var(--sans);
  font-size: 0.9rem;
  text-decoration: none;
  color: var(--header-link);
  font-weight: 500;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--header-link-hover);
}

.nav-cta {
  padding: 8px 14px;
  background: var(--accent);
  color: #1a1200 !important;
  font-weight: 600;
  border-radius: 4px;
}

.nav-cta:hover {
  background: var(--accent-hover);
  color: #1a1200 !important;
}

.nav-audience-switch {
  font-family: var(--sans);
  font-size: 0.9rem;
  text-decoration: none;
  color: var(--header-link);
  font-weight: 500;
}

.nav-audience-switch:hover {
  color: var(--header-link-hover);
}

/* Footer */
.site-footer {
  margin-top: 64px;
  padding: 40px 0 32px;
  border-top: 1px solid var(--card-border);
  background: rgba(15, 20, 25, 0.6);
}

.site-footer .container {
  display: grid;
  gap: 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 24px;
}

.footer-brand p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.footer-links h3 {
  margin: 0 0 10px;
  font-family: var(--sans);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
}

.footer-links ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links li { margin: 6px 0; }

.footer-links a {
  color: var(--muted);
  text-decoration: none;
  font-family: var(--sans);
  font-size: 0.9rem;
}

.footer-links a:hover { color: var(--text); }

.footer-bottom {
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--muted);
  font-family: var(--sans);
  font-size: 0.82rem;
}

/* Typography */
.page-title {
  margin: 48px 0 12px;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  color: var(--accent);
  letter-spacing: 0.03em;
}

.page-lead {
  margin: 0 0 40px;
  max-width: 62ch;
  color: var(--muted);
  font-size: 1.08rem;
}

.section {
  padding: 56px 0;
}

.section-title {
  margin: 0 0 12px;
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  color: var(--text);
}

.section-lead {
  margin: 0 0 32px;
  max-width: 58ch;
  color: var(--muted);
}

/* Hero */
.hero {
  padding: 56px 0 40px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 40px;
  align-items: center;
}

.hero h1 {
  margin: 0 0 16px;
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.15;
  color: var(--text);
}

.hero .highlight { color: var(--accent); }

.hero p {
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 1.12rem;
  max-width: 52ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 22px;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  border-radius: 4px;
}

.btn-primary {
  background: var(--accent);
  color: #1a1200;
}

.btn-primary:hover {
  background: var(--accent-hover);
  color: #1a1200;
}

.btn-secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.hero-visual {
  background: var(--card);
  border: 1px solid var(--card-border);
  padding: 16px;
  border-radius: 8px;
}

.hero-visual img {
  border-radius: 6px;
}

/* Cards & grids */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.card {
  background: var(--card);
  border: 1px solid var(--card-border);
  padding: 24px;
  border-radius: 8px;
}

.card h3 {
  margin: 0 0 10px;
  font-size: 1.15rem;
  color: var(--accent);
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
}

.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  align-items: center;
  margin-bottom: 48px;
}

.feature-row.reverse .feature-copy { order: 2; }
.feature-row.reverse .feature-media { order: 1; }

.feature-copy h3 {
  margin: 0 0 12px;
  font-size: 1.35rem;
  color: var(--text);
}

.feature-copy p {
  margin: 0 0 12px;
  color: var(--muted);
}

.feature-copy ul {
  margin: 0;
  padding-left: 1.2rem;
  color: var(--muted);
}

.feature-copy li { margin: 6px 0; }

.feature-media {
  background: var(--card);
  border: 1px solid var(--card-border);
  padding: 12px;
  border-radius: 8px;
}

.feature-media img { border-radius: 6px; }

.feature-media-phones {
  background: transparent;
  border: none;
  padding: 0;
  display: flex;
  gap: 20px;
  justify-content: center;
  align-items: flex-end;
}

.feature-media-phones img {
  width: min(42%, 220px);
  height: auto;
  border-radius: 0;
}

.feature-media-phone {
  background: transparent;
  border: none;
  padding: 0;
  display: flex;
  justify-content: center;
}

.feature-media-phone img {
  width: min(100%, 240px);
  height: auto;
  border-radius: 0;
}

.feature-media-wide {
  background: transparent;
  border: none;
  padding: 0;
}

.feature-media-wide img {
  width: 100%;
  height: auto;
  border-radius: 8px;
}

@media (max-width: 720px) {
  .feature-media-phones {
    gap: 12px;
  }

  .feature-media-phones img {
    width: min(46%, 180px);
  }

  .feature-media-phone img {
    width: min(100%, 200px);
  }
}

/* Story blocks */
.story-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.story {
  background: var(--card);
  border: 1px solid var(--card-border);
  padding: 22px;
  border-radius: 8px;
}

.story-icon {
  font-size: 1.6rem;
  margin-bottom: 10px;
}

.story h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
}

.story p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

/* Categories */
.cat-section { margin-bottom: 36px; }

.cat-section h2 {
  margin: 0 0 16px;
  font-size: 1.3rem;
  color: var(--accent);
}

.cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 10px;
}

.cat-chip {
  background: var(--card);
  border: 1px solid var(--card-border);
  padding: 12px 14px;
  border-radius: 6px;
  font-family: var(--sans);
  font-size: 0.88rem;
  text-align: center;
  color: var(--text);
}

.cat-chip.non-alcoholic { border-color: rgba(107, 207, 138, 0.35); }
.cat-chip.alcoholic { border-color: rgba(240, 180, 41, 0.35); opacity: 0.85; }

.notice {
  background: var(--accent-soft);
  border: 1px solid var(--card-border);
  padding: 20px 22px;
  border-radius: 8px;
  margin: 32px 0;
}

.notice h3 {
  margin: 0 0 8px;
  color: var(--warn);
  font-size: 1.05rem;
}

.notice p {
  margin: 0;
  color: var(--muted);
}

.notice strong { color: var(--text); }

/* CTA band */
.cta-band {
  margin: 48px 0 0;
  padding: 40px 28px;
  text-align: center;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 8px;
}

.cta-band h2 {
  margin: 0 0 10px;
  font-size: 1.6rem;
}

.cta-band p {
  margin: 0 0 20px;
  color: var(--muted);
}

/* Legal pages */
.legal-content {
  max-width: 720px;
  margin: 0 auto 48px;
}

.legal-content h2 {
  margin: 28px 0 10px;
  font-size: 1.2rem;
  color: var(--accent);
}

.legal-content p {
  margin: 0 0 14px;
  color: var(--muted);
}

/* Download page tweaks */
.download-card {
  max-width: 480px;
  margin: 40px auto 48px;
  background: var(--card);
  border: 1px solid var(--card-border);
  padding: 32px 28px;
  text-align: center;
  border-radius: 8px;
}

.download-card .version {
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.download-card .notes {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 24px;
  min-height: 1.2em;
}

.download-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.download-hint {
  margin-top: 24px;
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.5;
}

/* Responsive */
@media (max-width: 860px) {
  .hero-grid,
  .feature-row,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .feature-row.reverse .feature-copy,
  .feature-row.reverse .feature-media {
    order: unset;
  }

  .site-nav {
    gap: 8px 12px;
  }

  .site-nav a:not(.nav-cta) {
    font-size: 0.82rem;
  }

  .hero {
    padding-top: 48px;
  }
}

@media (max-width: 520px) {
  .site-header {
    height: auto;
  }

  .site-header .container {
    flex-direction: column;
    justify-content: center;
    padding: 12px 0 16px;
    height: auto;
    min-height: 0;
    gap: 12px;
  }

  .hero {
    padding-top: 56px;
  }
}

/* Age gate */
body.gate-page {
  background: radial-gradient(ellipse at top, var(--bg-soft) 0%, var(--bg) 55%);
}

.age-gate {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
}

.age-gate-card {
  width: min(480px, 100%);
  text-align: center;
  padding: 0;
  overflow: hidden;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}

.age-gate-header {
  background: var(--header-bg);
  border-bottom: 1px solid var(--header-border);
  padding: 16px 24px;
}

.age-gate-body {
  padding: 32px 32px 40px;
}

.age-gate-brand {
  justify-content: center;
  margin-bottom: 0;
}

.age-gate-brand .brand-mark {
  width: 48px;
  height: 48px;
  flex-basis: 48px;
}

.age-gate-brand .brand-name {
  font-size: 1.5rem;
}

.age-gate-title {
  margin: 0 0 12px;
  font-size: clamp(1.5rem, 4vw, 1.85rem);
  color: var(--text);
  line-height: 1.25;
}

.age-gate-lead {
  margin: 0 0 28px;
  color: var(--muted);
  font-size: 1.05rem;
}

.age-gate-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.age-gate-btn {
  width: 100%;
  cursor: pointer;
  font-family: var(--sans);
  background: transparent;
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.age-gate-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.audience-block[hidden] {
  display: none !important;
}

@media (max-width: 520px) {
  .age-gate-body {
    padding: 28px 20px 32px;
  }

  .age-gate-header {
    padding: 14px 20px;
  }
}

/* Cookie consent */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 200;
  padding: 16px;
  background: rgba(15, 20, 25, 0.96);
  border-top: 1px solid var(--card-border);
  box-shadow: 0 -8px 28px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(10px);
}

.cookie-banner-inner {
  width: min(var(--max), 100%);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.cookie-banner-text {
  margin: 0;
  font-family: var(--sans);
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.45;
}

.cookie-banner-text a {
  color: var(--accent);
}

.cookie-banner-actions {
  display: flex;
  flex-shrink: 0;
  gap: 10px;
}

.cookie-banner-decline {
  font-family: var(--sans);
  background: transparent;
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.22);
  cursor: pointer;
}

.cookie-banner-decline:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.cookie-banner-accept {
  cursor: pointer;
}

body.cookie-banner-visible {
  padding-bottom: 110px;
}

@media (max-width: 720px) {
  .cookie-banner-inner {
    flex-direction: column;
    align-items: stretch;
  }

  .cookie-banner-actions {
    width: 100%;
  }

  .cookie-banner-actions .btn {
    flex: 1;
  }

  body.cookie-banner-visible {
    padding-bottom: 160px;
  }
}
