:root {
  --ink: #2D1B1E;
  --muted: #6B5A5C;
  --accent: #C4A35A;
  --primary: #722F37;
  --surface: #FFFFFF;
  --bg: #F5F0E8;
  --success: #4A7C59;
  --warning: #D4A574;
  --error: #A63D40;
  --radius: 12px;
  --shadow: 0 2px 8px rgba(45,27,30,0.08);
  --space: 24px;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  height: 100%;
}

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Navigation */
.site-nav {
  background: var(--surface);
  border-bottom: 1px solid rgba(196, 163, 90, 0.1);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 64px;
}

.nav-logo {
  font-family: 'Cormorant', serif;
  font-size: 24px;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
  transition: color 120ms var(--ease);
}

.nav-logo:hover {
  color: var(--accent);
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 32px;
}

.nav-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  transition: color 120ms var(--ease);
  position: relative;
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent);
}

/* Hero Section */
.hero {
  background: linear-gradient(180deg, rgba(38, 16, 24, 0.58), rgba(38, 16, 24, 0.82)), url("assets/pexels-hero-background-34791908.jpg") center 52% / cover no-repeat;
  padding: 48px 24px 64px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '94';
  position: absolute;
  top: -20px;
  right: 10%;
  font-family: 'Cormorant', serif;
  font-size: 240px;
  font-weight: 700;
  color: var(--accent);
  opacity: 0.08;
  line-height: 1;
  pointer-events: none;
}

.hero-content {
  text-align: center;
  margin-bottom: 40px;
  position: relative;
  z-index: 1;
}

.hero h1 {
  color: #fff;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.38);
}

.hero .hero-subtitle {
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.45);
}

h1 {
  font-family: 'Cormorant', serif;
  font-size: 56px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 16px;
  line-height: 1.1;
}

.hero-subtitle {
  font-size: 18px;
  color: var(--muted);
  max-width: 700px;
  margin: 0 auto;
}

.data-disclaimer-results {
  background: rgba(196, 163, 90, 0.08);
  border-left: 4px solid var(--accent);
  padding: 16px 20px;
  border-radius: 4px;
  margin: 24px 0;
  font-size: 14px;
  color: var(--ink);
  line-height: 1.6;
}

/* Results Section */
.results-section {
  padding: 0 24px 64px;
}

.filter-panel {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  margin-bottom: 32px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.filter-label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--muted);
}

.filter-panel select {
  background: var(--bg);
  border: 1px solid rgba(196, 163, 90, 0.2);
  border-radius: 8px;
  padding: 10px 12px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  color: var(--ink);
  cursor: pointer;
  transition: all 120ms var(--ease);
}

.filter-panel select:hover {
  border-color: var(--accent);
}

.filter-panel select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(114, 47, 55, 0.1);
}

.results-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(196, 163, 90, 0.2);
}

.results-count {
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
}

/* Bodega Grid */
.bodega-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}

.bodega-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  position: relative;
  transition: all 180ms var(--ease);
  cursor: pointer;
  display: flex;
  flex-direction: column;
}

.bodega-card:hover {
  box-shadow: 0 4px 16px rgba(45, 27, 30, 0.12);
  transform: translateY(-2px);
}

.bodega-header {
  margin-bottom: 16px;
}

.bodega-name {
  font-family: 'Cormorant', serif;
  font-size: 22px;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 4px;
  line-height: 1.3;
}

.bodega-region {
  font-size: 12px;
  color: var(--accent);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 2px;
}

.bodega-municipality {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 8px;
}

.bodega-rating {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 12px;
}

.bodega-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 16px;
  font-size: 13px;
}

.meta-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.meta-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--muted);
  font-weight: 600;
}

.meta-value {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
}

.bodega-source {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid rgba(196, 163, 90, 0.1);
  font-size: 12px;
  color: var(--muted);
}

.bodega-source a {
  color: var(--accent);
  text-decoration: none;
  transition: color 120ms var(--ease);
}

.bodega-source a:hover {
  color: var(--primary);
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 64px 24px;
}

.empty-state.hidden {
  display: none !important;
}

.empty-title {
  font-family: 'Cormorant', serif;
  font-size: 32px;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 12px;
}

.empty-text {
  font-size: 16px;
  color: var(--muted);
}

.hidden {
  display: none !important;
}

/* Ad Slot */
.ad-slot {
  margin: 48px 0;
  min-height: 0;
}

.ad-slot:empty {
  display: none;
}

/* Footer */
.footer {
  background: var(--surface);
  border-top: 1px solid rgba(196, 163, 90, 0.1);
  padding: 48px 24px 24px;
  margin-top: 64px;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 48px;
  margin-bottom: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(196, 163, 90, 0.1);
}

.footer-section h3,
.footer-section h4 {
  font-family: 'Cormorant', serif;
  font-size: 18px;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 12px;
}

.footer-section p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
}

.footer-section ul {
  list-style: none;
  padding: 0;
}

.footer-section li {
  margin-bottom: 8px;
}

.footer-section a {
  font-size: 14px;
  color: var(--muted);
  text-decoration: none;
  transition: color 120ms var(--ease);
}

.footer-section a:hover {
  color: var(--primary);
}

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
  font-size: 13px;
  color: var(--muted);
}

.footer-bottom p {
  margin-bottom: 8px;
}

.footer-disclaimer {
  font-size: 12px;
  color: var(--muted);
}

/* Guide & FAQ Sections */
.guide-section,
.faq-section {
  padding: 48px 24px 64px;
}

.guide-section h2,
.faq-section h2 {
  font-family: 'Cormorant', serif;
  font-size: 32px;
  font-weight: 600;
  color: var(--primary);
  margin: 40px 0 20px;
  line-height: 1.2;
}

.guide-section h3,
.faq-section h3 {
  font-family: 'Cormorant', serif;
  font-size: 22px;
  font-weight: 600;
  color: var(--primary);
  margin: 24px 0 12px;
  line-height: 1.3;
}

.guide-section p,
.faq-section p {
  font-size: 16px;
  line-height: 1.8;
  color: var(--ink);
  margin-bottom: 16px;
}

.guide-section ul,
.guide-section ol,
.faq-section ul {
  margin-left: 24px;
  margin-bottom: 24px;
}

.guide-section li,
.faq-section li {
  font-size: 16px;
  line-height: 1.8;
  color: var(--ink);
  margin-bottom: 12px;
}

.guide-section strong,
.faq-section strong {
  font-weight: 600;
  color: var(--primary);
}

.guide-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin: 32px 0;
}

.guide-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  transition: all 180ms var(--ease);
}

.guide-card:hover {
  box-shadow: 0 4px 16px rgba(45, 27, 30, 0.12);
  transform: translateY(-2px);
}

.guide-card h3 {
  margin-top: 0;
}

.guide-steps {
  list-style: decimal;
  margin-left: 24px;
  margin-bottom: 24px;
}

.guide-steps li {
  margin-bottom: 16px;
  padding-left: 8px;
}

.guide-list {
  list-style: disc;
  margin-left: 24px;
  margin-bottom: 24px;
}

.guide-list li {
  margin-bottom: 12px;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.faq-item {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  transition: all 180ms var(--ease);
}

.faq-item:hover {
  box-shadow: 0 4px 16px rgba(45, 27, 30, 0.12);
}

.faq-question {
  margin: 0 0 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 18px;
}

.faq-question::before {
  content: '+';
  display: inline-block;
  width: 24px;
  height: 24px;
  background: var(--accent);
  color: var(--surface);
  border-radius: 50%;
  text-align: center;
  line-height: 24px;
  font-weight: 700;
  flex-shrink: 0;
  transition: transform 180ms var(--ease);
}

.faq-item.open .faq-question::before {
  transform: rotate(45deg);
}

.faq-answer {
  display: none;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(196, 163, 90, 0.1);
}

.faq-item.open .faq-answer {
  display: block;
}

.faq-answer p {
  margin-bottom: 12px;
}

.faq-answer p:last-child {
  margin-bottom: 0;
}

/* Responsive */
@media (max-width: 768px) {
  h1 {
    font-size: 36px;
  }

  .nav-links {
    gap: 16px;
  }

  .nav-link {
    font-size: 13px;
  }

  .filter-panel {
    grid-template-columns: 1fr;
  }

  .bodega-grid {
    grid-template-columns: 1fr;
  }

  .guide-section h2,
  .faq-section h2 {
    font-size: 28px;
  }

  .guide-section h3,
  .faq-section h3 {
    font-size: 18px;
  }

  .guide-cards {
    grid-template-columns: 1fr;
  }

  .faq-question {
    font-size: 16px;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}