:root {
   font-family: "Raleway", sans-serif;
   font-size: 16px;
   font-weight: 400;
}

body {
   font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
   font-size: 16px;
   color: #333;
  
   line-height: 1.6;
   display: flex;
   flex-direction: column;
   min-height: 100vh;
   padding-top: 60px;
   padding-bottom: 60px;
}
body {
   background-color: #000;
   background-attachment: fixed;
 }
 
 @keyframes cambioColorFondo {
   from {
     background-color: #000;
   }
   to {
     background-color: #c4cbff;
   }
 }
 
 body.scroll {
   animation: cambioColorFondo 5s linear infinite;
 }
#book-header {
    background: linear-gradient(to bottom, #c0d8f0 0%, #e0e8f8 100%); /* Updated Gradient */
    color: #333; 
    padding: 15px 0; /* Slightly increased padding */
    text-align: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 10;
    transition: top 0.5s ease, box-shadow 0.3s ease; /* Added shadow transition */
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08); /* Subtle, consistent shadow */
    max-height: 50px; /* Allow for a little more height if needed */
    border-radius: 10px;
}

#book-header img {
   margin-top: -30px; /* Ajusta este valor según sea necesario para posicionar el logo más arriba */
}

#book-header.scrolled { /* Add a class for when the header is scrolled */
    top: -40px; /* Hide most of the header on scroll */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.12); /* More pronounced shadow */
}
.usuario-icon {
   max-width: 65px; /* Ajusta el ancho máximo según sea necesario */
   max-height: 65px; /* Ajusta el alto máximo según sea necesario */
   border-radius: 50%;
   position: absolute;
   top: 50px; /* Ajusta la distancia desde la parte superior según sea necesario */
   right: 08px; /* Ajusta la distancia desde la parte derecha según sea necesario */
 }
 
 .user-footer {
   display: flex;
   align-items: center;
 }
 

.fondo {
   position: absolute;
   top: 0;
   left: 0;
   width: 100%;
   height: 100%;
   overflow: hidden;
 }
 
 .fondo video {
   width: 100%;
   height: 100%;
   object-fit: cover;
 }

 .container {
   position: relative;
   width: 100%;
   height: 100vh;
   display: flex;
   justify-content: center;
   align-items: center;
   z-index: 1;
}

.container video {
   position: absolute;
   top: 0;
   left: 0;
   width: 100%;
   height: 100%;
   object-fit: cover;
   z-index: 0;
}

.content {
   position: absolute;
   top: 44%; /* Posiciona el contenido en el centro vertical */
   left: 50%; /* Posiciona el contenido en el centro horizontal */
   transform: translate(-50%, -50%); /* Centra el contenido */
   text-align: center;
   color: #fff;
   z-index: 2; /* Asegura que esté encima del video */
}

h3 {
   font-size: 2rem;
   margin-bottom: 10px;
}

p {  
   font-family: 'Open Sans', sans-serif;
   font-size: 16px;
}

button {
   margin-top: 20px;
   padding: 12px 24px; /* Slightly more padding for visual balance */
   font-size: 1rem;  /* Reduce font-size for a touch of refinement */
   border: none;
   border-radius: 8px; /* Softer, more elegant border */
   background-color: #f0f0f0; /* Very light, sophisticated background */
   color: #333; /* Darker text for contrast */
   cursor: pointer;
   transition: background-color 0.3s ease; /* Keep the smooth transition */
 }
 
 button:hover {
   background-color: #e0e0e0; /* Even lighter color on hover */
   box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15); /* Subtle box-shadow for depth */
 }
 



h1 { 

   font-size: 2em;
   font-weight: 600;
   color: #00205b;
   letter-spacing: 1px;
   margin-top: 0px;
}

h1 {
   position: relative; /* Añade esta línea */
 }
 
 .header-content {
   position: relative;
   display: inline-block;
 }
 
 .idioma-desplegable.activo { 
   display: block;
   position: absolute;
   top: 100%;
   left: 50%; /* Ajusta esta línea */
   transform: translateX(-50%); /* Añade esta línea */
 }
 
 
 

/* Estilo para quitar el subrayado del enlace */
a {
  text-decoration: none;
  color: inherit; /* Mantener el color del texto original */
}

  .idioma-selector {
   background-color: #e8ebf0; /* Un gris muy suave - se mezcla con azul en el fondo */
   border: 1px solid #c1c8d4; /* Borde ligeramente más oscuro */
   border-radius: 6px; /* Esquinas más redondeadas */
   padding: 10px 20px;
   margin-left: 10px;
   cursor: pointer;
   position: relative;
   z-index: 1;
   transition: background-color 0.2s ease-in-out, color 0.2s ease-in-out;
   display: inline-flex;
   align-items: center;
 }
 .idioma-selector {
   position: relative; /* Ajusta la posición relativa para que top funcione */
   top: -40px; /* Ajusta este valor según sea necesario para posicionar el botón más arriba */
}

 
 .idioma-actual {
   font-weight: bold;
   margin-right: 5px;
   pointer-events: none;
   color: #333;
 }
 
 .fa-angle-down {
   color: #536882; /* Un azul-gris para mejor contraste*/
   transition: transform 0.2s ease-in-out;
 }
 
 .idioma-selector:hover {
   background-color: #d7dce5; /* Más claro al hacer hover */ 
 }
 .idioma-selector:hover .fa-angle-down {
   transform: rotate(180deg);
 }
 
 .idioma-desplegable {
   display: none;
   position: absolute;
   top: calc(100% + 5px);
   left: 0;
   background-color: #ffffff;
   border: 1px solid #ccc;
   border-radius: 4px;
   padding: 10px;
   list-style: none;
   z-index: 2;
   box-shadow: 0 2px 6px rgba(0,0,0,0.2); /* Sombra más prominente*/
   min-width: 120px; /* Ajusta según sea necesario */
   font-size: 15px;
 }
 
 .idioma-selector:hover .idioma-desplegable {
   display: flex;
   flex-direction: column;
 }
 
 .idioma-desplegable li {
   padding: 10px;
   border-bottom: 1px solid #ddd;
   transition: background-color 0.2s ease-in-out;
 }
 
 .idioma-desplegable li:last-child {
   border-bottom: none;
 }
 
 .idioma-desplegable li a {
   text-decoration: none;
   color: #333;
   transition: color 0.2s ease-in-out;
 }
 
 .idioma-desplegable li a:hover {
   color: #1a53ff; /* Azul destacado */
 }
 
 .idioma-activo {
   background-color: #e8ebf0; /* Igual al botón */
   font-weight: bold;
   color: #000;
   font-size: 15px;
 }
 


#main-options {
   flex-grow: 1;
   display: flex;
   justify-content: center;
   align-items: center;
}

#title-container {
  background: linear-gradient(to bottom, #f8f8f8, #e8e8e8);
  padding: 0px 0; /* Reduce el padding superior e inferior */
  text-align: center;
  border-radius: 5px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
  margin: 5px;
  margin-top: 140px;
}

h2 {
 color: #333;
 font-family: 'Montserrat', sans-serif;
 font-size: 26px;
 font-weight: 600;
 margin-top: 10px; /* Ajusta el margin-top del título si lo deseas */
 text-transform: none;
}




.carousel_img_container {
   position: relative;
}



.carousel_img_container img {
   display: block;
   width: 100%;
   height: auto;
   z-index: 0;
}



.carousel {
   position: relative;
}

.carousel_inner {
   width: 100%;
   overflow: hidden;
}

.carousel_inner::after {
   content: "";
   display: block;
   clear: both;
}

.carousel_item {
   position: relative;
   float: left;
   display: none;
   width: 100%;
   margin-right: -100%;
}

.carousel_item__active,
.carousel_item__pos_prev,
.carousel_item__pos_next {
   display: block;
}

.carousel_item__pos_prev {
   left: -100%;
}

.carousel_item__pos_next {
   left: 100%;
}

.carousel_item__prev {
   transform: translateX(100%);
   transition: transform .5s ease-in-out;
}

.carousel_item__next {
   transform: translateX(-100%);
   transition: transform .5s ease-in-out;
}

.carousel__fade .carousel_item__pos_prev,
.carousel__fade .carousel_item__pos_next {
   left: 0;
   opacity: 0;
}

.carousel__fade .carousel_item__prev,
.carousel__fade .carousel_item__next {
   transform: none;
   opacity: 1;
   transition: opacity .5s ease-in-out;
}

.carousel__fade .carousel_item__active.carousel_item__prev,
.carousel__fade .carousel_item__active.carousel_item__next {
   opacity: 0;
}

.carousel_img {
   display: block;
   width: 100%;
}

.carousel_caption {
   position: absolute;
   top: 0;
   left: 0;
   display: flex;
   flex-direction: column;
   justify-content: center;
   width: 100%;
   height: 100%;
   padding: 3rem 4rem;
   text-align: center;
   color: #fff;
   z-index: 1;
}

.carousel_title {
   font-family: "Montserrat", sans-serif;
   font-weight: 600;
}

.carousel_description {
   margin-top: .75rem;
   line-height: 150%;
}

.carousel_indicator {
   position: absolute;
   bottom: 1rem;
   left: 50%;
   transform: translateX(-50%);
   display: flex;
   flex-direction: row;
   gap: .5rem;
   z-index: 1;
}

.carousel_dot {
   display: block;
   padding: .25rem;
   background-color: rgba(255, 255, 255, .25);
   border: none;
   border-radius: 50%;
   cursor: pointer;
   transition: background-color .5s ease-in-out;
}

.carousel_dot__active {
   background-color: lightskyblue;
   cursor: default;
   pointer-events: none;
}
.carousel_control {
   position: absolute;
   top: 50%;
   width: 100%;
   transform: translateY(-50%);
   display: flex;
   justify-content: space-between;
   z-index: 2;
}

.carousel_button {
   display: block;
   padding-inline: 1rem;
   font-family: "Raleway", sans-serif;
   font-size: 1.375rem;
   background-color: transparent;
   color: rgba(255, 255, 255, 0.25);
   border: none;
   cursor: pointer;
   transition: color 0.25s;
}

.carousel_button:hover {
   color: rgba(135, 206, 250, 0.75);
}

.carousel_button__prev {
   margin-left: 20px; /* Ajusta el margen izquierdo según sea necesario */
}

.carousel_button__next {
   margin-right: 20px; /* Ajusta el margen derecho según sea necesario */
}

#prev-btn, #next-btn {
   cursor: pointer;
   border: none;
   background-color: #00347b;
   color: #fff;
   font-size: 1.5em;
   padding: 10px 20px;
   border-radius: 5px;
   transition: background-color 0.3s ease-in-out;
}

#prev-btn:hover, #next-btn:hover {
   background-color: #0047ab;
}



#second-container {
   background: linear-gradient(to bottom, #f8f8f8, #e8e8e8);
   padding: 0px 0; /* Reduce el padding superior e inferior */
   text-align: center;
   border-radius: 5px;
   box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
   margin: 5px;
   margin-top: 2px;
 }

 #third-container {
   background: linear-gradient(to bottom, #f8f8f8, #e8e8e8);
   padding: 0px 0; /* Reduce el padding superior e inferior */
   text-align: center;
   border-radius: 5px;
   box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
   margin: 5px;
   margin-top: 2px;
 }

 #footer {
   background-color: rgba(245, 245, 245, 0.85);
   border-top: 1px solid #ddd;
   color: #333;
   padding: 10px 0;
   text-align: center;
   position: fixed; /* Cambiado de `position: absolute` a `position: fixed` */
   bottom: 0;
   left: 0;
   width: 100%;
   z-index: 3; /* Asegura que esté por encima del contenido y del video */
}


#footer p {
  font-size: 12px; 
  margin-bottom: 05px;
  color: #555; /* Slightly softer text color */
}

#footer-content {
  display: flex;
  justify-content: center; 
  align-items: center;
  flex-wrap: wrap;
  margin-top: 15px;
}

.boton-footer {
     
  padding: 12px 25px; 
  border-radius: 30px; /* Pill-shaped button */
  background-color: #fff; /* Crisp white background */
  color: #333; 
  font-size: 1em;
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; 
  cursor: pointer;
  margin: 10px;
  
  transition: background-color 0.3s ease-in-out, box-shadow 0.3s ease-in-out; 
  border: none; 
}

.boton-footer:hover {
  background-color: #f0f0f0; 
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15); /* Subtle box shadow for lift */
}




#dropdown-btn {
   cursor: pointer;
}

.dropdown-content {
   display: none;
   position: absolute;
   background-color: rgba(249, 249, 249, 0.9);
   min-width: 200px;
   box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
   z-index: 1;
   left: 50%;
   transform: translateX(-50%);
   bottom: 100%; /* Mueve el menú hacia arriba */
}

.dropdown-content a {
   color: rgba(0, 0, 0, 0.8);
   padding: 12px 16px;
   text-decoration: none;
   display: block;
   transition: background-color 0.3s ease;
}

.dropdown-content a:hover {
   background-color: rgba(241, 241, 241, 0.8);
}


/* Estilos para hacer que el video sea adaptable en todos los dispositivos */
.video-container {
   position: relative;
   width: 100%;
    padding-bottom: 56.25%; /* Proporción 16:9 para la altura del contenedor */
    overflow: hidden;
    max-width: 100%;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

