/* ═══════════════════════════════════════
   CSS CUSTOM PROPERTIES
═══════════════════════════════════════ */
:root {
  --bg-primary: #0a0a0a;
  --bg-secondary: #111111;
  --bg-elevated: #181818;
  --bg-overlay: rgba(10, 10, 10, 0.92);
  --text-primary: #f0ece4;
  --text-secondary: #8a8580;
  --text-muted: #5a5550;
  --accent: #d44000;
  --accent-dim: rgba(232, 113, 10, 0.15);
  --border: rgba(200, 184, 154, 0.12);
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Outfit', sans-serif;
  --transition-smooth: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --transition-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  background: var(--bg-primary);
  color: var(--text-primary);
  overflow-x: hidden;
  line-height: 1.6;
  font-weight: 300;
}

::selection {
  background: var(--accent);
  color: var(--bg-primary);
}

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

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

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

/* ═══════════════════════════════════════
   LOADING SCREEN
═══════════════════════════════════════ */
.loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--bg-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 2rem;
  transition: opacity 0.8s var(--transition-smooth), visibility 0.8s;
}

.loader.hidden {
  opacity: 0;
  visibility: hidden;
}

.loader__name {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 300;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--text-primary);
  opacity: 0;
  animation: fadeUp 1s var(--transition-smooth) 0.2s forwards;
}

.loader__line {
  width: 60px;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  animation: scaleLine 1.2s var(--transition-smooth) 0.5s forwards;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes scaleLine {
  to { transform: scaleX(1); }
}

/* ═══════════════════════════════════════
   HEADER / NAVIGATION
═══════════════════════════════════════ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1.5rem 3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: padding 0.4s var(--transition-smooth);
}

.header.scrolled {
  padding: 1rem 3rem;
}

.logo {
  display: flex;
  align-items: center;
}

.logo__img {
  height: 35px;
  width: auto;
  object-fit: contain;
  transition: opacity 0.3s var(--transition-smooth);
}

.logo:hover .logo__img {
  opacity: 0.8;
}

.nav-social {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-social__link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(240, 236, 228, 0.2);
  transition: all 0.4s var(--transition-smooth);
}

.nav-social__link:hover {
  border-color: var(--accent);
  transform: scale(1.1);
}

.nav-social__link svg {
  width: 16px;
  height: 16px;
  fill: var(--text-primary);
}

/* ═══════════════════════════════════════
   SOCIAL BAR
═══════════════════════════════════════ */
.social-bar {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--accent);
  background: var(--bg-primary);
}

.social-bar__link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  transition: all 0.3s var(--transition-smooth);
}

.social-bar__link svg {
  width: 16px;
  height: 16px;
  fill: var(--accent);
  transition: transform 0.3s var(--transition-smooth);
}

.social-bar__link:hover svg {
  transform: scale(1.2);
  fill: var(--text-primary);
}

/* ═══════════════════════════════════════
   HERO SECTION
═══════════════════════════════════════ */
.hero {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  padding: 2rem 1.5rem 3rem;
  gap: 1.5rem;
  overflow: hidden;
}

.hero__text {
  text-align: center;
  z-index: 2;
}

.hero__title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(3.5rem, 15vw, 10rem);
  font-weight: 400;
  line-height: 0.9;
  letter-spacing: -0.03em;
}

.hero__title em {
  font-style: normal;
  color: var(--accent);
}

.hero__subtitle {
  font-size: 0.95rem;
  font-weight: 200;
  color: var(--text-secondary);
  letter-spacing: 0.15em;
  margin-top: -1rem;
}

/* ── CAROUSEL ── */
.carousel-area {
  width: 100%;
  overflow: hidden;
  position: relative;
}

.carousel-area::before,
.carousel-area::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 3rem;
  z-index: 2;
  pointer-events: none;
}

.carousel-area::before {
  left: 0;
  background: linear-gradient(to right, var(--bg-primary), transparent);
}

.carousel-area::after {
  right: 0;
  background: linear-gradient(to left, var(--bg-primary), transparent);
}

.carousel-track {
  display: flex;
  gap: 0.8rem;
  padding: 0 1rem;
  animation: slideTrack 30s linear infinite;
  will-change: transform;
}

.carousel-track:hover {
  animation-play-state: paused;
}

.carousel-card {
  flex: 0 0 auto;
  width: clamp(140px, 30vw, 280px);
  aspect-ratio: 3/4;
  border-radius: 4px;
  overflow: hidden;
}

.carousel-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.7);
  transition: filter 0.5s var(--transition-smooth);
}

.carousel-card:hover img {
  filter: brightness(0.9);
}

@keyframes slideTrack {
  0% { transform: translateX(0); }
  100% { transform: translateX(calc(-1 * (clamp(140px, 30vw, 280px) + 0.8rem) * var(--card-count))); }
}


/* ═══════════════════════════════════════
   ACTIONS SECTION
═══════════════════════════════════════ */
.actions {
  position: relative;
  padding: 0rem 3rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.actions__divider {
  width: 1px;
  height: 30px;
  background: linear-gradient(to bottom, var(--accent), transparent);
  margin-bottom: 0;
}

.actions__label {
  font-family: var(--font-body);
  font-size: 0.65rem;
  font-weight: 400;
  letter-spacing: 0.6em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.actions__grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  max-width: 900px;
}

.actions__grid .btn--solid {
  flex-basis: 100%;
  max-width: 433px;
}

/* ═══════════════════════════════════════
   BUTTONS
═══════════════════════════════════════ */
.btn {
  position: relative;
  padding: 1rem 2.5rem;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  border: 1px solid var(--border);
  border-radius: 0;
  background: transparent;
  color: var(--text-primary);
  transition: all 0.5s var(--transition-smooth);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-width: 140px;
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s var(--transition-smooth);
  z-index: -1;
}

.btn:hover {
  border-color: var(--accent);
  color: var(--bg-primary);
}

.btn:hover::before {
  transform: scaleX(1);
}

.btn--outline {
  border-color: var(--accent);
  color: var(--accent);
}

.btn--accent {
  border-color: var(--accent);
  color: var(--accent);
}

.btn--solid {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--bg-primary);
  grid-column: 1 / -1;

}

.btn--solid .btn__icon svg {
  fill: var(--bg-primary);
}

.btn--solid::before {
  background: var(--text-primary);
}

.btn--solid:hover {
  border-color: var(--text-primary);
  color: var(--bg-primary);
}

.btn__icon {
  display: block;
  text-align: center;
  margin-bottom: 0.4rem;
  margin-right: 0;
}

.btn__icon svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

.btn__icon svg[fill="none"] {
  fill: none;
  stroke: currentColor;
}

/* ═══════════════════════════════════════
   FOOTER
═══════════════════════════════════════ */
.footer {
  padding: 3rem;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer__copy {
  font-size: 0.7rem;
  font-weight: 300;
  color: var(--text-muted);
  letter-spacing: 0.1em;
}

.footer__links {
  display: flex;
  gap: 2rem;
}

.footer__link {
  font-size: 0.7rem;
  font-weight: 300;
  color: var(--text-secondary);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  transition: color 0.3s;
}

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

.footer__credit {
  font-size: 0.6rem;
  font-weight: 300;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  width: 100%;
  text-align: center;
  margin-top: 0.5rem;
}

.footer__credit-link {
  color: var(--accent);
  transition: color 0.3s;
}

.footer__credit-link:hover {
  color: var(--text-primary);
}

@media (min-width: 769px) {
  .footer {
    flex-direction: column;
    text-align: center;
  }

  .footer__copy {
    font-size: 0.8rem;
    width: 100%;
    text-align: center;
  }

  .footer__credit {
    font-size: 0.8rem;
  }
}

/* ═══════════════════════════════════════
   TRAYECTORIA MODAL
═══════════════════════════════════════ */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: var(--bg-overlay);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  opacity: 0;
  visibility: hidden;
  transition: all 0.5s var(--transition-smooth);
  overflow-y: auto;
  overscroll-behavior: contain;
}

.modal-overlay.open {
  opacity: 1;
  visibility: visible;
}

.modal {
  min-height: 100vh;
  padding: 6rem 3rem 4rem;
  max-width: 1000px;
  margin: 0 auto;
  transform: translateY(30px);
  transition: transform 0.6s var(--transition-smooth);
}

.modal-overlay.open .modal {
  transform: translateY(0);
}

.modal__close {
  position: fixed;
  top: 1.5rem;
  right: 2rem;
  z-index: 1001;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: rgba(10, 10, 10, 0.8);
  backdrop-filter: blur(10px);
  transition: all 0.4s var(--transition-smooth);
}

.modal__close:hover {
  border-color: var(--accent);
  transform: rotate(90deg);
}

.modal__close svg {
  width: 18px;
  height: 18px;
  stroke: var(--text-primary);
  fill: none;
  stroke-width: 1.5;
}

.modal__header {
  margin-bottom: 4rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border);
}

.modal__tag {
  font-size: 0.65rem;
  font-weight: 400;
  letter-spacing: 0.6em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}

.modal__title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 300;
  line-height: 1;
  letter-spacing: -0.02em;
}

/* Presskit Bio */
.presskit {
  margin-bottom: 4rem;
}

.presskit__text {
  font-size: 1rem;
  font-weight: 200;
  line-height: 1.8;
  color: var(--text-secondary);
  max-width: 680px;
}

.presskit__text + .presskit__text {
  margin-top: 1.5rem;
}

.presskit__highlight {
  color: var(--text-primary);
  font-weight: 300;
}

/* Venues Grid */
.venues {
  margin-bottom: 4rem;
}

.venues__heading {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 400;
  letter-spacing: 0.05em;
  color: var(--text-primary);
  margin-bottom: 2rem;
}

.venues__list {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.venues__category {
  border-top: 1px solid var(--border);
  padding-top: 2rem;
}

.venues__cat-title {
  font-family: var(--font-body);
  font-size: 0.65rem;
  font-weight: 400;
  letter-spacing: 0.5em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.5rem;
}

.venues__cat-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.venue-card {
  padding: 0.6rem 1rem;
  border: 1px solid var(--border);
  border-radius: 2px;
  transition: all 0.4s var(--transition-smooth);
  cursor: default;
}

.venue-card:hover {
  border-color: var(--accent);
}

.venue-card__name {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 300;
  letter-spacing: 0.08em;
  color: var(--text-secondary);
  transition: color 0.3s;
}

.venue-card:hover .venue-card__name {
  color: var(--accent);
}

/* Modal Gallery */
.modal-gallery {
  margin-bottom: 4rem;
}

.modal-gallery__heading {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 400;
  letter-spacing: 0.05em;
  color: var(--text-primary);
  margin-bottom: 2rem;
}

.modal-gallery__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3px;
}

.modal-gallery__item {
  aspect-ratio: 4/3;
  overflow: hidden;
  position: relative;
  cursor: zoom-in;
} 

.modal-gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.6) saturate(0.7);
  transition: all 0.6s var(--transition-smooth);
}

.modal-gallery__item:hover img {
  filter: brightness(0.8) saturate(1);
  transform: scale(1.05);
}

/* ═══════════════════════════════════════
   SCROLL REVEAL ANIMATION
═══════════════════════════════════════ */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s var(--transition-smooth), transform 0.8s var(--transition-smooth);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ═══════════════════════════════════════
   GRAIN OVERLAY (texture)
═══════════════════════════════════════ */
.grain {
  position: fixed;
  inset: 0;
  z-index: 9998;
  pointer-events: none;
  opacity: 0.035;
  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='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 200px;
}

/* ═══════════════════════════════════════
   RIDER TÉCNICO
═══════════════════════════════════════ */
.rider {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  margin-bottom: 4rem;
}

.rider__option {
  border-left: 2px solid var(--accent);
  padding-left: 1.5rem;
}

.rider__label {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}

.rider__text {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 300;
  color: var(--text-secondary);
  line-height: 1.8;
}

/* ═══════════════════════════════════════
   LIGHTBOX
═══════════════════════════════════════ */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0, 0, 0, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s var(--transition-smooth);
  cursor: zoom-out;
}

.lightbox.open {
  opacity: 1;
  visibility: visible;
}

.lightbox__img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 4px;
  transform: scale(0.9);
  transition: transform 0.4s var(--transition-smooth);
}

.lightbox.open .lightbox__img {
  transform: scale(1);
}

.lightbox__close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 50%;
  background: rgba(0,0,0,0.5);
  cursor: pointer;
  transition: all 0.3s var(--transition-smooth);
}

.lightbox__close:hover {
  border-color: var(--accent);
  transform: rotate(90deg);
}

.lightbox__close svg {
  width: 16px;
  height: 16px;
  stroke: white;
  fill: none;
  stroke-width: 2;
}

/* ═══════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════ */

/* ── TABLET ── */
@media (max-width: 768px) {

  .hero {
    padding: 1rem 0.5rem;
    gap: 0.8rem;
  }

  .carousel-card {
    width: 35vw;
  }

  .actions {
    padding: 2rem 1.5rem 3rem;
  }

  .actions__grid {
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
    gap: 0.6rem;
  }

  .btn {
    flex: 0 1 auto;
    font-size: 0.6rem;
    padding: 0.8rem 1.2rem;
    letter-spacing: 0.15em;
    min-width: 120px;
  }

  .btn__icon svg {
    width: 12px;
    height: 12px;
  }

  .modal {
    padding: 5rem 1.5rem 3rem;
  }

  .modal-gallery__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer {
    padding: 2rem 1.5rem;
    flex-direction: column;
    text-align: center;
  }
}


/* ── MOBILE ── */
@media (max-width: 480px) {

  .hero {
    padding: 0.5rem 0.5rem;
    gap: 2rem;
    height: auto;
    min-height: 0;
    justify-content: flex-start;
    padding-top: 2rem;
  }

  .hero__title {
    font-size: clamp(4rem, 16vw, 4rem);
  }

  .hero__subtitle {
    margin-top: -0.3rem;
  }

  .carousel-card {
    width: 44vw;
    aspect-ratio: 3/5.5;
  }

  .actions {
    padding: 0.5rem 1rem 2rem;
    gap: 0.5rem;
  }

  .actions__divider {
    height: 15px;
  }

  .actions__label {
    margin-bottom: 0.2rem;
  }

  .actions__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    width: 100%;
    max-width: 300px;
  }

  .btn {
    min-width: 0;
    width: 100%;
    padding: 0.8rem 0.5rem;
    font-size: 0.55rem;
    letter-spacing: 0.1em;
  }

  .btn__icon {
    margin-bottom: 0.3rem;
  }

  .btn__icon svg {
    width: 14px;
    height: 14px;
  }

  .modal {
    padding: 4rem 1rem 2rem;
  }

  .modal__title {
    font-size: 2rem;
  }

  .modal__header {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
  }

  .modal-gallery__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .presskit__text {
    font-size: 0.9rem;
  }

  .rider__text {
    font-size: 0.9rem;
  }

  .venues__cat-grid {
    gap: 0.4rem;
  }

  .venue-card {
    padding: 0.5rem 0.8rem;
  }

  .venue-card__name {
    font-size: 0.75rem;
  }

  .footer {
    padding: 1.5rem 1rem;
  }

  .footer__copy {
    font-size: 0.6rem;
  }
}

/* ── FIX OVERFLOW ── */
html, body {
  overflow-x: hidden;
  max-width: 100vw;
}