/* --- SECCIÓN FILOSOFÍA --- */
.ps-philosophy-section {
    padding: 56px 0;
    background-color: #ffffff; /* Fondo blanco para contrastar con el proceso oscuro */
    font-family: 'Inter', sans-serif;
}

.ps-philosophy-wrapper {
    display: flex;
    align-items: center;
    gap: 80px;
}

/* Estilo de la Imagen */
.ps-philosophy-image {
    flex: 1;
    position: relative;
}

.ps-philosophy-image img {
    width: 67%;
    height: auto;
    border-radius: 50px; /* Bordes muy redondeados como en el mockup */
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
    z-index: 2;
    position: relative;
}

/* Adorno decorativo suave detrás de la foto */
.ps-image-blob {
    position: absolute;
    width: 66%;
    height: 91%;
    background: linear-gradient(135deg, #1e50a010, #9b4d9610);
    top: -20px;
    left: -20px;
    border-radius: 50px;
    z-index: 1;
}

/* Contenido de Texto */
.ps-philosophy-content {
    flex: 1.2;
}

.ps-subtitle {
    color: #1e50a0;
    font-weight: 800;
    font-size: 15px;
    letter-spacing: 2px;
    text-transform: uppercase;
    display: block;
    margin-bottom: 15px;
}

.ps-philosophy-title {
    font-size: 42px;
    font-weight: 800;
    color: #0b0e1b;
    line-height: 1.2;
    margin-bottom: 40px;
}

.ps-philosophy-title span {
    color: #1e50a0;
    display: inline-block; /* Necesario para que la palabra rote correctamente */

}

/* --- EFECTO SPLIT TEXT --- 
.split-text {
    overflow: hidden;
}

.word {
    display: inline-block;
    transform: translateY(110%);
    transition: transform 0.8s cubic-bezier(0.15, 0.85, 0.3, 1);
    will-change: transform;
}

.is-visible .word {
    transform: translateY(0%);
}

*/

.ps-philosophy-title.split-text {
    overflow: visible !important; /* Cambiamos a visible para descartar que se oculte y no suba */
}

.split-line {
    display: inline-block; /* Cambiado de block a inline-block */
    overflow: hidden;
    vertical-align: top;
}

.word {
    display: inline-block;
    transform: translateY(110%);
    transition: transform 0.8s cubic-bezier(0.15, 0.85, 0.3, 1);
    will-change: transform;
}

.is-visible .word {
    transform: translateY(0%) !important;
}

/* Lista de Filosofía */
.ps-philosophy-list {
    list-style: none;
    padding: 0;
}

.ps-philosophy-list li {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 30px;
}

.ps-list-icon {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 14px;
}

.icon-blue { background-color: #e8effc; color: #1e50a0; }
.icon-purple { background-color: #f5ebf5; color: #9b4d96; }

.ps-list-text strong {
    display: block;
    font-size: 18px;
    color: #0b0e1b;
    margin-bottom: 5px;
}

.ps-list-text p {
    color: #64748b;
    font-size: 16px;
    margin: 0;
    line-height: 1.5;
}

/* ==========================================
   OPTIMIZACIÓN RESPONSIVA SECCIÓN FILOSOFÍA
   ========================================== */

/* Ajustes para Laptops medianas y Tablets horizontales (max-width: 1200px) */
@media (max-width: 1200px) {
    .ps-philosophy-wrapper {
        gap: 40px; /* Reducimos el espacio excesivo entre columnas */
    }

    .ps-philosophy-image img {
        width: 85%; /* Le damos más presencia a la imagen en pantallas intermedias */
    }

    .ps-image-blob {
        width: 84%; /* El adorno acompaña el nuevo tamaño de la foto */
    }

    .ps-philosophy-title {
        font-size: 36px; /* Evita que el título rompa en demasiadas líneas */
    }
}

/* Reemplazo y optimización de tu Media Query de 991px */
@media (max-width: 991px) {
    .ps-philosophy-section {
        padding: 28px 0; /* Asegura un espaciado limpio arriba y abajo */
    }

    .ps-philosophy-wrapper {
        flex-direction: column;
        gap: 50px;
        text-align: center;
    }

    /* Centramos la imagen y su bloque contenedor en la vista vertical */
    .ps-philosophy-image {
        width: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .ps-philosophy-image img {
        width: 75%; /* Ancho óptimo y equilibrado para tablets y móviles */
        max-width: 400px; /* Evita que la imagen se gigantice en tablets verticales */
    }

    .ps-image-blob {
        width: 74%;
        max-width: 400px;
        height: 95%;
        /* Centramos el adorno detrás de la foto usando offsets proporcionales */
        left: 12.5%; 
        top: -15px;
    }

    .ps-philosophy-title {
        font-size: 32px;
        margin-bottom: 30px;
    }

    .ps-philosophy-list li {
        text-align: left; /* Mantiene la coherencia de lectura con el icono */
        max-width: 600px; /* Evita que las líneas de texto se estiren demasiado hacia los lados */
        margin-left: auto;
        margin-right: auto;
    }
}

/* Optimizaciones críticas para pantallas de Smartphones (max-width: 576px) */
@media (max-width: 576px) {
    .ps-philosophy-image img {
        width: 81%; /* En celulares la imagen aprovecha casi todo el ancho disponible */
        border-radius: 30px; /* Suavizamos los bordes en pantallas chicas */
    }

    .ps-image-blob {
        width: 89%;
        left: 5%;
        border-radius: 30px;
    }

    .ps-philosophy-title {
        font-size: 26px; /* Evita que el texto grande rompa la pantalla */
        line-height: 1.3;
    }

    .ps-philosophy-list li {
        gap: 15px; /* Compactamos un poco el espacio del icono/texto */
    }

    .ps-list-text strong {
        font-size: 16px; /* Ajuste sutil de lectura */
    }

    .ps-list-text p {
        font-size: 14px;
    }
}

