* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: linear-gradient(135deg, #0A2E5C, #4A90E2, #D9D9D9);
  color: white;
  text-align: center;
}

/* Make gradient cover full viewport and stay fixed so it's continuous */
body {
  min-height: 100vh;
  background-attachment: fixed;
  background-size: cover;
}

header {
  padding: 30px 16px 0;
}

header h1 {
  margin: 16px auto 0;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  line-height: 1.1;
  max-width: 720px;
}

.hero-text {
  margin: 14px auto 0;
  max-width: 720px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 1rem;
  line-height: 1.7;
}

nav {
  display: flex;
  justify-content: center;
  padding: 10px 20px 0;
}

.menu-barras {
  list-style: none;
  padding: 12px 16px;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
  border-radius: 999px;
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.18);
  max-width: 1080px;
}

.menu-barras li {
  margin: 0;
}

.menu-barras a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 110px;
  padding: 12px 18px;
  text-decoration: none;
  color: #ffffff;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.03em;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  transition: transform 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}

.menu-barras a:hover,
.menu-barras a:focus {
  background: rgba(255, 255, 255, 0.24);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
  transform: translateY(-2px);
}

main {
  padding: 8px 16px 120px;
  max-width: 1080px;
  margin: 0 auto;
}

.section-card {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 24px;
  margin: 16px auto 28px;
  padding: 26px;
  text-align: left;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.14);
  animation: floatUp 0.5s ease both;
}

.section-card h2 {
  margin: 0 0 1rem;
  font-size: 1.4rem;
}

.section-card p {
  margin: 0 0 1.2rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.88);
}

.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
}

.modal-content {
  background: white;
  color: black;
  margin: 2% auto 5%;
  padding: 28px;
  border-radius: 20px;
  width: min(520px, 92%);
  text-align: left;
  transform: translateY(-20px) scale(0.98);
  opacity: 0;
  animation: fadeInScale 0.3s ease forwards;
}

.modal-content h2 {
  margin-top: 0;
  margin-bottom: 1rem;
}

.modal-content p,
.modal-content ul {
  margin: 0 0 1rem;
  line-height: 1.8;
}

.modal-content ul li {
  margin-bottom: 0.75rem;
}

.close {
  float: right;
  font-size: 24px;
  cursor: pointer;
}

@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: translateY(-12px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes floatUp {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

header .site-logo {
  max-width: 320px;
  width: min(42%, 320px);
  height: auto;
  margin: 8px auto 6px;
  display: block;
  filter: drop-shadow(0 6px 14px rgba(0,0,0,0.25));
}

.back-link {
  color: #ffffff;
  text-decoration: underline;
  font-size: 0.95rem;
  display: inline-block;
  margin-top: 10px;
}

.player {
  margin-top: 40px;
}

audio {
  width: 80%;
  max-width: 420px;
}

footer {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  height: 72px;
  padding: 16px 0;
  background: transparent; /* show the same page gradient behind */
  text-align: center;
  font-size: 0.95rem;
  z-index: 400;
  color: white;
  backdrop-filter: blur(4px); /* subtle blur so text remains readable */
}

/* Burbuja flotante de WhatsApp */
.whatsapp-bubble {
  position: fixed;
  top: 50%;       /* centro vertical de la pantalla */
  right: 20px;    /* distancia desde la derecha */
  transform: translateY(-50%);
  z-index: 1000;
}

.whatsapp-bubble img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  box-shadow: 0 4px 6px rgba(0,0,0,0.3);
  transition: transform 0.3s;
}

.whatsapp-bubble img:hover {
  transform: scale(1.1); /* efecto al pasar el mouse */
}

