/* Secciones generales */
.section-title {
    font-size: 2.5em;
    color: #2575fc;
    margin-bottom: 15px;
    font-weight: 700;
}

.section-title .light-text {
      color: #333; /* Color oscuro para la primera parte del título */
}

.section-title .blue-purple-gradient {
    background: linear-gradient(90deg, #6a11cb 0%, #2575fc 100%); /* Degradado de azul a morado */
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text; /* Estándar */
    color: transparent; /* Fallback para navegadores que no soportan background-clip */
}

.section-subtitle {
    font-size: 1.1em;
    color: #666;
    margin-bottom: 50px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

/* Sección de Funcionalidades */
.features-section {
    background-color: #f8faff; /* Un fondo ligeramente azulado */
    padding: 80px 0;
    text-align: center;
}

.features-interactive-grid {
    display: grid;
    grid-template-columns: 1fr 2fr; /* Columna izquierda más pequeña, derecha más grande */
    gap: 40px;
    text-align: left;
    max-width: 1200px;
    margin: 0 auto;
    align-items: flex-start; /* Alinea los elementos al inicio */
}

/* Columna Izquierda: Lista de Funcionalidades */
.features-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.features-list .feature-item {
    background-color: #ffffff;
    padding: 20px 25px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    align-items: flex-start; /* Alinea íconos y texto arriba */
    border: 2px solid transparent; /* Borde para el estado activo */
}

.features-list .feature-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.features-list .feature-item.active {
    background: linear-gradient(90deg, #6a11cb 0%, #2575fc 100%); /* Degradado para el activo */
    color: #ffffff; /* Texto blanco en el activo */
    border-color: #2575fc; /* Borde del color del degradado */
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.features-list .feature-item.active .feature-icon svg {
    stroke: #ffffff; /* Icono blanco en el activo */
}

.features-list .feature-item.active h3 {
    color: #ffffff;
}

.features-list .feature-item.active p {
    color: #e0e0e0; /* Un gris más claro para la descripción */
}

.features-list .feature-item .feature-icon {
    margin-right: 15px;
    flex-shrink: 0; /* Asegura que el icono no se encoja */
}

.features-list .feature-item .feature-icon svg {
    width: 28px;
    height: 28px;
    stroke: #2575fc; /* Color azul para los iconos por defecto */
    transition: stroke 0.3s ease;
}

.features-list .feature-item h3 {
    font-size: 1.2em;
    margin-bottom: 5px;
    color: #333;
    transition: color 0.3s ease;
}

.features-list .feature-item p {
    font-size: 0.9em;
    color: #666;
    line-height: 1.5;
    transition: color 0.3s ease;
}

/* Columna Derecha: Detalle de la Funcionalidad */
.feature-detail {
    background-color: #ffffff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    position: relative; /* Para el posicionamiento de los contenidos */
    min-height: 500px; /* Asegura un alto mínimo */
    display: flex;
    flex-direction: column;
    justify-content: center; /* Centra el contenido verticalmente */
}

.feature-content {
    display: none; /* Oculta todos los contenidos por defecto */
    animation: fadeIn 0.5s ease-out forwards; /* Animación de entrada */
    opacity: 0;
}

.feature-content.active {
    display: block; /* Muestra el contenido activo */
    opacity: 1; /* Para que la animación se aplique correctamente */
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.feature-detail h3 {
    font-size: 1.8em;
    color: #333;
    margin-bottom: 10px;
    background: linear-gradient(90deg, #6a11cb 0%, #2575fc 100%); /* Degradado para el título */
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
    font-weight: 700;
}

.feature-detail p {
    font-size: 1em;
    color: #555;
    margin-bottom: 25px;
    line-height: 1.6;
}

.feature-detail img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 30px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15); /* Sombra más pronunciada para la imagen */
}

.feature-detail h4 {
    font-size: 1.3em;
    color: #333;
    margin-bottom: 15px;
}

.feature-detail ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.feature-detail ul li {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    color: #555;
    font-size: 0.95em;
}

.feature-detail ul li .bullet-icon {
    color: #28a745; /* Verde para el check */
    font-size: 1.2em;
    margin-right: 10px;
    font-weight: bold;
}

/* Responsividad para la sección de funcionalidades */
@media (max-width: 992px) {
    .features-interactive-grid {
        grid-template-columns: 1fr; /* Una sola columna en pantallas más pequeñas */
        gap: 30px;
    }

    .features-list .feature-item {
        padding: 18px 20px;
    }

    .features-list .feature-item h3 {
        font-size: 1.1em;
    }

    .features-list .feature-item p {
        font-size: 0.85em;
    }

    .feature-detail {
        padding: 25px;
        min-height: auto;
    }

    .feature-detail h3 {
        font-size: 1.5em;
    }

    .feature-detail p {
        font-size: 0.9em;
    }

    .feature-detail h4 {
        font-size: 1.2em;
    }

    .feature-detail ul li {
        font-size: 0.9em;
    }
}

@media (max-width: 768px) {
    .features-section {
        padding: 60px 0;
    }

    .section-title {
        font-size: 2em;
    }

    .section-subtitle {
        font-size: 1em;
        margin-bottom: 30px;
    }
}