/*
Theme Name: Centro Norte
Theme URI: https://centronortemx.com
Author: Centro Norte
Description: Custom theme for Centro Norte — Vino Mexicano wine event. Features landing page, past event gallery, and participant showcase.
Version: 1.0
Text Domain: centro-norte
*/

/* ═══════ CSS VARIABLES ═══════ */
:root {
  --blue: #2B3FE0;
  --red: #E04038;
  --cream: #F0E4D0;
  --night: #1A1A2E;
  --night-light: #252542;
  --cream-dark: #D9CEBB;
  --text-muted: #8A8070;
  --ff-display: 'DM Sans', 'Helvetica Neue', Arial, sans-serif;
  --ff-body: 'Montserrat', 'DM Sans', 'Helvetica Neue', sans-serif;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ═══════ RESET & BASE ═══════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--ff-body);
  background: var(--cream);
  color: var(--night);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

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

/* ═══════ TYPOGRAPHY ═══════ */
h1, h2, h3, h4 { font-family: var(--ff-display); line-height: 1.15; }

h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); font-weight: 800; letter-spacing: -0.02em; }
h2 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; letter-spacing: -0.01em; }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); font-weight: 700; }
h4 { font-size: 1.125rem; font-weight: 600; }

p { font-size: 1rem; font-weight: 400; max-width: 65ch; }

.text-blue { color: var(--blue); }
.text-red { color: var(--red); }
.text-cream { color: var(--cream); }
.text-muted { color: var(--text-muted); }
.text-center { text-align: center; }

.eyebrow {
  font-family: var(--ff-body);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--red);
}

/* ═══════ BUTTONS ═══════ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 36px;
  border-radius: 60px;
  font-family: var(--ff-display);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
}

.btn-primary {
  background: var(--red);
  color: var(--cream);
  border-color: var(--red);
}
.btn-primary:hover {
  background: transparent;
  color: var(--red);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--blue);
  border-color: var(--blue);
}
.btn-outline:hover {
  background: var(--blue);
  color: var(--cream);
  transform: translateY(-2px);
}

.btn-white {
  background: var(--cream);
  color: var(--night);
  border-color: var(--cream);
}
.btn-white:hover {
  background: transparent;
  color: var(--cream);
  transform: translateY(-2px);
}

.btn-sm { padding: 10px 24px; font-size: 0.8rem; }

/* ═══════ HEADER / NAV ═══════ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 16px 0;
  transition: all var(--transition);
}

.site-header.scrolled {
  background: rgba(240, 228, 208, 0.95);
  backdrop-filter: blur(12px);
  box-shadow: 0 2px 20px rgba(26, 26, 46, 0.08);
  padding: 10px 0;
}

.site-header.dark-header.scrolled {
  background: rgba(26, 26, 46, 0.95);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-logo svg { height: 44px; width: auto; }
.site-header.scrolled .site-logo svg { height: 36px; }

.main-nav ul { display: flex; gap: 32px; align-items: center; }

.main-nav a {
  font-family: var(--ff-display);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: color var(--transition);
}
.main-nav a:hover { color: var(--red); }

.nav-ticket-btn {
  background: var(--red);
  color: var(--cream) !important;
  padding: 10px 24px;
  border-radius: 60px;
  font-weight: 700 !important;
}
.nav-ticket-btn:hover {
  background: var(--blue) !important;
  color: var(--cream) !important;
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.mobile-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--night);
  margin: 6px 0;
  transition: all var(--transition);
}

/* ═══════ HERO SECTION ═══════ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  background: var(--cream);
}

.hero-dark { background: var(--night); color: var(--cream); }

.hero-content {
  position: relative;
  z-index: 2;
  padding: 120px 0 80px;
}

.hero-tagline {
  margin-top: 24px;
  font-size: clamp(1rem, 2vw, 1.25rem);
  font-weight: 300;
  max-width: 50ch;
  line-height: 1.7;
}

.hero-ctas {
  display: flex;
  gap: 16px;
  margin-top: 40px;
  flex-wrap: wrap;
}

.hero-motif {
  position: absolute;
  z-index: 1;
  opacity: 0.12;
}
.hero-motif.top-right { top: -5%; right: -5%; width: 45%; }
.hero-motif.bottom-left { bottom: -10%; left: -8%; width: 30%; }

.hero-date {
  display: inline-block;
  margin-top: 16px;
  padding: 8px 20px;
  border: 1px solid var(--red);
  border-radius: 60px;
  font-family: var(--ff-body);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--red);
}

/* ═══════ SECTION COMMONS ═══════ */
section { padding: 100px 0; }

.section-header {
  margin-bottom: 60px;
}

.section-header .eyebrow { margin-bottom: 12px; }

.section-divider {
  width: 60px;
  height: 3px;
  background: var(--red);
  margin: 20px 0;
  border-radius: 2px;
}

.bg-night { background: var(--night); color: var(--cream); }
.bg-cream { background: var(--cream); color: var(--night); }
.bg-white { background: #FAFAF5; color: var(--night); }

/* ═══════ ABOUT SECTION ═══════ */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
}

.stat { text-align: center; }
.stat-number {
  font-family: var(--ff-display);
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--blue);
  line-height: 1;
}
.stat-label {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 4px;
}

/* ═══════ FEATURES / WHAT TO EXPECT ═══════ */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.feature-card {
  padding: 40px 32px;
  border-radius: 16px;
  background: var(--cream);
  border: 1px solid rgba(26, 26, 46, 0.06);
  transition: all var(--transition);
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(26, 26, 46, 0.08);
}

.feature-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 20px;
}

.feature-card h3 { margin-bottom: 12px; color: var(--blue); }
.feature-card p { font-size: 0.9rem; color: var(--text-muted); }

/* ═══════ GALLERY / PAST EVENT ═══════ */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.gallery-item {
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 4/3;
  position: relative;
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.gallery-item:hover img { transform: scale(1.05); }

.gallery-item.tall { grid-row: span 2; aspect-ratio: auto; }
.gallery-item.wide { grid-column: span 2; }

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(26, 26, 46, 0.7) 100%);
  display: flex;
  align-items: flex-end;
  padding: 20px;
  opacity: 0;
  transition: opacity var(--transition);
}
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-overlay p { color: var(--cream); font-size: 0.85rem; font-weight: 500; }

/* ═══════ PARTICIPANTS ═══════ */
.participants-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
}

.participant-card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(26, 26, 46, 0.06);
  transition: all var(--transition);
}
.participant-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(26, 26, 46, 0.08);
}

.participant-logo {
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: var(--cream);
}
.participant-logo img {
  max-height: 80px;
  max-width: 80%;
  object-fit: contain;
}

.participant-info {
  padding: 20px 24px;
}
.participant-info h4 { margin-bottom: 4px; }
.participant-info .region {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
  letter-spacing: 0.04em;
}
.participant-info .wines {
  font-size: 0.85rem;
  margin-top: 12px;
  color: var(--night);
  line-height: 1.5;
}

/* ═══════ CTA BAND ═══════ */
.cta-band {
  background: var(--blue);
  padding: 60px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-band h2 { color: var(--cream); margin-bottom: 12px; }
.cta-band p { color: rgba(240, 228, 208, 0.7); margin: 0 auto 32px; }

.cta-band-motif {
  position: absolute;
  opacity: 0.08;
}
.cta-band-motif.left { left: -60px; top: -40px; width: 200px; }
.cta-band-motif.right { right: -60px; bottom: -40px; width: 200px; }

/* ═══════ FOOTER ═══════ */
.site-footer {
  background: var(--night);
  color: var(--cream);
  padding: 60px 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand p {
  margin-top: 16px;
  font-size: 0.85rem;
  color: rgba(240, 228, 208, 0.5);
  line-height: 1.7;
}

.footer-col h4 {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(240, 228, 208, 0.4);
  margin-bottom: 16px;
}

.footer-col a {
  display: block;
  font-size: 0.9rem;
  padding: 4px 0;
  color: rgba(240, 228, 208, 0.7);
  transition: color var(--transition);
}
.footer-col a:hover { color: var(--red); }

.footer-bottom {
  border-top: 1px solid rgba(240, 228, 208, 0.1);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: rgba(240, 228, 208, 0.3);
}

.footer-social { display: flex; gap: 16px; }
.footer-social a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(240, 228, 208, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
  color: rgba(240, 228, 208, 0.5);
  font-size: 0.8rem;
}
.footer-social a:hover {
  border-color: var(--red);
  color: var(--red);
}

/* ═══════ TICKET FLOATING BAR ═══════ */
.ticket-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: var(--night);
  padding: 12px 0;
  z-index: 999;
  transform: translateY(100%);
  transition: transform var(--transition);
  box-shadow: 0 -4px 20px rgba(26, 26, 46, 0.2);
}
.ticket-bar.visible { transform: translateY(0); }

.ticket-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.ticket-bar-text {
  font-family: var(--ff-display);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--cream);
}
.ticket-bar-text span { color: var(--red); }

/* ═══════ LOGO IMAGES ═══════ */
.site-logo { display: flex; }
.site-logo img { height: 44px; width: auto; transition: height var(--transition); }
.site-header.scrolled .site-logo img { height: 36px; }
.logo-dark { display: none; }
.site-footer .logo-dark { display: block; }
.dark-header .logo-light { display: none; }
.dark-header .logo-dark { display: block; }

/* ═══════ HERO OVERLAY ═══════ */
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(240,228,208,0.92) 0%, rgba(240,228,208,0.7) 100%);
  z-index: 1;
}

/* ═══════ SPONSORS SECTION ═══════ */
.sponsors-section { padding: 80px 0; }

.sponsor-tier { margin-bottom: 40px; }
.sponsor-tier:last-child { margin-bottom: 0; }

.sponsor-tier-label {
  font-family: var(--ff-body);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 24px;
}

.sponsors-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 32px;
}

.sponsor-item {
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.6;
  transition: opacity var(--transition);
  filter: grayscale(100%);
}
.sponsor-item:hover {
  opacity: 1;
  filter: grayscale(0%);
}
.sponsor-item img {
  max-height: 60px;
  max-width: 140px;
  object-fit: contain;
}

/* Top-tier sponsors: bigger logos */
.sponsors-presentado .sponsor-item img,
.sponsors-principal .sponsor-item img,
.sponsors-oro .sponsor-item img {
  max-height: 80px;
  max-width: 180px;
}

.sponsor-name {
  font-family: var(--ff-display);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--night);
}

/* ═══════ ANIMATIONS ═══════ */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

.animate-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.animate-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ═══════ RESPONSIVE ═══════ */
@media (max-width: 768px) {
  .mobile-toggle { display: block; }

  .main-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 320px;
    height: 100vh;
    background: var(--night);
    padding: 80px 32px 32px;
    transition: right var(--transition);
    z-index: 1001;
  }
  .main-nav.open { right: 0; }
  .main-nav ul { flex-direction: column; gap: 20px; }
  .main-nav a { color: var(--cream); font-size: 1rem; }

  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .features-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .gallery-item.tall, .gallery-item.wide { grid-column: auto; grid-row: auto; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }

  .hero-motif.top-right { width: 70%; top: -10%; right: -20%; }
  .hero-motif.bottom-left { display: none; }

  section { padding: 60px 0; }
}

@media (max-width: 480px) {
  .about-stats { grid-template-columns: repeat(3, 1fr); gap: 12px; }
  .stat-number { font-size: 1.8rem; }
  .footer-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr; }
  .hero-ctas { flex-direction: column; }
  .hero-ctas .btn { width: 100%; justify-content: center; }
}
