
/* =========================================
   4. SECCIÓN HERO (AJUSTADA PARA 2 LÍNEAS)
   ========================================= */
   .hero {
    position: relative;
    width: 100%;
    line-height: 0;
}

.hero-bg {
    width: 100%;
    height: auto;
    display: block;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center; 
    padding-bottom: 5%; 
}

.hero-text-box {
    margin-left: 5%; 
    /* Aumentamos el ancho para que la frase larga quepa en una sola línea */
    width: 80%;      
    color: #ffffff;
}

.hero-text-box h1 {
    font-size: 3.8vw;
    line-height: 1.2; /* Un poco más de espacio entre las dos líneas */
    margin-top: 3vw;
    font-weight: 700;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.6);
    /* Permitimos que el <br> haga su trabajo pero evitamos cortes locos */
    white-space: pre-line; 
}

.hero-text-box p {
    font-size: 1.75vw;
    line-height: 1.5;
    margin-bottom: 2.2vw;
    margin-top: 1vw;
    font-weight: 400;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.6);
    /* El subtítulo se queda más estrecho para que no ocupe toda la pantalla */
    max-width: 45%; 
}

/* =========================================
   5. BOTONES ESCALABLES
   ========================================= */
.hero-actions {
    display: flex;
    gap: 1.5vw;
}

.btn {
    padding: 1.5vw 3vw;
    font-size: 1.35vw;
    font-weight: 600;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s ease;
    text-align: center;
    white-space: nowrap;
    display: inline-block;
}

.btn-blue {
    background-color: #f50000;
    color: #ffffff;
    border: 1px solid #f50000;;
}

.btn-white {
    background-color: #ffffff;
    color: #333333;
    border: 1px solid #ffffff;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    opacity: 0.95;
}


.btn-more {
    /* Usamos margin-top: auto para que si una caja es más alta, 
       el botón baje, pero sin forzar un vacío extra abajo */
    margin-top: auto; 
    display: inline-block;
    padding: 0.8vw 1vw;
    font-size: 1vw;
    background-color: #ff0000;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    width: 100%;
    transition: all 0.3s ease;
    text-align: center;
    margin-top: 1.5vw;
}
.btn-more:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    opacity: 0.95;
}

/* =========================================
   7. SECCIÓN NUESTRO PROCESO (3 COLUMNAS)
   ========================================= */
   .process-section {
    padding: 1.5vw 5%;
    background-color: #1a1a1a; /* Fondo blanco para contrastar con los servicios */
    text-align: center;
}

.process-title {
    font-size: 2.5vw;
    color: #ffffff;
    margin-bottom: 4vw;
    font-weight: 700;
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 columnas iguales */
    gap: 3vw;
    max-width: 1200px;
    margin: 0 auto;
}

.process-card {
    background: #fdfdfd;
    padding: 1.5vw 2vw;
    border-radius: 15px;
    position: relative; /* Necesario para posicionar el número */
    border: 1px solid #eee;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    transition: transform 0.3s ease;
}

/* El número rojo con texto blanco */
.step-number {
    position: absolute;
    top: -1.5vw; /* Lo eleva un poco por encima del borde */
    background-color: #f50000; /* Rojo Binsola */
    color: #ffffff;
    width: 3.5vw;
    height: 3.5vw;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5vw;
    font-weight: 700;
    box-shadow: 0 4px 10px rgba(245, 0, 0, 0.3);
}

.process-card img {
    height: 5vw;
    max-height: 85px;
    width: auto;
    margin-bottom: 2vw;
    margin-top: 1vw; /* Espacio para el número */
    object-fit: contain;
}

.process-card h3 {
    font-size: 1.4vw;
    color: #333;
    margin-bottom: 1.2vw;
    min-height: 3.5vw;
    display: flex;
    align-items: center;
}

.process-card p {
    font-size: 1.1vw;
    color: #666;
    line-height: 1.6;
    margin: 0;
}

.process-card:hover {
    transform: translateY(-5px);
    border-color: #f50000;
}


/* =========================================
   8. SECCIÓN CONTACTO Y MAPA (CON SEPARACIÓN)
   ========================================= */
   .contact-section {
    padding: 5vw 5%;
    background-color: #1a1a1a;
}

.contact-container {
    display: grid;
    grid-template-columns: 1.2fr 1fr; 
    gap: 2vw; /* Esta es la separación que verás entre mapa y formulario */
    max-width: 1400px;
    margin: 0 auto;
    /* Quitamos fondo y bordes de aquí para que la separación sea visible */
    background: transparent; 
}

/* Estilos del Mapa */
.contact-map {
    position: relative;
    min-height: 40vw; 
    background: #ffffff; /* Fondo blanco para el recuadro */
    border-radius: 15px; /* Redondeamos el mapa individualmente */
    overflow: hidden; 
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.contact-map iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}





/* Estilos del Formulario */
.contact-form-box {
    padding: 4vw 3vw;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: #ffffff; /* Fondo blanco para el recuadro */
    border-radius: 15px; /* Redondeamos el formulario individualmente */
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.contact-form-box h2 {
    font-size: 2.2vw;
    color: #1a1a1a;
    margin-bottom: 2vw;
    font-weight: 700;
}

.input-group {
    margin-bottom: 1.2vw;
}

.input-group input, 
.input-group textarea {
    width: 100%;
    padding: 1vw;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1vw;
    background: #f9f9f9;
    outline: none;
    transition: border-color 0.3s;
}

.input-group input:focus, 
.input-group textarea:focus {
    border-color: #3474b4;
}

.btn-submit {
    width: 100%;
    padding: 1.2vw;
    background-color: #f50000;
    color: #fff;
    border: none;
    border-radius: 5px;
    font-size: 1.1vw;
    font-weight: 600;
    cursor: pointer;
    margin-top: 1vw;
    transition: all 0.3s ease;
}

.btn-submit:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    opacity: 0.95;
}

/* =========================================
   9. SECCIÓN AVAL (FULL WIDTH)
   ========================================= */
   .aval-section {
    width: 100%;
    line-height: 0; /* Elimina espacio extra debajo de la imagen */
    background-color: #ffffff;
}

.aval-full-img {
    width: 100%;
    height: auto;
    display: block;
    /* Si quieres que tenga un poco de aire a los lados como el resto 
       de la web, puedes usar width: 90% y margin: 0 auto; */
}







/* =========================================
   ESTILOS MÓVIL (MAX-WIDTH: 768px) COMPLETO
   Con alineación de imagen 80% Derecha
   ========================================= */
   @media screen and (max-width: 768px) {
    
 
   

    /* 3. HERO (Imagen grande, alineada al 80% derecha) */
    .hero {
        min-height: 70vh; 
        display: flex;
        align-items: center;
        position: relative;
        overflow: hidden;
    }
    .hero-bg {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        
        /* --- AJUSTE SOLICITADO: 80% (Más a la derecha que el centro) --- */
        object-position: 80% center; 
        
        z-index: -1;
    }
    .hero-overlay {
        position: relative;
        padding: 15vw 5%;
        background: rgba(0, 0, 0, 0.2); 
        width: 100%;
    }
    .hero-text-box { width: 100%; margin: 0; }
    .hero-text-box h1 { font-size: 7.5vw; line-height: 1.2; }
    .hero-text-box p { font-size: 4.8vw; max-width: 100%; margin-bottom: 8vw; }
    .hero-actions { flex-direction: column; gap: 4vw; }
    .btn { padding: 4vw; font-size: 5vw; width: 100%; }

    /* 4. PROCESOS Y SERVICIOS (En columna) */
    .process-section { padding: 15vw 5%; }
    .process-title { font-size: 9vw; margin-bottom: 15vw; }
    .process-grid { grid-template-columns: 1fr; gap: 12vw; }
    .process-card { padding: 12vw 6vw; border-radius: 20px; }
    .step-number { width: 14vw; height: 14vw; top: -7vw; font-size: 7vw; }
    .process-card img { height: 20vw; margin-bottom: 5vw; }
    .process-card h3 { font-size: 7vw; min-height: auto; }
    .process-card p { font-size: 4.6vw; }
    .btn-more { padding: 4.5vw; font-size: 5vw; }

    /* 5. CONTACTO (Info arriba, Mapa abajo) */
    .contact-container { 
        display: flex; 
        flex-direction: column; 
        gap: 6vw; 
    }
    .contact-form-box { 
        order: 1; 
        padding: 10vw 6vw; 
        border-radius: 20px; 
    }
    .contact-form-box h2 { font-size: 8vw; margin-bottom: 6vw; }
    .input-group input, .input-group textarea { padding: 4vw; font-size: 4.5vw; }
    .btn-submit { padding: 5vw; font-size: 5.5vw; }

    /* MAPA TOTAL */
    .contact-map { 
        order: 2; 
        height: 90vw; 
        padding: 0; 
        margin: 0;
        border-radius: 20px;
        overflow: hidden;
    }
    .contact-map iframe { 
        width: 100% !important; 
        height: 100% !important; 
        border: 0; 
        display: block;
    }

    /* 6. OTROS */
    .mobile-logo { height: 12vw; margin-bottom: 8vw; }
    .mobile-contact-info h3 { font-size: 5vw; }
    .mobile-contact-info p { font-size: 4.2vw; }
    .separator { margin: 10vw 0; }
}