/* ==================== */
/*  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;
  }
}

/* Slider */

.slider {
  max-width: 1200px;
  width: 100%;
  aspect-ratio: 1200 / 650;
  position: relative;
  margin: 2rem auto;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

/* Slides posicionados uno sobre otro */
.slides {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  pointer-events: none; /* evita clicks en ocultas */
  transition: opacity 1s ease-in-out;
  z-index: 0;
}

/* Imagen dentro del slide */
.slides img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Diapositiva activa visible */
.slides.active {
  opacity: 1;
  pointer-events: auto; /* permite clicks */
  z-index: 1;
}

/* Flechas de navegación */
.prev, .next {
  color: #ea580c; /* un color naranja más visible */
  background: rgba(255,255,255,0.7); /* fondo claro para contraste */
  font-weight: bold;
  font-size: 30px;
  padding: 15px;
  border-radius: 50%;
  cursor: pointer;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  user-select: none;
  z-index: 10; /* asegúrate que estén por encima */
}

.prev:hover, .next:hover {
  background: rgba(0,0,0,0.6);
}

.prev { left: 10px; }
.next { right: 10px; }

/* Puntos indicadores */
.dots-container {
  text-align: center;
  position: absolute;
  bottom: 10px;
  width: 100%;
}

.dot {
  cursor: pointer;
  height: 10px;
  width: 10px;
  margin: 0 3px;
  background-color: rgba(255,255,255,0.6);
  border-radius: 50%;
  display: inline-block;
  transition: background 0.3s ease;
}

.dot.active, .dot:hover {
  background-color: white;
}

/* Responsive para móviles */
@media (max-width: 768px) {
  .prev, .next {
    font-size: 16px;
    padding: 8px;
  }

  .dot {
    height: 8px;
    width: 8px;
  }
}

.slides img,
.prev, .next,
.dot {
  cursor: pointer;
}

/* === SECCIÓN INTERACTIVA ASIMÉTRICA === */

.moda-seccion {
  width: 100%;
  background: #f0f0f0;
  padding: 4rem 5%;
  font-family: 'Arial', sans-serif;
}

/* Fila con dos columnas: imágenes y texto */
/* ============================= */
/* SECCIÓN 3 IMÁGENES + TEXTO    */
/* ============================= */

/* Fila principal */
.fila {
  display: flex;
  gap: 2rem; /* espacio entre columnas */
  align-items: center; /* centra verticalmente */
  max-width: 1400px;
  margin: 0 auto;
}

/* Contenedor de imágenes */
.imagenes-modales {
  position: relative;
  flex: 1;
  min-width: 350px;
  height: 600px;
  text-align: center;
  margin-right: -1.5rem; /* acerca el texto a las imágenes */
}

/* Imágenes posicionadas */
.primera {
  max-width: 430px;
  position: absolute;
  top: 80px;
  left: 10%;
  border: 5px solid #ffffff;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  z-index: 1;
}

.segunda {
  max-width: 300px;
  position: absolute;
  top: 180px;
  left: 40%;
  border: 5px solid #f2f2f2;
  box-shadow: 0 4px 8px rgba(0,0,0,0.05);
  z-index: 2;
}

.tercera {
  max-width: 300px;
  position: absolute;
  bottom: -100px;
  left: 15%;
  border: 5px solid #f2f2f2;
  box-shadow: 0 4px 8px rgba(0,0,0,0.05);
  z-index: 3;
}

/* Contenedor de texto */
.contenedor1 {
  flex: 1;
  max-width: 500px;
  padding: 2.5rem;
  background: white;
  border-radius: 12px;
  box-shadow: 0 6px 16px rgba(0,0,0,0.08);

  display: flex;
  flex-direction: column;
  justify-content: center; /* centrado vertical */
  gap: 1.2rem;

  margin-left: -1.5rem; /* acerca el texto a las imágenes */
}

/* Título principal centrado sobre la sección */
.titulo-coleccion {
  text-align: center;
  font-size: 2.2rem;
  margin-bottom: 2rem;
  color: #222;
  font-family: 'Arial', sans-serif;
  margin: 0;
}

.subtitulo {
  font-family: 'Georgia', 'Times New Roman', serif; 
  font-style: italic;
  font-weight: 400;
  font-size: 1rem;
  text-align: center;
  color: #555;
  margin-top: 0.2rem; /* reducimos el espacio arriba */
}


.contenedor1 h2 {
  font-size: 1.8rem;
  color: #222;
  text-align: center;
  margin: 0 0 1rem 0;
}

.contenedor1 p {
  font-size: 1rem;
  line-height: 1.7;
  color: #444;
  text-align: justify;
  margin: 0;
}

/* =================================== */
/*       RESPONSIVE (móviles)         */
/* =================================== */

/* Breakpoint tablets: menos de 900px */
@media (max-width: 1000px) {
  .fila {
    flex-direction: column; /* Coloca imágenes arriba y texto debajo */
    align-items: center;    /* Centra horizontalmente todo */
    gap: 2rem;              /* Espacio entre imágenes y texto */
  }

  .imagenes-modales {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem; /* espacio entre las 3 imágenes */
    height: auto; /* ajusta altura automáticamente */
    position: static; /* quita el posicionamiento absoluto */
  }

  .primera,
  .segunda,
  .tercera {
    position: static; /* elimina posiciones absolutas */
    max-width: 90%;   /* imágenes responsivas */
    width: 100%;
    margin: 0.5rem 0;
  }

  .contenedor1 {
    max-width: 90%;    /* ancho adaptado al contenedor */
    padding: 2rem 1rem;
  }
}


/* Breakpoint tablet: 900px a 768px */
@media (max-width: 900px) and (min-width: 769px) {
  .fila {
    flex-direction: column; /* Pone las imágenes arriba y el texto debajo */
    align-items: center;    /* Centra todo horizontalmente */
    gap: 2rem;              /* Espacio entre imágenes y texto */
  }

  .imagenes-modales,
  .contenedor1 {
    max-width: 90%;        /* Reduce el ancho de ambos contenedores */
  }
}


@media (max-width: 768px) {
  .moda-seccion {
    padding: 2.5rem 5%;
  }

  .fila {
    flex-direction: column;
    gap: 1.5rem;
  }

  .imagenes-modales {
    height: auto;
    position: static;
    padding: 1rem 0;
  }

  .imagenes-modales h2.titulo-principal {
    text-align: center;
  }

  /* Imágenes: fuera de posicionamiento absoluto */
  .primera,
  .segunda,
  .tercera {
    position: static;
    transform: none;
    margin: 0.8rem auto;
    max-width: 85%;
    width: 100%;
    border-width: 4px;
    display: block;
    left: auto;
    top: auto;
    bottom: auto;
    z-index: auto;
  }

  /* Resetear estilos que no aplican en móvil */
  .primera {
    left: initial;
    top: initial;
  }

  .segunda {
    left: initial;
    top: initial;
  }

  .tercera {
    left: initial;
    bottom: initial;
  }

  /* Contenedor de texto */
  .contenedor1 {
    max-width: 100%;
    padding: 1.8rem;
    transform: none; /* Eliminamos el translateY en móvil */
    align-self: stretch;
  }

  .contenedor1 h2 {
    font-size: 1.6rem;
    text-align: center;
  }

  .contenedor1 p {
    font-size: 0.95rem;
    line-height: 1.6;
  }
}

/* Pantallas muy pequeñas (ej. 320px) */
@media (max-width: 480px) {
  .moda-seccion {
    padding: 2rem 4%;
  }

  .contenedor1 {
    padding: 1.5rem;
  }

  .contenedor1 h2 {
    font-size: 1.5rem;
  }

  .contenedor1 p {
    font-size: 0.9rem;
    line-height: 1.5;
  }

  .logo, .primera, .segunda, .tercera {
    max-width: 90%;
  }
}


/* === EFECTO HOVER SUAVE EN IMÁGENES (escritorio) === */

.primera,
.segunda,
.tercera {
  /* Transición suave en todos los cambios */
  transition: 
    transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow 0.4s ease;
  will-change: transform, box-shadow;
  cursor: pointer;
}

/* Efecto al pasar el mouse */
.primera:hover,
.segunda:hover,
.tercera:hover {
  transform: scale(1.05);
  box-shadow: 
    0 12px 20px rgba(0, 0, 0, 0.2),
    0 0 0 5px #ffffff; /* Refuerza el borde blanco al hacer hover */
  z-index: 10; /* Sube la imagen al frente al hacer hover */
}


/* === FOOTER === */
/* === 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;
  }
}
