/* ============================================
   SECTION-SPECIFIC ENHANCEMENTS
   ============================================ */

/* ========== FILOSOFÍA: La Mente vs El Cuerpo ========== */

/* Color-coded borders for dual philosophy */
.philosophy-card.fenix {
    border-left: 4px solid #00e5ff;
    position: relative;
}

.philosophy-card.cortana {
    border-left: 4px solid #8b6bff;
    position: relative;
}

/* Animated pulsing icons */
.philosophy-card .card-icon svg {
    animation: iconPulse 3s ease-in-out infinite;
}

@keyframes iconPulse {

    0%,
    100% {
        transform: scale(1);
        filter: drop-shadow(0 0 8px currentColor);
    }

    50% {
        transform: scale(1.05);
        filter: drop-shadow(0 0 16px currentColor);
    }
}

/* Enhanced 3D hover effect */
.philosophy-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.4),
        0 0 40px rgba(0, 229, 255, 0.3);
}

.philosophy-card.cortana:hover {
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.4),
        0 0 40px rgba(139, 107, 255, 0.3);
}

/* Glowing animated divider */
.philosophy-divider {
    position: relative;
}

.philosophy-divider .divider-icon {
    font-size: 2rem;
    animation: dividerPulse 2s ease-in-out infinite;
    text-shadow: 0 0 20px rgba(0, 229, 255, 0.6);
}

@keyframes dividerPulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.7;
    }

    50% {
        transform: scale(1.2);
        opacity: 1;
    }
}

.philosophy-divider .divider-line {
    background: linear-gradient(90deg, transparent, #00e5ff, transparent);
    height: 2px;
    animation: lineFlow 3s linear infinite;
}

@keyframes lineFlow {
    0% {
        opacity: 0.3;
    }

    50% {
        opacity: 0.8;
    }

    100% {
        opacity: 0.3;
    }
}

/* ========== VISIÓN 4D: Cascada Multi-Escala ========== */

/* 3D perspective cascade */
.cascade-timeline {
    perspective: 1000px;
}

.cascade-item {
    transform-style: preserve-3d;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.cascade-item:hover {
    transform: translateZ(20px) rotateY(2deg);
}

/* Large glowing number indicators */
.cascade-content h3 {
    font-size: 3rem;
    background: linear-gradient(135deg, #00e5ff, #8b6bff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 40px rgba(0, 229, 255, 0.5);
    animation: numberGlow 3s ease-in-out infinite;
}

@keyframes numberGlow {

    0%,
    100% {
        filter: brightness(1);
    }

    50% {
        filter: brightness(1.3);
    }
}

/* Animated flow lines */
.cascade-marker .cascade-dot::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 60px;
    background: linear-gradient(180deg, #00e5ff, transparent);
    animation: flowLine 2s ease-in-out infinite;
}

@keyframes flowLine {
    0% {
        opacity: 0;
        height: 0;
    }

    50% {
        opacity: 1;
        height: 60px;
    }

    100% {
        opacity: 0;
        height: 60px;
    }
}

/* ========== TECNOLOGÍAS: Stack Tech ========== */

/* Tech cards with category colors */
.tech-card[data-category="ml"] {
    border-left: 4px solid #8b6bff;
}

.tech-card[data-category="hardware"] {
    border-left: 4px solid #00e5ff;
}

.tech-card[data-category="platform"] {
    border-left: 4px solid #00ff88;
}

/* Animated tech icons with pulse */
.tech-card .card-icon {
    animation: techPulse 4s ease-in-out infinite;
}

@keyframes techPulse {

    0%,
    100% {
        transform: scale(1) rotate(0deg);
    }

    25% {
        transform: scale(1.1) rotate(5deg);
    }

    75% {
        transform: scale(1.1) rotate(-5deg);
    }
}

/* Skill bars */
.tech-skill-bar {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
    margin-top: 12px;
    position: relative;
}

.tech-skill-fill {
    height: 100%;
    background: linear-gradient(90deg, #00e5ff, #8b6bff);
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 229, 255, 0.6);
    animation: skillFill 2s ease-out forwards;
    transform-origin: left;
}

@keyframes skillFill {
    from {
        transform: scaleX(0);
    }

    to {
        transform: scaleX(1);
    }
}

/* Active tech badge */
.tech-badge-active {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(0, 255, 136, 0.2);
    border: 1px solid #00ff88;
    border-radius: 12px;
    font-size: 0.75rem;
    animation: badgePulse 2s ease-in-out infinite;
}

@keyframes badgePulse {

    0%,
    100% {
        box-shadow: 0 0 10px rgba(0, 255, 136, 0.4);
    }

    50% {
        box-shadow: 0 0 20px rgba(0, 255, 136, 0.8);
    }
}

/* ========== MODOS: Operacionales ========== */

/* Mode status badges */
.mode-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    padding: 6px 14px;
    border-radius: 16px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.mode-badge.live {
    background: rgba(0, 255, 136, 0.2);
    border: 2px solid #00ff88;
    color: #00ff88;
    animation: livePulse 1.5s ease-in-out infinite;
}

.mode-badge.testing {
    background: rgba(255, 165, 0, 0.2);
    border: 2px solid #ffa500;
    color: #ffa500;
}

.mode-badge.planned {
    background: rgba(139, 107, 255, 0.2);
    border: 2px solid #8b6bff;
    color: #8b6bff;
}

@keyframes livePulse {

    0%,
    100% {
        box-shadow: 0 0 10px rgba(0, 255, 136, 0.5);
        transform: scale(1);
    }

    50% {
        box-shadow: 0 0 25px rgba(0, 255, 136, 0.9);
        transform: scale(1.05);
    }
}

/* Risk level bars */
.mode-risk-bar {
    display: flex;
    gap: 4px;
    margin-top: 12px;
}

.mode-risk-segment {
    flex: 1;
    height: 6px;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.1);
}

.mode-risk-segment.active {
    background: linear-gradient(90deg, #00ff88, #00e5ff);
    box-shadow: 0 0 10px rgba(0, 229, 255, 0.5);
}

.mode-risk-bar.high .mode-risk-segment.active {
    background: linear-gradient(90deg, #ff006e, #ffa500);
}

/* ========== ROADMAP: Timeline Interactivo ========== */

/* Vertical timeline */
.roadmap-timeline {
    position: relative;
    padding-left: 60px;
}

.roadmap-timeline::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, #00e5ff, #8b6bff, #00ff88);
    box-shadow: 0 0 20px rgba(0, 229, 255, 0.5);
}

/* Milestone cards with status */
.roadmap-milestone {
    position: relative;
    margin-bottom: 40px;
    padding: 24px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.roadmap-milestone::before {
    content: '';
    position: absolute;
    left: -48px;
    top: 24px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 3px solid #00e5ff;
    background: #050810;
    z-index: 2;
}

/* Completed milestone */
.roadmap-milestone.completed::before {
    background: #00e5ff;
    box-shadow: 0 0 20px rgba(0, 229, 255, 0.8);
}

.roadmap-milestone.completed {
    border-color: rgba(0, 229, 255, 0.3);
}

/* In progress milestone */
.roadmap-milestone.progress::before {
    background: #8b6bff;
    animation: progressPulse 2s ease-in-out infinite;
}

@keyframes progressPulse {

    0%,
    100% {
        box-shadow: 0 0 15px rgba(139, 107, 255, 0.6);
        transform: scale(1);
    }

    50% {
        box-shadow: 0 0 30px rgba(139, 107, 255, 1);
        transform: scale(1.2);
    }
}

.roadmap-milestone.progress {
    border-color: rgba(139, 107, 255, 0.3);
}

/* Planned milestone */
.roadmap-milestone.planned::before {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
}

/* Date badges */
.roadmap-date {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(0, 229, 255, 0.1);
    border: 1px solid rgba(0, 229, 255, 0.3);
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #00e5ff;
    margin-bottom: 12px;
}

/* Hover effects */
.roadmap-milestone:hover {
    transform: translateX(8px);
    border-color: rgba(0, 229, 255, 0.5);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

/* Expandable details */
.roadmap-details {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.roadmap-milestone.expanded .roadmap-details {
    max-height: 500px;
}

/* Progress indicator */
.roadmap-progress {
    position: sticky;
    top: 80px;
    background: rgba(5, 8, 16, 0.95);
    padding: 16px 24px;
    border-radius: 12px;
    border: 1px solid rgba(0, 229, 255, 0.2);
    margin-bottom: 32px;
    backdrop-filter: blur(10px);
}

.roadmap-progress-bar {
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
    margin-top: 8px;
}

.roadmap-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #00e5ff, #8b6bff);
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 229, 255, 0.6);
    transition: width 0.5s ease;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .cascade-content h3 {
        font-size: 2rem;
    }

    .roadmap-timeline {
        padding-left: 40px;
    }

    .roadmap-milestone::before {
        left: -34px;
    }
}