:root {
  --primary-gold: rgba(226, 185, 115, 0.4);
  --accent-gold: #dfb15b;
  --accent-dawn: #ffc87a;
  --accent-sky: #79b5ec;
  --accent-forest: #7ebd83;
  --accent-amethyst: #b892e8;
  --text-white: #f8f6f0;
  --bg-dark: rgba(10, 14, 22, 0.68);
  --bg-deep: #06080e;
}

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

body {
  background: var(--bg-deep);
  color: var(--text-white);
  font-family: 'Montserrat', sans-serif;
  overflow-x: hidden;
  transition: background-color 1s ease;
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('background.png') no-repeat center center;
  background-size: cover;
  z-index: -2;
  filter: brightness(0.80) saturate(1.15);
}

#effects-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
}

.main-wrapper {
  position: relative;
  min-height: 100vh;
  padding: 2rem 0;
}

/* Logo & Navigation */
.paz-logo {
  position: fixed;
  top: 1.2rem;
  left: 1.5rem;
  height: 80px;
  z-index: 1000;
  transition: 0.3s;
  filter: drop-shadow(0 4px 15px rgba(0, 0, 0, 0.6));
}

.paz-logo:hover {
  transform: scale(1.05);
}

.lang-nav {
  position: fixed;
  top: 2rem;
  right: 2rem;
  z-index: 1000;
}

.nav-container {
  display: flex;
  align-items: center;
  gap: 15px;
}

.nav-btn {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #fff;
  padding: 0.8rem 1.5rem;
  border-radius: 50px;
  cursor: pointer;
  font-weight: 600;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: 0.3s;
}

.linktree-btn {
  border-color: rgba(223, 177, 91, 0.35);
  box-shadow: 0 0 15px rgba(223, 177, 91, 0.15);
}

.linktree-btn i {
  color: var(--accent-gold);
}

.nav-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  color: var(--accent-gold);
  border-color: var(--accent-gold);
  box-shadow: 0 0 25px rgba(223, 177, 91, 0.35);
  transform: translateY(-2px);
}

/* Language Selector */
.lang-selector {
  position: relative;
}

.current-lang {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #fff;
  padding: 0.8rem 1.5rem;
  border-radius: 50px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: 0.3s;
}

.current-lang:hover {
  border-color: var(--accent-gold);
  background: rgba(255, 255, 255, 0.14);
}

.lang-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  background: rgba(10, 14, 22, 0.96);
  backdrop-filter: blur(25px);
  border-radius: 18px;
  padding: 0.8rem;
  min-width: 210px;
  display: none;
  border: 1px solid rgba(223, 177, 91, 0.25);
  box-shadow: 0 15px 45px rgba(0, 0, 0, 0.85);
  max-height: 80vh;
  overflow-y: auto;
}

.lang-dropdown.active {
  display: block;
  animation: fadeInDown 0.3s ease forwards;
}

.lang-opt {
  padding: 0.7rem 1.1rem;
  cursor: pointer;
  border-radius: 10px;
  transition: 0.25s;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 12px;
}

.lang-opt:hover {
  background: rgba(223, 177, 91, 0.18);
  color: var(--accent-gold);
}

/* Poem Section */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.poem-wrapper {
  width: fit-content;
  max-width: 920px;
  margin: 7.5rem auto 5rem;
  background: var(--bg-dark);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(223, 177, 91, 0.22);
  padding: 4.5rem 5.5rem;
  border-radius: 45px;
  text-align: center;
  box-shadow: 0 50px 110px rgba(0, 0, 0, 0.75), 0 0 50px rgba(121, 181, 236, 0.1);
  position: relative;
  overflow: hidden;
}

.poem-wrapper::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at center, rgba(223, 177, 91, 0.08), transparent 70%);
  pointer-events: none;
}

.poem-title {
  font-family: 'Philosopher', 'Amiri', serif;
  font-size: 3.8rem;
  margin-bottom: 3.5rem;
  color: var(--accent-gold);
  text-shadow: 0 0 35px rgba(223, 177, 91, 0.45);
  line-height: 1.25;
  letter-spacing: 0.5px;
}

.poem-content {
  font-family: 'Philosopher', 'Amiri', serif;
  font-size: 1.6rem;
  line-height: 2.3;
  color: rgba(248, 246, 240, 0.95);
  text-shadow: 1px 1px 10px rgba(0, 0, 0, 0.85);
}

.stanza {
  margin-bottom: 3.2rem;
  transition: transform 0.3s ease, border-color 0.3s ease;
}

/* RTL support for Arabic */
[dir="rtl"] {
  text-align: right;
  font-family: 'Amiri', serif;
}

[dir="rtl"] .stanza {
  text-align: right;
}

/* 🌟 VARIACIÓN VISUAL DE LAS 8 ESTROFAS SEGÚN EL VIAJE EMOCIONAL */

/* Estrofa 1: El laberinto de la noche y el estruendo de las guerras */
.night-storm-stanza {
  color: #edeaf5;
  background: linear-gradient(135deg, rgba(30, 24, 45, 0.5), rgba(15, 20, 35, 0.4));
  border-left: 3px solid rgba(184, 146, 232, 0.45);
  padding: 1.8rem 2.2rem;
  border-radius: 0 20px 20px 0;
  text-align: left;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

[dir="rtl"] .night-storm-stanza {
  border-left: none;
  border-right: 3px solid rgba(184, 146, 232, 0.45);
  border-radius: 20px 0 0 20px;
}

/* Estrofa 2: La luna llena en el azabache, urracas, búhos y águilas */
.moon-insomnia-stanza {
  color: #f0f4fc;
  background: rgba(200, 220, 255, 0.04);
  border-left: 3px solid rgba(121, 181, 236, 0.4);
  padding: 1.8rem 2.2rem;
  border-radius: 0 20px 20px 0;
  text-align: left;
}

[dir="rtl"] .moon-insomnia-stanza {
  border-left: none;
  border-right: 3px solid rgba(121, 181, 236, 0.4);
  border-radius: 20px 0 0 20px;
}

/* Estrofa 3: El anhelo de santuario sagrado y luz interior */
.sanctuary-quest-stanza {
  color: #fef5e7;
  background: linear-gradient(135deg, rgba(223, 177, 91, 0.08), rgba(255, 200, 122, 0.05));
  border: 1px solid rgba(223, 177, 91, 0.3);
  padding: 1.8rem 2.2rem;
  border-radius: 25px;
  box-shadow: 0 0 30px rgba(223, 177, 91, 0.12);
}

/* Estrofa 4: Meditación, brazada y respiración como mantra universal */
.mantra-stanza {
  color: #e8f9f5;
  background: radial-gradient(circle, rgba(126, 189, 131, 0.08) 0%, transparent 85%);
  border: 1px solid rgba(126, 189, 131, 0.35);
  padding: 1.8rem 2.4rem;
  border-radius: 25px;
  box-shadow: 0 0 35px rgba(126, 189, 131, 0.15);
}

/* Estrofa 5: Destellos de iluminación como estrellas en el insomnio */
.starlight-insight-stanza {
  color: #f7f0ff;
  background: rgba(184, 146, 232, 0.06);
  border-left: 3px solid rgba(184, 146, 232, 0.5);
  padding: 1.8rem 2.2rem;
  border-radius: 0 20px 20px 0;
  text-align: left;
}

[dir="rtl"] .starlight-insight-stanza {
  border-left: none;
  border-right: 3px solid rgba(184, 146, 232, 0.5);
  border-radius: 20px 0 0 20px;
}

/* Estrofa 6: Contemplación profunda, calma eterna y verdadera identidad */
.contemplation-stanza {
  color: #fefcf7;
  background: linear-gradient(135deg, rgba(223, 177, 91, 0.07), rgba(121, 181, 236, 0.07));
  border: 1px solid rgba(223, 177, 91, 0.25);
  padding: 1.8rem 2.2rem;
  border-radius: 25px;
  font-style: italic;
  box-shadow: 0 0 30px rgba(223, 177, 91, 0.12);
}

/* Estrofa 7: Llegó la madrugada, sueño de un mundo sin guerras ni violencia */
.dream-of-peace-stanza {
  color: #fff9ea;
  background: linear-gradient(135deg, rgba(255, 200, 122, 0.1), rgba(121, 181, 236, 0.1));
  border: 1px solid rgba(255, 200, 122, 0.45);
  padding: 1.9rem 2.4rem;
  border-radius: 25px;
  font-weight: 500;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.35);
}

/* Estrofa 8: Despertar radiante frente a 20 km de verde campo, el águila y el poema luminoso */
.dawn-awakening-stanza {
  font-family: 'Caveat', cursive, 'Amiri', serif;
  font-size: 2.35rem;
  color: #ffffff;
  background: radial-gradient(ellipse at center, rgba(255, 200, 122, 0.18), rgba(126, 189, 131, 0.08), transparent 75%);
  border: 1.5px solid rgba(255, 200, 122, 0.5);
  border-radius: 30px;
  padding: 2.4rem 1.8rem;
  letter-spacing: 1px;
  line-height: 1.95;
  text-shadow: 0 0 25px rgba(255, 255, 255, 0.7), 0 0 50px rgba(255, 200, 122, 0.55);
  box-shadow: 0 0 55px rgba(255, 200, 122, 0.25);
}

.signature {
  font-family: 'Caveat', cursive, 'Amiri', serif;
  font-size: 2.7rem;
  margin-top: 4.5rem;
  opacity: 0.9;
  color: var(--accent-gold);
  letter-spacing: 1px;
}

/* Music Section & Album Cards */
.music-section .row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  margin: 0 -15px;
}

.col-md-4 {
  flex: 0 0 calc(33.333% - 2rem);
  max-width: calc(33.333% - 2rem);
}

@media (max-width: 992px) {
  .col-md-4 {
    flex: 0 0 calc(50% - 1.5rem);
    max-width: calc(50% - 1.5rem);
  }
}

@media (max-width: 768px) {
  .col-md-4 {
    flex: 0 0 100%;
    max-width: 100%;
  }
}

.album-card {
  position: relative;
  background: rgba(10, 14, 22, 0.85);
  border: 1px solid rgba(223, 177, 91, 0.22);
  border-radius: 25px;
  padding: 1.5rem;
  transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  cursor: pointer;
  overflow: hidden;
  backdrop-filter: blur(16px);
}

.album-card:hover {
  transform: translateY(-16px) rotate(1.2deg) scale(1.025);
  border-color: var(--accent-gold);
  box-shadow: 0 45px 95px rgba(0, 0, 0, 0.95), 0 0 50px rgba(223, 177, 91, 0.35);
  z-index: 10;
}

.album-card img {
  width: 100%;
  border-radius: 16px;
  margin-bottom: 1.4rem;
  border: 2px solid rgba(255, 255, 255, 0.1);
  transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  display: block;
}

.album-card:hover img {
  transform: scale(1.03);
  border-color: rgba(223, 177, 91, 0.4);
}

.album-info h4 {
  font-family: 'Philosopher', serif;
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
  color: var(--text-white);
}

.album-tag {
  color: var(--accent-gold);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.5px;
}

/* Art Gallery */
.art-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2.5rem;
  margin-top: 5rem;
}

.art-frame {
  background: rgba(10, 14, 22, 0.8);
  border: 1px solid rgba(223, 177, 91, 0.2);
  border-radius: 25px;
  padding: 1.4rem;
  backdrop-filter: blur(14px);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.7);
  transition: transform 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}

.art-frame:hover {
  transform: translateY(-8px);
  border-color: var(--accent-gold);
  box-shadow: 0 35px 80px rgba(0, 0, 0, 0.85), 0 0 35px rgba(223, 177, 91, 0.25);
}

.art-frame img {
  width: 100%;
  border-radius: 16px;
  margin-bottom: 1.2rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: block;
}

.art-caption {
  font-family: 'Philosopher', 'Amiri', serif;
  font-size: 1.15rem;
  line-height: 1.7;
  color: rgba(248, 246, 240, 0.85);
  text-align: center;
  padding: 0.5rem 1rem;
}

/* Inspiration Section */
.inspiration-section {
  margin-top: 5rem;
  padding: 3rem 0;
}

.inspiration-wrapper {
  background: rgba(10, 14, 22, 0.78);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(223, 177, 91, 0.2);
  border-radius: 35px;
  padding: 3.5rem 4rem;
  max-width: 950px;
  margin: 0 auto;
  box-shadow: 0 35px 85px rgba(0, 0, 0, 0.7);
}

.inspiration-wrapper h2 {
  font-family: 'Caveat', cursive, 'Amiri', serif;
  font-size: 3.2rem;
  color: var(--accent-gold);
  margin-bottom: 2rem;
  text-align: center;
  text-shadow: 0 0 25px rgba(223, 177, 91, 0.35);
}

.inspiration-text {
  font-family: 'Philosopher', 'Amiri', serif;
  font-size: 1.35rem;
  line-height: 2.1;
  color: rgba(248, 246, 240, 0.92);
  text-align: justify;
}

/* Multilingual Visibility */
.language,
.poem-title span,
.album-info h4,
.art-caption span,
.inspiration-wrapper h2 span,
.inspiration-text span {}

body[data-lang="spanish"] .spanish,
body[data-lang="english"] .english,
body[data-lang="arabic"] .arabic,
body[data-lang="italian"] .italian,
body[data-lang="frances"] .frances,
body[data-lang="portuges"] .portuges,
body[data-lang="aleman"] .aleman,
body[data-lang="chinese"] .chinese,
body[data-lang="russian"] .russian,
body[data-lang="japones"] .japones,
body[data-lang="ukrainian"] .ukrainian {
  display: block;
}

.poem-title span,
.album-info h4,
.inspiration-wrapper h2 span {
  display: none;
}

body[data-lang="spanish"] .poem-title .spanish,
body[data-lang="english"] .poem-title .english,
body[data-lang="arabic"] .poem-title .arabic,
body[data-lang="italian"] .poem-title .italian,
body[data-lang="frances"] .poem-title .frances,
body[data-lang="portuges"] .poem-title .portuges,
body[data-lang="aleman"] .poem-title .aleman,
body[data-lang="chinese"] .poem-title .chinese,
body[data-lang="russian"] .poem-title .russian,
body[data-lang="japones"] .poem-title .japones,
body[data-lang="ukrainian"] .poem-title .ukrainian {
  display: block;
}

body[data-lang="spanish"] .album-info h4.spanish,
body[data-lang="english"] .album-info h4.english,
body[data-lang="arabic"] .album-info h4.arabic,
body[data-lang="italian"] .album-info h4.italian,
body[data-lang="frances"] .album-info h4.frances,
body[data-lang="portuges"] .album-info h4.portuges,
body[data-lang="aleman"] .album-info h4.aleman,
body[data-lang="chinese"] .album-info h4.chinese,
body[data-lang="russian"] .album-info h4.russian,
body[data-lang="japones"] .album-info h4.japones,
body[data-lang="ukrainian"] .album-info h4.ukrainian {
  display: block;
}

body[data-lang="spanish"] .art-caption .spanish,
body[data-lang="english"] .art-caption .english,
body[data-lang="arabic"] .art-caption .arabic,
body[data-lang="italian"] .art-caption .italian,
body[data-lang="frances"] .art-caption .frances,
body[data-lang="portuges"] .art-caption .portuges,
body[data-lang="aleman"] .art-caption .aleman,
body[data-lang="chinese"] .art-caption .chinese,
body[data-lang="russian"] .art-caption .russian,
body[data-lang="japones"] .art-caption .japones,
body[data-lang="ukrainian"] .art-caption .ukrainian {
  display: block;
}

body[data-lang="spanish"] .inspiration-wrapper h2 .spanish,
body[data-lang="english"] .inspiration-wrapper h2 .english,
body[data-lang="arabic"] .inspiration-wrapper h2 .arabic,
body[data-lang="italian"] .inspiration-wrapper h2 .italian,
body[data-lang="frances"] .inspiration-wrapper h2 .frances,
body[data-lang="portuges"] .inspiration-wrapper h2 .portuges,
body[data-lang="aleman"] .inspiration-wrapper h2 .aleman,
body[data-lang="chinese"] .inspiration-wrapper h2 .chinese,
body[data-lang="russian"] .inspiration-wrapper h2 .russian,
body[data-lang="japones"] .inspiration-wrapper h2 .japones,
body[data-lang="ukrainian"] .inspiration-wrapper h2 .ukrainian {
  display: inline;
}

body[data-lang="spanish"] .inspiration-text .spanish,
body[data-lang="english"] .inspiration-text .english,
body[data-lang="arabic"] .inspiration-text .arabic,
body[data-lang="italian"] .inspiration-text .italian,
body[data-lang="frances"] .inspiration-text .frances,
body[data-lang="portuges"] .inspiration-text .portuges,
body[data-lang="aleman"] .inspiration-text .aleman,
body[data-lang="chinese"] .inspiration-text .chinese,
body[data-lang="russian"] .inspiration-text .russian,
body[data-lang="japones"] .inspiration-text .japones,
body[data-lang="ukrainian"] .inspiration-text .ukrainian {
  display: block;
}

/* Reveal Animations */
.reveal {
  opacity: 0;
  transform: translateY(35px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .container {
    padding: 0 12px;
  }

  .poem-wrapper {
        width: 92%;
        max-width: 92%;
        padding: 2.2rem 1.2rem;
        margin: 8rem auto 2.5rem;
        border-radius: 26px;
        background: rgba(10, 15, 28, 0.42);
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
    }

  .poem-title {
    font-size: 2.5rem;
  }

  .poem-content {
    font-size: 1.3rem;
    line-height: 2;
  }

  .inspiration-wrapper {
    padding: 2.2rem 1.5rem;
  }

  .inspiration-text {
    font-size: 1.15rem;
  }

  .paz-logo {
    height: 60px;
    top: 1rem;
    left: 1rem;
  }

  .lang-nav {
    top: 1rem;
    right: 1rem;
  }
}