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

:root {
  --cyan:    #00d4ff;
  --magenta: #d63aff;
  --violet:  #7b3fff;
  --dark:    #06040f;
  --dark2:   #0c0820;
  --dark3:   #130d2b;
  --offwhite:#e8e4f8;
  --muted:   #6a5f8b;
  --accent:  #00d4ff;
  --font-display: 'Bebas Neue', sans-serif;
  --font-body:    'Space Mono', monospace;
  --shell-max: 1440px; /* ancho máximo para evitar ultra-wide “aireado” */
}

html, body {
  height: 100%;
  background: var(--dark);
  color: var(--offwhite);
  font-family: var(--font-body);
  overflow-x: hidden;
}

/* GRAIN */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  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");
  opacity: 0.04;
  pointer-events: none;
  z-index: 9999;
}

/* AMBIENT GLOW BG */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 20% 80%, rgba(214,58,255,0.18) 0%, transparent 70%),
    radial-gradient(ellipse 50% 40% at 80% 20%, rgba(0,212,255,0.15) 0%, transparent 70%),
    radial-gradient(ellipse 40% 60% at 50% 50%, rgba(123,63,255,0.10) 0%, transparent 80%);
  pointer-events: none;
  z-index: 0;
}

/* WAVE BG */
.wave-bg {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 260px;
  opacity: 0.10;
  pointer-events: none;
  z-index: 0;
}

/* Language switch (ES | EN) */
.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-left: 14px;
}
.lang-switch button {
  appearance: none;
  border: 0;
  background: transparent;
  color: rgba(232, 224, 248, 0.78);
  font-family: var(--font-body);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  cursor: pointer;
  padding: 6px 8px;
  border-radius: 8px;
}
.lang-switch .sep {
  color: rgba(232, 224, 248, 0.35);
  letter-spacing: 0.12em;
}
.lang-switch button[aria-pressed="true"] {
  color: #fff;
  box-shadow: 0 0 0 1px rgba(0, 212, 255, 0.32) inset;
  background: rgba(0, 212, 255, 0.06);
}
.lang-switch button:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
}

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--shell-max);
  margin-left: auto;
  margin-right: auto;
  gap: 18px; /* separa header/main para evitar solapes en alturas raras */
}

/* ─── HEADER ─────────────────────────────── */
header {
  padding: 40px 48px 0;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  opacity: 0;
  animation: fadeUp 0.8s ease forwards 0.1s;
}

.logo-name {
  font-family: var(--font-display);
  font-size: clamp(52px, 8vw, 92px);
  letter-spacing: 0.04em;
  line-height: 0.92;
  color: var(--offwhite);
  text-shadow: 0 0 40px rgba(0,212,255,0.25);
}

/* Slightly larger subtitle */
.logo-trip {
  font-size: clamp(12px, 1.6vw, 17px);
  letter-spacing: 0.28em;
  color: var(--cyan);
  margin-top: 8px;
  text-transform: uppercase;
  opacity: 0.9;
}

/* ─── MAIN ───────────────────────────────── */
main {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 48px;
}

@media (min-width: 920px) {
  main { padding-right: 520px; }
  header { padding-right: 520px; }
  footer { padding-right: 520px; }
}

.photo-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  align-items: center;
  min-height: 60vh;
  opacity: 0;
  animation: fadeUp 0.8s ease forwards 0.3s;
}

/* Pantallas “casi cuadradas”: evitar solapes y acercar el bloque al header */
@media (min-width: 701px) and (max-aspect-ratio: 5/4) {
  header { padding-top: 28px; }
  .page { gap: 24px; }
  main { justify-content: flex-start; padding-top: 18px; }
  .photo-section { align-items: start; min-height: auto; padding-top: 10px; }
}

/* ─── PHOTO ──────────────────────────────── */
.photo-frame {
  position: relative;
  width: 100%;
  max-width: 420px;
}

/* Glow halo behind photo */
.photo-frame::before {
  content: '';
  position: absolute;
  inset: -20px;
  background: radial-gradient(ellipse at center,
    rgba(214,58,255,0.35) 0%,
    rgba(0,212,255,0.2) 40%,
    transparent 70%);
  z-index: 0;
  filter: blur(20px);
}

.photo-frame img {
  display: block;
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
  object-position: top;
  position: relative;
  z-index: 1;
  clip-path: polygon(0 0, 100% 0, 100% 88%, 88% 100%, 0 100%);
}

/* Animated gradient border */
.photo-frame::after {
  content: '';
  position: absolute;
  inset: -2px;
  padding: 1px; /* borde fino */
  background: linear-gradient(90deg,
    rgba(0,212,255,0.95),
    rgba(214,58,255,0.95),
    rgba(123,63,255,0.95),
    rgba(0,212,255,0.95)
  );
  background-size: 300% 300%;
  animation: borderShift 12s ease-in-out infinite;
  clip-path: polygon(0 0, 100% 0, 100% 88%, 88% 100%, 0 100%);
  z-index: 2;
  pointer-events: none;

  /* recorta el centro para que solo quede el borde */
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
}

@keyframes borderShift {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Corner marks */
.corner-tl, .corner-br {
  position: absolute;
  width: 50px;
  height: 50px;
  z-index: 3;
}
.corner-tl {
  top: -10px; left: -10px;
  border-left: 1px solid var(--cyan);
  border-top: 1px solid var(--cyan);
  opacity: 0.7;
}
.corner-br {
  bottom: -10px; right: -10px;
  border-right: 1px solid var(--magenta);
  border-bottom: 1px solid var(--magenta);
  opacity: 0.7;
}

/* ─── TEXT SIDE ──────────────────────────── */
.text-side {
  padding-left: clamp(32px, 5vw, 80px);
  display: flex;
  flex-direction: column;
  gap: 28px;
}

/* ─── ANIMATED HEADLINE ──────────────────── */
.headline {
  font-family: var(--font-display);
  font-size: clamp(48px, 7vw, 86px);
  line-height: 0.92;
  color: var(--offwhite);
}

/* The cycling word container */
.cycling-word {
  display: inline-block;
  color: var(--magenta);
  font-style: normal;
  text-shadow: 0 0 30px rgba(214,58,255,0.5);
  position: relative;
  vertical-align: bottom;
}

.cycling-word .word {
  display: inline-block;
  position: absolute;
  top: 0;
  left: 0;
  white-space: nowrap;
  opacity: 0;
  filter: blur(6px);
  transition: opacity 650ms ease, filter 650ms ease;
}

.cycling-word .word-placeholder {
  visibility: hidden;
  display: inline-block;
}

.cycling-word .word.is-active {
  opacity: 1;
  filter: blur(0px);
}

/* ─── DESCRIPTOR ─────────────────────────── */
.descriptor {
  font-size: clamp(12px, 1.3vw, 15px);
  letter-spacing: 0.10em;
  color: rgba(232, 224, 248, 0.88);
  line-height: 1.9;
  max-width: 320px;
  background: rgba(14, 14, 24, 0.55);
  border: 1px solid rgba(201, 169, 110, 0.22);
  box-shadow: 0 0 0 1px rgba(6, 4, 15, 0.35) inset;
  padding: 14px 18px;
  border-radius: 10px;
}

/* ─── RELEASE BUTTON ─────────────────────── */
.release-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  background: linear-gradient(135deg, rgba(0,212,255,0.15), rgba(214,58,255,0.15));
  border: 1px solid rgba(0,212,255,0.5);
  color: var(--cyan);
  font-family: var(--font-body);
  font-size: clamp(11px, 1.1vw, 13px);
  letter-spacing: 0.18em;
  text-decoration: none;
  text-transform: uppercase;
  transition: all 0.3s ease;
  align-self: flex-start;
  position: relative;
  overflow: hidden;
}
.release-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0,212,255,0.1), rgba(214,58,255,0.1));
  opacity: 0;
  transition: opacity 0.3s;
}
.release-btn:hover {
  border-color: var(--cyan);
  box-shadow: 0 0 20px rgba(0,212,255,0.3), 0 0 40px rgba(214,58,255,0.15);
  color: #fff;
}
.release-btn:hover::before { opacity: 1; }
.release-btn svg { width: 16px; height: 16px; flex-shrink: 0; }
.release-label {
  font-size: clamp(10px, 1vw, 12px);
  letter-spacing: 0.28em;
  color: rgba(232, 224, 248, 0.75);
  text-transform: uppercase;
  margin-bottom: -10px;
}

/* ─── DITTO / RELEASE SIDEBAR ────────────── */
.release-sidebar {
  position: fixed;
  top: 34px;
  right: 34px;
  width: min(420px, calc(100vw - 32px));
  z-index: 50;
}
.release-sidebar-inner {
  background: rgba(14, 14, 24, 0.72);
  border: 1px solid rgba(0, 212, 255, 0.22);
  box-shadow: 0 20px 60px rgba(0,0,0,0.45);
  border-radius: 14px;
  padding: 14px 14px 16px;
  backdrop-filter: blur(10px);
  height: calc(100vh - 68px);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.release-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 2px;
}
.release-tab {
  appearance: none;
  border: 1px solid rgba(106, 95, 139, 0.75);
  background: rgba(6, 4, 15, 0.35);
  color: rgba(232, 224, 248, 0.85);
  font-family: var(--font-body);
  font-size: 11px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  padding: 8px 10px;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.release-tab[aria-selected="true"] {
  border-color: rgba(0, 212, 255, 0.55);
  box-shadow: 0 0 0 1px rgba(0,212,255,0.18) inset;
  background: rgba(0,212,255,0.08);
  color: #fff;
}
.release-tab:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
}
.release-alt-links {
  display: none;
  flex-direction: column;
  gap: 10px;
}
.release-alt-links.is-visible { display: flex; }
.release-alt-links .links-label {
  margin-top: 4px;
}
.release-alt-links {
  margin-top: 6px;
  padding-top: 12px;
  border-top: 1px solid rgba(0, 212, 255, 0.14);
}
.release-alt-links .links-row {
  width: 100%;
  display: flex;
  flex-wrap: nowrap;
  gap: 0;
  border: 1px solid rgba(106, 95, 139, 0.65);
  border-radius: 12px;
  overflow: hidden;
  background: rgba(6, 4, 15, 0.25);
}
.release-alt-links .link-pill {
  flex: 1 1 50%;
  justify-content: center;
  border: 0;
  border-radius: 0;
  padding: 12px 10px;
}
.release-alt-links .link-pill + .link-pill {
  border-left: 1px solid rgba(106, 95, 139, 0.65);
}
.release-sidebar .release-label { margin-bottom: 10px; }
.release-sidebar .release-btn { width: 100%; justify-content: center; }
.release-embed {
  width: 100%;
  flex: 1;
  min-height: 360px;
  border: 0;
  border-radius: 12px;
  background: rgba(6, 4, 15, 0.8);
}

/* ─── LINKS ──────────────────────────────── */
.links-section { display: flex; flex-direction: column; gap: 12px; }
.links-label {
  font-size: clamp(11px, 1.1vw, 13px);
  letter-spacing: 0.28em;
  color: rgba(232, 224, 248, 0.80);
  text-transform: uppercase;
  margin-bottom: 2px;
  font-weight: 700;
}
.links-row { display: flex; flex-wrap: wrap; gap: 10px; }

.link-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border: 1px solid var(--muted);
  color: var(--offwhite);
  font-family: var(--font-body);
  font-size: clamp(11px, 1.1vw, 13px);
  letter-spacing: 0.10em;
  text-decoration: none;
  text-transform: uppercase;
  transition: all 0.25s ease;
  border-radius: 2px;
  --pill-accent: var(--magenta);
}
.link-pill:hover {
  border-color: var(--pill-accent);
  color: var(--pill-accent);
  background: color-mix(in srgb, var(--pill-accent) 11%, transparent);
  box-shadow: 0 0 12px color-mix(in srgb, var(--pill-accent) 26%, transparent);
}
.link-pill:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
}
.link-pill svg { width: 14px; height: 14px; flex-shrink: 0; }

/* Platform glows (based on href) */
.link-pill[href*="spotify.com"] { --pill-accent: #1DB954; }
.link-pill[href*="soundcloud.com"] { --pill-accent: #ff5500; }
.link-pill[href*="youtube.com"],
.link-pill[href*="youtu.be"] { --pill-accent: #ff0033; }
.link-pill[href*="music.apple.com"] { --pill-accent: #ff2d55; }
.link-pill[href*="instagram.com"] { --pill-accent: #E1306C; }
.link-pill[href*="tiktok.com"] { --pill-accent: #25F4EE; }
.link-pill[href*="facebook.com"] { --pill-accent: #1877F2; }

.contact-line {
  font-size: clamp(12px, 1.2vw, 14px);
  letter-spacing: 0.14em;
  color: rgba(232, 224, 248, 0.78);
}
.contact-line a {
  color: var(--cyan);
  text-decoration: none;
  transition: color 0.2s;
}
.contact-line a:hover { color: #fff; }

/* ─── FOOTER ─────────────────────────────── */
footer {
  padding: 24px 48px 36px;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeUp 0.8s ease forwards 0.6s;
}
footer .footer-copy { flex: 1 1 auto; min-width: 240px; order: 1; }
footer .footer-wave {
  flex: 0 0 auto;
  flex-shrink: 0;
  display: block;
  margin-left: auto;
  opacity: 1;
  order: 2;
}
footer .footer-wave path {
  stroke: url(#footerGrad);
  stroke-linecap: round;
}

/* Desktop: evitar wrap raro bajo la sidebar */
@media (min-width: 920px) {
  /* En desktop lo fijamos abajo para que nunca quede debajo de la sidebar */
  footer {
    flex-wrap: nowrap;
    position: fixed;
    left: 0;
    right: 0;
    transform: none;
    width: auto;
    bottom: 0;
    z-index: 60; /* arriba de la sidebar */
    padding-top: 14px;
    padding-bottom: 14px;
    padding-left: calc(max(0px, (100vw - var(--shell-max)) / 2) + 48px);
    padding-right: calc(max(0px, (100vw - var(--shell-max)) / 2) + 520px); /* + sidebar */
    background: rgba(6, 4, 15, 0.55);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(0, 212, 255, 0.10);
  }

  /* Para que el footer fijo no tape contenido */
  .page { padding-bottom: 70px; }

  /* Alinea la sidebar fija con el contenedor centrado */
  .release-sidebar {
    right: calc(max(0px, (100vw - var(--shell-max)) / 2) + 34px);
  }
}
.footer-copy {
  font-size: clamp(10px, 1vw, 12px);
  letter-spacing: 0.18em;
  color: var(--muted);
  text-transform: uppercase;
}

/* ─── EQ BARS ────────────────────────────── */
.eq-bars { display: flex; align-items: flex-end; gap: 3px; height: 20px; }
.eq-bar {
  width: 3px;
  border-radius: 1px;
  animation: eq var(--d,0.8s) ease-in-out infinite alternate;
}
.eq-bar:nth-child(odd)  { background: var(--cyan); opacity: 0.7; }
.eq-bar:nth-child(even) { background: var(--magenta); opacity: 0.6; }
@keyframes eq {
  from { height: 4px; }
  to   { height: var(--h, 18px); }
}

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

/* ─── RESPONSIVE ─────────────────────────── */
@media (max-width: 700px) {
  header { padding: 24px 20px 0; }
  main { padding: 0 20px; }
  footer { padding: 20px 20px 28px; flex-direction: column; gap: 12px; align-items: flex-start; }
  .photo-section { grid-template-columns: 1fr; gap: 32px; padding-top: 28px; }
  .photo-frame { max-width: 240px; margin: 0 auto; }
  .text-side { padding-left: 0; }
  .release-sidebar {
    position: static;
    width: 100%;
    margin: 20px 0 0;
  }
  .release-sidebar-inner {
    height: auto;
  }
  .release-embed {
    flex: none;
    height: 65vh;
    min-height: 400px;
  }
  .links-row { gap: 8px; }
  .link-pill { padding: 9px 13px; }
}

@media (min-width: 701px) and (max-width: 919px) {
  header { padding: 30px 32px 0; }
  main { padding: 0 32px; }
  .photo-frame { max-width: 320px; }
  .release-sidebar {
    position: static;
    width: 100%;
    margin: 20px 0 0;
  }
  .release-sidebar-inner { height: auto; }
  .release-embed {
    flex: none;
    height: 60vh;
    min-height: 380px;
  }
}
