/* ==========================================================================
   VARIABLES Y CONFIGURACIÓN GLOBAL
   ========================================================================== */
:root {
  --bg: #000000bc;
  --text: #f4f4f4; /* Color blanco para los textos principales */
  --muted: #a3a3a3; /* Color gris suave para textos secundarios o descripciones */
  --line: rgba(255, 255, 255, 0.08); /* Bordes finos semitransparentes */
  --soft: rgba(255, 255, 255, 0.03);
  --accent: #fff;
  --brand-color: #00f2fe; /* El azul cian eléctrico corporativo de Jaime */
  --heart-color: #8a00fc;
  --brand-gradient: linear-gradient(
    90deg,
    transparent,
    #00f2fe,
    #4facfe,
    transparent
  );

  /* Textura de fondo simulando líneas de Pentagrama */
  --pentagrama: linear-gradient(rgb(0, 242, 254) 1px, transparent 1px) 0 0 /
    100% 6px;
}

* {
  box-sizing: border-box; /* Asegura que los paddings no ensanchen las cajas de más */
}

html {
  scroll-behavior: smooth; /* Desplazamiento suave de arriba a abajo al pinchar los menús */
}

body {
  margin: 0;
  font-family: "Inter", sans-serif;
  background: linear-gradient(180deg, #000000d8 0%, #0d0d0d 38%, #141414 100%);
  color: var(--text);
  overflow-x: hidden; /* Evita que la web baile hacia los lados en pantallas pequeñas */
}

/* Capa decorativa detrás del contenido para generar manchas de luz ambientales flotantes */
body:before {
  content: "";
  position: fixed;
  inset: -30%;
  background:
    radial-gradient(
      circle at 20% 20%,
      rgba(255, 255, 255, 0.07),
      transparent 35%
    ),
    radial-gradient(
      circle at 80% 15%,
      rgba(255, 255, 255, 0.04),
      transparent 30%
    ),
    radial-gradient(
      circle at 60% 70%,
      rgba(255, 255, 255, 0.03),
      transparent 30%
    );
  filter: blur(40px);
  animation: float 16s ease-in-out infinite alternate; /* Movimiento sutil de la luz ambiental */
  pointer-events: none;
  z-index: 0;
}

@keyframes float {
  from {
    transform: translate3d(-1%, -1%, 0);
  }
  to {
    transform: translate3d(1%, 1%, 0);
  }
}

/* ==========================================================================
   CABECERA Y NAVEGACIÓN
   ========================================================================== */
header {
  position: sticky; /* Se queda clavado en la zona superior de la pantalla al bajar */
  top: 0;
  z-index: 30;
  backdrop-filter: blur(
    18px
  ); /* Efecto cristal esmerilado translúcido ultra moderno */
  -webkit-backdrop-filter: blur(18px);
  background: rgba(7, 7, 7, 0.8);
  border-bottom: 1px solid var(--line);
}

nav {
  max-width: 1180px;
  margin: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 22px;
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-container img {
  height: 50px;
  width: auto;
  display: block;
  filter: invert(1); /* Invierte el logo a blanco puro para el fondo oscuro */
}

.logo-text {
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-size: 0.85rem;
  color: var(--text);
}

.nav a {
  color: var(--muted);
  text-decoration: none;
  margin-left: 22px;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.3s ease;
  padding: 6px 0;
}

.nav a:hover {
  color: var(--brand-color); /* Al pasar el ratón se tiñen del azul eléctrico */
}

.link-portfolio a:link {
	color: var(--brand-color);
	background-color: transparent;
	text-decoration: none;
}
.link-portfolio	a:visited {
	color: #5500FE;
	background-color: transparent;
	text-decoration: none;
}
.link-portfolio a:hover {
	color: var(--brand-color);
	background-color: transparent;
	text-decoration: underline;
}
.link-portfolio a:active {
	color: #940070;
	background-color: transparent;
	text-decoration: underline;
}

/* ==========================================================================
   ESTILOS Y ANIMACIÓN HOVER PARA LOS BOTONES DEL HERO
   ========================================================================== */
.eyebrow-link {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-weight: 700;
  color: var(--muted);
  background: var(--soft);
  border: 1px solid var(--line);
  padding: 6px 16px;
  border-radius: 100px;
  text-decoration: none;
  display: inline-block;

  /* Transición suave para que la animación no sea brusca */
  transition: all 0.3s ease;
}

/* Efecto al pasar el cursor por encima (Hover) */
.eyebrow-link:hover {
  color: var(--brand-color); /* Cambia el texto al azul eléctrico */
  border-color: var(--brand-color); /* El borde también se ilumina en azul */
  background: rgba(0, 242, 254, 0.05); /* Un levísimo fondo azul translúcido */
  transform: translateY(-3px); /* Eleva el botón 3 píxeles hacia arriba */
  box-shadow: 0 4px 12px rgba(0, 242, 254, 0.15); /* Añade un sutil brillo inferior */
}

/* ==========================================================================
   ESTRUCTURA GENERAL Y HERO (SECCIÓN DE BIENVENIDA)
   ========================================================================== */
.wrap {
  position: relative;
  z-index: 1;
  max-width: 1180px;
  margin: auto;
  padding: clamp(40px, 7vw, 100px) 22px; /* Espaciado fluido inteligente según la pantalla */
}

.hero {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr; /* Distribuye espacio para texto y espacio para foto */
  gap: 40px;
  align-items: center;
  padding: 40px 0 60px 0;
}

.hero-media {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: center;
}

.badge-container {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

/* Píldoras o etiquetas decorativas */
.eyebrow {
  display: inline-flex;
  padding: 6px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  font-size: 0.75rem;
}

/* La píldora destacada de Composición */
.eyebrow.special {
  background: var(--brand-color);
  color: #000;
  font-weight: 700;
  border-color: var(--brand-color);
  box-shadow: 0 0 15px rgba(0, 242, 254, 0.4); /* Resplandor brillante */
}

.hero h1 {
  font-size: clamp(
    2.2rem,
    5.5vw,
    4.5rem
  ); /* Escalado perfecto de tamaño de letra */
  line-height: 1.02;
  margin: 0 0 20px;
  letter-spacing: -0.04em;
  font-weight: 800;
}

.lead {
  max-width: 600px;
  color: var(--muted);
  line-height: 1.7;
  font-size: 1.08rem;
}

.cta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 32px;
}

/* ==========================================================================
   COMPONENTES INTERACTIVOS: BOTONES Y PANELES
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.3s ease;
}

.btn.primary {
  background: var(--text);
  color: #000;
  border-color: var(--text);
}

.btn:hover {
  background: #fff;
  color: #000;
  transform: translateY(
    -2px
  ); /* Pequeño salto hacia arriba al flotar el ratón */
  box-shadow: 0 10px 20px rgba(255, 255, 255, 0.05);
}

.btn.primary:hover {
  background: transparent;
  color: #fff;
}

.panel {
  min-height: 440px;
  border: 1px solid var(--line);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.4);
}

/* CONTENEDOR DE LA FOTO DE PERFIL DE JAIME */
.portrait {
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.7)),
    url("images/perfil.avif") center/cover;
  display: flex;
  align-items: flex-end;
  padding: 24px;
  width: 100%;
}

/* ==========================================================================
   SECCIONES Y REJILLAS (MAQUETACIÓN CÓMODA)
   ========================================================================== */
section {
  padding: 50px 0;
  position: relative;
}

/* Línea de corte decorativa inferior con textura de pentagrama musical */
section::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 10%;
  width: 80%;
  height: 25px;
  background: var(--pentagrama);
  mask-image: linear-gradient(
    to right,
    transparent,
    white 20%,
    white 80%,
    transparent
  );
  -webkit-mask-image: linear-gradient(
    to right,
    transparent,
    white 20%,
    white 80%,
    transparent
  );
  opacity: 0.35;
}

.title {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 32px;
  position: relative;
  padding-top: 0;
}

.title h2 {
  margin: 0;
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  letter-spacing: -0.03em;
}

/* El símbolo decorativo de doble barra fija (||) antes de los títulos de bloques */
.musical-heading {
  position: relative;
  padding-left: 14px;
}

.musical-heading::before {
  content: "";
  position: absolute;
  left: 0;
  top: 15%;
  height: 70%;
  width: 5px;
  border-left: 2px solid var(--brand-color);
  border-right: 1px solid var(--brand-color);
}

.title p {
  margin: 0;
  color: var(--muted);
  max-width: 640px;
  line-height: 1.6;
  font-size: 0.98rem;
}

/* Rejilla de 12 columnas invisible para alinear elementos */
.grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 20px;
}

/* Estilo para las cajas contenedor de datos/tarjetas */
.card {
  grid-column: span 4; /* Ocupan 4 de las 12 columnas totales (caben 3 por fila) */
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.03) 0%,
    rgba(255, 255, 255, 0.01) 100%
  );
  color: var(--text);

  /* Valores iniciales ocultos para la animación de subida (JavaScript los activa) */
  transform: translateY(30px);
  opacity: 0;
  transition: 0.8s cubic-bezier(0.2, 0.7, 0.2, 1);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* Clase de activación que inyecta JavaScript al hacer scroll */
.card.visible {
  opacity: 1;
  transform: none;
}

.card h3 {
  margin: 0 0 16px;
  font-size: 1.35rem;
  color: var(--text);
  letter-spacing: -0.01em;
}

.card p,
.card li {
  color: var(--muted);
  line-height: 1.7;
  font-size: 0.95rem;
}

.card ul {
  margin: 14px 0 0;
  padding-left: 18px;
}

.card li {
  margin-bottom: 10px;
}

.card-mt {
  margin-top: 14px;
}

/* Modificador especial para que una tarjeta ocupe todo el ancho completo de la web (12 columnas) */
.wide {
  grid-column: span 12;
}

/* ==========================================================================
   MARQUESINA AUTOMÁTICA (TEXTO CORREDIZO)
   ========================================================================== */
.marquee {
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 16px 0;
  margin: 20px 0;
  display: flex;
  white-space: nowrap; /* Evita que el texto salte de línea */
}

.track {
  display: inline-block;
  animation: scroll 28s linear infinite; /* Animación de desplazamiento infinito continuo */
  color: var(--muted);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-size: 0.75rem;
}

@keyframes scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  } /* Se desplaza exactamente hasta la mitad antes de repetirse */
}

/* ==========================================================================
   CONTENEDORES PARA CÓDIGOS IFRAME DE SPOTIFY
   ========================================================================== */
.spotify {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 20px;
}

.embed {
  grid-column: span 6; /* 2 reproductores por fila en ordenadores */
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.02);
}

.embed iframe {
  width: 100%;
  height: 152px;
  border: 0;
  border-radius: 16px;
  display: block;
}

/* ==========================================================================
   CARRUSEL / SLIDER DE FOTOGRAFÍAS
   ========================================================================== */
.slider {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4);
}

.slides-snap {
  display: flex;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory; /* Fuerza a que las imágenes se queden perfectamente cuadradas */
  scroll-behavior: smooth;
  scrollbar-width: none; /* Oculta la barra de scroll inferior en Firefox */
}

.slides-snap::-webkit-scrollbar {
  display: none; /* Oculta la barra de scroll inferior en Chrome/Safari */
}

.slide {
  min-width: 100%;
  width: 100%;
  height: 480px;
  background-size: cover;
  background-position: center;
  position: relative;
  scroll-snap-align: start;
  flex-shrink: 0;
  overflow: hidden; /* Vital para que el desenfoque no se desborde a los lados */
}

/* 2. CAPA INTERMEDIA: Pone una "mampara de cristal esmerilado oscuro" sobre el fondo */
.slide::before {
  content: "";
  position: absolute;
  inset: -30px; /* Margen negativo para que los bordes del desenfoque no se clareen */
  backdrop-filter: blur(10px) brightness(0.5);
  -webkit-backdrop-filter: blur(10px) brightness(0.35);
  z-index: 1;
}

/* 3. CAPA SUPERIOR: Invoca al clon nítido de la foto + genera la sombra del texto */
.slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: inherit; /* <-- LA MAGIA: Roba la URL de la foto puesta en el HTML */
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  box-shadow: inset 0 -220px 140px -20px rgba(7, 7, 7, 0.95);
  z-index: 2;
}

/* 4. EL TEXTO: Lo obligamos a flotar en la capa más alta */
.caption {
  position: absolute;
  left: 32px;
  bottom: 32px;
  z-index: 3; /* <-- Subido a nivel 3 para que no lo tape la foto nítida */
  max-width: 550px;
  right: 32px;
}

.caption h3 {
  margin: 0 0 8px;
  font-size: 1.6rem;
  letter-spacing: -0.02em;
  font-weight: 700;
}

.caption p {
  margin: 0;
  color: #c5c5c5;
  line-height: 1.6;
  font-size: 1.02rem;
}

.controls {
  display: flex;
  gap: 12px;
  position: absolute;
  right: 32px;
  bottom: 32px;
  z-index: 3;
}

/* Estilo de los botones circulares del carrusel */
.icon {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(7, 7, 7, 0.6);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #fff;
  cursor: pointer;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.icon:hover {
  background: var(--brand-color);
  color: #000;
  border-color: var(--brand-color);
  box-shadow: 0 0 15px rgba(0, 242, 254, 0.5);
}

/* ==========================================================================
   FORMULARIO DE CONTACTO (ESTILO MESA DE MEZCLAS DAW)
   ========================================================================== */
.contact {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.contact .card {
  transform: none; /* Quitamos efectos de desvanecimiento para que el formulario cargue directo */
  opacity: 1;
}

.form-wrap {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Bloque canal/pista del DAW */
.daw-track {
  display: flex;
  flex-direction: column;
  gap: 6px;
  border-left: 2px solid rgba(255, 255, 255, 0.08); /* Línea lateral gris apagada */
  padding-left: 12px;
  transition: border-color 0.3s ease;
}

/* Cuando pinchan dentro del campo, la barra lateral cambia al color de Jaime */
.daw-track:focus-within {
  border-color: var(--brand-color);
}

.label {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text);
  font-weight: 600;
  cursor: pointer;
}

.input {
  width: 100%;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
  transition:
    border-color 0.3s ease,
    background-color 0.3s ease;
}

.input:focus {
  outline: none;
  border-color: var(--brand-color);
  background: rgba(255, 255, 255, 0.05);
  box-shadow: 0 0 8px rgba(0, 242, 254, 0.15);
}

/* ==========================================================================
   SISTEMA DE DESPLEGABLE PREMIUM COMPLETAMENTE PERSONALIZADO
   ========================================================================== */
.custom-select-wrapper {
  position: relative;
  user-select: none;
  width: 100%;
}

/* Caja principal del selector falso */
.custom-select-trigger {
  width: 100%;
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
  color: #525252; /* Tono oscuro simulando el placeholder nativo */
  font-size: 0.95rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.25s ease;
}

.custom-select-trigger i {
  color: var(--brand-color);
  font-size: 0.8rem;
  transition: transform 0.3s ease;
}

/* Diseño cuando la persiana de opciones está desplegada en pantalla */
.custom-select-wrapper.open .custom-select-trigger {
  border-color: var(--brand-color);
  background: rgba(255, 255, 255, 0.04);
  box-shadow: 0 0 10px rgba(0, 242, 254, 0.15);
}

.custom-select-wrapper.open .custom-select-trigger i {
  transform: rotate(180deg); /* La flecha gira hacia arriba */
}

/* Caja flotante contenedora de la lista de opciones */
.custom-options {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: #0d0d0dfa; /* Negro ultra opaco satinado */
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.8);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
  z-index: 999;
  overflow: hidden;
}

/* Muestra las opciones fluidamente cuando se añade la clase 'open' mediante JS */
.custom-select-wrapper.open .custom-options {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Filas de opciones individuales */
.custom-option {
  padding: 12px 14px;
  color: var(--muted);
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

/* Efecto hover interactivo en las opciones */
.custom-option:hover {
  background: rgba(0, 242, 254, 0.07);
  color: var(--brand-color);
  padding-left: 20px; /* Desplazamiento de texto fluido hacia la derecha */
}

/* Estado cuando el usuario ya ha escogido una opción válida (Pasa a texto iluminado) */
.custom-select-trigger.has-value {
  color: var(--text);
}

textarea.input {
  min-height: 140px;
  resize: vertical; /* Deja estirar el cuadro de texto solo hacia abajo */
}

.input::placeholder {
  color: #525252;
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 4px;
}

.form-btn {
  padding: 14px 32px;
  border-radius: 999px;
  border: 0;
  background: var(--text);
  color: #000;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  width: auto;
  transition: all 0.3s ease;
}

.form-btn:hover {
  transform: translateY(-2px);
  background: var(--brand-color);
  color: #000;
  box-shadow: 0 8px 20px rgba(0, 242, 254, 0.3);
}

/* ==========================================================================
   PIE DE PÁGINA Y DETALLES DE INTERFAZ
   ========================================================================== */
footer {
  padding: 60px 22px;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.4) 100%);
  margin-top: 60px;
}

.footer-container {
  max-width: 1180px;
  margin: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.footer-socials {
  display: flex;
  gap: 48px;
}

.footer-link {
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition:
    color 0.3s ease,
    transform 0.2s ease,
    filter 0.3s ease;
}

.footer-link svg {
  width: 50px;
  height: 50px;
  display: block;
}

.footer-link:hover {
  transform: translateY(-2px);
}

/* COLORES CORPORATIVOS EN LOS HOVERS DE REDES SOCIALES */
.footer-link.instagram:hover {
  color: #e1306c;
  filter: drop-shadow(0 0 8px rgba(225, 48, 108, 0.5));
}

.footer-link.tiktok:hover {
  color: #00f2fe;
  filter: drop-shadow(0 0 8px rgba(0, 242, 254, 0.5));
}

.footer-link.twitch:hover {
  color: #9146ff;
  filter: drop-shadow(0 0 8px rgba(145, 70, 255, 0.5));
}

.footer-copy {
  color: #525252;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
}

.footer-dev {
  color: #525252; /* Mismo tono discreto que el copyright */
  font-size: 0.8rem;
  letter-spacing: 0.03em;
  text-align: center;
  /* El contenedor principal tiene un 'gap: 24px'. Con este margen negativo evitamos que quede demasiado separado de la línea superior */
  margin-top: -12px; 
}

.footer-dev .heart-icon {
  color: var(--heart-color); /* El corazón se tiñe del azul cian eléctrico de Jaime */
  font-size: 0.75rem;
  margin: 0 2px;
  animation: pulse-heart 2s infinite ease-in-out; /* Latido sutil opcional */
}

.footer-dev a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.footer-dev a:hover {
  color: var(--heart-color); /* Al pasar el cursor, tu nombre se ilumina en cian */
}

/* Animación para el latido del corazón */
@keyframes pulse-heart {
  0%, 100% { transform: scale(1); opacity: 0.8; }
  50% { transform: scale(1.15); opacity: 1; }
}

/* Estilo para la barra de lectura del borde superior de la pantalla */
.progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 100%;
  transform-origin: left;
  transform: scaleX(0);
  background: #fff;
  z-index: 40;
}

/* ==========================================================================
   ELEMENTOS DE UTILERÍA: DISCOS DE VINILO DE LOS LATERALES
   ========================================================================== */
.vinilo-lateral {
  position: fixed;
  top: 30%;
  width: clamp(240px, 22vw, 380px);
  height: clamp(240px, 22vw, 380px);
  z-index: 0;
  pointer-events: none;
  opacity: 0.55;
  transition:
    opacity 0.4s cubic-bezier(0.2, 0.8, 0.2, 1),
    left 0.3s ease,
    right 0.3s ease;
  will-change: transform;
}

body:hover .vinilo-lateral {
  opacity: 0.65;
}

.vinilo-lateral.izquierdo {
  left: calc(clamp(240px, 22vw, 380px) * -0.5);
}

.vinilo-lateral.derecho {
  right: calc(clamp(240px, 22vw, 380px) * -0.5);
  top: 55%;
}

.vinilo-lateral::before {
  content: "";
  position: absolute;
  inset: 15px;
  border-radius: 50%;
  background: var(--brand-color);
  filter: blur(40px);
  opacity: 0.18;
  z-index: -1;
}

.vinilo-disco {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  position: relative;
  background:
    radial-gradient(circle at center, #000000 2.5%, transparent 2.6%),
    radial-gradient(
      circle at center,
      rgba(15, 15, 15, 0.95) 10%,
      transparent 32%
    ),
    radial-gradient(
      circle at center,
      var(--brand-color) 31%,
      #161616 31.8%,
      transparent 32.5%
    ),
    radial-gradient(
      circle at center,
      transparent 35%,
      rgba(255, 255, 255, 0.03) 36%,
      transparent 37%
    ),
    radial-gradient(
      circle at center,
      transparent 45%,
      rgba(0, 0, 0, 0.5) 46%,
      transparent 47%
    ),
    radial-gradient(
      circle at center,
      transparent 55%,
      rgba(255, 255, 255, 0.03) 56%,
      transparent 57%
    ),
    radial-gradient(
      circle at center,
      transparent 65%,
      rgba(0, 0, 0, 0.5) 66%,
      transparent 67%
    ),
    radial-gradient(
      circle at center,
      transparent 75%,
      rgba(255, 255, 255, 0.03) 76%,
      transparent 77%
    ),
    radial-gradient(
      circle at center,
      transparent 85%,
      rgba(0, 0, 0, 0.5) 86%,
      transparent 87%
    ),
    radial-gradient(
      circle at center,
      transparent 94%,
      rgba(255, 255, 255, 0.04) 95%,
      transparent 96%
    ),
    conic-gradient(
      from 15deg,
      #121212 0deg,
      #3a3a3a 35deg,
      #121212 70deg,
      #4e4e4e 110deg,
      #121212 150deg,
      #1a1a1a 180deg,
      #121212 210deg,
      #3a3a3a 245deg,
      #121212 280deg,
      #4e4e4e 320deg,
      #121212 360deg
    );
  box-shadow:
    0 25px 60px rgba(0, 0, 0, 0.9),
    inset 0 0 20px rgba(255, 255, 255, 0.08),
    inset 0 0 50px rgba(0, 0, 0, 0.85);
}

.vinilo-disco::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.06);
}

/* ==========================================================================
   CONTENEDOR DE LA ONDA DE AUDIO SVG DE FONDO
   ========================================================================= */
.soundwave-container {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  height: 700px;
  z-index: -1;
  pointer-events: none;
  opacity: 0.15;
  mask-image: linear-gradient(
    to top,
    rgba(0, 0, 0, 1) 0%,
    rgba(0, 0, 0, 0) 100%
  );
  -webkit-mask-image: linear-gradient(
    to top,
    rgba(0, 0, 0, 1) 0%,
    rgba(0, 0, 0, 0) 100%
  );
}

.soundwave-container svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* ==========================================================================
   MEDIA QUERIES (OPTIMIZACIÓN PARA PANTALLAS DE PORTÁTILES, TABLETS Y MÓVILES)
   ========================================================================== */

/* PORTÁTILES Y TABLETS MEDIANAS */
@media (max-width: 1024px) {
  .vinilo-lateral {
    display: none;
  }
}

/* TABLETS Y MÓVILES GRANDES */
@media (max-width: 900px) {
  .hero,
  .contact {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .card,
  .embed {
    grid-column: span 12;
  }
  .panel {
    min-height: 380px;
  }
  .hero {
    text-align: center;
  }
  .cta,
  .badge-container {
    justify-content: center;
  }
}

/* SMARTPHONES PEQUEÑOS (MÓVILES) */
@media (max-width: 600px) {
  nav {
    flex-direction: column;
    gap: 14px;
    padding: 16px 12px;
  }
  .nav a {
    margin: 0 10px;
    font-size: 0.85rem;
  }
  .wrap {
    padding: 32px 16px;
  }
  .card {
    padding: 22px 18px;
  }
  .slide {
    height: 320px;
  }

  /* Botones físicos eliminados en modo móvil */
  .controls {
    display: none !important;
  }

  /* El texto flotante ahora es una pequeña y elegante píldora centrada que no pisa la composición */
  .caption {
    left: 16px;
    right: 16px;
    bottom: 18px;
    background: rgba(7, 7, 7, 0.8);
    padding: 12px 16px;
    border-radius: 14px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.06);
    max-width: none;
  }
  .caption h3 {
    font-size: 0.92rem;
    line-height: 1.4;
    margin: 0;
    font-weight: 600;
    text-align: center;
    color: #fff;
  }

  .form-btn {
    width: 100%;
  }
}

/* ==========================================================================
   SISTEMA DE GALERÍA AMPLIADA (LIGHTBOX)
   ========================================================================== */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(7, 7, 7, 0.96);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  z-index: 2500;
  display: none;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.lightbox.open {
  display: flex;
  opacity: 1;
}

.lightbox-close {
  position: absolute;
  top: 24px;
  right: 24px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  color: #fff;
  font-size: 1.8rem;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  z-index: 2520;
}

.lightbox-close:hover {
  background: var(--brand-color);
  color: #000;
  border-color: var(--brand-color);
  box-shadow: 0 0 15px rgba(0, 242, 254, 0.5);
}

.lightbox-content {
  max-width: 80%;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  user-select: none;
}

.lightbox-content img {
  max-width: 100%;
  max-height: 72vh;
  object-fit: contain;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.8);
}

.lightbox-caption-text {
  margin-top: 22px;
  color: var(--text);
  font-size: 1.15rem;
  font-weight: 600;
  text-align: center;
  max-width: 650px;
  letter-spacing: -0.01em;
}

/* Botones de control laterales específicos de Escritorio (PC) */
.lightbox-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 55px;
  height: 55px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.03);
  color: #fff;
  font-size: 1.3rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  z-index: 2510;
}

.lightbox-nav-btn:hover {
  background: var(--brand-color);
  color: #000;
  border-color: var(--brand-color);
  box-shadow: 0 0 15px rgba(0, 242, 254, 0.6);
}

.lightbox-nav-btn.prev {
  left: 40px;
}
.lightbox-nav-btn.next {
  right: 40px;
}

/* Control restrictivo en PC: Forzamos control estricto de botones eliminando gestos raros */
@media (min-width: 901px) {
  .lightbox {
    touch-action: none;
  }
}

/* Adaptación responsiva para móviles y tablets */
@media (max-width: 900px) {
  .lightbox-nav-btn {
    display: none; /* Oculta flechas físicas de PC para limpiar la pantalla en móviles */
  }
  .lightbox-content {
    max-width: 92%;
  }
  .lightbox-content img {
    max-height: 65vh;
  }
  .lightbox-caption-text {
    font-size: 1rem;
    padding: 0 10px;
  }
}
