/*============================================================

                        NavBar

============================================================*/

/* General Styles */
body {
    margin: 0;
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
}

/* Navbar Container */
.navbar {
    width: 90%;
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 25px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s ease;
}

/* Logo */
.navbar .logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: inherit;
}

.navbar .logo .logo-img {
    width: 40px; /* Ajusta el tamaño según sea necesario */
    height: auto;
    margin-right: 10px; /* Espacio entre la imagen y el texto */
}

/* Links */
.navbar .links {
    display: flex;
    gap: 15px;
}

.navbar .links a {
    text-decoration: none;
    color: #333;
    font-size: 16px;
    position: relative;
    padding-bottom: 5px;
}

.navbar .links a::after {
    content: "";
    display: block;
    width: 0;
    height: 2px;
    background: #007BFF;
    transition: width 0.3s ease;
    position: absolute;
    bottom: 0;
    left: 0;
}

.navbar .links a:hover::after {
    width: 100%;
}

/* Contact Button */
.navbar .contact-btn {
    padding: 8px 16px;
    background-color: #007BFF;
    color: white;
    font-size: 16px;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.navbar .contact-btn:hover {
    background-color: #0056b3;
}

/*============================================================

                        Pagina Principal

============================================================*/

/* Full-screen section with background image */
.fullscreen-section {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
    width: 100%;
    background-color: #F2FFFB;
    background-image: url("../resources/Group_4.png");
    background-repeat: no-repeat;
    background-position: -0% 90%;
    background-size: 63%;
    padding: 0 5%;
    box-sizing: border-box;
}

/* Left column (image) */
.fullscreen-section .left-column {
    width: 45%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.fullscreen-section .left-column img {
    max-width: 125%;
    height: auto;
    padding-left: 43px;
    padding-top: 38px;
}

/* Right column (text) */
.fullscreen-section .right-column {
    width: 55%;
    padding-top: 100px;
    padding-right: 100px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
}

.fullscreen-section .right-column h1 {
    font-family: "Roboto Condensed", sans-serif;
    font-size: 100px;
    line-height: 1;
    margin: 0;
}

.fullscreen-section .right-column h1 span.green {
    color: #20B24B;
    font-style: italic;
    font-weight: bold;
}

.fullscreen-section .right-column h1 span.red {
    color: #FF2F2F;
    font-weight: bold;
}

.fullscreen-section .right-column .subtitle {
    font-family: "Roboto", sans-serif;
    font-weight: 500;
    font-size: 46.31px;
    margin-top: 50px;
    color: #000;
}

.fullscreen-section .right-column .subtitle2 {
    padding-bottom: 0px;
    font-family: "Roboto", sans-serif;
    font-weight: lighter;
    font-size: 37.05px;
    margin-top: -30px;
    color: #333;
    max-width: 750px;
    word-wrap: break-word;
    line-height: 1.4;
}

.fullscreen-section .right-column .highlight {
    font-family: Arial, sans-serif;
    font-size: 37.05px;
    margin-top: -10px;
    font-weight: bold;
    color: #FF2F2F;
}

.fullscreen-section .right-column .cta-button {
    margin-top: 20px;
    padding: 25px 45px;
    font-size: 1rem;
    font-weight: bold;
    color: #FF2F2F;
    background-color: #ffffff;
    border: 2px solid #FF2F2F;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    text-transform: uppercase;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease;
}

.fullscreen-section .right-column .cta-button:hover {
    background-color: #FF2F2F;
    color: #ffffff;
    transform: scale(1.05);
}

/* Sección 2*/
.section-1 {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 95vh; /* Ocupa toda la pantalla */
    width: 100%; /* Ancho completo */
    background: url('../resources/fondo2.png') no-repeat center center; /* Imagen de fondo */
    background-size: cover; /* Ajusta la imagen de fondo para cubrir el contenedor */
    padding: 20px;
    box-sizing: border-box;
}

/* Columna Izquierda */
.left-column {
    width: 50%; /* 50% del ancho */
    display: flex;
    flex-direction: column;
    align-items: end; /* Alinea los elementos horizontalmente */
    justify-content: center; /* Alinea los elementos verticalmente */
    color: #000; /* Color del texto */
    padding: 0%;
    text-align: left; /* Alinea el texto a la izquierda */
}

.left-column h2 {
    font-family: 'Roboto', sans-serif;
    font-weight: 100;
    font-size: 50px;
    margin: 0px;
    padding-right: 40px;
    color: #000;
}

.left-column h1 {
    font-family: 'Roboto', sans-serif;
    font-weight: bold;
    font-size: 85px;
    margin: 0px -30px;
    line-height: 1;
    color: #20B24B;
}

.left-column h1 span {
    color: #20B24B;
}

.left-column p {
    font-family: "Roboto Condensed", sans-serif; /* Fuente Roboto Condensed */
    font-style: italic;
    font-weight: 600;
    font-size: 30px;
    margin: 15px 30px;
    color: #FF2F2F;
}

.left-column p strong {
    font-weight: bold;
    color: #FF2F2F;
}

/* Columna Derecha */
.right-column {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.right-column img {
    max-width: 60%;
    border-radius: 50px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/*Seccion 3*/
.section-2 {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 20vh;
    width: 100%;
    background-color: #20B24B;
    padding: 0px;
    box-shadow: 1px 100px 1px 1px rgba(0, 0, 0, 0.1);
}

.section-2 h1{
    font-family: 'Roboto', sans-serif;
    font-weight: bold;
    font-size: 65px;
    margin: 0px 0px;
    line-height: 1;
    color: #ffffff;
}

/*Seccion 4*/
.cards-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    padding: 120px 300px;
    background-color: #F0FDF4;
}

/* Estilos para las tarjetas */
.card {
    flex: 1;
    max-width: 22%;
    min-width: 150px;
    height: 200px;
    background-color: #ffffff00;
    border: 2px solid transparent;
    border-image: linear-gradient(to top, #20B24B, rgba(255, 255, 255, 0)) 0.4;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0px 4px 6px rgba(85, 18, 18, 0.281);
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    font-family: 'Roboto', sans-serif;
    font-size: 34.35px;
    color: #333333;
    transition: all 0.3s ease;
}

/* Efecto hover */
.card:hover {
    transform: translateY(-10px);
    box-shadow: 0px 6px 12px rgba(0, 0, 0, 0.2);
    border-color: #20B24B;
}

/* Texto dentro de las tarjetas */
.card p {
    margin: 0;
    line-height: 1;
    font-size: 1.7rem;
    line-height: 1.5;
}


/* Sección general */
.section-5 {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh; /* Ocupa toda la altura de la pantalla */
    width: 100%; /* Ancho total de la pantalla */
    background-color: #ffffff; /* Fondo blanco */
    margin: 0; /* Sin margen */
    padding: 0; /* Sin relleno */
    overflow: hidden; /* Evita desbordamientos */
}

/* Contenedor del carrusel */
.carousel-container {
    width: 100%; /* Asegura que ocupe todo el ancho disponible */
    max-width: 100%; /* Sin límite en el ancho */
    overflow: hidden; /* Oculta imágenes fuera del contenedor */
    display: flex;
    justify-content: center; /* Centra el carrusel horizontalmente */
    align-items: center; /* Centra verticalmente */
    margin: 0 auto; /* Centra el contenedor en la página */
}

/* Carrusel */
.carousel {
    display: flex;
    transition: transform 0.5s ease-in-out; /* Transición suave */
    gap: 20px; /* Espaciado entre imágenes */
    will-change: transform; /* Optimización de rendimiento */
}

/* Imágenes del carrusel */
.carousel img {
    width: 92vh; /* Ajusta según el alto de la ventana */
    height: 92vh; /* Mantén proporciones */
    object-fit: cover; /* Ajusta la imagen sin distorsión */
    transition: transform 0.3s ease, filter 0.3s ease, opacity 0.3s ease;
    cursor: pointer; /* Indica interactividad */
    filter: grayscale(100%); /* Escala de grises para las imágenes inactivas */
    opacity: 0.5; /* Baja opacidad para imágenes inactivas */
    transform: scale(0.9); /* Reduce el tamaño de las imágenes inactivas */
}

/* Imagen activa */
.carousel img.active {
    filter: grayscale(0%); /* Quita escala de grises */
    opacity: 1; /* Imagen activa completamente visible */
    transform: scale(1); /* Imagen activa en tamaño completo */
}

/* Ajustes para pantallas pequeñas */
@media (max-width: 768px) {
    .navbar {
        top: 40px;
        padding: 5px 10px;
    }

    .fullscreen-section .left-column {
        display: none;
    }
    
    .fullscreen-section .right-column {
        width: 100%;
        padding: 20px;
        text-align: start;
    }

    .fullscreen-section .right-column h1 {
        font-size: 50px;
    }

    .section-1 {
        display: flex;
        align-items: center;
        justify-content: end;
        padding: 0px;
    }

    .left-column {
        padding: 50px;
        display: flex;
        text-align: end;
    }

    .left-column h2 {
        font-size: 50px;
        padding-right: 0px;
    }

    .left-column h1 {
        font-size: 85px;
        margin: 0px 0px;
    }

    .left-column p {
        font-weight: 600;
        font-size: 30px;
        margin: 15px 0px;
        color: #FF2F2F;
    }

    .right-column {
        display: none;
    }

    .section-2 h1{
        font-size: 55px;
        margin: 0px 0px;
        line-height: 1;
        color: #ffffff;
    }

    /*Seccion 4*/
    .cards-section {
        display: flex;
        justify-content: center;
        align-items: center;
        flex-wrap: wrap;
        gap: 20px;
        padding: 50px 50px;
        background-color: #F0FDF4;
    }

    .cards-section .card {
        font-size: 12px;
    }

    /* Imágenes del carrusel */
    .carousel img {
        width: 750px;
        height: 100%;
        object-fit: cover;
    }

}

/* Ajustes para pantallas muy pequeñas */
@media (max-width: 480px) {
    .navbar {
        display: none;
        width: 100%;
    }

    .navbar .logo .logo-img {
        width: 20px;
    }

    .fullscreen-section{
        background-repeat: no-repeat;
        background-position: 0% 100%;
        background-size: 100%;
        padding: 0 0%;
    }

    .fullscreen-section .right-column {
        display: initial;
        justify-content: start;
        align-items: start;
    }

    .fullscreen-section .right-column h1 {
        font-size: 32px;
    }

    .fullscreen-section .right-column .subtitle {
        font-size: 30px;
    }

    .fullscreen-section .right-column .subtitle2 {
        font-size: 20px;
    }

    .fullscreen-section .right-column .highlight {
        font-size: 20px;
    }

    .fullscreen-section .right-column .cta-button {
        font-size: 13px;
    }

    .section-1 {
        display: flex;
        align-items: center;
        justify-content: end;
        padding: 0px;
    }

    .left-column {
        width: 100%;
        padding: 0px;
        display: flex;
        text-align: end;
    }

    .left-column h2 {
        font-size: 30px;
        margin: 0px;
        padding-right: 0px;
    }

    .left-column h1 {
        font-size: 50px;
        margin: 0px 0px;
    }

    .left-column p {
        font-size: 25px;
        margin: 25px 0px;
    }

    .right-column {
        display: none;
    }

    .section-2 h1{
        font-size: 40px;
    }

    .cards-section {
        display: flex;
        justify-content: center;
        align-items: center;
        flex-wrap: wrap;
        gap: 20px;
        padding: 50px 0px;
        background-color: #F0FDF4;
    }

    .cards-section .card {
        max-width: 10%;
        min-width: 80px;
        height: 80px;
        font-size: 12px;
    }

    .card p {
        font-size: 12px;
    }

    .section-5 {
        height: 450px;
        width: 100%;
    }
    
    .carousel img {
        width: 300px;
        height: 80%;
        object-fit: cover;
    }
}
