﻿/* Estilos para páginas de soluciones */

/* Font Faces */
@font-face {
    font-family: "DisaSun-SemiBoldItalic";
    src: url('../fonts/DisaSun-SemiBoldItalic.woff2') format("woff2");
    font-display: swap;
}

@font-face {
    font-family: "DisaSun-RegularItalic";
    src: url('../fonts/DisaSun-RegularItalic.woff2') format("woff2");
    font-display: swap;
}

@font-face {
    font-family: "DisaSun-Regular";
    src: url('../fonts/DisaSun-Regular.woff2') format("woff2");
    font-display: swap;
}

/* Navbar para páginas de soluciones - fondo blanco */
.navbar-soluciones {
    background-color: #fff !important;
    box-shadow: 0 .2rem 0.5rem rgba(0,0,0,.15) !important;
}

    .navbar-soluciones .navbar-nav {
        justify-content: flex-end;
    }

    .navbar-soluciones .nav-link {
        color: #194988 !important;
        padding: 0.5rem 1rem;
        transition: all 0.3s ease;
    }

        .navbar-soluciones .nav-link:hover {
            background-color: rgba(25, 73, 136, 0.1);
            border-radius: 8px;
        }

        .navbar-soluciones .nav-link.active {
            font-weight: 600;
            background-color: rgba(25, 73, 136, 0.15);
            border-radius: 8px;
        }


/* Navbar fijo */
.nav-fixed-top {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 1030;
}

/* Banner de ancho completo */
.banner-fullwidth {
    position: relative;
    width: 100%;
    height: 55vh;
    overflow: hidden;
}

.banner-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

/* Overlay con transparencia */
.banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to right, #fafafa66 0%, #fafafa4d 30%, transparent 100%);
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 5vh 15vw;
}

.banner-content {
    max-width: 40vw;
    color: #194988;
    background: #fafafae6;
    padding: 1rem 2rem;
    border-radius: 8px;
}

.banner-title {
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 4px #1949884d;
    line-height: 1.2;
    color: #194988;
    text-wrap: balance;
}

.banner-subtitle {
    font-size: 1rem;
    margin-bottom: 1.5rem;
    line-height: 1.6;
    text-shadow: 0 1px 3px #1949884d;
    color: #194988;
    text-wrap: balance;
}


/* Banner Buttons */
.banner-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Clase para el fondo gris claro */
.bg-light-grey {
    background-color: #ededef;
}



/* Footer */

footer a, footer a:hover, footer span, footer small {
    color: white;
}

footer {
    font-size: 0.9em;
}

/* Pasos - Steps Container - Sistema automático y flexible */
.steps-container {
    padding: 0;
    position: relative;
}

    .steps-container .row {
        display: flex;
        align-items: flex-start;
    }

/* Línea conectora - se posiciona automáticamente */
.steps-line {
    position: absolute;
    top: calc(1.875rem - 1.5px);
    height: 3px;
    background-color:  #3D8B45;
    z-index: 0;
    transform: translateY(-50%);
    width: -webkit-fill-available;
}

/* Para layouts con justify-content normal (4 pasos con col-md-3) */
.steps-container .row:not([style*="space-between"]) .steps-line {
    left: 0;
    right: 0;
    margin-left: 0 calc(10% + 1.875rem);
    margin-right: 0 calc(10% + 1.875rem);
}

/* Para layouts con justify-content: space-between (5 pasos con col-md-2) */
.steps-container .row[style*="space-between"] .steps-line {
    left: 0;
    right: 0;
    margin-left: 0 calc(8% + 1.875rem);
    margin-right: 0 calc(8% + 1.875rem);
}

.step-item {
    position: relative;
    z-index: 1;
}

.step-number {
    width: 60px;
    height: 60px;
    background-color: #fff;
    color:  #3D8B45;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 600;
    box-shadow: 0 4px 10px  #3D8B454d;
    position: relative;
    z-index: 2;
    border: 2px solid  #3D8B45;
}

/* ventajas */
.advantage-card {
    background: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    height: 100%;
    transition: all 0.3s ease;
}

    .advantage-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
    }

.advantage-icon {
    font-size: 3rem;
    color: #00a074;
}

.advantage-card h4 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.advantage-card p {
    color: #636363;
    line-height: 1.6;
    margin-bottom: 0;
}

/* lista soluciones */
.soluciones-list {
    list-style: none;
    padding-left: 0;
    margin-top: 1.5rem;
}

    .soluciones-list li {
        position: relative;
        padding-left: 2rem;
        margin-bottom: 1rem;
        line-height: 1.6;
    }

        .soluciones-list li:before {
            content: "✓";
            position: absolute;
            left: 0;
            color: #3D8B45;
            font-weight: bold;
            font-size: 1.2rem;
        }

/* soluciones relacionadas */
.soluciones-relacionadas {
    margin: 0 auto;
}

.solution-card-link {
    text-decoration: none;
    display: block;
}

.solution-card {
    position: relative;
    height: 200px;
    border-radius: 8px;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.solution-card-2 {
    background-image: url('../img/soluciones/2.png');
}

.solution-card-3 {
    background-image: url('../img/soluciones/3.png');
}

.solution-card-6 {
    background-image: url('../img/soluciones/6.png');
}

.solution-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(25, 73, 136, 0.7), rgba(25, 73, 136, 0.9));
    transition: all 0.3s ease;
}

.solution-card:hover .solution-overlay {
    background: linear-gradient(to bottom, rgba(0, 160, 116, 0.7), rgba(0, 160, 116, 0.9));
}

.solution-content {
    position: relative;
    z-index: 1;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 1.5rem;
    color: #fff;
}

    .solution-content h4 {
        font-size: 1.3rem;
        font-weight: 600;
        margin-bottom: 0.5rem;
        color: #fff;
    }

    .solution-content p {
        font-size: 0.9rem;
        margin-bottom: 1rem;
        color: #fff;
    }

.solution-icon {
    font-size: 2rem;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.solution-card:hover .solution-icon {
    opacity: 1;
    transform: translateY(0);
}


/* Responsive */
@media (max-width: 991px) {
    .navbar-nav {
        padding: 1rem 0;
    }

}

/* Tablets y pantallas medianas */
@media (min-width: 768px) and (max-width: 991px) {
    .step-number {
        width: 50px;
        height: 50px;
        font-size: 1.3rem;
    }

    .steps-line {
        top: calc(1.5625rem - 1.5px);
    }

    /* Ajuste para 4 pasos */
    .steps-container .row:not([style*="space-between"]) .steps-line {
        margin-left: calc(10% + 1.5625rem);
        margin-right: calc(10% + 1.5625rem);
    }

    /* Ajuste para 5 pasos */
    .steps-container .row[style*="space-between"] .steps-line {
        margin-left: calc(8% + 1.5625rem);
        margin-right: calc(8% + 1.5625rem);
    }
}


@media (max-width: 768px) {
    .soluciones-container {
        padding:1rem 2rem;
    }

    .banner-fullwidth {
        height: 80vh;
    }

    .banner-content {
        max-width: 90vw;
    }

    .banner-overlay {
        justify-content: center;
        padding: 5vh 5vw;
        margin-top: 10%;
    }

    .banner-title {
        font-size: 1.3rem;
        margin-bottom: 0.5rem;
    }

    .banner-subtitle {
        font-size: 1rem;
        margin-bottom: 1rem;
    }

    .curved-divider {
        display:none
    }

    /* Pasos móvil - ocultar línea */
    .steps-line {
        display: none !important;
    }

    .step-number {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }

    .advantage-card {
        padding: 1.5rem;
    }

    .advantage-icon {
        font-size: 2.5rem;
    }

    .solution-card {
        height: 180px;
    }

    .solution-content h4 {
        font-size: 1.1rem;
    }

    .solution-content p {
        font-size: 0.85rem;
    }

    .banner-buttons {
        flex-direction: column;
        width: 100%;
    }

}


/* Pantallas grandes */
@media (min-width: 1200px) {
    /* Ajuste linea 4 pasos (col-md-3) */
    .steps-container .row:not([style*="space-between"]) .steps-line {
        margin-left: calc(10% + 1.875rem);
        margin-right: calc(10% + 1.875rem);
    }

    /* Ajuste linea 5 pasos (col-md-2) */
    .steps-container .row[style*="space-between"] .steps-line {
        margin-left: calc(8% + 1.875rem);
        margin-right: calc(8% + 1.875rem);
    }
}

/* Menu movil desplegable  */
@media (max-width: 991px) {
    .navbar-soluciones .navbar-toggler {
        display: block !important;
        padding: 0.25rem;
        background-color: transparent !important;
        border: 1px solid #194988 !important;
        border-radius: 8px;
    }

    .navbar-soluciones .navbar-toggler-icon {
        background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%2825, 73, 136, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
        filter: none !important;
    }

    .navbar-soluciones .navbar-toggler:focus {
        box-shadow: 0 0 0 0.25rem rgba(25, 73, 136, 0.25);
    }

    .navbar-collapse {
        background-color: #fafafa !important;
    }

    .navbar.show,
    .navbar:has(.navbar-collapse.show) {
        background-color: #fafafa !important;
    }
}






/*style dani cae*/

.link-cae:hover {
    color: #fbce07;
}

.svg-clickable {
    cursor: pointer;
}


.mathjax-container {
    display: block;
    width: 100%;
    overflow-x: auto; /* Evita que se corte */
    text-align: center;
}

    .mathjax-container mjx-container {
        max-width: 100%;
        font-size: 4vw; /* Escala según el ancho de la pantalla */
    }

/* Contenedor principal */
#ContentPlaceHolder_Panel_Cae_elements_values {
    display: flex;
    flex-direction: column;
    row-gap: 10px; /* Espacio entre filas */
    width: 100%;
}

    /* Cada fila (row) */
    #ContentPlaceHolder_Panel_Cae_elements_values > div[id^="ContentPlaceHolder_Panel_Cae_elements_row_"] {
        display: flex;
        flex-direction: row; /* Por defecto en escritorio */
        column-gap: 1%;
        width: 100%;
    }

        /* Cada celda dentro de la fila */
        #ContentPlaceHolder_Panel_Cae_elements_values > div[id^="ContentPlaceHolder_Panel_Cae_elements_row_"] > div {
            display: flex;
            flex: 1; /* Todos ocupan el mismo espacio */
            flex-direction: column;
            align-items: flex-start;
        }

/* ✅ Vista móvil: apilar los hijos uno debajo del otro */
@media (max-width: 768px) {
    #ContentPlaceHolder_Panel_Cae_elements_values > div[id^="ContentPlaceHolder_Panel_Cae_elements_row_"] {
        flex-direction: column !important; /* Cambia a columna */
        row-gap: 10px; /* Espacio entre los divs */
    }

        #ContentPlaceHolder_Panel_Cae_elements_values > div[id^="ContentPlaceHolder_Panel_Cae_elements_row_"] > div {
            width: 100%; /* Cada div ocupa todo el ancho */
            flex: none; /* Evita que se estiren desproporcionadamente */
        }

    .extra-row {
        display: block !important
    }

    .mobile-separator {
        display: block !important
    }

    #btnAbrirModal {
        width: 100%
    }
}