/* ==================== */
/*  STYLES - CLUB NOVEL */
/*  Menú con Font Awesome - Sin alterar diseño */
/* ==================== */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Fuente personalizada */
@font-face {
  font-family: "Mohave-Italic-VariableFont_wght";
  src: url("../fonts/mohave/Mohave-Italic-VariableFont_wght.ttf") format('truetype');
}

/* Contenedor del logo */
.logo-container {
    display: flex;
    justify-content: center;
    margin: 20px 0; /* 20px arriba y abajo */
}

/* Logo de 200px */
.logo {
  width: 200px;
  height: auto;
}

/* Estilo del menú */
nav {
  background-color: #f2f2f2;
  padding: 1rem 5%;
  width: 100%;
  border-top: 1px solid #e0e0e0;
  border-bottom: 1px solid #e0e0e0;
  position: relative;
  z-index: 10;
  overflow: visible;
}

nav ul {
  display: flex;
  justify-content: center;
  list-style: none;
  gap: 1rem;
  font-family: "Mohave-Italic-VariableFont_wght";
  margin: 0;
  transition: 
    opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

a {
  text-decoration: none;
  color: black;
}

/* === SUBMENÚ DROPDOWN === */
nav ul li.has-submenu {
    position: relative;
}

nav ul li .submenu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 220px;
    background: #f2f2f2;
    padding: 0.6rem 0;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    box-shadow: 0 6px 15px rgba(0,0,0,0.15);
    z-index: 20;
    flex-direction: column;
    gap: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

nav ul li .submenu li a {
    display: block;
    padding: 0.7rem 1.2rem;
    color: black;
    font-family: "Mohave-Italic-VariableFont_wght";
    font-size: 0.95rem;
    transition: color 0.3s ease, background 0.3s ease;
}

nav ul li .submenu li a:hover {
    color: #ea580c;
    background: #f9f9f9;
}

/* Mostrar submenú al hacer hover (escritorio) */
nav ul li.has-submenu:hover .submenu {
    display: flex;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* === Flecha opcional en Partners === */
nav ul li.has-submenu > a::after {
    content: ' ▼';
    font-size: 0.7em;
    color: #ea580c;
    margin-left: 4px;
    transition: transform 0.3s ease;
}

nav ul li.has-submenu:hover > a::after {
    transform: rotate(180deg);
}


/* === RESPONSIVE: Submenú en móvil === */
@media (max-width: 768px) {
  nav ul li .submenu {
    position: static;
    width: auto;
    background: #f9f9f9;
    border-left: 3px solid #ea580c;
    margin: 0.3rem 0 0 0;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    display: none; /* oculto por defecto */
    transition: display 0.3s ease; /* animación suave */
  }

  /* Mostrar solo si el li tiene clase 'open' */
  nav ul.activo li.has-submenu.open .submenu {
    display: flex;
  }

  /* Estilo del enlace de Partners en móvil */
  nav ul li.has-submenu > a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
  }

  nav ul li.has-submenu > a::after {
    content: ' +';
    font-size: 1.2em;
    color: #ea580c;
    transition: transform 0.3s ease;
  }

  nav ul li.has-submenu.open > a::after {
    content: ' −';
  }
}

/* === HOVER ELEGANTE DEL MENÚ === */
nav ul li a {
  position: relative;
  display: block;
  transition: color 0.3s ease;
  overflow: hidden;
}

nav ul li a::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background-color: #ea580c;
  transition: width 0.4s ease, left 0.4s ease;
  transform: translateX(-50%);
}

nav ul li a:hover {
  color: #ea580c;
}

nav ul li a:hover::before {
  width: 70%;
  left: 50%;
}

/* Botón hamburguesa oculto en escritorio */
.menu-toggle {
  display: none;
  font-size: 24px;
  background: none;
  border: none;
  cursor: pointer;
  color: black;
}

/* Móvil */

@media (max-width: 768px) {
  nav {
    display: flex;
    justify-content: space-between;
    align-items: center; /* Alinea verticalmente */
    position: relative;
  }

  /* Botón hamburguesa alineado dentro de la barra */
  .menu-toggle {
    display: block;
    font-size: 24px;
    background: none;
    border: none;
    cursor: pointer;
    color: black;
    margin-left: auto; /* empuja el botón a la derecha */
  }

  /* Menú desplegable */
  nav ul {
    display: none;
    flex-direction: column;
    background: #f2f2f2;
    position: absolute;
    top: 100%; /* justo debajo de la barra */
    right: 0;
    width: 200px;
    padding: 1rem;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
  }

  nav ul.activo {
    display: flex;
  }
}

/* === SECCIÓN NOVELA INDIVIDUAL - ESCLAVA === */
.novela-seccion {
    width: 100%;
    padding: 4rem 5%;
    font-family: 'Arial', sans-serif;
    background: #f2f2f2; /* Fondo gris claro en toda la sección */
}

.fila-novela {
    display: flex;
    gap: 3rem;
    align-items: flex-start;
    max-width: 1200px;
    margin: 0 auto;
}

.imagen-novela {
    flex: 0 0 200px;
}

.imagen-novela img {
    width: 200px;
    height: 200px;
    object-fit: cover;
    border: 4px solid #ea580c;
    border-radius: 8px;
    box-shadow: 0 6px 12px rgba(0,0,0,0.1);
}

.contenido-novela {
    flex: 1;
    max-width: 600px;
    padding: 2rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 6px 16px rgba(0,0,0,0.08);
    height: 200px; /* Ajuste de altura */
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.contenido-novela h2 {
    font-size: 2rem;
    color: #222;
    margin-bottom: 1rem;
    text-align: center;
}

.contenido-novela p {
    font-size: 1rem;
    line-height: 1.7;
    color: #444;
    margin: 0.8rem 0;
}

/* Ajuste para que imagen y texto tengan altura mínima de 500px */
.fila-novela {
    min-height: 500px;
    align-items: center; /* Centra verticalmente */
}

.imagen-novela img,
.contenido-novela {
    height: 500px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.imagen-novela img {
    width: 500px;
    height: 500px;
    object-fit: cover;
}

.contenido-novela {
    height: 500px;
    justify-content: flex-start;
    padding: 2.5rem;
}

/* Responsive: Móvil */
@media (max-width: 768px) {
    .fila-novela {
        flex-direction: column;
        text-align: center;
        min-height: auto;
    }

    .imagen-novela {
        width: 100%;
        max-width: 500px;
    }

    .imagen-novela img,
    .contenido-novela {
        width: 100%;
        height: auto;
    }

    .contenido-novela {
        max-width: 90%;
        padding: 2rem;
    }
}


/* === REPRODUCTOR DE AUDIO === */

.audio-player-section {
    width: 100%;
    max-width: 1200px;
    margin: 3rem auto 0;
    padding: 2rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 6px 16px rgba(0,0,0,0.08);
    text-align: center;
}

.audio-player-section h3 {
    font-size: 1.8rem;
    color: #222;
    margin-bottom: 0.5rem;
}

.audio-player-section p {
    color: #555;
    margin-bottom: 1rem;
    font-size: 1rem;
}

#episodio-select {
    padding: 0.8rem;
    font-size: 1rem;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    width: 100%;
    max-width: 400px;
    margin-bottom: 1.5rem;
    background: #f9f9f9;
}

#episodio-info {
    font-style: italic;
    color: #666;
    margin-top: 1rem;
    font-size: 0.95rem;
}

/* === FOOTER === */
footer {
  background: #ffffff;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 20px;
  gap: 15px;
}

/* Contenedor de redes sociales */
.footer-social ul.footer-icons {
  list-style: none;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0;
  margin: 0;
  gap: 15px;
}

/* Cada ícono */
.footer-social ul.footer-icons li {
  margin: 0;
  padding: 0;
  position: relative; /* necesario para el hover tipo subrayado */
}

/* Enlace del ícono */
.footer-social ul.footer-icons li a {
  color: #000;
  font-size: 1em; /* tamaño más pequeño */
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.3s ease, transform 0.3s ease;
}

/* Hover estilo menú superior */
.footer-social ul.footer-icons li a::before {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 50%;
  width: 0;
  height: 2px;
  background-color: #ea580c; /* color naranja */
  transition: width 0.4s ease, left 0.4s ease;
  transform: translateX(-50%);
}

.footer-social ul.footer-icons li a:hover {
  color: #ea580c;
  transform: scale(1.2);
}

.footer-social ul.footer-icons li a:hover::before {
  width: 70%;
  left: 50%;
}

/* Logo */
.footer-logo img {
  max-width: 300px;
  width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}

/* Texto del footer */
.footer-text p {
  margin: 0;
  padding: 0;
  color: #000;
}

/* RESPONSIVE para móviles */
@media (max-width: 768px) {
  .footer-social ul.footer-icons {
    gap: 15px;
  }

  .footer-logo img {
    max-width: 250px;
  }

  .footer-text p {
    font-size: 0.9rem;
  }
}
