/* ==============================
   RESET Y BASE
============================== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: #111;
  background: #fff;
  line-height: 1.6;
  scroll-behavior: smooth;
}

a {
  text-decoration: none;
  color: inherit;
}

/* ==============================
   TOPBAR / CABECERA
============================== */
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 32px;
  border-bottom: 1px solid #eee;
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 1000;
}

.brand {
  font-size: 1.5rem;
  font-weight: bold;
  color: #8b0000;
}

.lang-menu {
  position: relative;
}

.lang-menu button {
  background: #8b0000;
  color: white;
  border: none;
  padding: 8px 14px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  transition: background 0.3s;
}

.lang-menu button:hover {
  background: #b22222;
}

.lang-menu ul {
  display: none;
  position: absolute;
  right: 0;
  background: white;
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 0;
  list-style: none;
  overflow: hidden;
  min-width: 140px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
  z-index: 1000;
}

.lang-menu ul.show {
  display: block;
}

.lang-menu ul button {
  width: 100%;
  padding: 10px 16px;
  border: none;
  background: none;
  text-align: left;
  cursor: pointer;
  font-size: 0.95rem;
  transition: background 0.3s;
}

.lang-menu ul button:hover {
  background: #f0f0f0;
}

/* ==============================
   HERO / CABECERA PRINCIPAL
============================== */
.hero {
  background: linear-gradient(135deg, #8b0000, #b22222);
  color: white;
  text-align: center;
  padding: 100px 20px;
  position: relative;
  overflow: hidden;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 16px;
  animation: fadeInUp 1s ease-out;
}

.hero .slogan {
  font-size: 1.5rem;
  font-weight: 500;
  animation: fadeInUp 1.2s ease-out;
}

/* ==============================
   SECCIONES
============================== */
.section {
  max-width: 900px;
  margin: auto;
  padding: 60px 20px;
  animation: fadeInUp 1s ease-out;
}

.section h2 {
  font-size: 2rem;
  margin-bottom: 20px;
  color: #8b0000;
}

.section p {
  font-size: 1.1rem;
  margin-bottom: 16px;
}

.section ul {
  list-style: disc inside;
  margin-top: 12px;
}

.section ul li {
  margin-bottom: 8px;
}

/* ==============================
   REPRODUCTOR FLOTANTE
============================== */
#player {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #8b0000;
  color: white;
  padding: 14px 20px;
  border-radius: 50px;
  display: flex;
  gap: 12px;
  align-items: center;
  box-shadow: 0 6px 15px rgba(0,0,0,0.3);
  z-index: 1000;
  transition: transform 0.3s ease;
}

#player:hover {
  transform: translateY(-3px);
}

#playPause {
  background: white;
  color: #8b0000;
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  font-size: 20px;
  cursor: pointer;
  transition: transform 0.2s ease;
}

#playPause:hover {
  transform: scale(1.1);
}

#playerStatus {
  font-weight: 500;
}

/* ==============================
   PIE DE PÁGINA / FOOTER
============================== */
.footer {
  background-color: #222;
  color: #fff;
  text-align: center;
  padding: 30px 20px;
  font-size: 0.9rem;
  border-top: 2px solid #444;
}

.footer a {
  color: #fff;
  text-decoration: underline;
  transition: color 0.3s;
}

.footer a:hover {
  color: #b22222;
}

/* ==============================
   COOKIE BANNER
============================== */
#cookieBanner {
  position: fixed;
  bottom: 0;
  width: 100%;
  background: #111;
  color: white;
  padding: 16px;
  display: none;
  text-align: center;
  font-size: 0.95rem;
  z-index: 1000;
}

/* ==============================
   ANIMACIONES
============================== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ==============================
   RESPONSIVE
============================== */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.2rem;
  }
  .hero .slogan {
    font-size: 1.2rem;
  }
  #player {
    bottom: 15px;
    right: 15px;
    padding: 12px 16px;
  }
  #playPause {
    width: 44px;
    height: 44px;
    font-size: 18px;
  }
}
