/* Reinicio de márgenes y paddings */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
    --header-height: calc(1.3rem * 2 + 2.5rem);
}

/* Fuente base */
body {
  font-family: Arial, sans-serif;
  background: linear-gradient(135deg, #ffffff, #ffffff);
  overflow-x: hidden;
}

/* Contenedor principal del carrusel */
.carousel {
  position: relative;
  width: 100%;              /* Ocupa todo el ancho disponible */
  max-width: 1920px;        /* No se hace más grande que la imagen original */
  margin: auto;             /* Centrado automático */
  overflow: hidden;         /* Oculta lo que se sale de los bordes */
  aspect-ratio: 1920 / 600;
}

/* Contenedor que contiene todas las imágenes en fila */
.carousel-inner {
  display: flex;             /* Muestra las imágenes una al lado de la otra */
  height: 100%;              /* Se adapta a la altura del carrusel */
  transition: transform 0.5s ease-in-out; /* Animación suave al mover */
}

/* Cada imagen ocupa exactamente el ancho del carrusel */
.carousel-item {
  flex: 0 0 100%;
  height: 100%;
}

/* Ajuste de las imágenes */
.carousel-item img {
  width: 100%;       /* Se ajustan al ancho del carrusel */
  height: 100%;      /* Se ajustan a la altura */
  object-fit: cover; /* Recorta si es necesario, para que no se deformen */
  display: block;
}

/* Estilo de los botones de control */
.carousel-control-prev,
.carousel-control-next {
  position: absolute;
  top: 50%;                        /* Centrados verticalmente */
  transform: translateY(-50%);     /* Ajuste fino de centrado */
  background: rgba(0, 0, 0, 0.5);  /* Fondo semitransparente */
  border: none;
  color: white;
  padding: 10px;
  cursor: pointer;
  font-size: 20px;
  border-radius: 50%;              /* Botón redondeado */
  z-index: 10;                     /* Que quede encima de las imágenes */
}

/* Botón izquierdo */
.carousel-control-prev {
  left: 10px;
}

/* Botón derecho */
.carousel-control-next {
  right: 10px;
}

/* Estilos del contenedor de información */
.container-inicio {
  display: flex;
  align-items: center;
  gap: 40px;
  max-width: 1200px;
  width: 100%;
  padding: 60px 40px;
  margin: 20px auto;
}

.info-section {
  flex: 1;
}

.info-image {
  flex: 0 0 400px;
  height: 400px;
}

.info-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.info-header {
  text-align: left;
  margin-bottom: 30px;
}

.info-title {
  font-size: 2.5rem;
  font-weight: 700;
  /*background: linear-gradient(135deg, #010066, #010066);*/
  background: #0e0c8a;;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 10px;
  position: relative;
}

.info-subtitle {
  font-size: 1.1rem;
  color: #666;
  font-weight: 300;
}

.info-content {
  line-height: 1.8;
  font-size: 1.1rem;
  color: #444;
  text-align: justify;
}

/* Estilos para el nuevo carrusel de tarjetas */
.carousel-container {
  width: 100%;
  max-width: 1800px;
  height: 400px;
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  margin: 40px auto;

}

.carousel-track {
  display: flex;
  transition: transform 0.6s cubic-bezier(0.4, 0.0, 0.2, 1);
  height: 100%;
}

.card {
  min-width: 300px;
  height: 100%;
  background: #ffffff; 
  backdrop-filter: blur(10px);
  margin-right: 60px;
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border: 2px solid #010066;
  transition: box-shadow 0.3s ease;
  position: relative;
}

.card:hover {
  z-index: 10;
  box-shadow: 0 15px 40px rgba(102, 126, 234, 0.3);
}

.card-image {
  width: 120px;
  height: auto;
  margin: 20px auto 0 auto;
  display: block;
  transition: transform 0.3s ease;
}

.card:hover .card-image {
  transform: scale(1.05);
}

.card-content {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.card-title {
  font-size: 24px;
  font-weight: bold;
  color: #2d3748;
  margin-bottom: 12px;
  background: linear-gradient(135deg, #010066, #010066);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.card-description {
  font-size: 16px;
  color: #4a5568;
  line-height: 1.6;
  margin-bottom: 20px;
}

.card-button {
  background: linear-gradient(135deg, #010066, #010066);
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 25px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  align-self: flex-start;
  position: relative;
  overflow: hidden;
}

.card-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s;
}

.card-button:hover::before {
  left: 100%;
}

.card-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(102, 126, 234, 0.4);
}

.dots-container {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 0;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  /*background: rgba(255, 255, 255, 0.5);*/
  cursor: pointer;
  transition: all 0.3s ease;
}

.dot.active {
  /*background: white;*/
  transform: scale(1.2);
}

.fade-in {
  animation: fadeIn 0.6s ease-in-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@media (max-width: 768px) {
  .container-inicio {
    flex-direction: column;
  }
  
  .info-image {
    flex: 0 0 auto;
    width: 100%;
    height: 300px;
  }
  
  .carousel-container {
    max-width: 90%;
    height: 350px;
    overflow: hidden;
  }
  
  .card {
    min-width: 100%;
  }
  
  .card-title {
    font-size: 20px;
  }
  
  .card-description {
    font-size: 14px;
  }
  
  .card-content {
    padding: 20px;
  }
}

.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.3rem 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    box-sizing: border-box;
}


.header::before {
    content: '';
    position: absolute;
    width: 100%;
    top: 0;
    left: 0;
    height: 100%;
    background: rgba(0,0,0, .1);
    backdrop-filter: blur(50px);
    z-index: -1;
}

.header::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255, .4),
    transparent);
    transition: .5s;
}

.header:hover::after {
    left: 100%;
}

/* ESTILO DEL LOGO (CONTENEDOR DEL ENLACE) */
.logo{
    text-decoration: none;
    font-weight: 700;
    display: flex; /* Asegura que la imagen esté bien centrada */
    align-items: center;
}

/* ESTILO DE LA IMAGEN DENTRO DEL LOGO */
.logo img {
    height: 2.5rem; /* Ajusta la altura de la imagen en la barra */
    width: auto;
}

.navbar a{
    font-size: 1.15rem;
    color: aliceblue;
    text-decoration: none;
    font-weight: 500;
    margin: 0 0.8rem;
}

/* ------------------------------------- */
/* --- ESTILOS PARA MENÚS DESPLEGABLES (DROPDOWN) - ESCRITORIO --- */
/* ------------------------------------- */

.dropdown {
    position: relative;
    display: inline-block;
    margin: 0 0.8rem;
}

.dropdown > a {
    font-size: 1.15rem;
    color: aliceblue;
    text-decoration: none;
    font-weight: 500;
    margin: 0; 
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    min-width: 180px;
    background: rgba(0,0,0, .7); 
    backdrop-filter: blur(20px);
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.4);
    z-index: 200;
    border-radius: 5px;
    padding: 5px 0; 
}

.dropdown-content a {
    color: aliceblue;
    padding: 10px 16px;
    text-decoration: none;
    display: block;
    text-align: center;
    transition: background-color 0.3s;
    font-weight: 400;
    margin: 0;
}

.dropdown-content a:hover {
    background-color: rgba(255, 255, 255, 0.15);
}

.dropdown:hover .dropdown-content {
    display: block; /* Muestra el submenú al pasar el ratón en escritorio */
}


.icons {
    position: absolute;
    right: 5%;
    font-size: 2.8rem;
    color: aliceblue;
    cursor: pointer;
    display: none;
}

#check {
    display: none;
}

@media (max-width: 992px) {
    .header {
        padding: 1.3rem 2rem;
    }
}

@media (max-width: 768px) {
    .icons {
        display: inline-flex;
    }
    
    #check:checked~.icons #menu-icon {
        display: none;
    }

    .icons #close-icon {
        display: none;
    }

    #check:checked~.icons #close-icon {
        display: block;
    }

    .navbar {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        height: 0; 
        background: rgba(0,0,0, .1);
        backdrop-filter: blur(50px);
        box-shadow: 0 .5rem 1rem rgba(0,0,0, .1);
        overflow: hidden;
        transition: .3s ease;
    }

    #check:checked~.navbar {
        height: 100vh; 
        overflow-y: auto; 
    }

    /* Reglas para los elementos de navegación en móvil */
    .navbar a,
    .dropdown {
        display: block;
        font-size: 1.1rem;
        margin: 1.5rem 0;
        text-align: center;
    }
    
    /* ESTILOS DE LOS CONTENEDORES DROPDOWN EN MÓVIL */
    .dropdown {
        margin: 1.5rem 0;
        display: block;
    }

    .dropdown-content {
        /* Ocultar submenú por defecto en móvil */
        display: block; 
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease-out; 
        
        position: static;
        min-width: 100%;
        box-shadow: none;
        background: transparent;
        backdrop-filter: none;
        padding: 0;
        transform: none;
    }

    /* ESTILO DE LOS SUBENLACES EN MÓVIL (Indentación) */
    .dropdown-content a {
        text-align: left; 
        padding: 8px 16px; 
        padding-left: 60px; /* INDENTACIÓN */
        font-size: 1rem; 
        margin: 0.5rem 0; 
        
        opacity: 1; 
        transform: none;
    }
    
    /* Aseguramos que el enlace principal no tenga el margen de los otros */
    .dropdown-toggle {
        margin: 1.5rem 0;
    }
}

.header-spacer {
    /* Este div está en el flujo normal, empujando el contenido */
    height: var(--header-height); /* Mantiene la altura del encabezado fijo */
    width: 100%;
    
    /* PROPIEDADES VISUALES APLICADAS */
    background-color: #030244; /* Azul Francia */
    position: relative; /* Necesario para que el pseudo-elemento se posicione correctamente */
    overflow: hidden; /* Oculta el pseudo-elemento que crea el efecto de animación */
}

/* Efecto de movimiento leve dentro del fondo */
.header-spacer::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.1) 10%, transparent 70%);
    animation: slight-move 15s infinite linear;
}

@keyframes slight-move {
    0% {
        transform: translate(0, 0) rotate(0deg);
    }
    50% {
        transform: translate(5%, 5%) rotate(1deg);
    }
    100% {
        transform: translate(0, 0) rotate(0deg);
    }
}

.footer-minimal {
    /* CAMBIO REALIZADO: Usa el color de fondo #030244 para coincidir con .header-spacer */
    background-color: #030244; 
    
    /* Eliminar el backdrop-filter para que se vea sólido y se mezcle */
    /* backdrop-filter: blur(10px); */ 
    
    color: #dfe6e9;
    padding: 1.5rem 0; 
    font-size: 1rem;
    text-align: center;
    
    /* Línea delgada que separa el footer del contenido, usando el azul de acento */
    border-top: 1px solid rgba(0, 153, 255, 0.2); 
}

/* ... (el resto de los estilos del footer-minimal) ... */

/* Asegúrate de que el fondo del body esté bien configurado para que no haya espacios blancos */

.footer-content-minimal {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem; /* Espacio reducido entre redes y copyright */
}

/* Estilos de los íconos sociales */
.social-icons-minimal a {
    color: #dfe6e9;
    font-size: 1.5rem;
    margin: 0 10px;
    transition: color 0.3s ease;
}

.social-icons-minimal a:hover {
    /* Color gris claro en hover (Opción 2 de tu solicitud anterior) */
    color: rgba(204, 204, 204, 1); 
}

/* Estilo del texto de copyright */
.copyright-minimal {
    margin: 0;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

/* Asegura que el elemento base footer no tenga estilos conflictivos */
footer {
    text-align: center;
    padding: 30px;
    background: rgba(0, 0, 0, 0.3); /* Este es el estilo general. Lo ajustamos a algo más sutil. */
    /* ... (rest of general footer styles should be clean, without margin-top) ... */
    
    /* Asegura que no tenga backdrop-filter o border-top conflictivos si .footer-minimal lo aplica */
}

#page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: #000000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999; /* Asegura que esté por encima de todo */
    transition: opacity 0.5s ease-out; /* Transición para el efecto fade out */
    opacity: 1;
    pointer-events: all; /* Bloquea la interacción con el contenido de la página */
}

#page-loader.hidden {
    opacity: 0;
    pointer-events: none; /* Permite la interacción cuando desaparece */
}

.gif-container {
    width: 400px;
    height: 400px;
    z-index: 1;
}

.gif-container img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.loading-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    margin-top: -100px;
}

.loading-text {
    color: #ffffff;
    font-size: 24px;
    font-weight: 300;
    letter-spacing: 2px;
    margin-bottom: 20px;
    animation: textPulse 2s ease-in-out infinite;
}

.loading-dotts {
    display: flex;
    gap: 8px;
}

.dott {
    width: 12px;
    height: 12px;
    background-color: #ffffff;
    border-radius: 50%;
    animation: dotPulse 1.4s ease-in-out infinite;
}

.dott:nth-child(1) { animation-delay: 0s; }
.dott:nth-child(2) { animation-delay: 0.2s; }
.dott:nth-child(3) { animation-delay: 0.4s; }

/* Keyframes de animación del loader */
@keyframes textPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

@keyframes dotPulse {
    0%, 60%, 100% { 
        opacity: 0.3;
        transform: scale(0.8);
    }
    30% { 
        opacity: 1;
        transform: scale(1);
    }
}

/* Responsive adjustments */
@media (max-width: 480px) {
    .gif-container {
                width: 450px; /* Tamaño aumentado */
                height: 450px; /* Tamaño aumentado */
                top: 10%; /* Posición más arriba */
            }
    .loading-text {
        font-size: 20px;
    }
    .loading-content {
    margin-top: -80px; /* Mueve el texto hacia abajo para separarlo del GIF agrandado */
}
}
.copyright-minimal a {
    color: inherit; /* Hereda el color del texto del párrafo padre (que suele ser negro/gris oscuro) */
    text-decoration: none; /* Opcional: Remueve el subrayado típico de los enlaces */
}