:root {
  --arena: #EDC9AF;
  --agua: #4E6E5D;
  --cielo: #87CEEB;
  --texto: #3E3E3E;
  --acento: #5C4B3B;
  --fuente: 'Georgia', serif;
}

body {
  transition: background-image 5s ease-in-out;
}

.efemerides {
  position: fixed;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: rgba(255, 255, 255, 0.5);
  color: var(--acento);
  padding: 1rem;
  font-style: italic;
  font-size: 1rem 2rem;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

body.morning {
  background-image: url("/assets/images/morning.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: var(--texto);
  font-family: var(--fuente);
  line-height: 1.6;
  padding: 2rem;
}

body.afternoon {
  background-image: url("/assets/images/afternoon.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: var(--texto);
  font-family: var(--fuente);
  line-height: 1.6;
  padding: 2rem;
}

body.evening {
  background-image: url("/assets/images/evening.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: var(--texto);
  font-family: var(--fuente);
  line-height: 1.6;
  padding: 2rem;
}

body.night {
  background-image: url("/assets/images/night.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: var(--texto);
  font-family: var(--fuente);
  line-height: 1.6;
  padding: 2rem;
}

h1, h2, h3 {
  color: var(--acento);
  font-weight: normal;
  margin-bottom: 0.5em;
}

a {
  color: var(--agua);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.container {
  max-width: 1200px;
  margin: auto;
  background-color: rgba(255, 255, 255, 0.6);
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(60, 60, 60, 0.1);
}

blockquote {
  font-style: italic;
  color: var(--texto);
  border-left: 4px solid var(--agua);
  padding-left: 1rem;
  margin: 1.5rem 0;
}
.contenedor-flex {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 2rem;
  margin-top: 2rem;
}

.imagen-lateral {
  flex: 0 0 15%;
  max-width: 30%;
}

.imagen-lateral img {
  width: 200px;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 0 8px rgba(60, 60, 60, 0.2);
}

.imagen-lateral figcaption {
  margin-top: 0.5rem;
  font-size: 0.9rem;
  color: var(--agua);
  font-style: italic;
  text-align: center;
}

.texto-contemplativo {
  flex: 1;
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--texto);
  font-family: var(--fuente);
}

.grupo-audio {
  display: flex;
  align-items: center; /* o flex-end si quieres que se alineen a la base */
  gap: 1rem; /* espacio contemplativo entre botón y reproductor */
}

#audioPlayer {
  opacity: 0;
  transition: opacity 0.4s ease;
  width: 75%;
}
#audioPlayer.revelado {
  opacity: 1;
}

.boton-audio {
  background-color: transparent;      /* Sin fondo */
  color: inherit;                     /* Hereda el color del contenedor */
  border: none;                       /* Sin borde */
  padding: 0;                         /* Sin relleno que lo separe visualmente */
  border-radius: 0;                   /* Sin esquinas redondeadas */
  backdrop-filter: none;              /* Elimina el efecto de vidrio */
  box-shadow: none;                   /* Sin sombra */
  transition: none;                   /* Sin animaciones que revelen su presencia */
}

.referencia-plegable summary {
  background-color: rgba(234, 234, 234, 0.4);
  font-weight: bold;
  cursor: pointer;
  padding: 0.5rem;
  border-left: 4px solid #6b4f3f;
  font-family: var(--fuente);
}
.referencia-plegable[open] summary {
  background-color: rgba(234, 234, 234, 0.6);
  padding: 0.5rem;
  border-left: 4px solid #6b4f3f;
  font-family: var(--fuente);
}

.huella-leida {
  display: inline-block;
  margin-left: 0.5rem;
  font-size: 1.5rem;
  opacity: 0;
  transition: opacity 0.5s ease;
  vertical-align: middle;
}

.huella-leida.activa {
  opacity: 1;
}

.menu-navegacion {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 2rem;
  padding: 1rem;
  background-color: rgba(255, 255, 255, 0.5);
  border-top: 2px solid var(--agua);
  border-radius: 8px;
  box-shadow: 0 0 6px rgba(60, 60, 60, 0.1);
  font-family: var(--fuente);
  opacity: 0.3; /* Atenuado por defecto */
  transition: opacity 0.8s ease;
}

/* Cuando se consagra el tiempo o audio */
.menu-navegacion.revelado {
  opacity: 1;
}

.boton-nav {
  background-color: var(--arena);
  color: var(--texto);
  border: 2px solid var(--acento);
  padding: 0.5rem 1.2rem;
  font-size: 1rem;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.boton-nav:hover {
  background-color: var(--agua);
  color: white;
  transform: scale(1.05);
}

label, input, textarea {
  display: block;
  width: 100%;
  margin-bottom: 1rem;
  font-family: 'Georgia', serif;
}

/* Responsivo para móviles */
@media (max-width: 768px) {
  body.morning, body.afternoon, body.evening, body.night {
    padding: 1rem;
  }

  .container {
    padding: 1rem;
  }

  .contenedor-flex {
    flex-direction: column;
    gap: 1rem;
  }

  .imagen-lateral {
    flex: none;
    max-width: 100%;
    text-align: center;
  }

  .imagen-lateral img {
    width: 100%;
    max-width: 300px;
  }

  .texto-contemplativo {
    font-size: 1rem;
  }

  .menu-navegacion {
    flex-direction: column;
    gap: 0.5rem;
    padding: 1rem 0.5rem;
  }

  .boton-nav {
    width: 100%;
    padding: 0.8rem 0.5rem;
    font-size: 0.9rem;
    text-align: center;
  }
}