@font-face {
    font-family: 'excelates';
    src: url('../../fonts/excelate/excelates.ttf') format('truetype');
}

@font-face {
    font-family: 'carltineLight';
    src: url('../../fonts/carltine/carltineLight.ttf') format('truetype');
}

#tab-react .contenido {
    width: 80%;
    max-width: none;
    padding: 0;
    margin: 0;
}

.features {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    width: 100%;
    padding: 0 20px;
    box-sizing: border-box;
    justify-content: center;
    margin-left: 12.5%;
    margin-top: 10%;
    margin-bottom: 10%;
    /* Centra los elementos si no ocupan todo el ancho */
}

.feature {
    flex: 0 1 calc(25% - 22.5px);
    /* Ajustado para 4 columnas con un gap de 30px */
    box-sizing: border-box;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    min-height: 320px;
    /* Aumentamos un poco la altura mínima para dar más espacio */
    background-color: rgba(0, 0, 0, 0.753);
    /* Un poco transparente */
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.feature img {
    width: 80%;
    /* Mantenemos el ancho para un buen espacio */
    max-height: 160px;
    /* ¡Imágenes más grandes! */
    object-fit: contain;
    /* Mantiene la proporción sin recortar */
    margin-bottom: 15px;
    margin-top: 10px;
    transition: transform 0.3s ease-in-out, filter 0.3s ease-in-out;
    filter: drop-shadow(0 0 0 rgba(0, 0, 0, 0));
}

.feature:hover img {
    transform: scale(1.08);
    filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.4));
}

.feature-title {
    font-weight: bold;
    letter-spacing: 2px;
    margin-bottom: 10px;
    font-size: 12px;
    color: rgb(255, 255, 255);
    font-family: 'excelates', sans-serif;
    text-transform: uppercase;
}

.feature-text {
    font-size: 14px;
    font-family: 'carltineLight', sans-serif;
    color: rgb(255, 255, 255);
    flex-grow: 1;
    /* Permite que el texto ocupe el espacio restante */
    display: flex;
    align-items: flex-start;
    /* Se mantiene para iniciar el texto arriba */
    justify-content: center;
    padding: 0 5px;
}

/* Responsive: 2 columnas en móviles */
@media (max-width: 768px) {
    .features {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
        padding: 10px;
    }

    .feature {
        flex: unset;
        min-height: 280px;
        padding: 10px;
    }

    .feature img {
        width: 70%;
        max-height: 120px;
        margin-bottom: 10px;
    }

    .feature-title {
        font-size: 10px;
        /* Títulos aún más pequeños */
        margin-bottom: 8px;
        text-align: center;
        /* Centramos el texto del título */
    }

    .feature-text {
        font-size: 12px;
        /* Texto aún más pequeño */
        padding: 0 2px;
        text-align: center;
        /* Centramos el texto descriptivo */
        align-items: flex-start;
        /* Mantener alineación superior */
    }
}