@import url('https://fonts.googleapis.com/css2?family=Nunito:ital,wght@0,200..1000;1,200..1000&display=swap');
@import url('https://fonts.googleapis.com/css2?family=EB+Garamond:ital,wght@0,400..800;1,400..800&family=Merriweather:ital,wght@0,300;0,400;0,700;0,900;1,300;1,400;1,700;1,900&family=Nunito:ital,wght@0,200..1000;1,200..1000&family=Unna:ital,wght@0,400;0,700;1,400;1,700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=EB+Garamond:ital,wght@0,400..800;1,400..800&family=Merriweather:ital,wght@0,300;0,400;0,700;0,900;1,300;1,400;1,700;1,900&family=Nunito:ital,wght@0,200..1000;1,200..1000&family=Oswald:wght@200..700&family=Quicksand:wght@300..700&family=Unna:ital,wght@0,400;0,700;1,400;1,700&display=swap');

/* Estilos generales */
body {
    font-family: "Nunito", sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
}

/*estilos*/

.dark-blue-color{
    color: #002b5c;
}

.pl-10{
    padding-left: 10px;
}

.mb-5{
    margin-bottom: 5px;
}

.blue-bottom-line{
    border-bottom: solid 4px #002b5c;
}

.sky-blue-color{
    color: #0055b6;
}

.underline-none{
    text-decoration: none;
}

/* Barra de navegación */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    background-color: white;
    color: #004080;
    position: fixed;
    top: 0;
    width: 100%;
    height: 60px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

.navbar-logo {
    margin-left: 10px;
}

.navbar-menu {
    list-style-type: none;
    padding: 0;
    display: flex;
    flex-direction: row;
}

.navbar-menu li {
    margin: 0 15px;
}

.navbar-menu li a {
    color: #004080;
    padding: 10px;
    text-decoration: none;
    transition: color 0.3s ease, background-color 0.3s ease;
}

.navbar-menu li a:hover {
    background-color: #ffe6e6;
    color: #cc0000;
}

/* Estilo del botón hamburguesa */
.hamburger-menu {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding-right: 10px;
}

.hamburger-menu span {
    width: 25px;
    height: 3px;
    background-color: #005db9;
    margin: 4px;
    transition: all 0.3s ease;
}

/* Configuración móvil para la barra de navegación */
@media (max-width: 958px) {
    .navbar{
        padding-inline: 0px;
    }
    .hamburger-menu {
        display: flex;
    }

    /* Ocultar el menú por defecto en pantallas pequeñas */
    .navbar-menu {
        display: none;
        flex-direction: column;
        position: fixed;
        top: 60px;
        right: 0;
        background-color: white;
        width: 100%;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    }

    /* Mostrar el menú cuando esté activo */
    .navbar-menu.active {
        background-color: #002b5c;
        display: flex;
    }

    .navbar-menu li {
        margin: 10px 0; /* Más espacio entre las opciones */
        text-align: center; /* Centrar los elementos en el menú */
    }

    .navbar-menu li a {
        color: white;
    }
}


/* Sección de enlaces */
.section {
    display: none;
    position: fixed;
    top: 90px;
    left: 50%;
    padding: 10px;
    transform: translateX(-50%) translateY(-20px);
    width: 60%;
    background-color: white;
    border: 1px solid #ccc;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: opacity 0.5s ease, transform 0.5s ease;
    opacity: 0;
    z-index: 100;
}

.section.active {
    display: block;
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.section-content {
    display: flex;
    justify-content: space-between;
    position: relative;
}

.section img {
    width: 35%;
    height: auto;
    margin-left: 20px;
    object-fit: contain;
}

.close-button {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: transparent;
    color: red;
    border: none;
    font-size: 24px;
    cursor: pointer;
    z-index: 90;
}

.close-button:hover {
    color: #e6f0ff;
    background-color: #ff1a1a;
}
@media (max-width: 768px) {
    .section {
        width: 100%;
        top: 70px;
        padding: 10px;
    }
}

/* Footer */
footer {
    background-color: #004080;
    color: white;
    text-align: center;
    padding: 10px;
    position: relative;
    margin-top: 80px;
}
 /*Carousel*/
 .banner{
    margin-top: 80px;
 }
 .carousel {
    position: relative;
    width: 100%; /* Ancho del carrusel */
    margin-top: 60px auto; /* Centrado verticalmente */
}

.carousel-images {
    position: relative;
    width: 100%;
    height: 500px; /* Altura del carrusel */
    overflow: hidden;
}

.carousel-image {
    width: 100%;
    height: 500px;
    position: absolute;
    opacity: 0;
    transition: opacity 0.5s ease;
    object-fit: cover;
    object-position: center;
}

.carousel-image.active {
    opacity: 1; /* La imagen activa es visible */
}

.carousel-dots {
    position: absolute; /* Cambiar a posición absoluta */
    top: 10px; /* Ajustar la distancia desde la parte superior */
    left: 10px; /* Ajustar la distancia desde la izquierda */
    display: flex;
    flex-direction: column; /* Disposición vertical de los puntos */
}

.dot {
    height: 15px;
    width: 15px;
    margin: 5px;
    background-color: #bbb; /* Color de los puntos */
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s ease; /* Transición al pasar el mouse */
}

.dot:hover {
    background-color: #717171; /* Color al pasar el mouse */
}

.dot.active {
    background-color: #717171; /* Color del punto activo */
}

.title-section {
    background-color: #004080; /* Azul oscuro */
    padding: 20px;
    text-align: center;
    border-top: solid 8px #ff1a1a;
}

.animated-title {
    font-size: 2rem;
    color: white;
    text-transform: uppercase;
    line-height: 1.5; /* Separación entre las líneas */
    display: inline-block;
    font-family: "Unna", serif;
}

.animated-title span {
    opacity: 0;
    display: inline-block;
    transition: opacity 0.1s ease, transform 0.3s ease;
}

.animated-title .fade-in {
    opacity: 1;
    transform: translateY(0);
}

.animated-title .fade-out {
    opacity: 0;
    transform: translateY(-10px); /* Desplaza hacia arriba al desaparecer */
}


.split-section {
    display: flex;
    width: 100%;
    max-height: 450px;
}

.carousel-container, .cards-container {
    width: 50%;
    position: relative;
}

.carousel-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 20px 0px 20px 20px;
    height: 410px;
}

.mini-carousel {
    position: relative;
    overflow: hidden;
    width: 100%;
    height: 410px; /* Ajusta según tus necesidades */
}

.mini-carousel-image {
    width: 100%;
    height: 410px;
    position: absolute;
    top: 0;
    left: 100%;
    opacity: 0;
    transition: opacity 0.5s ease, left 0.5s ease;
    object-fit: cover; /* Evita deformación */
    object-position: center;
}

.mini-carousel-image.active {
    left: 0;
    opacity: 1;
}

.carousel-nav {
    display: flex;
    gap: 10px;
    position: absolute;
    bottom: 30px;
}

.carousel-dot {
    width: 10px;
    height: 10px;
    background-color: #ccc;
    border-radius: 50%;
    cursor: pointer;
}

.carousel-dot.active {
    background-color: #333;
}

.cards-container {
    display: flex;
    flex-direction: column;
    padding: 20px;
    height: 390px;
}

.cards-row {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
    max-height: calc(390px/3);
}

.card {
    position: relative;
    width: 100%;
    flex: 1;
    border-radius: 5px;
    overflow: hidden;
}

.card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.card-text {
    position: absolute;
    bottom: 10px;
    left: 10px;
    color: white;
    background-color: rgba(0, 0, 0, 0.6);
    padding: 5px;
    font-size: 1rem;
}

.large-card {
    flex: 2;
}

/* Estructura de la sección */
.about-section {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    background-color: #f5f5f5;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1.2s ease, transform 1.2s ease;
}


/* Agregar clase animate para activar la animación */
.about-section.animate {
    opacity: 1;
    transform: translateY(0);
}

/* Logo */
.logo-container {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo {
    max-width: 80%;
    height: auto;
}

/* Texto descriptivo */
.text-container {
    flex: 2;
    padding: 20px;
    font-size: 1.1rem;
    color: #333;
}

.description {
    font-style: italic;
    line-height: 1.6;
    color: #555;
}

/* Estilos generales del footer */
.footer {
    background-color: #002b5c;
    color: white;
    padding: 40px;
    font-family: "Quicksand", sans-serif;
}

/* Primera sección: Título y redes sociales */
.footer-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.footer-title {
    font-size: 1.5rem;
}

.social-icons img {
    width: 30px;
    height: 30px;
    margin: 0 10px;
}

/* Segunda sección: Columnas de enlaces */
.footer-links {
    display: flex;
    gap: 20px;
}

.column {
    flex: 1;
}

.large-column {
    flex: 2; /* 50% del ancho */
}

.left-aligned {
    text-align: left;
}

.small-column {
    flex: 1; /* 25% del ancho */
}

.column h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.column a {
    color: white;
    text-decoration: none;
    display: block;
    margin-bottom: 8px;
}

.column a:hover {
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
    .footer-info {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
    }

    .footer-links {
        flex-direction: column;
    }

    .column {
        width: 100%;
    }
    .left-aligned{
        text-align: center;
    }
}



/* Animación de aparición */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .about-section {
        flex-direction: column;
        text-align: center;
    }
    .logo {
        max-width: 50%;
    }
    .text-container {
        padding: 10px;
    }
}


/* Responsive ajustes */
@media (max-width: 768px) {
    .split-section{
        display: inherit;
        max-height: none;
    }
    .carousel-container,
    .cards-container {
        width: 100%; /* Ocupan toda la pantalla */
        padding-inline: 0px ;
    }
    
    .carousel {
        height: 400px; /* Ajuste del tamaño */
    }

    .carousel-image {
        height: 400px;
    }

    .large-card {
        flex: 1; /* Tamaño único en pantallas pequeñas */
    }
    .section{
        width: 80%;

    }
}