/* Fuentes locales */
@font-face {
  font-family: 'League Gothic';
  src: url('assets/fonts/LeagueGothic-Regular-VariableFont_wdth.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Cutive Mono';
  src: url('assets/fonts/CutiveMono-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg-black: #000000;
  --white: #ebebeb;
  --red: #b51212;
  --red-bright: #d91c1c;
  --red-glow: rgba(181, 18, 18, 0.45);

  --font-display: 'League Gothic', sans-serif;
  --font-mono: 'Cutive Mono', monospace;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  min-height: 100%;
  background-color: var(--bg-black);
  color: var(--white);
  font-family: var(--font-mono);
  -webkit-font-smoothing: antialiased;
}

body {
  display: flex;
  min-height: 100vh;
  overflow-x: hidden;
}

body.menu-open,
body.modal-open {
  overflow: hidden;
}

/* Grano ultra fino sobre negro puro (#000000) */
.grain-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 999;
  opacity: 0.14;
  mix-blend-mode: screen;
  background-size: 140px 140px;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.35' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3CfeComponentTransfer%3E%3CfeFuncR type='linear' slope='3.5' intercept='-2.2'/%3E%3CfeFuncG type='linear' slope='3.5' intercept='-2.2'/%3E%3CfeFuncB type='linear' slope='3.5' intercept='-2.2'/%3E%3C/feComponentTransfer%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Contenedor principal a pantalla completa */
.site-frame {
  flex: 1;
  width: 100%;
  background-color: var(--bg-black);
  display: flex;
  flex-direction: column;
  padding: 36px 56px 28px;
  position: relative;
}

/* --- HEADER Y MENÚ --- */
.site-header {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  width: 100%;
  margin-bottom: 24px;
}

.nav-brand {
  justify-self: start;
  display: inline-block;
  padding-bottom: 18px;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.nav-brand img {
  height: 58px;
  width: auto;
  display: block;
}

.nav-brand:hover {
  opacity: 0.75;
  transform: scale(1.04);
}

.main-nav {
  justify-self: center;
}

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 42px;
  align-items: center;
}

.main-nav a {
  font-family: var(--font-display);
  font-size: 2.3rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--white);
  position: relative;
  padding-bottom: 18px;
  display: inline-block;
  transition: color 0.25s ease, text-shadow 0.25s ease;
}

/* Punto rojo debajo de cada sección */
.main-nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%) scale(0);
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background-color: var(--red-bright);
  box-shadow: 0 0 10px var(--red-bright);
  opacity: 0;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

/* Estado activo y hover */
.main-nav a.active,
.main-nav a:hover {
  color: var(--red);
  text-shadow: 0 0 14px var(--red-glow);
}

.main-nav a.active::after,
.main-nav a:hover::after {
  opacity: 1;
  transform: translateX(-50%) scale(1);
}

/* Íconos de DSPs y redes sociales (esquina derecha) */
.header-socials {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 16px;
  padding-bottom: 18px;
}

.header-socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  opacity: 0.82;
  transition: opacity 0.25s ease, transform 0.25s ease, filter 0.25s ease;
}

.header-socials img {
  width: 20px;
  height: 20px;
  object-fit: contain;
  display: block;
  filter: brightness(0) invert(1);
  transition: filter 0.25s ease;
}

.header-socials a:hover {
  opacity: 1;
  transform: scale(1.14);
}

.header-socials a:hover img {
  filter: brightness(0) saturate(100%) invert(18%) sepia(87%) saturate(4456%) hue-rotate(354deg) brightness(91%) contrast(115%) drop-shadow(0 0 8px var(--red-glow));
}

/* Botón de tres líneas verticales (oculto en escritorio) */
.menu-toggle {
  display: none;
  position: relative;
  z-index: 950;
  width: 40px;
  height: 40px;
  background: transparent;
  border: none;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 6px;
}

.menu-toggle .bar {
  width: 2px;
  height: 24px;
  background-color: var(--white);
  border-radius: 1px;
  display: block;
  transition: transform 0.3s ease, opacity 0.25s ease, background-color 0.25s ease, box-shadow 0.25s ease;
}

.menu-toggle:hover .bar {
  background-color: var(--red-bright);
  box-shadow: 0 0 8px var(--red-glow);
}

/* Animación de las 3 barras verticales a X al abrir */
.menu-toggle.is-open .bar {
  background-color: var(--red-bright);
  box-shadow: 0 0 10px var(--red-glow);
}

.menu-toggle.is-open .bar:nth-child(1) {
  transform: translateX(8px) rotate(45deg);
}

.menu-toggle.is-open .bar:nth-child(2) {
  opacity: 0;
  transform: scaleY(0);
}

.menu-toggle.is-open .bar:nth-child(3) {
  transform: translateX(-8px) rotate(-45deg);
}

/* --- LAYOUT PRINCIPAL DE INICIO --- */
.inicio-layout {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(220px, 310px) minmax(240px, 1fr) minmax(220px, 310px);
  align-items: center;
  justify-items: center;
  gap: 48px;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
}

/* --- LAYOUT DE CORPUS (FILAS DE 3 EN ESCRITORIO) --- */
.corpus-layout {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(220px, 310px));
  justify-content: center;
  align-items: start;
  gap: 52px 48px;
  width: 100%;
  max-width: 1120px;
  margin: 28px auto 40px;
}

/* --- LAYOUT DE SUMMARIUM (ZIG-ZAG) --- */
.summarium-layout {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 72px;
  width: 100%;
  max-width: 960px;
  margin: 32px auto 48px;
}

.summarium-row {
  display: grid;
  grid-template-columns: minmax(240px, 340px) 1fr;
  align-items: center;
  gap: 56px;
}

.summarium-row.is-reversed {
  grid-template-columns: 1fr minmax(240px, 340px);
}

.summarium-media {
  width: 100%;
}

.summarium-text {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.summarium-index {
  font-family: var(--font-display);
  font-size: 1.5rem;
  letter-spacing: 0.12em;
  color: var(--red-bright);
  text-shadow: 0 0 12px var(--red-glow);
  user-select: none;
}

.summarium-text p {
  font-family: var(--font-mono);
  font-size: 0.96rem;
  line-height: 1.85;
  color: rgba(235, 235, 235, 0.88);
  letter-spacing: 0.02em;
}

/* --- LAYOUT DE ANATOMIA (BIOGRAFÍA LARGA) --- */
.anatomia-layout {
  flex: 1;
  width: 100%;
  max-width: 720px;
  margin: 36px auto 56px;
  display: flex;
  flex-direction: column;
  gap: 52px;
}

.anatomia-chapter {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.anatomia-chapter h2 {
  font-family: var(--font-display);
  font-size: 2.15rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--white);
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
}

.anatomia-chapter .chapter-num {
  color: var(--red-bright);
  text-shadow: 0 0 12px var(--red-glow);
  margin-right: 6px;
}

.anatomia-chapter p {
  font-family: var(--font-mono);
  font-size: 0.96rem;
  line-height: 1.9;
  color: rgba(235, 235, 235, 0.88);
  letter-spacing: 0.02em;
}

.anatomia-dedication {
  margin-top: 16px;
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  font-family: var(--font-mono);
  font-size: 0.92rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  text-align: center;
  color: rgba(235, 235, 235, 0.72);
}

/* --- LAYOUT DE ITER (FORMULARIO DE CONTACTO) --- */
.iter-layout {
  flex: 1;
  width: 100%;
  max-width: 620px;
  margin: 24px auto 44px;
  display: flex;
  align-items: center;
}

.iter-frame {
  width: 100%;
  padding: 5px;
  border-radius: 10px;
  background: linear-gradient(
    140deg,
    #bdbdbd 0%,
    #787878 28%,
    #3d3d3d 55%,
    #9e9e9e 78%,
    #525252 100%
  );
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow:
    inset 1px 1px 4px rgba(255, 255, 255, 0.5),
    inset -2px -2px 5px rgba(0, 0, 0, 0.85),
    0 0 32px var(--red-glow);
}

.iter-inner {
  width: 100%;
  padding: 32px 30px;
  border-radius: 5px;
  background: linear-gradient(180deg, #070707 0%, #020202 100%);
  border: 1px solid #000000;
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.95);
}

.iter-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  border: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-label {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  color: rgba(235, 235, 235, 0.78);
}

.form-label .req {
  color: var(--red-bright);
}

.form-label .opt {
  color: rgba(235, 235, 235, 0.42);
  font-size: 0.74rem;
}

/* Selector táctil Producción / Prensa */
.radio-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.radio-option {
  position: relative;
  cursor: pointer;
}

.radio-option input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}

.radio-option span {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 12px;
  border-radius: 4px;
  font-family: var(--font-display);
  font-size: 1.45rem;
  letter-spacing: 0.08em;
  color: rgba(235, 235, 235, 0.65);
  background: linear-gradient(145deg, #121212 0%, #060606 100%);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: inset 0 1px 4px rgba(0, 0, 0, 0.9);
  transition: color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.radio-option:hover span {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.3);
}

.radio-option input:checked + span {
  color: var(--red-bright);
  border-color: rgba(217, 28, 28, 0.75);
  background: linear-gradient(145deg, #1b0505 0%, #0a0202 100%);
  box-shadow:
    inset 0 0 12px rgba(181, 18, 18, 0.25),
    0 0 14px var(--red-glow);
}

.radio-option input:focus-visible + span {
  outline: 1px solid var(--red-bright);
  outline-offset: 2px;
}

/* Campos de texto y select */
.form-input {
  width: 100%;
  padding: 10px 12px;
  border-radius: 4px;
  background-color: #050505;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.95);
  color: var(--white);
  font-family: var(--font-mono);
  font-size: 0.88rem;
  letter-spacing: 0.02em;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.form-input::placeholder {
  color: rgba(235, 235, 235, 0.3);
}

.form-input:focus {
  outline: none;
  border-color: rgba(217, 28, 28, 0.75);
  box-shadow:
    inset 0 2px 5px rgba(0, 0, 0, 0.95),
    0 0 12px var(--red-glow);
}

.form-select {
  cursor: pointer;
}

.form-select option {
  background-color: #080808;
  color: var(--white);
}

.email-composer {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 8px;
}

.email-at {
  color: var(--red-bright);
  font-family: var(--font-mono);
  font-size: 1rem;
  user-select: none;
}

.email-custom-input {
  margin-top: 4px;
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
  line-height: 1.6;
}

.form-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-top: 6px;
}

.submit-btn {
  width: 100%;
  padding: 11px 20px;
  border-radius: 4px;
  background: linear-gradient(145deg, #1f1f1f 0%, #0a0a0a 100%);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow:
    inset 1px 1px 2px rgba(255, 255, 255, 0.14),
    inset -1px -1px 3px rgba(0, 0, 0, 0.9),
    0 2px 8px rgba(0, 0, 0, 0.85);
  color: var(--white);
  font-family: var(--font-display);
  font-size: 1.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease, transform 0.15s ease;
}

.submit-btn:hover:not(:disabled) {
  color: var(--red-bright);
  border-color: rgba(217, 28, 28, 0.7);
  box-shadow:
    inset 1px 1px 2px rgba(217, 28, 28, 0.22),
    inset -1px -1px 3px rgba(0, 0, 0, 0.95),
    0 0 18px var(--red-glow);
}

.submit-btn:active:not(:disabled) {
  transform: scale(0.985);
}

.submit-btn:disabled {
  opacity: 0.6;
  cursor: wait;
}

.form-status {
  min-height: 1.2em;
  font-size: 0.8rem;
  text-align: center;
  letter-spacing: 0.03em;
}

.form-status.is-success {
  color: rgba(235, 235, 235, 0.85);
}

.form-status.is-error {
  color: var(--red-bright);
}

/* Identidad central */
.hero-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  user-select: none;
}

.hero-icon {
  width: clamp(160px, 18vw, 230px);
  height: auto;
  display: block;
}

.hero-logo {
  width: clamp(220px, 24vw, 320px);
  height: auto;
  display: block;
}

/* Tarjetas de lanzamientos */
.release-card {
  width: 100%;
}

.release-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

/* Marco plateado delgado, redondeado y con bisel suave */
.cover-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  padding: 6px;
  border-radius: 10px;
  background: linear-gradient(
    140deg,
    #bdbdbd 0%,
    #787878 28%,
    #3d3d3d 55%,
    #9e9e9e 78%,
    #525252 100%
  );
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow:
    inset 1px 1px 4px rgba(255, 255, 255, 0.55),
    inset -2px -2px 5px rgba(0, 0, 0, 0.8),
    0 0 26px var(--red-glow);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

/* Capa 1: grano marcado y contrastado sobre la portada */
.cover-frame::before {
  content: '';
  position: absolute;
  inset: 7px;
  z-index: 2;
  border-radius: 4px;
  pointer-events: none;
  opacity: 0.55;
  mix-blend-mode: overlay;
  background-size: 130px 130px;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='cg'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3CfeComponentTransfer%3E%3CfeFuncR type='linear' slope='2.2' intercept='-0.6'/%3E%3CfeFuncG type='linear' slope='2.2' intercept='-0.6'/%3E%3CfeFuncB type='linear' slope='2.2' intercept='-0.6'/%3E%3C/feComponentTransfer%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23cg)'/%3E%3C/svg%3E");
}

/* Capa 2: cristal empotrado y sellado dentro del borde interno del marco */
.cover-frame::after {
  content: '';
  position: absolute;
  inset: 7px;
  z-index: 3;
  border-radius: 4px;
  pointer-events: none;
  border: 1px solid rgba(0, 0, 0, 0.92);
  background-image:
    linear-gradient(
      118deg,
      rgba(255, 255, 255, 0.0) 0%,
      rgba(255, 255, 255, 0.0) 18%,
      rgba(255, 255, 255, 0.22) 24%,
      rgba(255, 255, 255, 0.06) 33%,
      rgba(255, 255, 255, 0.0) 36%,
      rgba(255, 255, 255, 0.0) 41%,
      rgba(255, 255, 255, 0.1) 43%,
      rgba(255, 255, 255, 0.0) 47%
    ),
    linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.1) 0%,
      rgba(255, 255, 255, 0.02) 35%,
      rgba(0, 0, 0, 0.0) 58%,
      rgba(255, 255, 255, 0.04) 88%,
      rgba(255, 255, 255, 0.09) 100%
    );
  background-size: 130% 130%, 100% 100%;
  background-position: 0% 0%, 0% 0%;
  box-shadow:
    inset 0 2px 3px rgba(0, 0, 0, 0.95),
    inset 2px 0 3px rgba(0, 0, 0, 0.9),
    inset 0 7px 14px rgba(0, 0, 0, 0.65),
    inset 5px 0 10px rgba(0, 0, 0, 0.5),
    inset -1px -1px 2px rgba(255, 255, 255, 0.14),
    inset -3px -3px 10px rgba(0, 0, 0, 0.65);
  transition: background-position 0.55s ease, box-shadow 0.35s ease;
}

.cover-frame img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 4px;
  background-color: #050505;
  box-shadow:
    0 0 0 1px #000000,
    0 0 0 2px rgba(0, 0, 0, 0.65);
}

.release-link:hover .cover-frame {
  transform: translateY(-4px);
  box-shadow:
    inset 1px 1px 5px rgba(255, 255, 255, 0.7),
    inset -2px -2px 5px rgba(0, 0, 0, 0.85),
    0 0 38px rgba(217, 28, 28, 0.55);
}

.release-link:hover .cover-frame::after {
  background-position: 28% 22%, 0% 0%;
}

.release-meta {
  margin-top: 14px;
  min-height: 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  text-align: left;
  line-height: 1.4;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
}

.release-title {
  color: var(--white);
  text-decoration: none;
  transition: color 0.25s ease;
}

a.release-title:hover {
  color: var(--red-bright);
}

/* Botón minimalista de letra (hoja/manuscrito) */
.lyrics-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  color: rgba(235, 235, 235, 0.68);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  flex-shrink: 0;
  transition: color 0.25s ease, transform 0.25s ease, filter 0.25s ease;
}

.lyrics-btn svg {
  width: 16px;
  height: 18px;
  display: block;
}

.lyrics-btn:hover {
  color: var(--red-bright);
  transform: scale(1.12);
  filter: drop-shadow(0 0 7px var(--red-glow));
}

/* --- MINI REPRODUCTOR DE AUDIO (ESTÉTICA VITRINA / ANALÓGICA) --- */
.mini-player {
  margin-top: 10px;
  padding: 3px;
  border-radius: 7px;
  background: linear-gradient(
    140deg,
    #b5b5b5 0%,
    #6e6e6e 30%,
    #363636 58%,
    #949494 80%,
    #4a4a4a 100%
  );
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow:
    inset 1px 1px 2px rgba(255, 255, 255, 0.45),
    inset -1px -1px 3px rgba(0, 0, 0, 0.85),
    0 0 16px rgba(181, 18, 18, 0.22);
  transition: box-shadow 0.3s ease;
}

.mini-player:hover,
.mini-player.is-playing {
  box-shadow:
    inset 1px 1px 3px rgba(255, 255, 255, 0.6),
    inset -1px -1px 3px rgba(0, 0, 0, 0.9),
    0 0 24px rgba(181, 18, 18, 0.48);
}

.mini-player-inner {
  position: relative;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 7px 10px;
  border-radius: 4px;
  background: linear-gradient(180deg, #060606 0%, #0d0d0d 100%);
  border: 1px solid #000000;
  box-shadow:
    inset 0 2px 5px rgba(0, 0, 0, 0.95),
    inset 0 0 14px rgba(181, 18, 18, 0.08);
  overflow: hidden;
}

/* Tapa de cristal sutil sobre el reproductor */
.mini-player-inner::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 3;
  background: linear-gradient(
    118deg,
    rgba(255, 255, 255, 0.0) 0%,
    rgba(255, 255, 255, 0.0) 22%,
    rgba(255, 255, 255, 0.09) 28%,
    rgba(255, 255, 255, 0.0) 36%,
    rgba(255, 255, 255, 0.0) 100%
  );
  box-shadow:
    inset 0 1px 2px rgba(0, 0, 0, 0.9),
    inset 0 -1px 1px rgba(255, 255, 255, 0.08);
}

/* Botón táctil empotrado */
.play-btn {
  position: relative;
  z-index: 2;
  width: 26px;
  height: 26px;
  flex-shrink: 0;
  border-radius: 4px;
  background: linear-gradient(145deg, #1f1f1f 0%, #0a0a0a 100%);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow:
    inset 1px 1px 2px rgba(255, 255, 255, 0.14),
    inset -1px -1px 3px rgba(0, 0, 0, 0.9),
    0 1px 4px rgba(0, 0, 0, 0.85);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  transition: color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease, transform 0.15s ease;
}

.play-btn svg {
  width: 10px;
  height: 11px;
  fill: currentColor;
  display: block;
}

.play-btn .icon-play {
  margin-left: 1px;
}

.play-btn .icon-pause {
  display: none;
}

.mini-player.is-playing .play-btn .icon-play,
.lyrics-modal.is-playing .modal-play-btn .icon-play {
  display: none;
}

.mini-player.is-playing .play-btn .icon-pause,
.lyrics-modal.is-playing .modal-play-btn .icon-pause {
  display: block;
}

.play-btn:hover,
.mini-player.is-playing .play-btn,
.lyrics-modal.is-playing .modal-play-btn {
  color: var(--red-bright);
  border-color: rgba(217, 28, 28, 0.6);
  box-shadow:
    inset 1px 1px 2px rgba(217, 28, 28, 0.2),
    inset -1px -1px 3px rgba(0, 0, 0, 0.95),
    0 0 10px var(--red-glow);
}

.play-btn:active {
  transform: scale(0.94);
}

/* Ranura hundida de progreso */
.progress-track {
  position: relative;
  z-index: 2;
  flex: 1;
  height: 5px;
  background-color: #030303;
  border-radius: 3px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.98);
  overflow: hidden;
  cursor: pointer;
}

.progress-fill {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, var(--red) 0%, var(--red-bright) 100%);
  box-shadow: 0 0 10px var(--red-bright);
  transition: width 0.1s linear;
}

/* Indicador LED + contador */
.player-status {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.player-led {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background-color: #4d0a0a;
  box-shadow: inset 0 0 2px rgba(0, 0, 0, 0.8);
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.mini-player:hover .player-led,
.mini-player.is-playing .player-led {
  background-color: var(--red-bright);
  box-shadow: 0 0 7px var(--red-bright);
}

.time-display {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: rgba(235, 235, 235, 0.72);
  letter-spacing: 0.05em;
  user-select: none;
}

/* --- POP-UP DE LETRAS SINCRONIZADAS (ESTÉTICA VITRINA) --- */
.lyrics-modal {
  position: fixed;
  inset: 0;
  z-index: 960;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.lyrics-modal[hidden] {
  display: none;
}

.lyrics-modal.is-open {
  opacity: 1;
}

.lyrics-modal-backdrop {
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.86);
  backdrop-filter: blur(4px);
}

.lyrics-modal-frame {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 560px;
  max-height: 82vh;
  padding: 5px;
  border-radius: 10px;
  background: linear-gradient(
    140deg,
    #bdbdbd 0%,
    #787878 28%,
    #3d3d3d 55%,
    #9e9e9e 78%,
    #525252 100%
  );
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow:
    inset 1px 1px 4px rgba(255, 255, 255, 0.5),
    inset -2px -2px 5px rgba(0, 0, 0, 0.85),
    0 0 42px var(--red-glow);
  display: flex;
  transform: scale(0.95);
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}

.lyrics-modal.is-open .lyrics-modal-frame {
  transform: scale(1);
}

.lyrics-modal-inner {
  flex: 1;
  width: 100%;
  background: linear-gradient(180deg, #070707 0%, #020202 100%);
  border-radius: 5px;
  border: 1px solid #000000;
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.95);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.lyrics-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background-color: rgba(181, 18, 18, 0.06);
}

.lyrics-modal-heading {
  display: flex;
  align-items: center;
  gap: 12px;
}

.lyrics-modal-header h2 {
  font-family: var(--font-display);
  font-size: 1.9rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 400;
  color: var(--white);
}

.lyrics-modal-close {
  background: transparent;
  border: none;
  color: rgba(235, 235, 235, 0.65);
  font-size: 1.9rem;
  line-height: 1;
  cursor: pointer;
  padding: 0 4px;
  transition: color 0.2s ease, transform 0.2s ease;
}

.lyrics-modal-close:hover {
  color: var(--red-bright);
  transform: scale(1.12);
}

.lyrics-modal-body {
  padding: 28px 24px 36px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
  scrollbar-width: thin;
  scrollbar-color: #3a0b0b #050505;
}

.lyrics-modal-body::-webkit-scrollbar {
  width: 6px;
}

.lyrics-modal-body::-webkit-scrollbar-track {
  background: #050505;
}

.lyrics-modal-body::-webkit-scrollbar-thumb {
  background-color: #3a0b0b;
  border-radius: 3px;
}

.lyric-line {
  font-family: var(--font-mono);
  font-size: 0.94rem;
  line-height: 1.65;
  color: rgba(235, 235, 235, 0.78);
  transition: color 0.28s ease, transform 0.28s ease, text-shadow 0.28s ease, opacity 0.28s ease;
}

.lyrics-modal-body.is-synced .lyric-line {
  cursor: pointer;
  color: rgba(235, 235, 235, 0.42);
}

.lyrics-modal-body.is-synced .lyric-line:hover {
  color: rgba(235, 235, 235, 0.85);
}

.lyrics-modal-body.is-synced .lyric-line.is-past {
  color: rgba(235, 235, 235, 0.28);
}

.lyrics-modal-body.is-synced .lyric-line.is-active {
  color: var(--white);
  text-shadow: 0 0 14px var(--red-glow);
  transform: translateX(4px);
}

.lyrics-empty {
  color: rgba(235, 235, 235, 0.45);
  font-size: 0.88rem;
  text-align: center;
  padding: 24px 0;
}

/* --- PIE DE PÁGINA --- */
.site-footer {
  width: 100%;
  margin-top: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-size: 0.74rem;
  letter-spacing: 0.03em;
  color: rgba(235, 235, 235, 0.5);
}

.footer-legal {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-legal a {
  color: rgba(235, 235, 235, 0.5);
  text-decoration: none;
  transition: color 0.25s ease, text-shadow 0.25s ease;
}

.footer-legal a:hover {
  color: var(--red-bright);
  text-shadow: 0 0 10px var(--red-glow);
}

.footer-sep {
  color: rgba(235, 235, 235, 0.28);
  user-select: none;
}

/* --- ANIMACIONES DE CARTA PARA MENÚ MÓVIL / TABLET --- */
@keyframes menuCardIn {
  0% {
    transform: translateX(100%);
  }
  100% {
    transform: translateX(0);
  }
}

@keyframes menuCardOut {
  0% {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
  100% {
    transform: translateY(100%) scale(0.86);
    opacity: 0;
  }
}

/* --- RESPONSIVO: TABLET (HASTA 1024px) --- */
@media (max-width: 1024px) {
  .site-frame {
    padding: 24px 32px 28px;
  }

  /* Zoom in sutil del fondo del sitio al abrir el menú */
  .inicio-layout,
  .corpus-layout,
  .summarium-layout,
  .anatomia-layout,
  .iter-layout,
  .site-footer {
    transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.4s ease;
    transform-origin: center top;
  }

  body.menu-open .inicio-layout,
  body.menu-open .corpus-layout,
  body.menu-open .summarium-layout,
  body.menu-open .anatomia-layout,
  body.menu-open .iter-layout,
  body.menu-open .site-footer {
    transform: scale(1.04);
    opacity: 0.25;
  }

  /* Header en 1 fila: iconotipo izquierda, redes centro, botón vertical derecha */
  .site-header {
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 16px;
    margin-bottom: 32px;
  }

  .nav-brand {
    justify-self: start;
    padding-bottom: 0;
    position: relative;
    z-index: 950;
  }

  .nav-brand img {
    height: 46px;
  }

  .header-socials {
    justify-self: center;
    gap: 20px;
    padding-bottom: 0;
  }

  .header-socials img {
    width: 24px;
    height: 24px;
  }

  .menu-toggle {
    display: flex;
    justify-self: end;
  }

  /* Menú sólido a pantalla y ancho completos con efecto de carta */
  .main-nav {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 900;
    background-color: #000000;
    border-left: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: -20px 0 50px rgba(0, 0, 0, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    visibility: hidden;
    pointer-events: none;
    transform: translateX(100%);
  }

  .main-nav.is-open {
    visibility: visible;
    pointer-events: auto;
    transform: translateX(0);
    animation: menuCardIn 0.42s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  }

  .main-nav.is-closing {
    visibility: visible;
    pointer-events: none;
    animation: menuCardOut 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
  }

  /* Títulos alineados sobre un mismo eje vertical */
  .main-nav ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 26px;
  }

  .main-nav a {
    font-size: 2.8rem;
    line-height: 1.05;
    padding: 0 0 0 26px;
  }

  /* Punto rojo alineado a la izquierda del título */
  .main-nav a::after {
    bottom: auto;
    left: 0;
    top: 50%;
    transform: translateY(-50%) scale(0);
  }

  .main-nav a.active::after,
  .main-nav a:hover::after {
    transform: translateY(-50%) scale(1);
  }

  /* Identidad arriba, dos lanzamientos lado a lado abajo */
  .inicio-layout {
    grid-template-columns: repeat(2, minmax(220px, 300px));
    justify-content: center;
    align-items: start;
    gap: 44px 36px;
    padding: 12px 0 24px;
  }

  /* Corpus en 2 columnas en tablet */
  .corpus-layout {
    grid-template-columns: repeat(2, minmax(220px, 300px));
    gap: 44px 36px;
    margin: 12px auto 32px;
  }

  /* Summarium en tablet */
  .summarium-layout {
    gap: 56px;
    margin: 16px auto 36px;
  }

  .summarium-row,
  .summarium-row.is-reversed {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 28px;
  }

  .summarium-row.is-reversed .summarium-media {
    order: -1;
  }

  .summarium-media {
    max-width: 340px;
  }

  .summarium-text {
    max-width: 560px;
  }

  .anatomia-layout {
    margin: 20px auto 44px;
    gap: 44px;
  }

  .hero-brand {
    grid-column: 1 / -1;
    order: -1;
    gap: 18px;
  }

  .hero-icon {
    width: 170px;
  }

  .hero-logo {
    width: 245px;
  }
}

/* --- RESPONSIVO: CELULAR (HASTA 640px) --- */
@media (max-width: 640px) {
  .site-frame {
    padding: 20px 18px 24px;
  }

  .site-header {
    margin-bottom: 24px;
  }

  .nav-brand img {
    height: 38px;
  }

  .header-socials {
    gap: 14px;
  }

  .header-socials img {
    width: 22px;
    height: 22px;
  }

  .menu-toggle .bar {
    height: 22px;
  }

  .main-nav ul {
    gap: 22px;
  }

  .main-nav a {
    font-size: 2.4rem;
    padding-left: 22px;
  }

  /* Una sola columna centrada */
  .inicio-layout,
  .corpus-layout {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 36px;
    padding: 8px 0 20px;
  }

  .corpus-layout {
    margin: 8px auto 24px;
  }

  .summarium-layout {
    gap: 44px;
    margin: 8px auto 28px;
  }

  .summarium-media {
    max-width: 300px;
  }

  .summarium-text p {
    font-size: 0.9rem;
    line-height: 1.75;
  }

  .anatomia-layout {
    margin: 12px auto 32px;
    gap: 36px;
  }

  .anatomia-chapter h2 {
    font-size: 1.85rem;
  }

  .anatomia-chapter p {
    font-size: 0.9rem;
    line-height: 1.8;
  }

  .anatomia-dedication {
    font-size: 0.82rem;
    letter-spacing: 0.12em;
  }

  .iter-layout {
    margin: 8px auto 28px;
  }

  .iter-inner {
    padding: 22px 18px;
  }

  .form-row-2 {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .email-composer {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .email-at {
    display: none;
  }

  .hero-brand {
    gap: 16px;
  }

  .hero-icon {
    width: 135px;
  }

  .hero-logo {
    width: 200px;
  }

  .release-card {
    max-width: 300px;
  }

  /* Controles táctiles más cómodos para dedo */
  .mini-player-inner {
    padding: 8px 10px;
    gap: 10px;
  }

  .play-btn {
    width: 32px;
    height: 32px;
  }

  .progress-track {
    height: 7px;
  }

  .lyrics-modal {
    padding: 14px;
  }

  .lyrics-modal-header {
    padding: 14px 16px;
  }

  .lyrics-modal-body {
    padding: 20px 18px 28px;
  }

  .lyric-line {
    font-size: 0.88rem;
  }

  .site-footer {
    flex-direction: column;
    text-align: center;
    gap: 10px;
    margin-top: 32px;
    font-size: 0.7rem;
  }
}