html,
body {
  height: 100%;
  margin: 0;
}

body {
  display: flex;
  flex-direction: column;
  position: relative;
  transition: background-color 0.4s ease;
  /* Ensure body acts as a container for the background layer */
  min-height: 100vh;
}

/* --- DUAL TEXTURE LAYER (CORRECTED Z-INDEX) --- */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  /* Sent to back so it doesn't overlap logo/text */
  z-index: -1;
  transition: opacity 0.4s ease, background-image 0.4s ease;
}

/* Light Theme: Technical dot grid */
[data-bs-theme="light"] body::before {
  opacity: 0.15;
  background-image: radial-gradient(#000 0.8px, transparent 0.8px);
  background-size: 24px 24px;
}

/* Dark Theme: Analog digital grain */
[data-bs-theme="dark"] body::before {
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

main {
  flex: 1;
  display: flex;
  flex-direction: column;
  position: relative;
}

/* Logo color handling */
.logo-svg {
  color: #333;
}

[data-bs-theme="dark"] .logo-svg {
  color: #f8f9fa;
}

/* Social icons hover effects */
.social-icon i {
  color: var(--bs-secondary-color);
  transition: color 0.3s ease;
}

.youtube-icon:hover i {
  color: #ff0000 !important;
}

.instagram-icon:hover i {
  color: #e1306c !important;
}

.tiktok-icon:hover i {
  color: #69c9d0 !important;
}

.email-icon:hover i {
  color: #0d6efd !important;
}

/* --- HERO SECTION --- */
.hero-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding-bottom: 5vh;
}

.hero-h1 {
  font-size: clamp(2.8rem, 12vw, 6rem);
  font-weight: 900;
  letter-spacing: -3px;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.rotating-wrapper {
  position: relative;
  height: 2.5rem;
  width: 100%;
  display: flex;
  justify-content: center;
}

.rotating-h2 {
  position: absolute;
  font-size: clamp(0.9rem, 2.8vw, 1.2rem);
  font-weight: 400;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--bs-secondary-color);
  opacity: 0;
  margin: 0;
  animation: rotateFadeText 10s infinite ease-in-out;
}

.rotating-h2:nth-child(1) {
  animation-delay: 0s;
}

.rotating-h2:nth-child(2) {
  animation-delay: 2.5s;
}

.rotating-h2:nth-child(3) {
  animation-delay: 5s;
}

.rotating-h2:nth-child(4) {
  animation-delay: 7.5s;
}

@keyframes rotateFadeText {
  0% {
    opacity: 0;
    transform: translateY(8px);
    filter: blur(5px);
  }
  5% {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
  20% {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
  25% {
    opacity: 0;
    transform: translateY(-8px);
    filter: blur(5px);
  }
  100% {
    opacity: 0;
  }
}

/* --- LOADER STYLE --- */
.loader-container {
  position: fixed;
  inset: 0;
  background: var(--bs-body-bg);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  z-index: 10001;
}

.vu-bar {
  width: 8px;
  height: 40px;
  background: var(--bs-secondary-color);
  border-radius: 4px;
  animation: vuPulse 0.8s infinite ease-in-out;
}

.bar1 {
  animation-delay: 0s;
}

.bar2 {
  animation-delay: 0.15s;
}

.bar3 {
  animation-delay: 0.3s;
}

@keyframes vuPulse {
  0%,
  100% {
    height: 20px;
    opacity: 0.6;
  }
  50% {
    height: 60px;
    opacity: 1;
  }
}

/* --- PRIVACY POLICY STYLE --- */
.modal-overlay {
  display: none; 
  position: fixed;
  z-index: 10000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
}

.modal-content {
  background-color: #000;
  color: #adb5bd;
  margin: 15% auto;
  padding: 40px 20px;
  border: 1px solid #333;
  width: 90%;
  max-width: 400px;
  text-align: center;
  position: relative;
  border-radius: 2px;
  font-family: inherit;
}

.close-button {
  position: absolute;
  top: 10px;
  right: 15px;
  color: #555;
  font-size: 24px;
  cursor: pointer;
}

.close-button:hover {
  color: #fff;
}

/* --- CrossLinks --- */
.cross-link {
  color: #ff5500 !important; /* Tu naranja corporativo */
  text-decoration: none;
  font-size: 0.8rem; 
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-weight: 800; 
  display: inline-block;
  position: relative;
  padding-bottom: 2px;
  transition: all 0.3s ease;
}

.cross-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: #ff5500;
  transition: width 0.3s ease;
}

.cross-link:hover::after {
  width: 100%;
}

.cross-link:hover {
  filter: brightness(1.2); 
}

/* --- Audio Player --- */
.audio-player-container {
  width: 100%;
  max-width: 500px; 
  margin: 0 auto;
  text-align: center;
  padding: 30px 0; 
}

.track-title {
  font-size: 0.65rem;
  letter-spacing: 3px;
  font-weight: 800;
  color: #ff5500;
  margin-bottom: 25px; 
  text-transform: uppercase;
}

.player-controls {
  display: flex;
  align-items: center;
  gap: 15px;
  background: rgba(128, 128, 128, 0.05);
  padding: 10px 20px;
  border-radius: 50px;
  border: 1px solid rgba(255, 85, 0, 0.2);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.player-btn {
  background: none;
  border: none;
  color: #ff5500;
  font-size: 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  transition: transform 0.2s ease;
}

.player-btn:hover {
  transform: scale(1.1);
}

.progress-wrapper {
  flex-grow: 1;
  height: 6px; 
  background: rgba(128, 128, 128, 0.2);
  border-radius: 3px;
  position: relative;
  cursor: pointer; 
  overflow: hidden; 
}

.progress-bar {
  position: absolute;
  height: 100%;
  width: 0%;
  background: #ff5500;
  border-radius: 2px;
  pointer-events: none; 
}

.time-display {
  font-family: 'Courier New', Courier, monospace; 
  font-size: 0.75rem;
  min-width: 45px;
  opacity: 0.8;
}

[data-bs-theme="dark"] .player-controls {
  box-shadow: 0 0 20px rgba(255, 85, 0, 0.1);
}