html, body {
    margin: 0;
    padding: 0;
    max-width: 100%;
    overflow-x: hidden;
  }
body {
    background: url('assets/img/fondo.jpg') no-repeat center center fixed;
    background-size: cover;
    min-height: 100vh;
    color: rgb(245, 226, 117);
    font-family: 'Georgia', serif;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
  }

  * {
    box-sizing: border-box;
  }

.menu-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: #3e0a3d;
    padding: 15px;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
}

.menu-button {
    display: none;
    background: none;
    border: none;
    color: rgb(245, 226, 117);
    font-size: 24px;
    cursor: pointer;
}

/* Espaciadores a los lados */
.menu-filler {
    flex: 1;  /* Hace que ocupen todo el espacio disponible */
    height: 50px; /* Ajusta la altura para que coincida con el menú */
    background: radial-gradient(circle, rgba(245, 226, 117, 0.2) 5%, transparent 50%);
}

/* Menú */
nav {
    display: flex;
    justify-content: center;
    flex: 2;
}

nav a {
    color: rgb(245, 226, 117);
    text-decoration: none;
    margin: 0 15px;
    font-size: 18px;
    transition: 0.3s;
    padding: 10px;
    border-radius: 5px;
}

nav a:hover {
    background: radial-gradient(circle, rgb(245, 226, 117) 5%, purple 15%);
    box-shadow: 0 0 15px rgb(245, 226, 117);
}

nav a.active {
    background-color: rgb(245, 226, 117);
    color: #3e0a3d;
    box-shadow: 0 0 15px rgb(245, 226, 117);
}


.menu-filler {
    animation: glowing 2s infinite alternate;
    height: 10px;
}

@keyframes glowing {
    from {
        box-shadow: 9 9 10px rgb(245, 226, 117);
    }
    to {
        box-shadow: 0 0 100px rgb(245, 226, 117);
    }
}

.small-logo {
    width: 300px; /* Ajusta el tamaño según lo necesites */
    height: auto;
    display: block;
    margin: 0 auto;
}

.section {
    padding: 100px 50px;
    text-align: center;
    margin-top: 60px;
    transition: transform 0.5s ease-in-out;
}
.section:hover {
    transform: scale(1.02);
    box-shadow: 0 0 20px rgb(245, 226, 117);
}
.magic-text {
    font-size: 24px;
    font-weight: bold;
    text-shadow: 0 0 10px rgb(245, 226, 117);
    animation: glow 1.5s infinite alternate;
}
@keyframes glow {
    from {
        text-shadow: 0 0 5px rgb(245, 226, 117);
    }
    to {
        text-shadow: 0 0 20px rgb(245, 226, 117);
    }
}
.fade-in {
    opacity: 0;
    animation: fadeIn 2s ease-in forwards;
}


.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    padding: 20px;
}
.service-box {
    background: rgba(59, 10, 59, 0.8);
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    color: rgb(245, 226, 117);
    box-shadow: 0 0 10px rgb(245, 226, 117);
    transition: transform 0.3s ease-in-out;
}
.service-box:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgb(245, 226, 117);
}

hr{
    color:rgb(245, 226, 117) ;
}

#catalogo {
    background: rgba(59, 10, 59, 0.5);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    color: rgb(245, 226, 117);
    box-shadow: 0 0 15px rgb(245, 226, 117);
   
}
.saga-container {
    display: flex;
    flex-direction: row;  /* En escritorio, van lado a lado */
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    max-width: 1200px; /* Ajusta según tu diseño */
  }
  .saga-imagen, .saga-texto {
    flex: 1;
    padding: 1rem;
    box-sizing: border-box;
  }
.featured-book {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    
}
.featured-book img {
    width: 300px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgb(245, 226, 117);
}
.synopsis {
    max-width: 500px;
    text-align: justify;
}
.carousel-container {
    position: relative;
    width: 80%;
    margin: auto;
    overflow: hidden;
}
.carousel {
    display: flex;
    /* Si estás moviendo los slides con translateX, 
       deja solo transition y quita justify-content aquí 
       para no romper la animación. */
    transition: transform 0.5s ease-in-out;
    
}
.book-slide {
     /* Cada slide ocupa todo el ancho del contenedor */
  min-width: 100%;
  
  /* Centra horizontal y verticalmente su contenido */
  display: flex;
  justify-content: center;
  align-items: center;
}
.book-slide img {
   /* Opcionalmente, puedes ajustar el tamaño */
  width: 150px;
  margin: 0 auto; /* No hace daño si ya usas flex */
  display: block; /* Asegura que no se comporte como inline */
  border-radius: 10px;
  box-shadow: 0 0 10px rgb(245, 226, 117);
}
.prev, .next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgb(245, 226, 117);
    color: #3e0a3d;
    border: none;
    padding: 10px;
    cursor: pointer;
    border-radius: 5px;
    box-shadow: 0 0 10px rgb(245, 226, 117);
}
.prev {
    left: 10px;
}
.next {
    right: 10px;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    padding: 20px;
    text-align: center;
}

.team-box {
    background: rgba(59, 10, 59, 0.5);
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    color: rgb(245, 226, 117);
    box-shadow: 0 0 10px rgb(245, 226, 117);
    transition: transform 0.3s ease-in-out;
}

.team-box:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgb(245, 226, 117);
}

.contact-section {
    background: rgba(59, 10, 59, 0.5);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    color: rgb(245, 226, 117);
    box-shadow: 0 0 15px rgb(245, 226, 117);
    max-width: 800px;
    margin: 20px auto;
    
}
.contact-form {
    margin-top: 20px;
    background: rgba(59, 10, 59, 0.0);
    padding: 15px;
    border-radius: 10px;
    text-align: center;
    width: 60%;
    margin: auto;
}
.contact-form input,
.contact-form textarea {
    width: 90%;
    padding: 8px;
    margin: 10px 0;
    border-radius: 5px;
    border: none;
}
.contact-form button {
    background-color: rgb(245, 226, 117);
    color: #3e0a3d;
    padding: 8px 16px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: 0.3s;
}
.contact-form button:hover {
    background-color: #3e0a3d;
    color: rgb(245, 226, 117);
    box-shadow: 0 0 10px rgb(245, 226, 117);
}

.contact-link {
    color: #ffffff !important;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease-in-out;
}
.contact-link:hover {
    color: rgb(245, 226, 117) !important;
    text-shadow: 0 0 10px rgb(245, 226, 117);
}

.copy-button {
    background-color: rgb(245, 226, 117);
    color: #3e0a3d;
    border: none;
    padding: 5px 10px;
    margin-left: 10px;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s ease-in-out;
}

.copy-button:hover {
    background-color: #3e0a3d;
    color: rgb(245, 226, 117);
    box-shadow: 0 0 10px rgb(245, 226, 117);
}

.call-button {
    background-color: rgb(245, 226, 117);
    color: #3e0a3d;
    border: none;
    padding: 5px 10px;
    margin-left: 10px;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s ease-in-out;
}

.call-button:hover {
    background-color: #3e0a3d;
    color: rgb(245, 226, 117);
    box-shadow: 0 0 10px rgb(245, 226, 117);
}
/* Estilos para los enlaces de redes sociales */


a.social-links {
    color: #ffffff !important;
    text-decoration: none !important;
    font-weight: bold;
    transition: color 0.3s ease-in-out;
}

a.social-links:hover {
    color: rgb(245, 226, 117) !important;
    text-shadow: 0 0 10px rgb(245, 226, 117);
}

/* Asegurar que todos los enlaces de redes sociales sean blancos */
.social-links, 
.social-links:link, 
.social-links:visited {
    color: #ffffff !important;
    text-decoration: none !important;
    font-weight: bold;
    transition: color 0.3s ease-in-out;
}

/* Color dorado al pasar el mouse */
.social-links:hover, 
.social-links:focus, 
.social-links:active {
    color: rgb(245, 226, 117) !important;
    text-shadow: 0 0 10px rgb(245, 226, 117);
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}
.intro-box {
    background: rgba(59, 10, 59, 0.8);
    padding: 20px;
    border-radius: 10px;
    text-align: justify;
    width: 80%;

    margin: auto;
}




.magic-trail {
    position: absolute;
    width: 5px;
    height: 5px;
    background:rgb(245, 226, 117);
    border-radius: 50%;
    pointer-events: none;
    box-shadow: 0 0 10px rgb(245, 226, 117), 0 0 20px rgb(245, 226, 117);
    animation: fadeOut 0.5s linear forwards;
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
        transform: scale(2);
    }
}

@media (max-width: 768px) {

    /* Centrar el texto por defecto */
    body {
      text-align: center;
    }
    
     .saga-container {
    flex-direction: column;}
    
    .saga-imagen, .saga-texto {
        width: 100%;  /* Asegura que cada bloque ocupe todo el ancho */
      }
  
    /* Asegurarte de que tus secciones no se descuadren */
    .section,
    .intro-box,
    .contact-section,
    #catalogo,
    footer,
    .service-box,
    .team-box {
      /* Ocupa la mayor parte del ancho, pero centrada */
      max-width: 90%;
      margin: 0 auto;
      text-align: center;
    }
  
    /* Ajustar el padding en móvil si quieres que se vea más compacto */
    .section {
      padding: 60px 20px; /* Ajusta a tu gusto */
    }
  
    /* Si usas un contenedor de grid para “services” o “team”, 
       conviértelo en flex column para que aparezcan uno debajo del otro */
    .services-grid,
    .team-grid {
      display: flex;
      flex-direction: column;
      align-items: center; /* Centra horizontalmente las cajas hijas */
    }
  
    /* Asegura que cada cajita se vea centrada y no provoque desplazamientos */
    .service-box,
    .team-box {
      width: 100%;        /* Para que ocupe todo el ancho disponible */
      margin: 10px 0;     /* Separación vertical */
    }
  
    /* Menú: si lo tienes desplegable, ocúltalo por defecto y muéstralo cuando se active */
    nav {
      display: none;
      flex-direction: column;
      width: 100%;
      margin: 0 auto;
    }
    nav.active {
      display: flex;
    }
    nav a {
      display: block;
      padding: 15px;
      margin: 0;
      width: 100%;
    }
  
    /* Ajustar el contenedor del menú para que esté centrado */
    .menu-container {
      justify-content: center;
      position: relative; /* Quita position:fixed si te da problemas de desplazamiento */
    }
    
    /* Reducir márgenes o padding del footer en móviles si es necesario */
    footer {
        padding: 9px;
        font-size: 8px;
    }
}


footer {
    background: rgba(59, 10, 59, 0.8);
    color: rgb(245, 226, 117);
    text-align: center;
    padding: 15px;
    width: 100%;
    margin-top: 2rem;
    
}

