/* =============================================
   base.css — Reset, Typography, Utilities
   ============================================= */

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

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

body {
  font-family: var(--font-body);
  background: var(--color-white);
  color: var(--color-text-primary);
  overflow-x: hidden;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

button {
  cursor: pointer;
  font-family: inherit;
}

ul, ol {
  list-style: none;
}

/* ─── Layout ─── */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 32px;
}

.section-white  { background: var(--color-white); padding: var(--spacing-3xl) 0; }
.section-gray   { background: var(--color-gray-100); padding: var(--spacing-3xl) 0; }
.section-navy   { background: var(--color-navy); padding: var(--spacing-3xl) 0; }
.section-red    { background: var(--color-red); padding: var(--spacing-3xl) 0; position: relative; overflow: hidden; }

.section-red::before {
  content: 'ADB';
  position: absolute;
  right: -40px;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-display);
  font-size: 300px;
  font-weight: 700;
  color: rgba(255,255,255,0.07);
  line-height: 1;
  pointer-events: none;
  white-space: nowrap;
}

/* ─── Section Labels & Titles ─── */
.section-label {
  font-family: var(--font-condensed);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-red);
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.section-label::before {
  content: '';
  width: 24px;
  height: 2px;
  background: currentColor;
  flex-shrink: 0;
}

/* Space Grotesk tiene mejor peso visual — ajustamos tracking para titulares */
.section-title {
  font-family: var(--font-display);
  font-size: clamp(26px, 4vw, 44px);
  font-weight: 700;
  text-transform: uppercase;
  color: var(--color-navy);
  line-height: 1.08;
  letter-spacing: -0.01em;
}
.section-title span { color: var(--color-red); }

.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: var(--spacing-xl);
  flex-wrap: wrap;
  gap: 16px;
}

.section-cta {
  text-align: center;
  margin-top: 32px;
}

/* ─── Buttons — touch targets mínimo 44px ─── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 13px 28px;
  min-height: 44px;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  cursor: pointer;
  transition: var(--transition-base);
  white-space: nowrap;
}
.btn-sm { padding: 9px 20px; font-size: 12px; min-height: 38px; }

.btn-primary {
  background: var(--color-red);
  color: var(--color-white);
  border-color: var(--color-red);
}
.btn-primary:hover {
  background: var(--color-red-dark);
  border-color: var(--color-red-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-red);
}

.btn-secondary {
  background: transparent;
  color: var(--color-white);
  border-color: rgba(255,255,255,0.6);
}
.btn-secondary:hover {
  background: rgba(255,255,255,0.15);
  border-color: var(--color-white);
}

.btn-outline-white {
  background: transparent;
  color: var(--color-white);
  border-color: rgba(255,255,255,0.6);
}
.btn-outline-white:hover {
  background: rgba(255,255,255,0.15);
  border-color: var(--color-white);
}

.btn-tickets {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--color-red);
  color: var(--color-white);
  font-family: var(--font-condensed);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 8px 18px;
  border-radius: var(--radius-full);
  border: none;
  transition: var(--transition-base);
  white-space: nowrap;
}
.btn-tickets:hover {
  background: var(--color-red-dark);
  transform: scale(1.04);
}
.btn-tickets.sold-out {
  background: var(--color-gray-200);
  color: var(--color-text-secondary);
  pointer-events: none;
}

/* ─── Scroll Reveal Animations ─── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.10s; }
.reveal-delay-2 { transition-delay: 0.20s; }
.reveal-delay-3 { transition-delay: 0.30s; }
.reveal-delay-4 { transition-delay: 0.40s; }

/* ─── Instagram Handle ─── */
.instagram-handle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--color-text-secondary);
  text-decoration: none;
  transition: var(--transition-base);
}
.instagram-handle i { font-size: 20px; color: #e1306c; }
.instagram-handle:hover { color: var(--color-text-primary); }

/* ─── Instagram Grid ─── */
.instagram-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
}
.instagram-post {
  aspect-ratio: 1;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--color-gray-100);
  position: relative;
  cursor: pointer;
  display: block;
}
.instagram-post::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(225,48,108,0);
  transition: var(--transition-base);
}
.instagram-post:hover::after { background: rgba(225,48,108,0.4); }
.instagram-post img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.instagram-post:hover img { transform: scale(1.06); }
.instagram-post-placeholder {
  width: 100%;
  height: 100%;
  background: var(--color-gray-200);
  display: flex;
  align-items: center;
  justify-content: center;
}
.instagram-post-placeholder i { font-size: 24px; color: rgba(0,0,0,0.15); }
.instagram-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition-base);
}
.instagram-post:hover .instagram-overlay { opacity: 1; }
.instagram-overlay i { font-size: 28px; color: var(--color-white); }

/* ─── Sponsors ─── */
#sponsors {
  background: var(--color-navy);
  padding: 24px 0;
  overflow: hidden;
}
.sponsors-track {
  display: flex;
  align-items: center;
  gap: 64px;
  animation: ticker 22s linear infinite;
  width: max-content;
}
.sponsors-track:hover { animation-play-state: paused; }
@keyframes ticker {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.sponsor-item {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  color: rgba(255,255,255,0.45);
  white-space: nowrap;
  padding: 0 16px;
  transition: var(--transition-base);
  text-decoration: none;
  display: flex;
  align-items: center;
}
.sponsor-item:hover { color: var(--color-white); }

.sponsor-item--img {
  padding: 0 8px;
}
.sponsor-item--img img {
  height: 44px;
  width: auto;
  max-width: 140px;
  object-fit: contain;
  opacity: 0.7;
  filter: brightness(0) invert(1);
  transition: var(--transition-base);
}
.sponsor-item--img:hover img {
  opacity: 1;
  filter: none;
}
.sponsor-divider {
  width: 2px;
  height: 20px;
  background: rgba(255,255,255,0.15);
  flex-shrink: 0;
}

/* ─── News Grid ─── */
.news-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 20px;
}
.news-card {
  background: var(--color-white);
  border-radius: var(--radius-md);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: var(--transition-base);
  display: flex;
  flex-direction: column;
}
.news-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.news-card.featured { grid-row: span 2; }
.news-img-placeholder {
  width: 100%;
  background: var(--color-navy);
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 16/9;
}
.news-img-placeholder.tall { aspect-ratio: 4/3; flex: 1; }
.news-img-placeholder i { font-size: 40px; color: rgba(255,255,255,0.2); }
.news-body { padding: 20px; display: flex; flex-direction: column; gap: 8px; }
.news-category {
  font-family: var(--font-condensed);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-red);
}
.news-title {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  color: var(--color-navy);
  line-height: 1.3;
}
.news-card.featured .news-title { font-size: 22px; }
.news-excerpt {
  font-size: 14px;
  color: var(--color-text-secondary);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.news-meta { font-size: 12px; color: var(--color-text-muted); margin-top: auto; padding-top: 8px; }

.news-article-wrap:not(.visible) {
  display: none;
}
.news-article {
  background: var(--color-white);
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 28px;
  box-shadow: var(--shadow-md);
}
.news-article-media {
  background: var(--color-navy);
  aspect-ratio: 1/1;
}
.news-article-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.news-article-body {
  padding: 28px;
}
.news-article-body h2 {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.1;
  color: var(--color-navy);
  margin: 8px 0 4px;
}
.news-article-copy {
  margin-top: 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  color: var(--color-text-secondary);
  font-size: 16px;
  line-height: 1.75;
}
.news-article-copy p {
  margin: 0;
}
.news-article-lead {
  font-family: var(--font-condensed);
  font-size: 20px;
  font-weight: 700;
  color: var(--color-navy);
  text-transform: uppercase;
}
.news-article-divider {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(196, 18, 48, 0.45), transparent);
  margin: 8px 0;
}
.news-article-actions {
  margin-top: 24px;
}

/* ─── Lightbox ─── */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9000;
  background: rgba(0,0,0,0.93);
  align-items: center;
  justify-content: center;
}
.lightbox.open { display: flex; }
.lightbox-img {
  max-width: 88vw;
  max-height: 88vh;
  border-radius: var(--radius-md);
  object-fit: contain;
}
.lightbox-close {
  position: absolute;
  top: 20px;
  right: 24px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  color: var(--color-white);
  font-size: 20px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-base);
}
.lightbox-close:hover { background: var(--color-red); border-color: var(--color-red); }
.lightbox-prev, .lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  color: var(--color-white);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  transition: var(--transition-base);
}
.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }
.lightbox-prev:hover, .lightbox-next:hover { background: var(--color-red); border-color: var(--color-red); }

/* ─── Hide hosting-provider injected widgets ───────────────────────────
   Some free hosting plans inject newsletter forms or banners.
   These rules hide them without affecting site content.
   ─────────────────────────────────────────────────────────────────── */
[id*="hostinger-widget"],
[class*="hostinger-widget"],
[id*="hs-widget"],
[class*="hs-widget"],
[id*="h-widget"],
.h-widget,
#h-widget,
iframe[src*="hostinger"],
div[data-widget],
.widget-newsletter,
#widget-newsletter {
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
  overflow: hidden !important;
}
