/* Manifiesto - estilos generales y layout */
:root {
  --bg: #030315c2;
  --card-bg: rgba(255, 255, 255, 0.03);
  --text: #f3f3f3;
  --accent-pink: #ff007f;
  --text-main: #000000;
  --font-header: 'Permanent Marker', cursive;
  --font-body: 'Roboto Condensed', sans-serif;
  /* dorado para armonizar con la manzana */
  --pulse-center: 80px;
  /* posiciÃ³n vertical del centro del halo/pulso */
}

html,
body {
  height: 100%;
  margin: 0;
  font-family: "Inter", "Helvetica Neue", Arial, sans-serif;
  background: radial-gradient(ellipse at top, rgba(230, 180, 34, 0.06), transparent 40%), var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.hidden {
  display: none;
}

.lema {
  font-family: var(--font-body);
  font-weight: 700;
  margin-top: 15px;
  color: var(--text-main);
  text-transform: uppercase;
  background: var(--accent-pink);
  display: inline-block;
  padding: 5px 15px;
  transform: rotate(2deg);
}

/* Contenedor principal: la manzana arriba y el contenido centrado */
.stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
  position: relative;
  padding: 0;
  overflow-x: hidden;
  /* Evita scrolls innecesarios por halos */
  background: radial-gradient(circle at center, rgba(230, 180, 34, 0.03), transparent 70%), var(--bg);
}

/* La zona superior con la manzana; estarÃ¡ en la parte superior absoluta (halo rotante) */
.light {
  position: absolute;
  top: var(--pulse-center);
  left: 50%;
  width: 400px;
  height: 400px;
  background: conic-gradient(from 0deg, transparent, rgba(230, 180, 34, 0.4), transparent 40%, transparent 60%, rgba(230, 180, 34, 0.4), transparent);
  border-radius: 50%;
  transform: translate(-70%, -50%);
  /* el centro del halo serÃ¡ (left:50%, top:var(--pulse-center)) */
  animation: rotate 10s linear infinite;
  z-index: 1;
  /* por debajo de la manzana */
  filter: blur(30px);
}



/* Hacemos que la imagen de la manzana esté centrada debajo del título
   y desactivamos cualquier animación sobre la imagen para que no pulse. */
.title img {
  position: relative;
  width: 400px;
  height: 400px;
  object-fit: contain;
  animation: none !important;
  will-change: transform;
  z-index: 3;
}


.main-title {
  margin-top: 40px;
  margin-bottom: -150px;
  /* Jala la manzana hacia arriba para que se superpongan */
  font-size: 3.5rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-align: center;
  z-index: 10;
  color: var(--bg);
  /* Texto arriba de la manzana (opcional, ajusta si quieres la manzana arriba) */
  position: relative;
  text-shadow: 5px -5px 8px rgba(51, 255, 0, 0.966)
}

/* Script (las voces) en un "panel" ligero */
#script {
  position: relative;
  width: 100%;
  max-width: 700px;
  min-width: 300px;
  background: var(--card-bg);
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
  box-sizing: border-box;
  z-index: 5;
  text-align: center;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  /* Opcional para un look premium */
  border: 1px solid rgba(255, 255, 255, 0.05);
}


/* Eliminamos estilos antiguos de .title y original #script layout */
.title {
  position: relative;
  z-index: 5;
  /* Por debajo del texto si el texto tiene z-index 10 */
  display: flex;
  justify-content: center;
  width: 100%;
  pointer-events: none;
}

/* Cada bloque de voz */
.voice {
  margin-bottom: 14px;
  color: var(--text);
  line-height: 1.45;
  font-size: 1.5rem;
  display: block;
  /* por si JS altera display */
}

/* Estilos para el coro y final para resaltarlos visualmente */
.voice.chorus p {
  font-weight: 250;
  color: #fff3d1;
}

.voice.final {
  font-family: 'Playfair Display', serif;
  /* O alguna fuente con dramatismo */
  font-size: 1.4rem;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.voice.final ul {
  list-style-type: none;
  padding-left: 0;
}

.voice.final li::before {
  content: "✦ ";
  /* O "❖", "★", "•" según el tono */
  color: gold;
  font-size: 1.2em;
  margin-right: 8px;
}


/* BotÃ³n principal */
#nextBtn {
  margin-top: 18px;
  padding: 12px 26px;
  font-size: 1rem;
  border-radius: 999px;
  border: 0;
  cursor: pointer;
  background: linear-gradient(180deg, #ffd54a, #e6b422);
  color: #111;
  font-weight: 700;
  box-shadow: 0 8px 18px rgba(230, 180, 34, 0.14);
  transition: transform 160ms ease, box-shadow 160ms ease, opacity 160ms ease;
  z-index: 2;
}

#nextBtn:active {
  transform: translateY(1px) scale(0.998);
}

#nextBtn[disabled] {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

/* Ajustes responsivos */
@media (max-width: 300px) {
  :root {
    --pulse-center: 80px;
    /* Un poco mas de espacio arriba */
  }

  .stage {
    justify-content: flex-start;
    /* Empuja el contenido hacia arriba */
    padding-top: 40px;
  }

  /* El halo se mantiene arriba */
  .light {
    width: 180px;
    height: 180px;
    top: var(--pulse-center);
  }

  .title {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 0;
    margin-bottom: 30px;
    position: relative;
    z-index: 5;
  }

  /* La manzana ahora fluye con el contenido */
  .title img {
    position: relative;
    top: 0;
    left: 0;
    transform: none;
    max-width: 160px;
    width: 40vmin;
    margin-bottom: 15px;
    /* Espacio para el H1 debajo */
  }

  .title h1 {
    font-size: 1.8rem;
    margin: 0;
  }

  #script {
    padding: 20px;
    margin-top: 10px;
  }

  /* Textos mÃ¡s grandes para legibilidad */
  .voice h2 {
    font-size: 1.35rem;
    line-height: 1.3;
  }

  .voice p {
    font-size: 1.15rem;
    line-height: 1.5;
  }

  .voice.final p {
    font-size: 1.3rem;
  }

  #nextBtn {
    width: 100%;
    box-sizing: border-box;
    padding: 15px;
    font-size: 1.1rem;
  }
}

@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

@keyframes pulse {
  0% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.8;
  }

  50% {
    transform: translate(-50%, -50%) scale(1.2);
    opacity: 0.4;
  }

  100% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.8;
  }
}

@keyframes rotate {
  from {
    transform: translate(-50%, -50%) rotate(0deg);
  }

  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }

}