@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@200;400;700;900&display=swap");

:root {
    --color-dorado: #c68b19;
    --color-verde: #04562d;
    --color-blanco: #ffffff;
}
html {
    scroll-behavior: smooth;
    /*Para que se desplace con animación*/
}
body {
    margin: 0;
    padding: 0;
    font-family: "Poppins", sans-serif;
    font-size: 18px;
}
section[id] {
    scroll-margin-top: 100px; /* Para navegadores modernos */
}
img {
    display: block;
}
figure {
    margin: 0;
}
h1{
    font-size: 35px;
    font-weight: 700;
    color: var(--color-blanco);
}
h2{
    font-size: 25px;
}

/************* header *************/
#main-header {
    background-color: var(--color-verde);
    top: 0;
    margin: 0;
    width: 100%;
    position: sticky;
    z-index: 1000;
}
#main-nav {
    display: flex;
    justify-content: space-between;
}
#logo {
    max-width: 200px;
}

/***** MENU *****/
.menu {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center;
}
.menu li a {
    text-decoration: none;
}
.menu-main li a {
    padding: 15px 20px;
    color: var(--color-blanco);
}
.menu-main li a:hover {
    color: #000;
    text-decoration: none;
}

/***** portada *****/
#portada {
    background-image: url(/images/portada.jpg);
    background-size: cover;
    padding-top: 100px;
    padding-bottom: 100px;
    position: relative;
    display: block;
}
#portada::before {
    position: absolute;
    content: "";
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.349);
    z-index: 1;
}
#portada .container {
    position: relative;
    z-index: 2;
}
#portada a {
    text-decoration: none;
    font-family: "Poppins", sans-serif;
    color: #000;
    font-weight: 400;
    font-size: 17px;
}
.texto-grande {
    font-size: 80px;
    font-weight: 500;
    letter-spacing: -1px;
    line-height: 1.5em;
    margin: 0;
    color: var(--color-blanco);
}
.texto-importante {
    font-weight: 600;
}
.espacio {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 68px 0 67px 0;
}

/***** Calculadora *****/

.simulador {
    background: #f0f0f0fa;
    font-family: "Poppins", sans-serif;
    padding: 25px 15px 25px 15px;
    border-radius: 15px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.4);
    text-align: center;
    width: 400px;
    margin-bottom: 6px;
}
.slider-container {
    margin: 20px 0;
}
label {
    display: block;
    margin-bottom: 10px;
    color: #000;
    font-weight: bold;
}
input[type="range"] {
    width: 100%;
}
.resultado {
    margin: 20px 0;
    color: #000;
}
button {
    background-color: goldenrod;
    color: white;
    padding: 15px 25px;
    margin-top: 10px;
    margin-bottom: 10px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
}
button:hover {
    background-color: rgb(226, 183, 73);
}
.letra-pequeña{
    
    font-size: 14px;
    font-weight: bold;
    margin: 3px 0 0 0;
}

/************* pasos *************/
#pasos {
    text-align: center;
    background-color: rgb(251, 251, 251);
}
#pasos a {
    text-decoration: none;
    color: var(--color-dorado);
    font-weight: bold;
}
#pasos h2 {
    padding-bottom: 40px;
    margin-top: 0;
}
#pasos h3 {
    font-size: 18px;
    font-weight: 500;
}
#pasos p {
    font-size: 15px;
}
#pasos i {
    font-size: 50px;
    color: var(--color-verde);
    margin-bottom: 30px;
    border: solid;
    height: 56px;
    width: 56px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 10px;
    margin-left: auto;
    margin-right: auto;
}

/************* preguntas *************/
#preguntas {
    background-color: rgba(237, 238, 238, 0.411);
}
#preguntas h2 {
    padding-bottom: 30px;
    margin-top: 0;
}
#preguntas p{
    font-size: 17px;
    margin: 10px 0;
}
.acordeon {
    max-width: 1300px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.question {
    background: var(--color-verde);
    padding: 15px;
    cursor: pointer;
    color: var(--color-blanco);
    border-radius: 5px;
    user-select: none;
}
.answer {
    background: var(--color-blanco);
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    padding: 0 15px;
    border-radius: 0 0 5px 5px;
    border-left: 2px solid #b3b3b3a8;
    border-right: 2px solid #b3b3b3a8;
    border-bottom: 2px solid #b3b3b3a8;
    transition: max-height 0.5s ease, opacity 0.5s ease, padding 0.5s ease;
}
.item.active .answer {
    max-height: 300px; /* suficiente para tu contenido */
    opacity: 1;
    padding: 15px;
}

/************* tipos de prestamo *************/
#tipo-prestamo {
    background-color: rgb(251, 251, 251);
}
#tipo-prestamo h2 {
    margin-top: 0;
    padding-bottom: 25px;
    color: #000;
    font-weight: 600;
}
#tipo-prestamo h3 {
    font-size: 20px;
    text-align: center;
    padding: 6px 0;
    margin-top: 0;
    margin-bottom: 30px;
    border-radius: 7px;
    border-bottom: solid 2px #c68b19;
}

#tipo-prestamo p{
    color: var(--color-blanco);
}
#tipo-prestamo img{
    box-shadow: 9px 9px #000;
}
.prestamo-foto{
    position: relative;
}
.imagen-contenedor{
    position: relative;
    display: inline-block;
}
.foto-tipo{
    background: rgba(0, 0, 0, 0.349);
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    padding: 35px;
    box-sizing: border-box;
    opacity: 0;
    transition: all .4s ease-in-out;
}
.foto-tipo:hover{
    opacity: 1;
}
.alinear-texto{
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

/************* logros *************/
#logros {
    background-color: rgb(219, 154, 0);
    color: var(--color-blanco);
    padding: 40px 0;
    /* Simplificado padding-top y padding-bottom */
    text-align: center;
}

#logros .num-logro {
    font-size: 55px;
    font-weight: 900;
    color: transparent;
    -webkit-text-stroke: 3px var(--color-blanco);
    stroke: 2px var(--color-blanco);
}

#logros .nom-logro {
    font-size: 22px;
}

/************* cliente *************/
#cliente {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: rgba(237, 238, 238, 0.411);
}
#cliente h2 {
    margin-top: 0;
    padding-bottom: 20px;
}
.carrusel {
    width: 100%;
    max-width: 1300px;
    /* Mantiene el tamaño máximo */
    overflow: hidden;
    position: relative;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    margin: 0 auto;
    /* Centra el carrusel */
}
.carrusel-contenedor {
    display: flex;
    transition: transform 0.6s ease-in-out;
}
.carrusel-item {
    flex: 0 0 25%;
    /* Ahora cada imagen ocupa el 25% del carrusel (4 imágenes visibles) */
    text-align: center;
    padding: 20px;
    background-color: white;
    box-sizing: border-box;
}
.carrusel-item img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
}
#cliente h3 {
    font-size: 1.1em;
    color: #333;
    margin: 15px 0 5px 0;
}
#cliente p {
    font-size: 0.9em;
    color: #777;
    margin: 10px 0 5px 0;
}

/***** footer *****/
#main-footer {
    background-color: rgb(251, 251, 251);
    color: #000;
    padding: 50px 0 0 0;
    border-top: solid 1px #b3b3b3a8;
}
#main-footer p {
    font-size: 16px;
    line-height: 1.5em;
}
.letra-espacio {
    line-height: 4em;
}
.letra-espacio span {
    font-size: 28px;
    font-weight: bold;
    letter-spacing: 1px;
    color: #000;
}
.footer-columns {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    max-width: 1300px;
    margin: 0 auto 30px;
    text-align: center;
}
.footer-col {
    flex: 1;
    min-width: 200px;
    padding: 0 15px;
}
.footer-col h3 {
    font-size: 23px;
    margin-bottom: 10px;
    color: var(--color-dorado);
    font-weight: bold;
}
.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.footer-col ul li a {
    color: #000;
    text-decoration: none;
    font-size: 17px;
    /*transition: color 0.2s ease;*/
}
.footer-col ul li a:hover {
    color: var(--color-dorado);
}
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: stretch; /* Cambiado de center a stretch para igualar alturas */
    padding: 20px 0;
    border-top: 1px solid #b3b3b3a8;
    max-width: 1300px;
    margin: 0 auto; 
}
.logo-and-rights {
    display: flex;
    align-items: center; 
    gap: 20px;
    padding-right: 20px; 
    position: relative;
    border-right: none;
}
.logo-and-rights img {
    max-height: 90px;
}
.logo-and-rights p {
    margin: 0; 
    font-size: 14px; 
    line-height: 1.4em;
}
.logo-and-rights::after {
    content: ''; /* Necesario para que el pseudo-elemento aparezca */
    position: absolute;
    right: 0; /* Lo alineamos a la derecha del contenedor */
    top: -20px; /* Extiende la línea hacia arriba (ajusta según necesites) */
    bottom: -20px; /* Extiende la línea hacia abajo (ajusta según necesites) */
    width: 1px; /* Ancho de la línea */
    background-color: #b3b3b3a8;
}
.icon-footer {
    display: flex;
    align-items: center;
    padding: 0 15px;
    position: relative; 
    border-right: none;
    gap: 20px;
}
.icon-footer a{
    color: var(--color-verde);
}
.icon-footer::after {
    content: ''; 
    position: absolute;
    right: 0; 
    top: -20px; 
    bottom: -20px; 
    width: 1px; 
    background-color: #b3b3b3a8;
}
.icon-footer i {
    font-size: 55px; 
    margin: 0;
}
#redes-sociales {
    display: flex;
    align-items: center; 
    gap: 15px; 
    padding: 0 30px 0 30px;
}
#redes-sociales a {
    text-decoration: none;
}
#redes-sociales i {
    font-size: 18px;
    color: #000;
    background-color: var(--color-dorado);
    height: 15px;
    width: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px;
    border-radius: 30%;
    transition: transform 0.3s ease;
}
#redes-sociales i:hover {
    transform: scale(1.1);
}
#ir-arriba {
    background-color: var(--color-verde);
    color: var(--color-blanco);
    padding: 15px 20px;
    font-size: 20px;
    border-radius: 50%;
    position: fixed;
    right: 20px;
    bottom: 40px;
    transition: all.5s ease-in-out;
    box-shadow: 0 5px 5px rgba(0, 0, 0, 0.7);
    z-index: 500;
}
#ir-arriba:hover {
    bottom: 50px;
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.4);
}

/************* NOSOTROS *************/
#portada-nosotros{
    background-image: url(/images/portada-nosotros.png);
    background-size: cover;
    background-position: center 60%;
    position: relative;
    display: block;
    padding: 100px 0 100px 0;
    text-align: center;
}
#portada-nosotros::before {
    position: absolute;
    content: "";
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.349);
    z-index: 1;
}
#portada-nosotros .container{
    position: relative;
    z-index: 2;
}
#historia{
    background-color: rgba(237, 238, 238, 0.411);
}
#historia p{
    font-size: 17px;
    line-height: 1.9;
}
#historia img{
    margin-top: 25px;
    border-radius: 10px;
}
#historia .col{
    justify-items: center;
}
#mision-vision{
    background-color: rgb(251, 251, 251);
}
#mision-vision p{
    font-size: 17px;
    line-height: 1.9;
}
#mision-vision img{
    margin-top: 25px;
    border-radius: 10px;
}
#mision-vision .col{
    justify-items: center;
}
#valores{
    background-color: rgba(237, 238, 238, 0.411);
}
#valores h3{
    font-size: 20px;
    margin: 0;
}
#valores .grid-valores {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, auto);
    gap: 20px;
    padding-top: 25px;
}
#valores .grid-valores p{
    font-size: 17px;
    margin: 5px 0 0 0;
}
.col-valores {
    padding: 10px;
}
.imagen-titulo {
    display: flex;
    flex-direction: row; 
    align-items: center; 
    gap: 10px;
}
.max-width-800{
    max-width: 800px;
}
.mt{
    margin-top: 35px;
}
.ma{
    margin: auto;
}
.pad{
    padding-top: 50px;
}

/************* SERVICIO *************/
#portada-servicio{
    background-image: url(/images/portada-servicio.png);
    background-size: cover;
    background-position: center 50%;
    position: relative;
    display: block;
    padding: 100px 0 100px 0;
    text-align: center;
}
#portada-servicio::before{
    position: absolute;
    content: "";
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.349);
    z-index: 1;
}
#portada-servicio .container{
    position: relative;
    z-index: 2;
}

/************* EMPLEO *************/
#portada-empleo{
    background-image: url(/images/portada-empleo.png);
    background-size: cover;
    background-position: center 65%;
    position: relative;
    display: block;
    padding: 100px 0 100px 0;
    text-align: center;
}
#portada-empleo::before{
    position: absolute;
    content: "";
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.349);
    z-index: 1;
}
#portada-empleo .container{
    position: relative;
    z-index: 2;
}
/** PROXIMAMENTE SERVICIO - EMPLEO**/
#proximamente {
    background: linear-gradient(135deg, #3c9bb8 0%, #f0f8ff 100%); /* Fondo degradado */
    padding: 80px 0;
    text-align: center;
    position: relative;
    overflow: hidden; 
}
.coming-soon {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px; 
    max-width: 800px;
    margin: 0 auto;
}
.proximamente-title {
    font-size: 48px;
    font-weight: 700;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 2px;
    animation: fadeIn 1.5s ease-in-out infinite alternate; 
}
.proximamente-text {
    font-size: 18px;
    color: #000;
    font-weight: 500;
    margin: 0 0 10px 0;
}
.proximamente-icon {
    font-size: 60px; 
    color: var(--color-dorado);
    animation: spin 3s linear infinite;
}
@keyframes fadeIn {
    0% { opacity: 0.7; }
    100% { opacity: 1; }
}
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/************* CONTACTENOS *************/
#portada-contacto{
    background-image: url(/images/portada-contacto.png);
    background-size: cover;
    background-position: center 15%;
    position: relative;
    display: block;
    padding: 100px 0 100px 0;
    text-align: center;
}
#portada-contacto::before {
    position: absolute;
    content: "";
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.349);
    z-index: 1;
}
#portada-contacto .container{
    position: relative;
    z-index: 2;
}
#contacto{
    background-color: rgba(237, 238, 238, 0.411);
}
#contacto p{
    font-size: 17px;
    margin-bottom: 10px;
}
#contacto label{
    font-weight: normal;
}
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; 
    gap: 40px;
}
.contact-form {
    max-width: 500px;
}
.form-group {
    margin-bottom: 20px;
}
.form-input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 16px;
    box-sizing: border-box;
    transition: border-color 0.3s;
}
.form-input:focus {
    outline: none;
    border-color: var(--color-dorado);
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
}
textarea.form-input {
    resize: vertical;
    min-height: 150px;
}
.btn-submit {
    background-color: var(--color-dorado);
    color: white;
    padding: 12px 25px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s;
}
.btn-submit:hover {
    background-color: var(--color-verde);
}
.contact-map {
    height: 100%;
}
.map-container {
    position: relative;
    padding-top: 100%; /* Relación 1:1 */
}
.map-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 4px;
}
/************* estilo en general *************/
.container {
    max-width: 1300px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 15px;
    padding-right: 15px;
}
.padded {
    padding-top: 60px;
    padding-bottom: 60px;
}
.row {
    display: flex;
    margin-left: -20px;
    margin-right: -20px;
}
.col {
    flex-basis: 0;
    flex-grow: 1;
    padding-left: 20px;
    padding-right: 20px;
    box-sizing: border-box;
}
.img-fluid {
    max-width: 100%;
}
.centrado-vertical {
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.text-center{
    text-align: center;
}
