/* =====================================================
   COMPONENTS STYLES - Estilos de Componentes
   ===================================================== */

/* =====================================================
   SECCIÓN QUANTUM COMPUTING
   ===================================================== */

#quantum-computing {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.05) 0%, rgba(124, 58, 237, 0.05) 100%);
    border-top: 2px solid var(--color-primary);
}

.quantum-image {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.1), rgba(124, 58, 237, 0.1));
    border-radius: 10px;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--color-primary);
    overflow: hidden;
    position: relative;
}

.quantum-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.quantum-image::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent 30%, rgba(0, 212, 255, 0.1) 50%, transparent 70%);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* =====================================================
   SECCIÓN AI CUÁNTICA
   ===================================================== */

#ai-cuantica {
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.05) 0%, rgba(0, 212, 255, 0.05) 100%);
    border-top: 2px solid var(--color-secondary);
}

/* =====================================================
   TABLA COMPARATIVA
   ===================================================== */

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    overflow: hidden;
    margin: 2rem 0;
    box-shadow: 0 5px 20px rgba(0, 212, 255, 0.1);
}

.comparison-table th,
.comparison-table td {
    padding: 1.5rem;
    text-align: left;
    border-bottom: 1px solid rgba(0, 212, 255, 0.2);
}

.comparison-table th {
    background: var(--gradient-primary);
    color: var(--color-dark);
    font-weight: bold;
}

.comparison-table tr:hover {
    background: rgba(0, 212, 255, 0.1);
}

.comparison-table td:first-child {
    color: var(--color-primary);
    font-weight: bold;
}

/* =====================================================
   SECCIÓN APLICACIONES
   ===================================================== */

#aplicaciones {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.05) 0%, rgba(124, 58, 237, 0.05) 100%);
    border-top: 2px solid var(--color-primary);
}

.app-card {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.08), rgba(124, 58, 237, 0.08));
    border-left: 4px solid var(--color-secondary);
    border-radius: 8px;
    padding: 2rem;
    transition: var(--transition);
}

.app-card:hover {
    border-left-color: var(--color-primary);
    transform: translateX(10px);
    box-shadow: 0 8px 20px rgba(0, 212, 255, 0.2);
}

.app-card h3 {
    color: var(--color-primary);
    margin-bottom: 1rem;
}

.app-card p {
    color: var(--color-text-light);
}

/* =====================================================
   SECCIÓN DESAFÍOS
   ===================================================== */

#desafios {
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.05) 0%, rgba(0, 212, 255, 0.05) 100%);
    border-top: 2px solid var(--color-secondary);
}

.challenge-item {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--color-secondary);
    border-radius: 8px;
    padding: 1.5rem;
    transition: var(--transition);
}

.challenge-item:hover {
    border-color: var(--color-primary);
    box-shadow: 0 5px 15px rgba(0, 212, 255, 0.2);
    transform: translateY(-5px);
}

.challenge-item h3 {
    color: var(--color-secondary);
    margin-bottom: 0.5rem;
}

.challenge-item p {
    color: var(--color-text-muted);
    font-size: 0.95rem;
}

/* =====================================================
   TIMELINE
   ===================================================== */

.timeline {
    position: relative;
    padding: 2rem 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 100%;
    background: linear-gradient(180deg, var(--color-primary), var(--color-secondary), transparent);
}

.timeline-item {
    margin-bottom: 3rem;
    width: 45%;
}

.timeline-item:nth-child(even) {
    margin-left: auto;
}

.timeline-content {
    background: rgba(0, 212, 255, 0.1);
    border: 2px solid var(--color-primary);
    border-radius: 8px;
    padding: 1.5rem;
    position: relative;
}

.timeline-content::before {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    background: var(--color-primary);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.5);
}

.timeline-item:nth-child(odd) .timeline-content::before {
    right: -45px;
}

.timeline-item:nth-child(even) .timeline-content::before {
    left: -45px;
}

.timeline-content h3 {
    color: var(--color-primary);
    margin-bottom: 0.5rem;
}

.timeline-content .year {
    color: var(--color-secondary);
    font-weight: bold;
    font-size: 1.1rem;
}

/* =====================================================
   SECCIÓN PLATAFORMAS
   ===================================================== */

#plataformas {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.05) 0%, rgba(124, 58, 237, 0.05) 100%);
    border-top: 2px solid var(--color-primary);
}

.platform-card {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.08), rgba(124, 58, 237, 0.08));
    border: 2px solid var(--color-primary);
    border-radius: 10px;
    padding: 2rem;
    transition: var(--transition);
}

.platform-card:hover {
    transform: scale(1.05);
    border-color: var(--color-secondary);
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.3);
}

.platform-name {
    font-size: 1.4rem;
    font-weight: bold;
    color: var(--color-secondary);
    margin-bottom: 0.5rem;
}

.platform-badge {
    display: inline-block;
    background: var(--color-primary);
    color: var(--color-dark);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    margin-top: 1rem;
}

/* =====================================================
   SECCIÓN RECURSOS
   ===================================================== */

#recursos {
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.05) 0%, rgba(0, 212, 255, 0.05) 100%);
    border-top: 2px solid var(--color-secondary);
}

.resource-card {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.08), rgba(124, 58, 237, 0.08));
    border-left: 4px solid var(--color-secondary);
    border-radius: 8px;
    padding: 1.5rem;
    transition: var(--transition);
}

.resource-card:hover {
    border-left-color: var(--color-primary);
    transform: translateX(5px);
    box-shadow: 0 5px 15px rgba(0, 212, 255, 0.2);
}

.resource-type {
    display: inline-block;
    background: var(--color-secondary);
    color: white;
    padding: 0.25rem 0.6rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

/* =====================================================
   SECCIÓN ROADMAP
   ===================================================== */

#roadmap {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.05) 0%, rgba(124, 58, 237, 0.05) 100%);
    border-top: 2px solid var(--color-primary);
}

.roadmap-phase {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--color-secondary);
    border-radius: 8px;
    padding: 2rem;
    margin-bottom: 1.5rem;
    transition: var(--transition);
}

.roadmap-phase:hover {
    border-color: var(--color-primary);
    box-shadow: 0 5px 15px rgba(0, 212, 255, 0.2);
}

.phase-year {
    color: var(--color-secondary);
    font-weight: bold;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.phase-items {
    list-style: none;
    padding-left: 1rem;
}

.phase-items li {
    color: var(--color-text-light);
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
    position: relative;
}

.phase-items li::before {
    content: '▶';
    position: absolute;
    left: 0;
    color: var(--color-primary);
}

/* =====================================================
   TESTIMONIOS
   ===================================================== */

#testimonios {
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.05) 0%, rgba(0, 212, 255, 0.05) 100%);
    border-top: 2px solid var(--color-secondary);
}

.testimonial-card {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.08), rgba(124, 58, 237, 0.08));
    border: 1px solid var(--color-primary);
    border-radius: 10px;
    padding: 2rem;
    transition: var(--transition);
    position: relative;
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: 10px;
    left: 20px;
    font-size: 3rem;
    color: var(--color-secondary);
    opacity: 0.3;
}

.testimonial-card:hover {
    border-color: var(--color-secondary);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.2);
}

.testimonial-text {
    color: var(--color-text-light);
    font-style: italic;
    margin-bottom: 1rem;
    line-height: 1.8;
}

.testimonial-author {
    color: var(--color-primary);
    font-weight: bold;
}

.testimonial-role {
    color: var(--color-text-muted);
    font-size: 0.9rem;
}

/* =====================================================
   CALL TO ACTION
   ===================================================== */

.cta-section {
    padding: 4rem 0;
    text-align: center;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.1), rgba(124, 58, 237, 0.1));
    border-top: 2px solid var(--color-primary);
    border-bottom: 2px solid var(--color-secondary);
}

.cta-section p {
    font-size: 1.1rem;
    margin: 1.5rem 0;
    color: var(--color-text-light);
}

/* =====================================================
   ANIMACIONES
   ===================================================== */

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.fade-in-on-scroll {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

.fade-in-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}
