/* ============================================================
   SALSA MUSIC WEEK 2026 — styles.css
   Tipografías del brand book: Anton, Bebas Neue Bold, Montserrat, Neue Haas Display
   (Anton se carga desde Google Fonts como fallback universal;
    las demás se cargan desde /fonts/ con @font-face)
   ============================================================ */

/* ── BRAND FONTS (archivos locales del brand book) ── */
@font-face {
  font-family: 'Anton';
  src: url('fonts/Anton-Regular.ttf') format('truetype');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'BebasNeueBold';
  src: url('fonts/BebasNeue Bold.otf') format('opentype');
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: 'NeueHaas';
  src: url('fonts/NeueHaasDisplay-Light.ttf') format('truetype');
  font-weight: 300;
  font-display: swap;
}
@font-face {
  font-family: 'NeueHaas';
  src: url('fonts/NeueHaasDisplay-Roman.ttf') format('truetype');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'NeueHaas';
  src: url('fonts/NeueHaasDisplay-Bold.ttf') format('truetype');
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: 'MontserratBrand';
  src: url('fonts/Montserrat-Regular.ttf') format('truetype');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'MontserratBrand';
  src: url('fonts/Montserrat-ExtraBold.ttf') format('truetype');
  font-weight: 800;
  font-display: swap;
}

/* ── DESIGN TOKENS ── */
:root {
  /* Colores extraídos del brand book pág. 1 */
  --bg-base:       #0e0000;
  --bg-red-deep:   #1a0000;
  --bg-amber:      #c26014;
  --bg-red-mid:    #8a2200;
  --bg-red-dark:   #8a1800;

  /* Paleta UI */
  --gold:          #c9a84c;
  --gold-lt:       #e8c96a;
  --white:         #f4efe6;
  --muted:         rgba(244, 239, 230, 0.55);
  --border:        rgba(201, 168, 76, 0.20);
  --border-hero:   rgba(201, 168, 76, 0.22);

  /* Footer */
  --footer-bg:     #0a0a0a;
  --footer-input:  #2a2a2a;
  --footer-blue:   #2563eb;
  --footer-blue-h: #1d4ed8;

  /* Tipografías */
  --font-display:  'Anton', 'BebasNeueBold', sans-serif;
  --font-body:     'NeueHaas', 'MontserratBrand', 'Montserrat', sans-serif;
  --font-ui:       'MontserratBrand', 'Montserrat', sans-serif;
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  color: var(--white);
  font-family: var(--font-body);
  font-weight: 300;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;

  /* Fondo brand book pág. 1 — gradiente rojo-negro + ámbar */
  background:
    radial-gradient(ellipse 70% 80% at 0% 50%,   var(--bg-red-deep) 0%, transparent 60%),
    radial-gradient(ellipse 60% 70% at 100% 30%,  var(--bg-amber)   0%, var(--bg-red-mid) 40%, transparent 70%),
    radial-gradient(ellipse 80% 60% at 50% 100%,  var(--bg-red-dark) 0%, transparent 55%),
    var(--bg-base);
  min-height: 100vh;
}
img  { display: block; max-width: 100%; }
a    { text-decoration: none; color: inherit; }
ul   { list-style: none; }

/* ============================================================
   HEADER
   ============================================================ */
#header {
  position: sticky;
  top: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 52px;
  background: rgba(10, 0, 0, 0.88);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(194, 96, 20, 0.25);
  transition: padding 0.3s;
}
#header.scrolled { padding-top: 10px; padding-bottom: 10px; }

.header-logo img { height: 38px; object-fit: contain; }

/* Nav centrado */
.header-nav {
  display: flex;
  gap: 28px;
}
.header-nav a {
  font-family: var(--font-ui);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: rgba(244, 239, 230, 0.65);
  transition: color 0.2s;
}
.header-nav a:hover { color: var(--gold); }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  transition: transform 0.3s, opacity 0.3s;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile drawer */
.mobile-drawer {
  display: none;
  position: fixed;
  top: 66px; left: 0; right: 0;
  background: rgba(10, 0, 0, 0.97);
  border-bottom: 1px solid var(--border);
  padding: 28px 32px;
  flex-direction: column;
  gap: 22px;
  z-index: 299;
}
.mobile-drawer.open { display: flex; }
.mobile-drawer a {
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(244, 239, 230, 0.7);
  transition: color 0.2s;
}
.mobile-drawer a:hover { color: var(--gold); }

/* ============================================================
   HERO
   ============================================================ */
#hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 24px 90px;
  position: relative;
  overflow: hidden;
}

/* Grain texture sutil */
#hero::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.18;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.08'/%3E%3C/svg%3E");
  background-size: 200px;
  pointer-events: none;
}
#hero > * { position: relative; z-index: 1; }

/* ── Animaciones de entrada ── */
.anim { opacity: 0; }
.anim.visible { animation: fadeUp 0.9s forwards; }

/* Billboard CO Presenta — 80% del logo Salsa (20% menor) */
.hero-presents {
  width: min(384px, 64vw);
  height: auto;
  object-fit: contain;
  margin: 0 auto 16px;
  animation-delay: 0.10s;
}

/* Logo principal Salsa Music Week — referencia 100% */
.hero-main-logo {
  width: min(480px, 80vw);
  height: auto;
  object-fit: contain;
  margin: 0 auto;
  animation-delay: 0.30s;
}

/* Línea vertical dorada */
.hero-rule {
  width: 1px;
  height: 52px;
  background: linear-gradient(to bottom, transparent, var(--gold), transparent);
  margin: 30px auto;
  opacity: 0;
  transition: opacity 0.8s 0.55s;
}
.hero-rule.visible { opacity: 1; }

/* Fecha */
.hero-date {
  font-family: var(--font-display);
  font-size: clamp(56px, 11vw, 112px);
  letter-spacing: 5px;
  line-height: 0.88;
  color: var(--white);
  animation-delay: 0.65s;
}
.hero-date-sub {
  font-family: var(--font-display);
  font-size: clamp(15px, 2.5vw, 24px);
  letter-spacing: 10px;
  color: var(--gold);
  margin-top: 10px;
  animation-delay: 0.78s;
}
.hero-venue {
  font-family: var(--font-ui);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 8px;
  margin-bottom: 48px;
  animation-delay: 0.88s;
}

/* Caja de anuncio */
.hero-box {
  border: 1px solid var(--border-hero);
  background: rgba(0, 0, 0, 0.25);
  padding: 32px 48px;
  max-width: 560px;
  margin: 0 auto 44px;
  animation-delay: 1.00s;
}
.hero-box p {
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 300;
  letter-spacing: 2.5px;
  line-height: 2.6;
  text-transform: uppercase;
  color: rgba(244, 239, 230, 0.58);
}
.hero-box .highlight {
  color: rgba(244, 239, 230, 0.88);
  font-weight: 400;
}

/* CTAs */
.hero-ctas {
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  animation-delay: 1.05s;
}
.btn-primary {
  display: inline-block;
  background: var(--gold);
  color: var(--bg-base);
  font-family: var(--font-ui);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 3.5px;
  text-transform: uppercase;
  padding: 15px 42px;
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}
.btn-primary:hover { background: var(--gold-lt); transform: translateY(-2px); }

/* Hashtag */
.hero-hashtag {
  font-family: var(--font-ui);
  font-size: 9px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(244, 239, 230, 0.20);
  margin-top: 48px;
  animation-delay: 1.18s;
}

/* Scroll hint */
.scroll-hint {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  opacity: 0;
  animation: fadeIn 1s 1.6s forwards;
}
.scroll-hint span {
  font-family: var(--font-ui);
  font-size: 7px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: rgba(244, 239, 230, 0.20);
}
.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--gold), transparent);
  animation: scrollPulse 2.2s 2s infinite;
}

/* ============================================================
   COUNTDOWN — franja dorada
   ============================================================ */
#countdown { background: var(--gold); }

.cd-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
}
.cd-block {
  flex: 1;
  text-align: center;
  padding: 22px 12px;
  border-right: 1px solid rgba(0, 0, 0, 0.12);
}
.cd-block:last-child { border-right: none; }

.cd-num {
  font-family: var(--font-display);
  font-size: 40px;
  color: var(--bg-base);
  line-height: 1;
}
.cd-label {
  font-family: var(--font-ui);
  font-size: 7.5px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(0, 0, 0, 0.45);
  margin-top: 4px;
}

/* ============================================================
   FOOTER — estilo billboard.com.co
   ============================================================ */
#footer {
  background: var(--footer-bg);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 64px 52px 52px;
}

.footer-inner {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Logo */
.footer-logo {
  width: 220px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

/* Newsletter */
.footer-nl-title {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 20px;
}
.footer-nl-form { display: flex; flex-direction: column; }

.footer-nl-input {
  background: var(--footer-input);
  border: none;
  color: rgba(255, 255, 255, 0.45);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 300;
  padding: 14px 18px;
  outline: none;
  text-align: center;
  width: 100%;
}
.footer-nl-input::placeholder { color: rgba(255, 255, 255, 0.35); }
.footer-nl-input:focus { outline: 1px solid var(--footer-blue); }

.footer-nl-btn {
  background: var(--footer-blue);
  color: #fff;
  border: none;
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  padding: 14px 18px;
  cursor: pointer;
  transition: background 0.2s;
  width: 100%;
}
.footer-nl-btn:hover { background: var(--footer-blue-h); }

.footer-nl-note {
  font-size: 12px;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.45);
  margin-top: 18px;
  line-height: 1.7;
}
.footer-nl-note a {
  color: var(--footer-blue);
  text-decoration: underline;
}

/* Contacto */
.footer-bottom {
  max-width: 900px;
  margin: 44px auto 0;
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.10);
  text-align: center;
}
.footer-contact-label {
  font-size: 13px;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: 8px;
}
.footer-contact-email {
  font-size: 14px;
  color: var(--footer-blue);
  font-weight: 400;
  transition: color 0.2s;
}
.footer-contact-email:hover { color: #60a5fa; }

/* ============================================================
   MODAL INSCRIPCIÓN
   ============================================================ */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 500;
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(6px);
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal-overlay.open { display: flex; }

.modal {
  position: relative;
  background: #0e0000;
  border: 1px solid rgba(201, 168, 76, 0.30);
  padding: 52px 48px 44px;
  width: 100%;
  max-width: 460px;
  animation: fadeUp 0.35s forwards;
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 20px;
  background: none;
  border: none;
  color: rgba(244, 239, 230, 0.40);
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  transition: color 0.2s;
}
.modal-close:hover { color: var(--gold); }

.modal-label {
  font-family: var(--font-ui);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
}

.modal-title {
  font-family: var(--font-display);
  font-size: 36px;
  line-height: 1.0;
  color: var(--white);
  letter-spacing: 1px;
  text-transform: uppercase;
}

.modal-rule {
  width: 40px;
  height: 1px;
  background: var(--gold);
  margin: 20px 0 28px;
}

.modal-form { display: flex; flex-direction: column; gap: 18px; }

.modal-field { display: flex; flex-direction: column; gap: 6px; }

.modal-field label {
  font-family: var(--font-ui);
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: rgba(244, 239, 230, 0.50);
}

.modal-field input {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(201, 168, 76, 0.20);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 300;
  padding: 13px 16px;
  outline: none;
  transition: border-color 0.2s;
  width: 100%;
}
.modal-field input::placeholder { color: rgba(244, 239, 230, 0.25); }
.modal-field input:focus { border-color: var(--gold); }
.modal-field input.error { border-color: #ef4444; }

.modal-submit {
  margin-top: 8px;
  background: var(--gold);
  color: var(--bg-base);
  font-family: var(--font-ui);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 3.5px;
  text-transform: uppercase;
  padding: 16px 24px;
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
  width: 100%;
}
.modal-submit:hover { background: var(--gold-lt); transform: translateY(-2px); }

.modal-success {
  display: none;
  text-align: center;
  font-family: var(--font-ui);
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
  margin-top: 4px;
}
.modal-success.show { display: block; }

@media (max-width: 480px) {
  .modal { padding: 44px 24px 36px; }
  .modal-title { font-size: 28px; }
}

/* ============================================================
   KEYFRAMES
   ============================================================ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(26px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes scrollPulse {
  0%, 100% { opacity: 0.35; }
  50%       { opacity: 1; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
  /* Header */
  #header { padding: 12px 20px; }
  .header-nav { display: none; }
  .hamburger { display: flex; }

  /* Hero */
  #hero { padding: 100px 20px 72px; }
  .hero-date-sub { letter-spacing: 5px; }
  .hero-venue { margin-bottom: 32px; }
  .hero-box { padding: 24px 20px; max-width: 100%; }
  .hero-box p { letter-spacing: 1.8px; line-height: 2.4; }
  .hero-ctas { flex-direction: column; }
  .btn-primary { width: 100%; text-align: center; padding: 16px 24px; }
  .hero-hashtag { letter-spacing: 2px; }

  /* Countdown */
  .cd-num { font-size: 30px; }
  .cd-block { padding: 16px 8px; }
  .cd-label { font-size: 6.5px; letter-spacing: 1.5px; }

  /* Footer */
  #footer { padding: 40px 24px 36px; }
  .footer-bottom { margin-top: 32px; }
}

@media (max-width: 480px) {
  /* Hero */
  .hero-presents { width: min(260px, 72vw); }
  .hero-main-logo { width: min(320px, 86vw); }
  .hero-date-sub { letter-spacing: 3px; font-size: 13px; }
  .hero-box p { letter-spacing: 1.2px; font-size: 10px; }
  .hero-hashtag { letter-spacing: 1px; }

  /* Countdown — 2×2 en pantallas muy pequeñas */
  .cd-inner { flex-wrap: wrap; }
  .cd-block { flex: 0 0 50%; border-right: none; border-bottom: 1px solid rgba(0,0,0,0.12); }
  .cd-block:nth-child(odd) { border-right: 1px solid rgba(0,0,0,0.12); }
  .cd-block:nth-child(3),
  .cd-block:nth-child(4) { border-bottom: none; }
  .cd-num { font-size: 36px; }
  .cd-label { font-size: 7px; letter-spacing: 2px; }
}
