/* ============================================================
   CYCLICAL TRACKS — index.css
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600&family=Playfair+Display:wght@400;500;600&family=Open+Sans:wght@300;400;600&display=swap');

:root {
  --black:    #0d0d0d;
  --accent:   #c0203a;
  --white:    #f2f0ec;
  --grey:     #bbb;
  --header-h: 112px;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body {
  background: var(--black);
  color: var(--white);
  font-family: 'Open Sans', sans-serif;
  font-weight: 300;
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
a { color: inherit; text-decoration: none; }
img { display: block; }

/* ══════════════════════════════════════════
   HEADER
══════════════════════════════════════════ */
#site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: #000000;
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

/* ── Logos row ── */
.header-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px 3rem 14px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  gap: 0;
  overflow: hidden;
}

.logo-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 1;
  min-width: 0;
  padding: 0 2rem;
}

.logo {
  height: 52px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  flex-shrink: 1;
}

.logo-sep {
  display: block;
  width: 1px;
  height: 36px;
  background: rgba(255,255,255,0.15);
  flex-shrink: 0;
}

/* ── Nav row ── */
.header-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 3rem;
  height: 42px;
  position: relative;
}

.nav-links {
  display: flex;
  gap: 0;
  list-style: none;
}
.nav-links li a {
  display: block;
  padding: 0 1.4rem;
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--grey);
  line-height: 42px;
  transition: color 0.2s;
  position: relative;
}
.nav-links li a::after {
  content: '';
  position: absolute;
  bottom: 6px; left: 1.4rem; right: 1.4rem;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s var(--ease);
}
.nav-links li a:hover,
.nav-links li a.active { color: var(--white); }
.nav-links li a:hover::after,
.nav-links li a.active::after { transform: scaleX(1); }

.nav-burger {
  display: none;
  position: absolute;
  right: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 6px;
}
.nav-burger span {
  display: block;
  width: 22px; height: 1px;
  background: var(--white);
  transition: transform 0.25s, opacity 0.25s;
}
.nav-burger.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ══════════════════════════════════════════
   HERO CAROUSEL
══════════════════════════════════════════ */
.hero {
  position: relative;
  margin-top: var(--header-h);
  overflow: hidden;
  width: 100%;
}

.hero-track {
  display: flex;
  transition: transform 0.8s var(--ease);
  will-change: transform;
  align-items: flex-start;
}

.slide {
  flex: 0 0 100%;
  position: relative;
  width: 100%;
}

/* La imagen define la altura — ancho 100%, altura proporcional, max 528px */
.slide-img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 528px;
  object-fit: cover;
  object-position: center;
}

@media (max-width: 960px) {
  .slide-img {
    height: 420px;
    max-height: none;
  }
}

@media (max-width: 640px) {
  .slide-img {
    height: 380px;
    max-height: none;
  }
}

.slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(13,13,13,0.2) 0%,
    rgba(13,13,13,0.4) 50%,
    rgba(13,13,13,0.85) 100%
  );
}

.slide-content {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 3rem 5vw 3.5rem;
  z-index: 2;
  max-width: 700px;
}

.slide-label {
  display: block;
  font-size: 0.65rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.6rem;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.5s 0.1s, transform 0.5s 0.1s;
}
.slide-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(3.8rem, 7vw, 6rem);
  font-weight: 400;
  letter-spacing: 0.02em;
  line-height: 1;
  margin-bottom: 0.6rem;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s 0.2s, transform 0.5s 0.2s;
}
.slide-sub {
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  color: rgba(242,240,236,0.65);
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.5s 0.3s, transform 0.5s 0.3s;
}
.slide-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.5s 0.4s, transform 0.5s 0.4s;
}
.slide-cta {
  display: inline-block;
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.35);
  padding: 0.6rem 1.8rem;
  transition: border-color 0.25s, background 0.25s;
}
.slide-cta:hover {
  border-color: var(--accent);
  background: var(--accent);
}
.slide.is-active .slide-label,
.slide.is-active .slide-title,
.slide.is-active .slide-sub,
.slide.is-active .slide-ctas {
  opacity: 1;
  transform: translateY(0);
}

.hero-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: 1px solid rgba(255,255,255,0.18);
  color: var(--white);
  width: 48px; height: 48px;
  font-size: 1.2rem;
  cursor: pointer;
  z-index: 10;
  transition: border-color 0.2s, background 0.2s;
  display: flex; align-items: center; justify-content: center;
}
.hero-btn:hover { border-color: var(--accent); background: rgba(192,32,58,0.15); }
.hero-prev { left: 2rem; }
.hero-next { right: 2rem; }

.hero-dots {
  position: absolute;
  bottom: 2rem;
  right: 2.5rem;
  display: flex;
  gap: 6px;
  z-index: 10;
}
.hero-dot {
  width: 18px; height: 1px;
  background: rgba(255,255,255,0.25);
  border: none; padding: 0;
  cursor: pointer;
  transition: background 0.25s, width 0.25s;
}
.hero-dot.active { background: var(--accent); width: 32px; }

.hero-progress {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: rgba(255,255,255,0.08);
  z-index: 10;
}
.hero-progress-bar {
  height: 100%;
  background: var(--accent);
  width: 0%;
}

/* ══════════════════════════════════════════
   FOOTER
══════════════════════════════════════════ */
#site-footer {
  margin-top: auto;
  background: var(--black);
  border-top: 1px solid rgba(255,255,255,0.05);
  padding: 2rem 2rem 1.8rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.2rem;
}

.footer-nav {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
  justify-content: center;
}
.footer-nav a {
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--grey);
  transition: color 0.2s;
  padding: 0 0.2rem;
}
.footer-nav a:hover { color: var(--white); }
.footer-nav span { color: rgba(255,255,255,0.15); font-size: 0.6rem; }

.footer-social {
  display: flex;
  gap: 0.6rem;
}
.footer-social a {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  display: flex; align-items: center; justify-content: center;
  color: var(--grey);
  transition: background 0.2s, color 0.2s;
}
.footer-social a:hover { background: var(--accent); color: var(--white); }
.footer-social svg { width: 16px; height: 16px; }

.footer-copy {
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #bbb;
}

/* ══════════════════════════════════════════
   RESPONSIVE — MÓVIL (≤ 640px)
   Tres logos en horizontal, reducidos
══════════════════════════════════════════ */
@media (max-width: 640px) {
  :root { --header-h: 90px; }

  .header-logos {
    padding: 12px 1rem 10px;
  }

  .logo-sep { display: block; height: 24px; }

  .logo-wrap { padding: 0 0.8rem; }

  .logo-wrap--cyclical .logo { height: 28px; }
  .logo-wrap--madrid .logo  { height: 20px; }
  .logo-wrap--another .logo { height: 22px; }

  /* Nav burger */
  .nav-burger { display: flex; }
  .nav-links {
    position: fixed;
    top: var(--header-h);
    left: 0; right: 0; bottom: 0;
    z-index: 200;
    background: rgba(0,0,0,0.85);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transform: translateX(100%);
    transition: transform 0.35s var(--ease);
  }
  .nav-links.open { transform: translateX(0); }
  .nav-links li a {
    font-size: 1.1rem;
    letter-spacing: 0.2em;
    line-height: 3rem;
  }
  .nav-links li a::after { display: none; }

  .slide-content { padding: 2rem 1.5rem 2.5rem; }
  .slide-content { display: flex; flex-direction: column; justify-content: flex-end; }
  .hero-prev, .hero-next { display: none; }
}

/* ══════════════════════════════════════════
   RESPONSIVE — TABLET (641px – 960px)
══════════════════════════════════════════ */
@media (min-width: 641px) and (max-width: 960px) {
  .header-logos {
    padding: 16px 2rem 14px;
  }
  .logo-wrap { padding: 0 1.2rem; }
  .logo { max-height: 52px; height: auto; }
}

/* ── Menú móvil overlay (separado del header) ── */
.nav-mobile {
  display: none;
  position: fixed;
  top: 86px;
  left: 0; right: 0; bottom: 0;
  z-index: 999;
  background: rgba(0,0,0,0.82);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  list-style: none;
}
.nav-mobile.open { display: flex; }
@media (min-width: 641px) {
  .nav-mobile { display: none !important; }
}
.nav-mobile li a {
  display: block;
  font-family: 'Montserrat', sans-serif;
  font-size: 1.2rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--white);
  line-height: 3.5rem;
  transition: color 0.2s;
}
.nav-mobile li a:hover { color: var(--accent); }

/* ── Social icon hover colors ── */
.social-youtube:hover   { background: #ff0000 !important; color: #fff !important; }
.social-instagram:hover { background: #c4448a !important; color: #fff !important; }
.social-soundcloud:hover{ background: #ff5500 !important; color: #fff !important; }
.social-spotify:hover   { background: #1db954 !important; color: #fff !important; }
.social-opensea:hover   { background: #2081e2 !important; color: #fff !important; }
.social-bandcamp:hover  { background: #1da0c3 !important; color: #fff !important; }
.social-javh:hover      { background: #0f6151 !important; color: #fff !important; }

/* ══════════════════════════════════════════
   CRT NEWS TERMINAL
══════════════════════════════════════════ */
.crt-section {
  background: var(--black);
  padding: 4rem 2rem;
  display: flex;
  justify-content: center;
}

.crt-screen {
  position: relative;
  width: 100%;
  max-width: 860px;
  background: #0a0008;
  border: 2px solid rgba(192,32,58,0.4);
  border-radius: 6px;
  box-shadow: inset 0 0 40px rgba(0,0,0,6);
  overflow: hidden;
}

/* Scanlines overlay */
.crt-scanlines {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0px,
    transparent 2px,
    rgba(0,0,0,0.15) 2px,
    rgba(0,0,0,0.15) 4px
  );
  pointer-events: none;
  z-index: 2;
}

.crt-inner {
  position: relative;
  z-index: 1;
  padding: 2rem 2.5rem;
}

/* Header con cursor */
.crt-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid rgba(192,32,58,0.2);
}
.crt-header-left {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.crt-booking-btn {
  font-family: "Montserrat", sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--white);
  background: var(--accent);
  padding: 0.4rem 1rem;
  text-decoration: none;
  transition: background 0.2s;
  flex-shrink: 0;
}
.crt-booking-btn:hover { background: #e0304a; }

.crt-cursor {
  font-family: 'Playfair Display', serif;
  font-size: 0.85rem;
  color: var(--accent);
  animation: blink 1.1s step-end infinite;
}

.crt-prompt {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  letter-spacing: 0.2em;
  color: rgba(192,32,58,0.6);
  text-transform: uppercase;
}

/* Log de noticias */
.crt-log {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.crt-log li {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  opacity: 0.85;
  transition: opacity 0.2s;
}
.crt-log li:hover { opacity: 1; }

.crt-date {
  font-family: 'Playfair Display', serif;
  font-size: 0.9rem;
  color: var(--accent);
  letter-spacing: 0.05em;
  flex-shrink: 0;
}

.crt-sep {
  font-family: 'Playfair Display', serif;
  font-size: 0.9rem;
  color: rgba(192,32,58,0.4);
  flex-shrink: 0;
}

.crt-text {
  font-family: 'Playfair Display', serif;
  font-size: 0.9rem;
  color: rgba(243, 234, 238, 0.85);
  letter-spacing: 0.03em;
  line-height: 1.4;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}

@media (max-width: 640px) {
  .crt-section { padding: 2.5rem 1rem; }
  .crt-inner { padding: 1.5rem 1.2rem; }
  .crt-date, .crt-sep, .crt-text { font-size: 0.85rem; }
}
