/* ===================================================================
   en-busca-de-tus-ojos-verdes.css
   Tema para “En busca de tus ojos verdes”
   =================================================================== */

/* —————— Variables de color —————— */
:root {
  --verde-oscuro:   #1b3923;
  --verde-medio:    #2d6a4f;
  --verde-claro:    #74b49b;
  --verde-suave:    #cce3d4;
  --texto-principal: #333333;
  --texto-claro:    #ffffff;
  --fondo-pagina:   #f9f9f9;
}

/* —————— Reset básico —————— */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* —————— Tipografía y fondo —————— */
body {
  font-family: "Georgia", serif;
  background-color: var(--fondo-pagina);
  color: var(--texto-principal);
  line-height: 1.6;
}

/* —————— Contenedor central —————— */
.container {
  width: 90%;
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem 0;
}

/* ===================================================================
   Hero banner
   =================================================================== */
.story-banner {
  position: relative;
  overflow: hidden;
  height: 300px;
  margin-bottom: 2rem;
  border-radius: 16px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

.story-banner .banner-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.75);
  transition: transform 0.5s ease;
}

.story-banner:hover .banner-img {
  transform: scale(1.05);
}

.story-banner .banner-overlay {
  position: absolute;
  inset: 0;
  background: rgba(45,106,79,0.6);
}

.story-banner .banner-text {
  position: absolute;
  top: 50%;
  left: 10%;
  transform: translateY(-50%);
  color: var(--texto-claro);
  text-shadow: 0 2px 6px rgba(0,0,0,0.6);
}

.story-banner .banner-text h1 {
  font-family: "Modern Love", cursive;
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.story-banner .banner-text p {
  font-family: "Georgia", serif;
  font-size: 1.2rem;
}

/* ===================================================================
   Header y navegación (solo dentro de la historia)
   =================================================================== */
header {
  padding: 1.5rem 0;
  text-align: center;
  background: var(--verde-medio);
  color: var(--texto-claro);
}

header h1 {
  font-family: "Modern Love", cursive;
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.nav-capitulos {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 0.5rem;
}

.nav-capitulos a {
  color: var(--texto-claro);
  text-decoration: none;
  padding: 0.3rem 0.6rem;
  border-radius: 8px;
  transition: background 0.3s;
}

.nav-capitulos a:hover,
.nav-capitulos a.active {
  background: var(--verde-claro);
  color: var(--verde-oscuro);
}

/* ===================================================================
   Sección intro de capítulo (portada y capítulos)
   =================================================================== */
.capitulo-intro {
  text-align: center;
  margin-bottom: 2rem;
}

.capitulo-intro h2 {
  font-family: "Modern Love", cursive;
  color: var(--verde-medio);
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.capitulo-intro p em {
  font-style: italic;
  color: var(--verde-oscuro);
}

/* Botones de audio y lectura */
.options {
  margin-top: 1rem;
}

.options a {
  display: inline-block;
  margin: 0.5rem 1rem;
  padding: 0.6rem 1.2rem;
  border-radius: 30px;
  text-decoration: none;
  font-weight: bold;
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn-audio {
  background: linear-gradient(135deg, var(--verde-medio), var(--verde-claro));
  color: var(--texto-claro);
  box-shadow: 0 4px 12px rgba(45,106,79,0.6);
}

.btn-lectura {
  background: var(--verde-oscuro);
  color: var(--texto-claro);
  box-shadow: 0 4px 12px rgba(27,57,35,0.6);
}

.options a:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 18px rgba(0,0,0,0.3);
}

/* ===================================================================
   Drop cap para inicio de capítulos
   =================================================================== */
.dropcap::first-letter {
  float: left;
  font-family: "Modern Love", cursive;
  font-size: 4rem;
  line-height: 1;
  margin-right: 0.3em;
  color: var(--verde-medio);
}

/* ===================================================================
   Lista de capítulos
   =================================================================== */
.chapter-list {
  margin-bottom: 2rem;
}

.chapter-list h3 {
  font-family: "Modern Love", cursive;
  color: var(--verde-medio);
  font-size: 1.8rem;
  margin-bottom: 1rem;
  text-align: center;
}

.chapter-list ul {
  list-style: none;
  padding: 0;
}

.chapter-list li {
  background: var(--verde-suave);
  margin-bottom: 1rem;
  padding: 1rem;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: transform 0.2s, box-shadow 0.2s;
}

.chapter-list li:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.chapter-list li strong {
  color: var(--verde-oscuro);
}

.chapter-list a {
  background: var(--verde-medio);
  color: var(--texto-claro);
  padding: 0.4rem 0.8rem;
  border-radius: 30px;
  text-decoration: none;
  font-size: 0.9rem;
  transition: background 0.2s;
}

.chapter-list a:hover {
  background: var(--verde-oscuro);
}

/* Marcador de “Próximamente” */
.coming-soon {
  font-style: italic;
  color: #777;
}

/* ===================================================================
   Divisor decorativo
   =================================================================== */
.divider {
  height: 50px;
  background: var(--verde-claro);
  clip-path: polygon(0 0, 100% 100%, 0 100%);
  margin: 2rem 0;
}

/* ===================================================================
   Footer
   =================================================================== */
footer {
  background: var(--verde-medio);
  color: var(--texto-claro);
  text-align: center;
  padding: 2rem 1rem;
  margin-top: 2rem;
}

footer p {
  font-size: 0.9rem;
}

/* ===================================================================
   Responsive tweaks
   =================================================================== */
@media (max-width: 768px) {
  .story-banner { height: 200px; }
  .banner-text h1 { font-size: 2rem; }
  .dropcap::first-letter { font-size: 3rem; }
  .chapter-list li { flex-direction: column; text-align: center; }
  .options a { margin: 0.5rem 0; }
}
