/* ===== ESTILOS PARA SECCIONES INFORMATIVAS ===== */

.info-section-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 20px;
    background: linear-gradient(135deg, var(--bg-light) 0%, var(--bg-white) 100%);
    border-radius: 20px;
    box-shadow: 0 10px 30px var(--shadow-light);
    position: relative;
    overflow: hidden;
}

/* Patrón de fondo sutil */
.info-section-container::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 20px,
        rgba(52, 152, 219, 0.02) 20px,
        rgba(52, 152, 219, 0.02) 40px
    );
    animation: patternMove 30s linear infinite;
    z-index: 0;
}

@keyframes patternMove {
    0% {
        transform: translateX(-50px) translateY(-50px);
    }
    100% {
        transform: translateX(0) translateY(0);
    }
}

/* ===== ICONO PRINCIPAL ===== */
.section-icon {
    margin-bottom: 30px;
    position: relative;
    z-index: 2;
}

.icon-wrapper {
    font-size: 5em;
    width: 120px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border-radius: 50%;
    box-shadow: 0 8px 25px rgba(52, 152, 219, 0.3);
    animation: iconFloat 4s ease-in-out infinite;
    position: relative;
    overflow: hidden;
}

.icon-wrapper::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent 30%, rgba(255,255,255,0.1) 50%, transparent 70%);
    animation: iconShine 3s ease-in-out infinite;
}

@keyframes iconFloat {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    25% {
        transform: translateY(-8px) rotate(2deg);
    }
    50% {
        transform: translateY(-12px) rotate(0deg);
    }
    75% {
        transform: translateY(-5px) rotate(-2deg);
    }
}

@keyframes iconShine {
    0%, 100% {
        transform: translateX(-100%) translateY(-100%) rotate(45deg);
    }
    50% {
        transform: translateX(100%) translateY(100%) rotate(45deg);
    }
}

/* ===== CONTENIDO PRINCIPAL ===== */
.section-content {
    text-align: center;
    position: relative;
    z-index: 2;
    width: 100%;
}

.section-subtitle {
    font-size: 2.2em;
    color: var(--text-primary);
    margin-bottom: 25px;
    font-weight: bold;
    text-shadow: 1px 1px 2px var(--shadow-light);
}

.description-text {
    margin-bottom: 40px;
}

.lead-text {
    font-size: 1.3em;
    color: var(--text-primary);
    line-height: 1.6;
    margin-bottom: 20px;
    font-weight: 600;
}

.detail-text {
    font-size: 1.1em;
    color: var(--text-secondary);
    line-height: 1.7;
    max-width: 700px;
    margin: 0 auto;
}

/* ===== GRID DE CARACTERÍSTICAS ===== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
    width: 100%;
}

.feature-item {
    background: var(--bg-white);
    padding: 25px 20px;
    border-radius: 15px;
    box-shadow: 0 5px 15px var(--shadow-light);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-left: 4px solid var(--secondary-color);
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px var(--shadow-medium);
}

.feature-icon {
    font-size: 2.5em;
    margin-bottom: 15px;
    display: block;
}

.feature-item h4 {
    color: var(--text-primary);
    font-size: 1.2em;
    margin-bottom: 10px;
    font-weight: bold;
}

.feature-item p {
    color: var(--text-secondary);
    font-size: 0.95em;
    line-height: 1.5;
}

/* ===== BANNER INFORMATIVO ===== */
.info-banner {
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-color) 100%);
    color: var(--text-white);
    padding: 25px 30px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 40px;
    box-shadow: 0 5px 20px rgba(52, 152, 219, 0.3);
    width: 100%;
    max-width: 600px;
}

.banner-icon {
    font-size: 3em;
    opacity: 0.9;
}

.banner-content h4 {
    margin-bottom: 8px;
    font-size: 1.3em;
}

.banner-content p {
    font-size: 1em;
    opacity: 0.95;
    line-height: 1.5;
}

/* ===== ACCIONES DE LA SECCIÓN ===== */
.section-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    position: relative;
    z-index: 2;
}

.home-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--danger-color) 100%);
    color: var(--text-white);
    text-decoration: none;
    padding: 15px 30px;
    border-radius: 30px;
    font-weight: bold;
    font-size: 1.1em;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(231, 76, 60, 0.3);
    position: relative;
    overflow: hidden;
}

.home-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: all 0.6s ease;
}

.home-link:hover::before {
    left: 100%;
}

.home-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(231, 76, 60, 0.4);
}

.home-link-icon {
    font-size: 1.2em;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(52, 152, 219, 0.1);
    color: var(--text-primary);
    padding: 12px 20px;
    border-radius: 25px;
    font-size: 0.95em;
    border: 2px solid rgba(52, 152, 219, 0.2);
    font-style: italic;
}

.status-icon {
    font-size: 1.1em;
}

/* ===== VARIACIONES POR SECCIÓN ===== */

/* Robótica - Colores tech */
.robotica .icon-wrapper {
    background: linear-gradient(135deg, #9b59b6 0%, #3498db 100%);
    box-shadow: 0 8px 25px rgba(155, 89, 182, 0.3);
}

.robotica .feature-item {
    border-left-color: #9b59b6;
}

.robotica .info-banner {
    background: linear-gradient(135deg, #9b59b6 0%, #3498db 100%);
}

/* Voces - Colores musicales */
.voces .icon-wrapper {
    background: linear-gradient(135deg, #e91e63 0%, #f39c12 100%);
    box-shadow: 0 8px 25px rgba(233, 30, 99, 0.3);
}

.voces .feature-item {
    border-left-color: #e91e63;
}

.voces .info-banner {
    background: linear-gradient(135deg, #e91e63 0%, #f39c12 100%);
}

/* Ajedrez - Colores elegantes */
.ajedrez .icon-wrapper {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    box-shadow: 0 8px 25px rgba(44, 62, 80, 0.3);
}

.ajedrez .feature-item {
    border-left-color: #2c3e50;
}

.ajedrez .info-banner {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .info-section-container {
        padding: 30px 15px;
        margin: 10px;
    }

    .section-icon .icon-wrapper {
        font-size: 4em;
        width: 100px;
        height: 100px;
    }

    .section-subtitle {
        font-size: 1.8em;
    }

    .lead-text {
        font-size: 1.2em;
    }

    .detail-text {
        font-size: 1em;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .feature-item {
        padding: 20px 15px;
    }

    .info-banner {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }

    .banner-icon {
        font-size: 2.5em;
    }

    .section-actions {
        flex-direction: column;
        gap: 15px;
    }

    .home-link {
        padding: 12px 25px;
        font-size: 1em;
    }
}

@media (max-width: 480px) {
    .section-subtitle {
        font-size: 1.6em;
    }

    .lead-text {
        font-size: 1.1em;
    }

    .feature-icon {
        font-size: 2em;
    }

    .feature-item h4 {
        font-size: 1.1em;
    }

    .banner-content h4 {
        font-size: 1.2em;
    }
}