/* ==========================================================================
   1. CONFIGURACIÓN GENERAL Y MOVIMIENTOS DE ENTRADA
   ========================================================================== */
.about-section {
    max-width: 1200px;
    margin: 80px auto;
    padding: 0 20px;
}

.about-header {
    text-align: center;
    margin-bottom: 60px;
}

.about-header h1 {
    font-size: clamp(28px, 5vw, 44px);
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
}

/* ==========================================================================
   2. GRID DE MISIÓN Y VISIÓN (CON MOVIMIENTO)
   ========================================================================== */
.about-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    margin-bottom: 80px;
}

.about-box {
    background: linear-gradient(145deg, #FFFFFF, #FAFAFA);
    padding: clamp(30px, 5vw, 60px);
    border-radius: 18px;
    border-left: 6px solid #f4c430;
    position: relative;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1); /* Movimiento suave */
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.about-box:hover {
    transform: translateY(-12px); /* Eleva la caja */
    box-shadow: 0 25px 50px rgba(0,0,0,0.12);
}

.about-box .bg-icon {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: clamp(80px, 15vw, 150px);
    color: #f4c430;
    opacity: 0.1;
    z-index: 0;
    transition: transform 0.6s ease;
}

.about-box:hover .bg-icon {
    transform: rotate(-15deg) scale(1.2); /* El icono de fondo rota al hacer hover */
}

.about-box h2, .about-box p {
    position: relative;
    z-index: 1;
}

.about-box p {
    font-size: 15px;
    line-height: 1.8;
    color: #444;
    text-align: left;
}

/* ==========================================================================
   3. SECCIÓN POLÍTICAS (CON COLORES Y ANIMACIONES)
   ========================================================================== */
.policies {
    background: linear-gradient(135deg, #F6F4EE, #FFFFFF);
    padding: 60px clamp(20px, 5vw, 80px);
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.05);
}

.policies h2 {
    text-align: center;
    font-size: clamp(24px, 4vw, 36px);
    margin-bottom: 50px;
    letter-spacing: 2px;
}

.policy-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.policy-item {
    display: flex;
    gap: 20px;
    padding: 30px;
    margin-top: 30px;
    background: #FFFFFF;
    border-radius: 18px;
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
    border-bottom: 4px solid #000000;
}

.policy-item:hover {
    transform: scale(1.03); /* Ligero zoom al pasar el mouse */
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

/* RESTAURACIÓN DE COLORES DE ICONOS */
.policy-item i {
    width: 75px;
    height: 75px;
    min-width: 75px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    background: #f8f8f8;
    transition: transform 0.4s ease, background 0.3s ease;
}

.policy-item:hover i {
    transform: rotateY(360deg); /* El icono gira sobre su eje */
}

/* ASIGNACIÓN DE COLORES ORIGINALES */
.policy-item:nth-child(1) i { color: #C62828; border: 1px solid #C62828; }
.policy-item:nth-child(2) i { color: #1565C0; border: 1px solid #1565C0; }
.policy-item:nth-child(3) i { color: #2E7D32; border: 1px solid #2E7D32; }
.policy-item:nth-child(4) i { color: #424242; border: 1px solid #424242; }
.policy-item:nth-child(5) i { color: #D4A017; border: 1px solid #D4A017; }
.policy-item:nth-child(6) i { color: #00695C; border: 1px solid #00695C; }

/* Fondo sutil de color al hacer Hover */
.policy-item::after {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 0;
}

.policy-item:hover::after { opacity: 0.1; }

.policy-item:nth-child(1):hover::after { background: #C62828; }
.policy-item:nth-child(2):hover::after { background: #1565C0; }
.policy-item:nth-child(3):hover::after { background: #2E7D32; }
.policy-item:nth-child(4):hover::after { background: #424242; }
.policy-item:nth-child(5):hover::after { background: #D4A017; }
.policy-item:nth-child(6):hover::after { background: #00695C; }

.policy-item div { z-index: 1; }

/* ==========================================================================
   4. RESPONSIVE (CORREGIDO PARA EVITAR TEXTO ESTIRADO)
   ========================================================================== */
@media (max-width: 900px) {
    .about-grid, .policy-list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .policy-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 30px 20px;
    }

    .policy-item p, .about-box p {
        text-align: center; /* Centrado para móvil */
        font-size: 14.5px;
    }
}