﻿/* SECCION CREDITOS */
#creditos{
    padding:120px 8% 80px;
    background:#f8fafc;
}
/* TITULO */
#creditos .titulo{
    text-align:center;
    margin-bottom:70px;
}
#creditos .titulo h2{
    font-size:60px;
    font-weight:800;
    color:#005ca8;
    margin-bottom:18px;
    position:relative;
    display:inline-block;
}
#creditos .titulo h2::after{
    content:"";
    width:120px;
    height:5px;
    background:#005ca8;
    display:block;
    margin:18px auto 0;
    border-radius:10px;
}
#creditos .titulo p{
    font-size:22px;
    color:#555;
    max-width:750px;
    margin:auto;
    line-height:1.8;
}
/* CONTENEDOR */
.contenedor-productos{
    display:flex;
    flex-direction:column;
    gap:60px;
}
/* TARJETA */
.producto-card{
    display:grid;
    grid-template-columns:
    repeat(auto-fit,minmax(320px,1fr));
    align-items:center;
    gap:50px;
    background:white;
    padding:45px;
    border-radius:35px;
    box-shadow:
    0 15px 35px rgba(0,0,0,.08);
    overflow:hidden;
    transition:.4s;
}
.producto-card:hover{
    transform:translateY(-8px);
    box-shadow:
    0 20px 45px rgba(0,0,0,.12);
}
/* REVERSE */
.producto-card.reverse .producto-img{
    order:2;
}
.producto-card.reverse .producto-info{
    order:1;
}
/* IMAGEN */
.producto-img{
    width:100%;
}
.producto-img img{
    width:100%;
    height:420px;
    object-fit:cover;
    border-radius:28px;
    transition:.4s;
    box-shadow:
    0 12px 30px rgba(0,0,0,.15);
}
.producto-card:hover .producto-img img{
    transform:scale(1.03);
}
.cotizador-rapido{
    display:flex;
    align-items:center;
    justify-content:center;
    gap:0;
    margin-top:18px;
}
.producto-img .hormiga-cotizador{
    width:auto;
    height:260px;
    object-fit:contain;
    border-radius:0;
    box-shadow:none;
    flex-shrink:0;
    margin-top:16px;
    margin-right:-20px;
    position:relative;
    z-index:2;
}
.cotizador-rapido .btn-proyectar-credito{
    transform:translateY(-20px);
}
/* INFORMACION */
.producto-info{
    width:100%;
}
.producto-info h3{
    font-size:48px;
    line-height:1.2;
    color:#005ca8;
    margin-bottom:25px;
    font-weight:800;
}
.producto-info p{
    font-size:20px;
    line-height:1.9;
    color:#555;
    margin-bottom:30px;
}
/* BADGE MONTO */
.badge-monto{
    display:inline-flex;
    align-items:center;
    gap:12px;
    background:#005ca8;
    color:white;
    padding:14px 24px;
    border-radius:50px;
    font-size:18px;
    font-weight:700;
    margin-bottom:30px;
    box-shadow:
    0 10px 20px rgba(0,0,0,.12);
}
.badge-monto i{
    font-size:20px;
}
/* CUADROS */
.cuadros-info{
    display:grid;
    grid-template-columns:
    repeat(2,1fr);
    gap:22px;
    margin-top:35px;
}
/* CUADRO */
.cuadro{
    background:white;
    padding:28px;
    border-radius:24px;
    border:2px solid #e5e7eb;
    box-shadow:
    0 10px 25px rgba(0,0,0,.08);
    transition:.3s;
    position:relative;
    overflow:hidden;
}
.cuadro::before{
    content:"";
    position:absolute;
    top:0;
    left:0;
    width:100%;
    height:6px;
    background:linear-gradient(
        to right,
        #005ca8,
        #176c22
    );
}
.cuadro:hover{
    transform:translateY(-6px);
    box-shadow:
    0 18px 35px rgba(0,0,0,.12);
}
/* TITULO CUADRO */
.cuadro h4{
    font-size:26px;
    color:#005ca8;
    margin-bottom:20px;
    font-weight:700;
}
/* LISTAS */
.cuadro ul{
    list-style:none;
    display:flex;
    flex-direction:column;
    gap:15px;
}
.cuadro ul li{
    display:flex;
    align-items:flex-start;
    gap:14px;
    font-size:17px;
    line-height:1.7;
    color:#444;
}
.cuadro ul li i{
    color:#176c22;
    font-size:17px;
    margin-top:4px;
    min-width:18px;
}
/* TABLAS */
.tabla-creditos{
    width:100%;
    border-collapse:collapse;
    margin:30px 0;
    overflow:hidden;
    border-radius:20px;
    box-shadow:
    0 8px 20px rgba(0,0,0,.08);
}
.tabla-creditos th{
    background:linear-gradient(
        to right,
        #005ca8,
        #176c22
    );
    color:white;
    padding:18px;
    font-size:18px;
    text-align:center;
}
.tabla-creditos td{
    background:white;
    padding:18px;
    text-align:center;
    font-size:17px;
    color:#444;
    border-bottom:1px solid #e5e7eb;
}
.tabla-creditos tr:hover td{
    background:#f9fafb;
}
/* SUBTITULO TABLA */
.subtitulo-tabla{
    font-size:28px;
    color:#005ca8;
    margin-top:35px;
    margin-bottom:20px;
}
/* MOBILE */
@media(max-width:900px){
    #creditos .titulo h2{
        font-size:42px;
    }
    #creditos .titulo p{
        font-size:18px;
    }
    .contenedor-productos{
        gap:40px;
    }
    .producto-card{
        display:flex;
        flex-direction:column;
        padding:25px;
        gap:30px;
    }
    .producto-info{
        order:1;
    }
    .producto-img{
        order:2;
    }
    .producto-info h3{
        font-size:34px;
        text-align:center;
        margin-bottom:20px;
    }
    .producto-info p{
        font-size:17px;
        text-align:center;
        line-height:1.8;
    }
    .cuadros-info{
        grid-template-columns:1fr;
    }
    .cuadro{
        padding:24px;
    }
    .cuadro h4{
        font-size:22px;
    }
    .cuadro ul li{
        font-size:16px;
    }
    .badge-monto{
        width:100%;
        justify-content:center;
        text-align:center;
        font-size:16px;
    }
    .producto-img img{
        width:100%;
        height:250px;
        object-fit:cover;
        border-radius:20px;
    }
    .cotizador-rapido{
        position:relative;
        display:block;
        text-align:center;
    }
    .producto-img .hormiga-cotizador{
        width:auto;
        height:170px;
        margin:0;
    }
    .cotizador-rapido .btn-proyectar-credito{
        position:absolute;
        left:50%;
        bottom:-15px;
        transform:translateX(-50%);
        margin-top:0;
        z-index:3;
        white-space:nowrap;
        width:max-content;
    }
    .tabla-creditos{
        display:block;
        overflow-x:auto;
    }
    .tabla-creditos th,
    .tabla-creditos td{
        font-size:14px;
        padding:14px;
    }
    .subtitulo-tabla{
        font-size:22px;
        text-align:center;
    }
}
.btn-proyectar-credito{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:10px;
    padding:14px 28px;
    margin-top:20px;
    background:#176c22;
    color:white;
    text-decoration:none;
    font-size:16px;
    font-weight:700;
    border-radius:14px;
    border:none;
    transition:.3s;
    box-shadow:0 10px 25px rgba(0,92,168,.20);
}
.btn-proyectar-credito:hover{
    background:#124e17;
}
.btn-proyectar-credito i{
    font-size:18px;
}