/* ==========================================================================
   1. VISIÓN Y TEXTOS
   ========================================================================== */
.vision-section {
    padding: 100px 4vw;
    /* Gradiente sutil que evoca frescura sin perder lo corporativo */
    background: linear-gradient(135deg, #ffffff 0%, #f0fdf4 100%);
    overflow: hidden;
}

.vision-grid {
    display: flex;
    flex-direction: column;
    gap: 80px;
    max-width: 1200px;
    margin: 0 auto;
}

.eco-label {
    display: inline-block;
    font-size: 0.9rem;
    font-weight: 800;
    color: #10b981; /* Verde Sostenibilidad */
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 15px;
    background-color: rgba(16, 185, 129, 0.1);
    padding: 6px 15px;
    border-radius: 20px;
}

.vision-textos {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.vision-textos .section-title {
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--color-darker, #111111);
    margin-bottom: 30px;
    line-height: 1.2;
}

.text-green {
    color: #10b981;
}

.vision-textos p {
    font-size: 1.15rem;
    color: #555555;
    line-height: 1.8;
    margin-bottom: 20px;
}

/* ==========================================================================
   2. TARJETA PRIMARIA E ICONO
   ========================================================================== */
.vision-visual {
    flex: 1;
    position: relative;
}

.vision-img-wrapper {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.vision-img-wrapper img {
    width: 100%;
    height: 100%;
    min-height: 400px;
    object-fit: cover;
    display: block;
}

.badge-icono-flotante,
.badge-2030-flotante {
    position: absolute;
    bottom: -250px; 
    left: -10px;   
    background: #ffffff;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    border: 6px solid #10b981;
    
    /* Centrado Flexbox Absoluto */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    
    /* Reducimos el relleno interno drásticamente para que el logo pueda crecer */
    padding: 8px !important;
    box-sizing: border-box; 
    box-shadow: 0 15px 35px rgba(16, 185, 129, 0.2);
    z-index: 5;
    
    /* Textura corporativa */
    background-image: radial-gradient(rgba(16, 185, 129, 0.08) 15%, transparent 16%), 
                      radial-gradient(rgba(16, 185, 129, 0.08) 15%, transparent 16%);
    background-position: 0 0, 8px 8px;
    background-size: 16px 16px;
    transition: transform 0.4s ease;
}

.badge-icono-flotante:hover,
.badge-2030-flotante:hover {
    transform: scale(1.05);
}

/* ==========================================================================
   CONTROL ESTRICTO DE LA IMAGEN INTERNA
   ========================================================================== */
.badge-icono-flotante img,
.badge-2030-flotante img {
    width: 95% !important;
    height: 95% !important;
    object-fit: contain !important;
    object-position: center; 
    
    /* Zoom del 15% para matar cualquier borde transparente del PNG */
    transform: scale(1.15) !important; 
    
    display: block;
    margin: 10px auto; 
}

/* ==========================================================================
   3. TARJETAS SECUNDARIAS (PILARES)
   ========================================================================== */
.pilares-section {
    padding: 100px 4vw; 
    background-color: #f8f9fa; 
}

.pilares-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.pilar-card {
    background: #ffffff;
    padding: 50px 40px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border-bottom: 4px solid transparent;
    transition: all 0.4s ease;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.pilar-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border-bottom: 4px solid #10b981; 
}

.pilar-icon {
    width: 80px;
    height: 80px;
    background-color: rgba(16, 185, 129, 0.1);
    color: #10b981;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 25px;
    transition: transform 0.4s ease, background-color 0.4s ease, color 0.4s ease;
}

.pilar-card:hover .pilar-icon {
    transform: scale(1.1);
    background-color: #10b981;
    color: #ffffff;
}

.pilar-card h3 {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--color-darker, #111111);
    margin-bottom: 15px;
}

.pilar-card p {
    color: #666666;
    font-size: 1rem;
    line-height: 1.6;
    margin: 0; 
}

/* ==========================================================================
   4. MEDIA QUERIES (Responsividad Total y Ajustes)
   ========================================================================== */

/* --- RESPONSIVE DESKTOP (Efecto lado a lado) --- */
@media (min-width: 900px) {
    .vision-grid {
        flex-direction: row;
        align-items: center;
    }
    
    .vision-textos {
        padding-right: 40px;
    }
    
    .vision-img-wrapper {
        margin-left: 40px;
    }
}

/* --- RESPONSIVE UNIFICADO PARA TABLETS Y MÓVILES ---  */
@media (max-width: 1024px) {
    .vision-section,
    .pilares-section {
        padding: 30px 5vw; 
    }
    
    .vision-textos .section-title {
        font-size: 2.2rem;
    }
    
    .vision-img-wrapper img {
        min-height: 300px; 
    }

    .vision-visual {
        margin-top: 20px;
        margin-bottom: 40px;
        display: flex;
        justify-content: center;
    }

    .badge-icono-flotante,
    .badge-2030-flotante {
        position: relative !important; 
        width: 250px !important; 
        height: 250px !important;
        border-width: 4px;
        bottom: auto !important;
        left: auto !important;
        transform: none !important; 
        margin: 0 auto;
    }
    
    .badge-icono-flotante img,
    .badge-2030-flotante img {
        margin: 5px auto; 
    }
    
    /* Ajustes Pilares */
    .pilar-card {
        padding: 40px 25px; 
    }
}