* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700;800&display=swap');

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 0;
    margin: 0;
    overflow-x: hidden;
}

.container {
    max-width: 100%;
    margin: 0 auto;
    background: transparent;
    min-height: 100vh;
}

header {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    color: white;
    padding: 25px 40px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.header-content h1 {
    font-size: 2.5em;
    margin-bottom: 8px;
    font-weight: 800;
    letter-spacing: -1px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
    background: linear-gradient(45deg, #fff, #a5f3fc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.subtitle {
    font-size: 1.1em;
    opacity: 0.95;
    font-weight: 300;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
}

/* TABS */
.tabs {
    display: flex;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.tab-btn {
    flex: 1;
    padding: 18px 20px;
    background: none;
    border: none;
    font-size: 0.95em;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    color: rgba(255, 255, 255, 0.8);
    font-weight: 600;
    position: relative;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
}

.tab-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    transform: translateY(-2px);
}

.tab-btn.active {
    background: rgba(255, 255, 255, 0.25);
    color: white;
    font-weight: 700;
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #fbbf24, #f59e0b);
    box-shadow: 0 2px 10px rgba(251, 191, 36, 0.5);
}

.tab-content {
    display: none;
    padding: 40px;
    background: transparent;
    animation: fadeIn 0.5s ease;
}

.tab-content.active {
    display: block;
}

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

/* INTERACTIVE MAP */
.map-intro {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 35px;
    border-radius: 20px;
    margin-bottom: 30px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 20px 60px rgba(0,0,0,0.3), 
                inset 0 1px 0 rgba(255,255,255,0.6);
    transform: perspective(1000px) rotateX(2deg);
    transition: all 0.3s ease;
}

.map-intro:hover {
    transform: perspective(1000px) rotateX(0deg) translateY(-5px);
    box-shadow: 0 25px 70px rgba(0,0,0,0.4);
}

.map-intro h2 {
    color: #6366f1;
    margin-bottom: 12px;
    font-size: 2em;
    font-weight: 800;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.map-intro p {
    color: #4b5563;
    font-size: 1.1em;
    font-weight: 400;
}

.map-controls {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 30px;
    border-radius: 20px;
    margin-bottom: 30px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.control-section label {
    display: block;
    color: #374151;
    font-weight: 600;
    margin-bottom: 12px;
    font-size: 0.95em;
}

.map-plan-selector {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 12px;
}

.map-plan-btn {
    padding: 16px 20px;
    background: linear-gradient(135deg, #ffffff, #f3f4f6);
    border: 3px solid transparent;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 1em;
    font-weight: 600;
    color: #374151;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    position: relative;
    overflow: hidden;
}

.map-plan-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.8), transparent);
    transition: left 0.5s;
}

.map-plan-btn:hover::before {
    left: 100%;
}

.map-plan-btn:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.3);
    border-color: #6366f1;
}

.map-plan-btn.selected {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    border-color: #fbbf24;
    color: white;
    font-weight: 700;
    transform: scale(1.08);
    box-shadow: 0 15px 40px rgba(99, 102, 241, 0.5),
                0 0 30px rgba(251, 191, 36, 0.3);
    animation: selectedPulse 2s infinite;
}

@keyframes selectedPulse {
    0%, 100% {
        box-shadow: 0 15px 40px rgba(99, 102, 241, 0.5),
                    0 0 30px rgba(251, 191, 36, 0.3);
    }
    50% {
        box-shadow: 0 15px 40px rgba(99, 102, 241, 0.7),
                    0 0 40px rgba(251, 191, 36, 0.5);
    }
}

.plan-icon-small {
    font-size: 1.2em;
}

.journey-progress {
    margin-top: 25px;
    padding-top: 25px;
    border-top: 2px solid #e5e7eb;
}

.progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.progress-header h3 {
    color: #1f2937;
    font-size: 1.1em;
    font-weight: 600;
}

.btn-reset {
    padding: 10px 20px;
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 0.9em;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.4);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-reset:hover {
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(239, 68, 68, 0.6);
}

.btn-reset:active {
    transform: translateY(-1px) scale(1.02);
}

.progress-bar-container {
    position: relative;
    width: 100%;
    height: 40px;
    background: linear-gradient(135deg, #1f2937, #374151);
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 15px;
    box-shadow: inset 0 2px 10px rgba(0,0,0,0.5),
                0 4px 15px rgba(0,0,0,0.3);
    border: 2px solid rgba(139, 92, 246, 0.3);
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #6366f1, #8b5cf6, #ec4899, #fbbf24);
    background-size: 200% 100%;
    border-radius: 20px;
    transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
    width: 0%;
    position: relative;
    overflow: hidden;
    animation: shimmer 3s linear infinite;
    box-shadow: 0 0 20px rgba(251, 191, 36, 0.5),
                inset 0 1px 0 rgba(255,255,255,0.3);
}

.progress-bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    animation: progressShine 2s ease-in-out infinite;
}

@keyframes shimmer {
    0% { background-position: 0% 50%; }
    100% { background-position: 200% 50%; }
}

@keyframes progressShine {
    0% { left: -100%; }
    100% { left: 200%; }
}

.progress-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-weight: 800;
    font-size: 1.1em;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5),
                 0 0 10px rgba(251, 191, 36, 0.5);
    z-index: 10;
    letter-spacing: 1px;
}

.current-island-info {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(139, 92, 246, 0.1));
    padding: 20px;
    border-radius: 15px;
    border: 2px solid rgba(139, 92, 246, 0.3);
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.2),
                inset 0 1px 0 rgba(255,255,255,0.3);
    animation: pulseGlow 3s ease-in-out infinite;
}

.current-island-info h4 {
    color: #6366f1;
    margin-bottom: 10px;
    font-size: 1.1em;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.current-island-info p {
    color: #1f2937;
    font-size: 0.95em;
    margin: 5px 0;
    font-weight: 500;
}

@keyframes pulseGlow {
    0%, 100% {
        box-shadow: 0 4px 15px rgba(99, 102, 241, 0.2),
                    inset 0 1px 0 rgba(255,255,255,0.3);
    }
    50% {
        box-shadow: 0 4px 25px rgba(99, 102, 241, 0.4),
                    inset 0 1px 0 rgba(255,255,255,0.5);
    }
}

.world-map {
    background: linear-gradient(180deg, #87CEEB 0%, #4FC3F7 50%, #29B6F6 100%);
    border-radius: 25px;
    padding: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3),
                inset 0 -5px 20px rgba(0,0,0,0.1);
    margin-bottom: 30px;
    border: 5px solid #FFFFFF;
    position: relative;
    overflow: hidden;
}

.world-map::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 30%, rgba(255,255,255,0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(255,255,255,0.1) 0%, transparent 50%);
    pointer-events: none;
}

.world-map svg {
    width: 100%;
    height: auto;
    display: block;
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 10px 30px rgba(0,0,0,0.5));
}

.island {
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0.6;
    filter: grayscale(0.5) brightness(0.9);
}

.island:hover {
    transform: scale(1.08) translateY(-8px);
    opacity: 1;
    filter: grayscale(0) brightness(1.1) drop-shadow(0 8px 16px rgba(0,0,0,0.3));
}

.island.active {
    opacity: 1;
    filter: grayscale(0) brightness(1.15) drop-shadow(0 10px 25px rgba(255, 193, 7, 0.6));
    animation: islandBounce 1.5s ease-in-out infinite;
}

.island.completed {
    opacity: 1;
    filter: grayscale(0) brightness(1.1);
}

.island.completed ellipse:first-child {
    fill: #66BB6A !important;
}

@keyframes islandBounce {
    0%, 100% {
        transform: translateY(0) scale(1);
    }
    50% {
        transform: translateY(-12px) scale(1.05);
    }
}

#customer-avatar {
    transition: all 1.8s cubic-bezier(0.34, 1.56, 0.64, 1);
    transform-origin: center bottom;
    filter: drop-shadow(0 5px 15px rgba(0,0,0,0.3));
}

#customer-avatar.animating {
    animation: characterWalk 1.8s ease-in-out;
}

@keyframes characterWalk {
    0% {
        transform: scale(1) translateY(0) rotate(0deg);
    }
    15% {
        transform: scale(1.1) translateY(-15px) rotate(-5deg);
    }
    30% {
        transform: scale(1.2) translateY(-35px) rotate(0deg);
    }
    45% {
        transform: scale(1.3) translateY(-50px) rotate(5deg);
    }
    60% {
        transform: scale(1.2) translateY(-35px) rotate(0deg);
    }
    75% {
        transform: scale(1.1) translateY(-15px) rotate(-5deg);
    }
    100% {
        transform: scale(1) translateY(0) rotate(0deg);
    }
}

/* Cloud animations */
@keyframes floatCloud {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-100px);
    }
}

/* Balloon animation */
@keyframes floatBalloon {
    0%, 100% {
        transform: translateY(0) translateX(0);
    }
    50% {
        transform: translateY(-30px) translateX(-20px);
    }
}

/* Boat animation */
@keyframes floatBoat {
    0% {
        transform: translateX(0) translateY(0) rotate(0deg);
    }
    25% {
        transform: translateX(200px) translateY(-10px) rotate(2deg);
    }
    50% {
        transform: translateX(400px) translateY(0) rotate(0deg);
    }
    75% {
        transform: translateX(600px) translateY(-10px) rotate(-2deg);
    }
    100% {
        transform: translateX(800px) translateY(0) rotate(0deg);
    }
}

/* Sparkle effect */
@keyframes sparkle {
    0%, 100% {
        opacity: 0.5;
        transform: scale(1) rotate(0deg);
    }
    50% {
        opacity: 1;
        transform: scale(1.5) rotate(180deg);
    }
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0) scale(1);
    }
    50% {
        transform: translateY(-20px) scale(1.1);
    }
}

/* Celebration styles */
.celebration {
    animation: celebrate 0.8s ease-in-out;
}

@keyframes celebrate {
    0% {
        transform: scale(0.5) rotate(-10deg);
        opacity: 0;
    }
    50% {
        transform: scale(1.1) rotate(5deg);
    }
    100% {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
}

@keyframes popupBounce {
    0% {
        opacity: 0;
        transform: scale(0.3) translateY(100px);
    }
    50% {
        opacity: 1;
        transform: scale(1.05) translateY(-10px);
    }
    100% {
        transform: scale(1) translateY(0);
    }
}

/* Deliverables box */
.deliverables-box {
    background: linear-gradient(135deg, #FFF3E0, #FFE0B2) !important;
    border-left-color: #FF9800 !important;
    border-left-width: 4px !important;
}

.deliverables-box h4 {
    color: #E65100 !important;
}

.deliverables-box li {
    color: #E65100 !important;
    font-weight: 600;
}

.deliverables-box li::before {
    content: '🎁';
    margin-right: 8px;
}

/* Parallel badge */
.parallel-badge {
    display: inline-block;
    padding: 4px 12px;
    background: linear-gradient(135deg, #FFC107, #FF9800);
    color: white;
    border-radius: 20px;
    font-size: 0.75em;
    font-weight: 700;
    margin-left: 10px;
    box-shadow: 0 2px 8px rgba(255, 152, 0, 0.4);
    animation: pulse 2s ease-in-out infinite;
}

.island-detail {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 25px;
    padding: 35px;
    box-shadow: 0 30px 80px rgba(0,0,0,0.4),
                inset 0 1px 0 rgba(255,255,255,0.6);
    animation: slideInBounce 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    border: 3px solid rgba(139, 92, 246, 0.3);
    position: relative;
    overflow: hidden;
}

.island-detail::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(251, 191, 36, 0.1) 0%, transparent 70%);
    animation: rotate 15s linear infinite;
}

@keyframes slideInBounce {
    0% {
        opacity: 0;
        transform: translateY(100px) scale(0.8);
    }
    60% {
        opacity: 1;
        transform: translateY(-10px) scale(1.05);
    }
    100% {
        transform: translateY(0) scale(1);
    }
}

.island-detail-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 2px solid #e5e7eb;
}

.island-detail-icon {
    font-size: 3em;
}

.island-detail-title h3 {
    color: #1f2937;
    font-size: 1.5em;
    margin-bottom: 5px;
}

.island-detail-title p {
    color: #6b7280;
    font-size: 0.95em;
}

.island-detail-content {
    display: grid;
    gap: 20px;
}

.detail-box {
    background: #f9fafb;
    padding: 20px;
    border-radius: 6px;
    border-left: 3px solid #3b82f6;
}

.detail-box h4 {
    color: #374151;
    margin-bottom: 12px;
    font-size: 1em;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

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

.detail-box li {
    padding: 8px 0;
    color: #4b5563;
    font-size: 0.9em;
    display: flex;
    align-items: start;
    gap: 8px;
}

.detail-box li::before {
    content: '→';
    color: #3b82f6;
    font-weight: bold;
    flex-shrink: 0;
}

.island-actions {
    margin-top: 20px;
    display: flex;
    gap: 12px;
}

.btn-complete {
    padding: 15px 35px;
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 1.1em;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 30px rgba(16, 185, 129, 0.4),
                inset 0 1px 0 rgba(255,255,255,0.3);
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-complete::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255,255,255,0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-complete:hover::before {
    width: 300px;
    height: 300px;
}

.btn-complete:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 40px rgba(16, 185, 129, 0.6),
                0 0 30px rgba(16, 185, 129, 0.4);
}

.btn-complete:active {
    transform: translateY(-2px) scale(1.02);
}

.btn-complete:disabled {
    background: linear-gradient(135deg, #9ca3af, #6b7280);
    cursor: not-allowed;
    box-shadow: none;
}

.btn-complete:disabled:hover {
    transform: none;
}

.btn-close {
    padding: 12px 24px;
    background: #6b7280;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 0.95em;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-close:hover {
    background: #4b5563;
}

/* JOURNEY MAP */
.journey-intro {
    background: white;
    padding: 30px;
    border-radius: 8px;
    margin-bottom: 30px;
    border-left: 4px solid #3b82f6;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.journey-intro h2 {
    color: #1e40af;
    margin-bottom: 10px;
    font-size: 1.5em;
    font-weight: 600;
}

.journey-intro p {
    color: #6b7280;
    font-size: 1em;
}

.plan-selector-journey {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.plan-card-btn {
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    padding: 30px 20px;
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
}

.plan-card-btn:hover {
    border-color: #3b82f6;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
    transform: translateY(-2px);
}

.plan-card-btn.selected {
    border-color: #3b82f6;
    background: #eff6ff;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
}

.plan-icon {
    font-size: 3em;
    margin-bottom: 15px;
}

.plan-card-btn h3 {
    color: #1f2937;
    margin-bottom: 8px;
    font-size: 1.3em;
    font-weight: 600;
}

.plan-card-btn p {
    color: #6b7280;
    font-size: 0.9em;
    margin: 0;
}

/* JOURNEY MAP VISUALIZATION */
.journey-map {
    background: white;
    border-radius: 8px;
    padding: 40px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.journey-header {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 2px solid #e5e7eb;
}

.journey-header h2 {
    color: #1e40af;
    font-size: 1.8em;
    margin-bottom: 10px;
}

.journey-header .plan-badge {
    display: inline-block;
    padding: 8px 20px;
    background: #eff6ff;
    color: #1e40af;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9em;
}

.journey-phases {
    position: relative;
}

.phase {
    position: relative;
    margin-bottom: 40px;
    padding-left: 60px;
}

.phase::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 40px;
    bottom: -40px;
    width: 2px;
    background: linear-gradient(to bottom, #3b82f6, #93c5fd);
}

.phase:last-child::before {
    display: none;
}

.phase-number {
    position: absolute;
    left: 0;
    top: 0;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #3b82f6, #1e40af);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1em;
    box-shadow: 0 4px 8px rgba(59, 130, 246, 0.3);
    z-index: 1;
}

.phase-content {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 25px;
    transition: all 0.3s;
}

.phase-content:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    border-color: #3b82f6;
}

.phase-title {
    color: #1e40af;
    font-size: 1.3em;
    margin-bottom: 8px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.phase-description {
    color: #6b7280;
    margin-bottom: 20px;
    font-size: 0.95em;
}

.phase-details {
    display: grid;
    gap: 15px;
}

.detail-section {
    background: white;
    padding: 15px;
    border-radius: 6px;
    border-left: 3px solid #3b82f6;
}

.detail-section h4 {
    color: #374151;
    font-size: 1em;
    margin-bottom: 10px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

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

.detail-section li {
    padding: 6px 0;
    color: #4b5563;
    font-size: 0.9em;
    display: flex;
    align-items: start;
    gap: 8px;
}

.detail-section li::before {
    content: '→';
    color: #3b82f6;
    font-weight: bold;
    flex-shrink: 0;
}

.team-badge {
    display: inline-block;
    padding: 4px 12px;
    background: #dbeafe;
    color: #1e40af;
    border-radius: 12px;
    font-size: 0.85em;
    font-weight: 500;
    margin-right: 8px;
}

.plan-specific-actions {
    margin-top: 20px;
    padding: 20px;
    background: #fef3c7;
    border-left: 3px solid #f59e0b;
    border-radius: 6px;
}

.plan-specific-actions h4 {
    color: #92400e;
    margin-bottom: 12px;
    font-weight: 600;
}

.plan-specific-actions ul {
    list-style: none;
    padding: 0;
}

.plan-specific-actions li {
    padding: 6px 0;
    color: #78350f;
    font-size: 0.9em;
}

.plan-specific-actions li::before {
    content: '★';
    color: #f59e0b;
    margin-right: 8px;
}

/* SIMULATOR */
.simulator-grid {
    display: flex;
    flex-direction: column;
    gap: 25px;
    margin-bottom: 30px;
}

.selector-card {
    background: white;
    padding: 30px;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.selector-card h2 {
    margin-bottom: 20px;
    color: #1f2937;
    font-size: 1.2em;
    font-weight: 600;
    text-align: center;
}

.plan-buttons {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.support-buttons {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.plan-btn, .support-btn {
    padding: 18px 20px;
    border: 2px solid #e5e7eb;
    background: white;
    border-radius: 10px;
    font-size: 1em;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    color: #374151;
    font-weight: 600;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 80px;
}

.plan-btn:hover, .support-btn:hover {
    border-color: #3b82f6;
    background: #f9fafb;
}

.plan-btn.selected {
    background: #eff6ff;
    color: #1e40af;
    border-color: #3b82f6;
    font-weight: 600;
}

.support-btn.selected {
    background: #eff6ff;
    color: #1e40af;
    border-color: #3b82f6;
    font-weight: 600;
}

/* Opciones de soporte según validez */
.support-btn.valid-option {
    border-color: #10b981;
    background: #f0fdf4;
    position: relative;
}

.support-btn.valid-option::after {
    content: '✓';
    position: absolute;
    top: 5px;
    right: 8px;
    color: #10b981;
    font-weight: bold;
    font-size: 1.2em;
}

.support-btn.valid-option:hover {
    background: #dcfce7;
    border-color: #059669;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.support-btn.invalid-option {
    border-color: #ef4444;
    background: #fef2f2;
    color: #991b1b;
    cursor: not-allowed;
    opacity: 0.6;
    position: relative;
}

.support-btn.invalid-option::after {
    content: '✗';
    position: absolute;
    top: 5px;
    right: 8px;
    color: #ef4444;
    font-weight: bold;
    font-size: 1.2em;
}

.support-btn.disabled {
    opacity: 0.4;
    cursor: not-allowed;
    background: #f3f4f6;
    color: #9ca3af;
}

.support-btn.disabled:hover {
    transform: none;
    border-color: #e5e7eb;
}

/* RESULT CARD */
.result-card {
    background: white;
    border-radius: 8px;
    padding: 35px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    text-align: center;
    animation: slideIn 0.4s ease;
}

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

.result-card.valid {
    border: 2px solid #10b981;
    background: #f0fdf4;
}

.result-card.invalid {
    border: 2px solid #ef4444;
    background: #fef2f2;
}

.result-icon {
    font-size: 4em;
    margin-bottom: 20px;
}

.result-title {
    font-size: 2em;
    margin-bottom: 15px;
}

.result-message {
    font-size: 1.2em;
    margin-bottom: 20px;
    line-height: 1.6;
}

.result-details {
    background: white;
    padding: 20px;
    border-radius: 10px;
    text-align: left;
    margin-top: 20px;
}

.result-details ul {
    list-style: none;
    padding-left: 0;
}

.result-details li {
    padding: 8px 0;
    font-size: 1.1em;
}

.hidden {
    display: none !important;
}

/* QUIZ */
.quiz-container {
    max-width: 900px;
    margin: 0 auto;
    background: white;
    padding: 35px;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.quiz-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #e5e7eb;
}

.quiz-header h2 {
    color: #1f2937;
    font-weight: 600;
}

.score {
    font-size: 1.3em;
    font-weight: 600;
    color: #3b82f6;
}

.quiz-question {
    background: #f9fafb;
    padding: 25px;
    border-radius: 6px;
    font-size: 1.15em;
    margin-bottom: 25px;
    border-left: 4px solid #3b82f6;
    color: #1f2937;
    font-weight: 500;
}

.quiz-options {
    display: grid;
    gap: 12px;
    margin-bottom: 20px;
}

.quiz-option {
    padding: 18px 20px;
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 1em;
    color: #374151;
}

.quiz-option:hover {
    border-color: #3b82f6;
    background: #f9fafb;
}

.quiz-option.correct {
    background: #10b981;
    color: white;
    border-color: #10b981;
}

.quiz-option.incorrect {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
}

.quiz-feedback {
    background: #fef3c7;
    border: 2px solid #f59e0b;
    padding: 20px;
    border-radius: 6px;
    margin-bottom: 20px;
    color: #78350f;
}

.quiz-feedback.correct {
    background: #d1fae5;
    border-color: #10b981;
    color: #065f46;
}

.quiz-feedback.incorrect {
    background: #fee2e2;
    border-color: #ef4444;
    color: #991b1b;
}

.btn-primary {
    background: #3b82f6;
    color: white;
    border: none;
    padding: 12px 32px;
    border-radius: 6px;
    font-size: 1em;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-primary:hover {
    background: #2563eb;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

/* REFERENCE */
.reference-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.reference-card {
    padding: 25px;
    border-radius: 8px;
    background: white;
    border: 1px solid #e5e7eb;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    border-left: 4px solid;
}

.reference-card h3 {
    margin-bottom: 20px;
    font-size: 1.3em;
    font-weight: 600;
    color: #1f2937;
}

.reference-card.essential {
    border-left-color: #3b82f6;
}

.reference-card.standard {
    border-left-color: #8b5cf6;
}

.reference-card.ultra {
    border-left-color: #f59e0b;
}

.reference-card.premium {
    border-left-color: #ec4899;
}

.requirement {
    background: #f9fafb;
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 15px;
    border: 1px solid #e5e7eb;
}

.options {
    background: #f9fafb;
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 15px;
    border: 1px solid #e5e7eb;
}

.options ul {
    margin-top: 10px;
    padding-left: 20px;
}

.options li {
    margin: 8px 0;
    color: #4b5563;
}

.note {
    background: #fef3c7;
    padding: 12px;
    border-radius: 6px;
    font-size: 0.9em;
    color: #78350f;
    border-left: 3px solid #f59e0b;
}

@media (max-width: 768px) {
    .plan-buttons {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .support-buttons {
        grid-template-columns: 1fr;
    }
    
    .plan-btn, .support-btn {
        min-height: 70px;
        padding: 15px;
        font-size: 0.95em;
    }
    
    .tabs {
        overflow-x: auto;
        white-space: nowrap;
    }
    
    .tab-btn {
        font-size: 0.8em;
        padding: 14px 10px;
        flex: 0 0 auto;
        min-width: 120px;
    }
    
    .header-content h1 {
        font-size: 1.5em;
    }
    
    .subtitle {
        font-size: 0.9em;
    }
    
    .tab-content {
        padding: 20px;
    }
    
    .map-plan-selector {
        grid-template-columns: 1fr 1fr;
    }
    
    .map-plan-btn {
        font-size: 0.85em;
        padding: 10px 12px;
    }
    
    .world-map {
        padding: 10px;
    }
    
    .island text {
        font-size: 10px;
    }
    
    .island-detail {
        padding: 20px;
    }
    
    .island-actions {
        flex-direction: column;
    }
    
    .btn-complete, .btn-close {
        width: 100%;
    }
    
    .plan-selector-journey {
        grid-template-columns: 1fr;
    }
    
    .phase {
        padding-left: 50px;
    }
    
    .phase-number {
        width: 35px;
        height: 35px;
        font-size: 1em;
    }
    
    .journey-map {
        padding: 20px;
    }
    
    .quiz-container {
        padding: 20px;
    }
}

/* ========== FACTORY STYLES ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    overflow-x: hidden;
}

.factory-container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 20px;
}

/* Header */
.factory-header {
    background: rgba(255, 255, 255, 0.95);
    padding: 30px;
    border-radius: 20px;
    text-align: center;
    margin-bottom: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
}

.factory-header h1 {
    font-size: 2.5em;
    color: #2c3e50;
    margin-bottom: 10px;
}

.subtitle {
    font-size: 1.1em;
    color: #7f8c8d;
}

/* Control Panel */
.control-panel {
    background: rgba(255, 255, 255, 0.95);
    padding: 25px;
    border-radius: 20px;
    margin-bottom: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
}

.plan-selector label {
    display: block;
    font-size: 1.2em;
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 15px;
}

.plan-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.plan-btn {
    flex: 1;
    min-width: 150px;
    padding: 20px;
    font-size: 1.1em;
    font-weight: bold;
    border: 3px solid #ddd;
    border-radius: 15px;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.plan-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.plan-btn.selected {
    border-color: #3498db;
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    transform: scale(1.05);
}

/* Factory Stats */
.factory-stats {
    display: flex;
    gap: 20px;
    margin-top: 20px;
    align-items: center;
}

.stat-card {
    flex: 1;
    background: linear-gradient(135deg, #667eea, #764ba2);
    padding: 20px;
    border-radius: 15px;
    text-align: center;
    color: white;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.stat-icon {
    font-size: 2em;
    margin-bottom: 10px;
}

.stat-value {
    font-size: 2.5em;
    font-weight: bold;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 0.9em;
    opacity: 0.9;
}

.btn-reset {
    padding: 20px 30px;
    font-size: 1.1em;
    font-weight: bold;
    background: #e74c3c;
    color: white;
    border: none;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-reset:hover {
    background: #c0392b;
    transform: scale(1.05);
}

/* Factory Floor */
.factory-floor {
    background: rgba(255, 255, 255, 0.95);
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
}

.conveyor-belt {
    width: 100%;
    height: auto;
    display: block;
}

/* Stations */
.station {
    cursor: pointer;
    transition: all 0.3s ease;
}

.station:hover .station-box {
    filter: brightness(1.2);
    transform: translateY(-5px);
}

.station.active .station-box {
    filter: brightness(1.3) drop-shadow(0 0 20px rgba(255,193,7,0.8));
    animation: stationPulse 2s ease-in-out infinite;
}

.station.completed .station-box {
    filter: brightness(1.1);
}

@keyframes stationPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.status-indicator {
    transition: all 0.3s ease;
}

.station.active .status-indicator {
    fill: #f39c12;
    animation: statusBlink 1s ease-in-out infinite;
}

.station.completed .status-indicator {
    fill: #2ecc71;
}

@keyframes statusBlink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Client Package */
.client-package {
    animation: packageMove 3s ease-in-out;
}

@keyframes packageMove {
    0% { transform: translateX(0); }
    100% { transform: translateX(200px); }
}

/* Gears */
.gear {
    animation: gearRotate 4s linear infinite;
    transform-origin: center;
}

@keyframes gearRotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Work Panel */
.work-panel {
    margin-top: 30px;
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.work-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #ecf0f1;
}

.work-panel-header h3 {
    font-size: 1.5em;
    color: #2c3e50;
}

.panel-day {
    background: #3498db;
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
    font-weight: bold;
}

.work-panel-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.team-info {
    font-size: 1.1em;
    color: #34495e;
}

.activities-list {
    color: #2c3e50;
}

.activities-list strong {
    display: block;
    margin-bottom: 10px;
    font-size: 1.1em;
}

.activities-list ul {
    list-style: none;
    padding: 0;
}

.activities-list li {
    padding: 12px;
    margin-bottom: 8px;
    background: #ecf0f1;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.activities-list li:hover {
    background: #d5dbdb;
    transform: translateX(5px);
}

.activities-list li.completed {
    background: #d5f4e6;
    text-decoration: line-through;
    opacity: 0.7;
}

.work-panel-actions {
    display: flex;
    gap: 15px;
}

.btn-primary, .btn-secondary {
    flex: 1;
    padding: 15px 25px;
    font-size: 1.1em;
    font-weight: bold;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background: linear-gradient(135deg, #2ecc71, #27ae60);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(46,204,113,0.4);
}

.btn-secondary {
    background: #ecf0f1;
    color: #2c3e50;
}

.btn-secondary:hover {
    background: #bdc3c7;
}

/* Utility */
.hidden {
    display: none !important;
}

/* Responsive */
@media (max-width: 768px) {
    .factory-stats {
        flex-direction: column;
    }
    
    .plan-buttons {
        flex-direction: column;
    }
    
    .work-panel-actions {
        flex-direction: column;
    }
}

/* Ajustes para fábrica dentro de tabs */
#factory .factory-container {
    padding: 0;
    max-width: 100%;
}

#factory body {
    background: transparent;
}

/* ========== MEJORAS LAYOUT FÁBRICA ========== */

/* Planes en horizontal compactos */
#factory .plan-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
}

#factory .plan-btn {
    flex: 0 1 auto;
    min-width: 120px;
    padding: 15px 20px;
    font-size: 1em;
}

/* Control panel más compacto */
#factory .control-panel {
    padding: 20px;
    margin-bottom: 15px;
}

#factory .plan-selector label {
    font-size: 1em;
    margin-bottom: 10px;
}

/* Stats en horizontal compacto */
#factory .factory-stats {
    flex-direction: row;
    gap: 15px;
    margin-top: 15px;
    flex-wrap: wrap;
}

#factory .stat-card {
    flex: 0 1 auto;
    min-width: 140px;
    padding: 15px;
}

#factory .stat-value {
    font-size: 2em;
}

#factory .btn-reset {
    padding: 15px 25px;
    font-size: 1em;
}

/* Factory floor más espacioso */
#factory .factory-floor {
    padding: 20px;
    margin-bottom: 15px;
}

/* SVG más grande */
#factory .conveyor-belt {
    min-height: 400px;
}

/* Work panel con botones arriba */
#factory .work-panel {
    margin-top: 20px;
}

#factory .work-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

#factory .work-panel-actions {
    order: -1;
    width: 100%;
    margin-bottom: 15px;
    gap: 10px;
}

#factory .btn-primary,
#factory .btn-secondary {
    padding: 12px 20px;
    font-size: 1em;
}

/* Responsive mejorado */
@media (max-width: 768px) {
    #factory .plan-buttons {
        flex-wrap: wrap;
    }
    
    #factory .factory-stats {
        flex-direction: column;
    }
}

/* ========== FIX PLANES HORIZONTAL ========== */

/* Forzar planes en horizontal */
.factory-container .plan-buttons,
#factory .plan-buttons,
div[id="factory"] .plan-buttons {
    display: flex !important;
    flex-direction: row !important;
    gap: 10px !important;
    justify-content: center !important;
    flex-wrap: nowrap !important;
}

.factory-container .plan-btn,
#factory .plan-btn,
div[id="factory"] .plan-btn {
    flex: 0 1 auto !important;
    min-width: 110px !important;
    max-width: 150px !important;
    padding: 12px 15px !important;
    font-size: 0.95em !important;
}

/* Selector más compacto */
.factory-container .plan-selector,
#factory .plan-selector {
    text-align: center;
}

.factory-container .plan-selector label,
#factory .plan-selector label {
    display: block;
    text-align: center;
    margin-bottom: 12px;
}

/* Responsive para móviles */
@media (max-width: 768px) {
    .factory-container .plan-buttons,
    #factory .plan-buttons {
        flex-wrap: wrap !important;
        justify-content: center !important;
    }
    
    .factory-container .plan-btn,
    #factory .plan-btn {
        flex: 0 1 calc(50% - 5px) !important;
    }
}
/* ========== REDISEÑO PROFESIONAL FÁBRICA ========== */

/* Paleta de colores profesional */
:root {
    --factory-primary: #2c3e50;
    --factory-secondary: #34495e;
    --factory-accent: #3498db;
    --factory-success: #27ae60;
    --factory-warning: #f39c12;
    --factory-bg: #ecf0f1;
    --factory-light: #ffffff;
    --factory-text: #2c3e50;
    --factory-text-light: #7f8c8d;
}

/* Header más limpio */
#factory .factory-header {
    background: var(--factory-light);
    border-bottom: 3px solid var(--factory-accent);
}

#factory .factory-header h1 {
    color: var(--factory-primary);
    font-size: 2em;
}

#factory .subtitle {
    color: var(--factory-text-light);
    font-size: 1em;
}

/* Control panel minimalista */
#factory .control-panel {
    background: var(--factory-light);
    border: 1px solid #dfe6e9;
}

#factory .plan-selector label {
    color: var(--factory-primary);
    font-size: 0.95em;
}

/* Planes con diseño uniforme */
#factory .plan-btn {
    background: var(--factory-light);
    border: 2px solid #dfe6e9;
    color: var(--factory-text);
    font-weight: 600;
    transition: all 0.3s ease;
}

#factory .plan-btn:hover {
    border-color: var(--factory-accent);
    background: #f8f9fa;
    transform: translateY(-2px);
}

#factory .plan-btn.selected {
    background: var(--factory-accent);
    border-color: var(--factory-accent);
    color: white;
}

/* Stats con colores sutiles */
#factory .stat-card {
    background: linear-gradient(135deg, var(--factory-primary), var(--factory-secondary));
}

#factory .btn-reset {
    background: var(--factory-text-light);
    color: white;
}

#factory .btn-reset:hover {
    background: #95a5a6;
}

/* Factory floor limpio */
#factory .factory-floor {
    background: var(--factory-light);
    border: 1px solid #dfe6e9;
}

/* Estaciones con colores profesionales */
#factory #station-1 .station-box { fill: var(--factory-accent); }
#factory #station-2 .station-box { fill: #5f6caf; }
#factory #station-3 .station-box { fill: #6c5ce7; }
#factory #station-4 .station-box { fill: var(--factory-warning); }
#factory #station-5 .station-box { fill: #00b894; }
#factory #station-6 .station-box { fill: #d63031; }
#factory #station-7 .station-box { fill: var(--factory-success); }

/* Belt más sutil */
#factory .belt-segment {
    fill: var(--factory-secondary);
}

#factory .belt-pattern line {
    stroke: #4a5f7f;
}

/* Paquete del cliente */
#factory #client-package rect {
    fill: var(--factory-accent);
    stroke: #2980b9;
}

/* Engranajes sutiles */
#factory .gear circle {
    fill: var(--factory-secondary);
    opacity: 0.2;
}

/* Work panel profesional */
#factory .work-panel {
    background: var(--factory-light);
    border: 1px solid #dfe6e9;
}

#factory .work-panel-header h3 {
    color: var(--factory-primary);
    font-size: 1.3em;
}

#factory .panel-day {
    background: var(--factory-accent);
    font-size: 0.9em;
}

#factory .team-info {
    color: var(--factory-text);
}

#factory .activities-list li {
    background: #f8f9fa;
    border-left: 3px solid var(--factory-accent);
}

#factory .activities-list li:hover {
    background: #e9ecef;
}

#factory .activities-list li.completed {
    background: #d5f4e6;
    border-left-color: var(--factory-success);
}

/* Botones profesionales */
#factory .btn-primary {
    background: var(--factory-success);
}

#factory .btn-primary:hover {
    background: #229954;
}

#factory .btn-secondary {
    background: #f8f9fa;
    color: var(--factory-text);
    border: 1px solid #dfe6e9;
}

#factory .btn-secondary:hover {
    background: #e9ecef;
}

/* Status indicators sutiles */
#factory .status-indicator {
    transition: all 0.3s ease;
}

#factory .station.active .status-indicator {
    fill: var(--factory-warning);
}

#factory .station.completed .status-indicator {
    fill: var(--factory-success);
}

/* Animaciones más sutiles */
#factory .station.active .station-box {
    filter: brightness(1.1) drop-shadow(0 5px 15px rgba(52, 152, 219, 0.3));
}

@keyframes stationPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.02); }
}

/* Conveyor belt con mejor contraste */
#factory .conveyor-belt {
    background: linear-gradient(180deg, #f8f9fa 0%, #e9ecef 100%);
}

/* ========== CARRETERA Y SEÑALES ========== */

/* Señales de tráfico */
.road-sign {
    cursor: pointer;
    transition: all 0.3s ease;
}

.road-sign:hover {
    transform: translateY(-5px) scale(1.05);
}

.road-sign.active {
    animation: signBounce 1s ease-in-out infinite;
}

@keyframes signBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.road-sign.completed {
    opacity: 0.8;
}

/* Vehículo del cliente */
.client-vehicle {
    animation: driveOnRoad 3s ease-in-out;
}

@keyframes driveOnRoad {
    0% { 
        offset-distance: 0%;
        transform: rotate(0deg);
    }
    25% {
        transform: rotate(-5deg);
    }
    50% {
        transform: rotate(5deg);
    }
    75% {
        transform: rotate(-3deg);
    }
    100% { 
        offset-distance: 14.28%;
        transform: rotate(0deg);
    }
}

/* Carretera */
#factory .conveyor-belt {
    background: linear-gradient(180deg, #87CEEB 0%, #E0F6FF 100%);
}

/* ========== TIMELINE MODERNO ========== */
/* ========== TIMELINE MODERNO EMx ========== */

.emx-timeline-container {
    max-width: 100%;
    padding: 0;
}

/* Header */
.timeline-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 30px;
    border-radius: 20px 20px 0 0;
    color: white;
}

.timeline-title h2 {
    font-size: 2em;
    margin: 0 0 8px 0;
    font-weight: 700;
}

.timeline-title p {
    margin: 0;
    opacity: 0.95;
    font-size: 1.1em;
}

.timeline-plan-selector {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.plan-chip {
    padding: 12px 24px;
    background: rgba(255,255,255,0.2);
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 25px;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
}

.plan-chip:hover {
    background: rgba(255,255,255,0.3);
    transform: translateY(-2px);
}

.plan-chip.selected {
    background: white;
    color: #667eea;
    border-color: white;
    transform: scale(1.05);
}

/* Progress Bar */
.timeline-progress-container {
    background: white;
    padding: 25px 30px;
    border-bottom: 1px solid #e5e7eb;
}

.progress-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.progress-label {
    font-weight: 600;
    color: #374151;
    font-size: 1.1em;
}

.progress-percentage {
    font-size: 1.5em;
    font-weight: 700;
    color: #667eea;
}

.progress-track {
    position: relative;
    height: 12px;
    background: #e5e7eb;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 15px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #667eea, #764ba2);
    border-radius: 10px;
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    width: 0%;
}

.progress-marker {
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    font-size: 20px;
    transition: left 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    left: 0%;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}

.progress-stats {
    display: flex;
    gap: 20px;
    align-items: center;
}

.stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 8px 16px;
    background: #f9fafb;
    border-radius: 10px;
}

.stat-value {
    font-size: 1.5em;
    font-weight: 700;
    color: #667eea;
}

.stat-label {
    font-size: 0.85em;
    color: #6b7280;
}

.btn-restart {
    margin-left: auto;
    padding: 10px 20px;
    background: #f3f4f6;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-restart:hover {
    background: #e5e7eb;
    transform: scale(1.05);
}

/* Timeline Phases */
.timeline-phases {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    padding: 30px;
    background: white;
}

.phase-card {
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 16px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.phase-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    transform: scaleX(0);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.phase-card:hover {
    border-color: #667eea;
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.2);
}

.phase-card:hover::before {
    transform: scaleX(1);
}

.phase-card.active {
    border-color: #667eea;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05), rgba(118, 75, 162, 0.05));
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.25);
}

.phase-card.active::before {
    transform: scaleX(1);
}

.phase-card.completed {
    border-color: #10b981;
    background: rgba(16, 185, 129, 0.05);
}

.phase-card.completed::before {
    background: #10b981;
    transform: scaleX(1);
}

.phase-icon {
    font-size: 3em;
    margin-bottom: 12px;
    text-align: center;
}

.phase-content h3 {
    font-size: 1.2em;
    margin: 0 0 8px 0;
    color: #1f2937;
    font-weight: 700;
}

.phase-team {
    color: #6b7280;
    font-size: 0.9em;
    margin: 4px 0;
}

.phase-duration {
    color: #667eea;
    font-size: 0.85em;
    font-weight: 600;
    margin: 4px 0;
}

.phase-status {
    margin-top: 12px;
}

.status-badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8em;
    font-weight: 600;
}

.status-badge.pending {
    background: #f3f4f6;
    color: #6b7280;
}

.status-badge.active {
    background: #dbeafe;
    color: #1e40af;
}

.status-badge.completed {
    background: #d1fae5;
    color: #065f46;
}

/* Detail Panel */
.detail-panel {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    border-radius: 20px 20px 0 0;
    box-shadow: 0 -10px 40px rgba(0,0,0,0.2);
    max-height: 60vh;
    overflow-y: auto;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
}

.detail-panel.show {
    transform: translateY(0);
}

.detail-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 30px;
    border-bottom: 2px solid #e5e7eb;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border-radius: 20px 20px 0 0;
}

.detail-header h3 {
    margin: 0;
    font-size: 1.5em;
}

.btn-close {
    background: rgba(255,255,255,0.2);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    color: white;
    font-size: 1.2em;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-close:hover {
    background: rgba(255,255,255,0.3);
    transform: rotate(90deg);
}

.detail-body {
    padding: 30px;
}

.detail-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 25px;
}

.info-item {
    background: #f9fafb;
    padding: 15px;
    border-radius: 12px;
}

.info-label {
    display: block;
    font-weight: 600;
    color: #6b7280;
    margin-bottom: 5px;
}

.info-value {
    display: block;
    font-size: 1.1em;
    color: #1f2937;
    font-weight: 600;
}

.detail-activities h4 {
    margin: 0 0 15px 0;
    color: #1f2937;
    font-size: 1.2em;
}

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

.detail-activities li {
    padding: 12px 15px;
    background: #f9fafb;
    border-left: 3px solid #667eea;
    margin-bottom: 10px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.detail-activities li:hover {
    background: #f3f4f6;
    transform: translateX(5px);
}

.detail-actions {
    margin-top: 25px;
    display: flex;
    gap: 15px;
}

.btn-complete {
    flex: 1;
    padding: 15px 30px;
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1.1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-complete:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(16, 185, 129, 0.3);
}

/* Utility */
.hidden {
    display: none !important;
}

/* Responsive */
@media (max-width: 768px) {
    .timeline-phases {
        grid-template-columns: 1fr;
    }
    
    .timeline-plan-selector {
        flex-direction: column;
    }
}

/* Fix detail panel visibility */
#factory .detail-panel {
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 9999 !important;
    background: white !important;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

#factory .detail-panel.show {
    transform: translateY(0) !important;
}

#factory .detail-body {
    padding: 30px !important;
}

#factory .detail-activities ul {
    display: block !important;
}

#factory .detail-activities li {
    display: block !important;
}

#factory .btn-complete {
    display: block !important;
    width: 100% !important;
}

/* ========== ROADMAP FINAL ========== */
/* ========== ROADMAP HORIZONTAL EMx ========== */

.emx-roadmap-container {
    max-width: 100%;
    padding: 0;
}

/* Header */
.roadmap-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 30px;
    border-radius: 20px 20px 0 0;
    color: white;
}

.roadmap-title h2 {
    font-size: 2em;
    margin: 0 0 8px 0;
    font-weight: 700;
}

.roadmap-title p {
    margin: 0;
    opacity: 0.95;
    font-size: 1.1em;
}

.roadmap-plan-selector {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    flex-wrap: wrap;
}

/* Stats */
.roadmap-stats {
    background: white;
    padding: 25px 30px;
    display: flex;
    gap: 20px;
    align-items: center;
    border-bottom: 1px solid #e5e7eb;
}

.stat-box {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 20px;
    background: #f9fafb;
    border-radius: 12px;
    flex: 1;
}

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

.stat-value {
    font-size: 1.8em;
    font-weight: 700;
    color: #667eea;
    line-height: 1;
}

.stat-label {
    font-size: 0.85em;
    color: #6b7280;
    margin-top: 4px;
}

.btn-restart-roadmap {
    padding: 12px 24px;
    background: #f3f4f6;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-restart-roadmap:hover {
    background: #e5e7eb;
    transform: scale(1.05);
}

/* Roadmap Visual */
.roadmap-visual {
    background: white;
    padding: 60px 40px;
    position: relative;
}

/* Progress Line */
.roadmap-line {
    position: absolute;
    top: 120px;
    left: 80px;
    right: 80px;
    height: 4px;
    background: #e5e7eb;
    border-radius: 4px;
}

.roadmap-line-progress {
    height: 100%;
    background: linear-gradient(90deg, #667eea, #764ba2);
    border-radius: 4px;
    width: 0%;
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Nodes */
.roadmap-nodes {
    display: flex;
    justify-content: space-between;
    position: relative;
    z-index: 1;
}

.roadmap-node {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    flex: 1;
}

.node-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: white;
    border: 4px solid #e5e7eb;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 2;
}

.node-icon {
    font-size: 2em;
    line-height: 1;
}

.node-number {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 24px;
    height: 24px;
    background: #667eea;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75em;
    font-weight: 700;
}

.node-label {
    margin-top: 12px;
    font-weight: 600;
    color: #1f2937;
    text-align: center;
    font-size: 0.95em;
}

.node-duration {
    margin-top: 4px;
    font-size: 0.8em;
    color: #6b7280;
    text-align: center;
}

/* Node States */
.roadmap-node:hover .node-circle {
    transform: scale(1.1);
    border-color: #667eea;
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
}

.roadmap-node.active .node-circle {
    border-color: #667eea;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
    animation: nodePulse 2s ease-in-out infinite;
}

.roadmap-node.completed .node-circle {
    border-color: #10b981;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(5, 150, 105, 0.1));
}

.roadmap-node.completed .node-number {
    background: #10b981;
}

@keyframes nodePulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(102, 126, 234, 0.4);
    }
    50% {
        box-shadow: 0 0 0 15px rgba(102, 126, 234, 0);
    }
}

/* Tooltip */
.node-tooltip {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    padding: 20px;
    width: 320px;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 100;
    border: 2px solid #e5e7eb;
}

.roadmap-node:hover .node-tooltip {
    opacity: 1;
    transform: translateX(-50%) translateY(10px);
    pointer-events: all;
}

.tooltip-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    padding-bottom: 12px;
    border-bottom: 2px solid #f3f4f6;
}

.tooltip-icon {
    font-size: 1.8em;
}

.tooltip-header h4 {
    margin: 0;
    font-size: 1.2em;
    color: #1f2937;
}

.tooltip-info {
    margin-bottom: 15px;
}

.tooltip-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    font-size: 0.9em;
}

.tooltip-label {
    font-weight: 600;
    color: #6b7280;
}

.tooltip-activities {
    margin-bottom: 15px;
}

.tooltip-activities strong {
    display: block;
    margin-bottom: 10px;
    color: #1f2937;
    font-size: 0.95em;
}

.tooltip-activities ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.tooltip-activities li {
    padding: 6px 0;
    padding-left: 20px;
    position: relative;
    font-size: 0.85em;
    color: #4b5563;
}

.tooltip-activities li::before {
    content: '•';
    position: absolute;
    left: 8px;
    color: #667eea;
    font-weight: bold;
}

.btn-complete-node {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-complete-node:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(16, 185, 129, 0.3);
}

/* Responsive */
@media (max-width: 1024px) {
    .roadmap-nodes {
        flex-wrap: wrap;
        gap: 40px;
    }
    
    .roadmap-node {
        flex: 0 0 calc(33.333% - 27px);
    }
    
    .roadmap-line {
        display: none;
    }
}

@media (max-width: 768px) {
    .roadmap-node {
        flex: 0 0 calc(50% - 20px);
    }
    
    .node-tooltip {
        width: 280px;
    }
}
/* ========== CARRETERA JOURNEY EMx ========== */

.emx-roadmap-container {
    background: linear-gradient(180deg, #87CEEB 0%, #B0E0E6 100%);
    min-height: 100vh;
    padding: 0;
}

/* Header */
.roadmap-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 30px;
    color: white;
}

.roadmap-title h2 {
    font-size: 2em;
    margin: 0 0 8px 0;
    font-weight: 700;
}

.roadmap-title p {
    margin: 0;
    opacity: 0.95;
    font-size: 1.1em;
}

.roadmap-plan-selector {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    flex-wrap: wrap;
}

/* Ocultar stats */
.roadmap-stats {
    display: none !important;
}

/* Roadmap Visual - Carretera */
.roadmap-visual {
    background: transparent;
    padding: 80px 40px;
    position: relative;
    min-height: 800px;
}

/* Carretera curva */
.roadmap-line {
    position: absolute;
    top: 50%;
    left: 5%;
    right: 5%;
    height: 80px;
    background: #2d3748;
    border-radius: 40px;
    transform: translateY(-50%);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.roadmap-line::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 4px;
    background: repeating-linear-gradient(
        90deg,
        #fbbf24 0px,
        #fbbf24 40px,
        transparent 40px,
        transparent 80px
    );
    transform: translateY(-50%);
}

.roadmap-line-progress {
    height: 100%;
    background: linear-gradient(90deg, rgba(102, 126, 234, 0.3), rgba(118, 75, 162, 0.3));
    border-radius: 40px;
    width: 0%;
    transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Nodos en la carretera */
.roadmap-nodes {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 10;
    padding: 0 5%;
}

.roadmap-node {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

/* Punto de partida - Plan EMx */
.roadmap-node[data-phase="0"] {
    order: -1;
}

.roadmap-node[data-phase="0"] .node-circle {
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border: 5px solid white;
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.5);
}

.roadmap-node[data-phase="0"] .node-icon {
    font-size: 3em;
}

.roadmap-node[data-phase="0"] .node-label {
    font-size: 1.3em;
    font-weight: 700;
    color: #667eea;
    margin-top: 15px;
}

/* Nodos normales */
.node-circle {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: white;
    border: 5px solid #cbd5e0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.node-icon {
    font-size: 2.5em;
    line-height: 1;
}

.node-number {
    position: absolute;
    top: -10px;
    right: -10px;
    width: 32px;
    height: 32px;
    background: #667eea;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9em;
    font-weight: 700;
    border: 3px solid white;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.node-label {
    margin-top: 15px;
    font-weight: 700;
    color: #2d3748;
    text-align: center;
    font-size: 1.1em;
    text-shadow: 0 2px 4px rgba(255,255,255,0.8);
}

.node-duration {
    margin-top: 6px;
    font-size: 0.9em;
    color: #4a5568;
    text-align: center;
    background: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-weight: 600;
}

/* Estados de nodos */
.roadmap-node:hover .node-circle {
    transform: scale(1.15) translateY(-10px);
    border-color: #667eea;
    box-shadow: 0 15px 35px rgba(102, 126, 234, 0.4);
}

.roadmap-node.active .node-circle {
    border-color: #fbbf24;
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    animation: roadPulse 2s ease-in-out infinite;
    box-shadow: 0 0 0 0 rgba(251, 191, 36, 0.7);
}

.roadmap-node.completed .node-circle {
    border-color: #10b981;
    background: linear-gradient(135deg, #d1fae5, #a7f3d0);
}

.roadmap-node.completed .node-number {
    background: #10b981;
}

@keyframes roadPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(251, 191, 36, 0.7);
    }
    50% {
        box-shadow: 0 0 0 20px rgba(251, 191, 36, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(251, 191, 36, 0);
    }
}

/* Tooltip */
.node-tooltip {
    position: absolute;
    top: 120%;
    left: 50%;
    transform: translateX(-50%);
    background: white;
    border-radius: 16px;
    box-shadow: 0 15px 50px rgba(0,0,0,0.25);
    padding: 25px;
    width: 340px;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 100;
    border: 3px solid #e5e7eb;
}

.node-tooltip::before {
    content: '';
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-bottom: 10px solid white;
}

.roadmap-node:hover .node-tooltip {
    opacity: 1;
    pointer-events: all;
}

.tooltip-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
    padding-bottom: 15px;
    border-bottom: 3px solid #f3f4f6;
}

.tooltip-icon {
    font-size: 2.2em;
}

.tooltip-header h4 {
    margin: 0;
    font-size: 1.3em;
    color: #1f2937;
    font-weight: 700;
}

.tooltip-info {
    margin-bottom: 18px;
    background: #f9fafb;
    padding: 12px;
    border-radius: 10px;
}

.tooltip-row {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    font-size: 0.95em;
}

.tooltip-label {
    font-weight: 700;
    color: #6b7280;
}

.tooltip-activities {
    margin-bottom: 18px;
}

.tooltip-activities strong {
    display: block;
    margin-bottom: 12px;
    color: #1f2937;
    font-size: 1em;
    font-weight: 700;
}

.tooltip-activities ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.tooltip-activities li {
    padding: 8px 12px;
    padding-left: 30px;
    position: relative;
    font-size: 0.9em;
    color: #4b5563;
    background: #f9fafb;
    margin-bottom: 6px;
    border-radius: 8px;
    border-left: 3px solid #667eea;
}

.tooltip-activities li::before {
    content: '✓';
    position: absolute;
    left: 10px;
    color: #667eea;
    font-weight: bold;
}

.btn-complete-node {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1.05em;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.btn-complete-node:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.4);
}

/* Responsive */
@media (max-width: 1200px) {
    .roadmap-nodes {
        flex-wrap: wrap;
        gap: 60px;
        justify-content: center;
    }
    
    .roadmap-line {
        display: none;
    }
    
    .roadmap-node {
        flex: 0 0 auto;
    }
}

/* ========== INFOGRAFÍA ANIMADA ========== */
/* ========== INFOGRAFÍA ANIMADA EMx ========== */

.emx-infographic {
    max-width: 100%;
    background: linear-gradient(180deg, #f8fafc 0%, #e2e8f0 100%);
}

/* Hero Section */
.infographic-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 60px 40px;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.infographic-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 0 auto;
}

.hero-badge {
    display: inline-block;
    padding: 10px 24px;
    background: rgba(255,255,255,0.2);
    border-radius: 25px;
    font-weight: 600;
    margin-bottom: 20px;
    backdrop-filter: blur(10px);
    animation: fadeInDown 0.6s ease;
}

.hero-title {
    font-size: 3em;
    font-weight: 800;
    margin: 0 0 15px 0;
    line-height: 1.2;
    animation: fadeInUp 0.6s ease 0.2s both;
}

.hero-subtitle {
    font-size: 1.3em;
    opacity: 0.95;
    margin: 0 0 40px 0;
    animation: fadeInUp 0.6s ease 0.4s both;
}

.hero-timeline {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    margin-bottom: 40px;
    animation: fadeInUp 0.6s ease 0.6s both;
}

.timeline-item {
    text-align: center;
}

.timeline-number {
    font-size: 3em;
    font-weight: 800;
    line-height: 1;
}

.timeline-label {
    font-size: 0.9em;
    opacity: 0.9;
    margin-top: 5px;
}

.timeline-divider {
    font-size: 2em;
    opacity: 0.6;
}

.hero-plans {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 0.6s ease 0.8s both;
}

.plan-badge {
    padding: 15px 30px;
    background: rgba(255,255,255,0.2);
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 30px;
    color: white;
    font-weight: 700;
    font-size: 1.1em;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
}

.plan-badge:hover {
    background: rgba(255,255,255,0.3);
    transform: translateY(-3px);
}

.plan-badge.selected {
    background: white;
    color: #667eea;
    border-color: white;
    transform: scale(1.1);
}

/* Journey Flow */
.journey-flow {
    max-width: 900px;
    margin: 0 auto;
    padding: 60px 40px;
}

/* Phase Block */
.phase-block {
    position: relative;
    margin-bottom: 60px;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.phase-block.visible {
    opacity: 1;
    transform: translateY(0);
}

.phase-block.completed {
    opacity: 0.7;
}

.phase-number {
    position: absolute;
    left: -80px;
    top: 0;
    font-size: 4em;
    font-weight: 900;
    color: #e2e8f0;
    line-height: 1;
}

.phase-content {
    background: white;
    border-radius: 24px;
    padding: 35px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
    border: 3px solid #e2e8f0;
    transition: all 0.4s ease;
    position: relative;
}

.phase-block.active .phase-content {
    border-color: #667eea;
    box-shadow: 0 15px 50px rgba(102, 126, 234, 0.2);
    transform: scale(1.02);
}

.phase-block.completed .phase-content {
    border-color: #10b981;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.05), rgba(5, 150, 105, 0.05));
}

.phase-header {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 20px;
}

.phase-icon {
    font-size: 4em;
    line-height: 1;
}

.phase-info {
    flex: 1;
}

.phase-info h3 {
    margin: 0 0 10px 0;
    font-size: 1.8em;
    color: #1f2937;
    font-weight: 700;
}

.phase-meta {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.meta-item {
    font-size: 0.95em;
    color: #6b7280;
    font-weight: 600;
}

.phase-description {
    font-size: 1.1em;
    color: #4b5563;
    margin-bottom: 25px;
    line-height: 1.6;
}

.phase-activities {
    display: grid;
    gap: 12px;
    margin-bottom: 25px;
}

.activity-item {
    padding: 12px 18px;
    background: #f9fafb;
    border-left: 4px solid #667eea;
    border-radius: 8px;
    font-size: 0.95em;
    color: #374151;
    transition: all 0.3s ease;
}

.activity-item:hover {
    background: #f3f4f6;
    transform: translateX(5px);
}

.phase-block.completed .activity-item {
    border-left-color: #10b981;
    background: rgba(16, 185, 129, 0.1);
}

.btn-phase-complete {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1.1em;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.btn-phase-complete:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.phase-block.completed .btn-phase-complete {
    background: #10b981;
    pointer-events: none;
}

.phase-block.completed .btn-phase-complete::after {
    content: ' ✓';
}

/* Connector */
.phase-connector {
    width: 4px;
    height: 60px;
    background: linear-gradient(180deg, #e2e8f0, transparent);
    margin: 0 auto;
}

.phase-block.completed .phase-connector {
    background: linear-gradient(180deg, #10b981, transparent);
}

/* Success Message */
.success-message {
    text-align: center;
    padding: 60px 40px;
    background: white;
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.1);
    animation: bounceIn 0.6s ease;
}

.success-icon {
    font-size: 6em;
    margin-bottom: 20px;
    animation: bounce 1s ease infinite;
}

.success-message h2 {
    font-size: 2.5em;
    color: #10b981;
    margin: 0 0 15px 0;
    font-weight: 800;
}

.success-message p {
    font-size: 1.2em;
    color: #6b7280;
    margin: 0 0 30px 0;
}

.btn-restart-infographic {
    padding: 16px 40px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1.1em;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-restart-infographic:hover {
    transform: scale(1.05);
}

/* Animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

/* Utility */
.hidden {
    display: none !important;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2em;
    }
    
    .hero-timeline {
        flex-direction: column;
        gap: 20px;
    }
    
    .timeline-divider {
        transform: rotate(90deg);
    }
    
    .phase-number {
        position: static;
        margin-bottom: 15px;
    }
    
    .phase-content {
        padding: 25px;
    }
}
/* ========== INFOGRAFÍA MODERNA CON ENGRANAJES ========== */

.emx-infographic-modern {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
}

/* Hero */
.infographic-hero-modern {
    text-align: center;
    padding: 60px 40px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.infographic-hero-modern h1 {
    font-size: 3em;
    margin: 0 0 15px 0;
    font-weight: 800;
}

.infographic-hero-modern p {
    font-size: 1.3em;
    margin: 0 0 40px 0;
    opacity: 0.95;
}

.plan-selector-modern {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.plan-card-modern {
    background: rgba(255,255,255,0.2);
    border: 3px solid rgba(255,255,255,0.3);
    border-radius: 20px;
    padding: 25px 35px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
}

.plan-card-modern:hover {
    background: rgba(255,255,255,0.3);
    transform: translateY(-5px);
}

.plan-card-modern.selected {
    background: white;
    border-color: white;
    transform: scale(1.1);
}

.plan-icon-modern {
    font-size: 3em;
    margin-bottom: 10px;
}

.plan-name-modern {
    font-size: 1.3em;
    font-weight: 700;
    color: white;
}

.plan-card-modern.selected .plan-name-modern {
    color: #667eea;
}

/* Canvas */
.infographic-canvas {
    position: relative;
    min-height: 900px;
    padding: 80px 40px;
    overflow: hidden;
}

/* Central Hub */
.central-hub {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
}

.hub-circle {
    width: 200px;
    height: 200px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 20px 60px rgba(102, 126, 234, 0.4);
    animation: hubPulse 3s ease-in-out infinite;
}

.hub-icon {
    font-size: 4em;
    margin-bottom: 10px;
}

.hub-text {
    font-size: 1.2em;
    font-weight: 700;
}

.hub-plan {
    font-size: 1.5em;
    font-weight: 800;
    margin-top: 5px;
}

@keyframes hubPulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 20px 60px rgba(102, 126, 234, 0.4);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 25px 70px rgba(102, 126, 234, 0.6);
    }
}

/* Gears */
.gear-container {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    opacity: 0.15;
}

.gear {
    position: absolute;
    font-size: 8em;
    animation: rotateGear 20s linear infinite;
}

.gear-1 {
    top: 10%;
    left: 15%;
    animation-duration: 15s;
}

.gear-2 {
    top: 15%;
    right: 10%;
    animation-duration: 25s;
    animation-direction: reverse;
}

.gear-3 {
    bottom: 15%;
    left: 10%;
    animation-duration: 18s;
}

.gear-4 {
    bottom: 10%;
    right: 20%;
    animation-duration: 22s;
    animation-direction: reverse;
}

@keyframes rotateGear {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Phase Cards */
.phase-card-modern {
    position: absolute;
    width: 220px;
    animation: fadeInScale 0.6s ease both;
}

.phase-1 { top: 8%; left: 15%; animation-delay: 0.1s; }
.phase-2 { top: 8%; right: 15%; animation-delay: 0.2s; }
.phase-3 { top: 35%; left: 5%; animation-delay: 0.3s; }
.phase-4 { top: 35%; right: 5%; animation-delay: 0.4s; }
.phase-5 { bottom: 15%; left: 15%; animation-delay: 0.5s; }
.phase-6 { bottom: 15%; right: 15%; animation-delay: 0.6s; }
.phase-7 { bottom: 5%; left: 50%; transform: translateX(-50%); animation-delay: 0.7s; }

.phase-card-inner {
    background: white;
    border-radius: 20px;
    padding: 25px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    border: 3px solid #e5e7eb;
    transition: all 0.4s ease;
    position: relative;
}

.phase-card-modern:hover .phase-card-inner {
    transform: translateY(-10px) scale(1.05);
    box-shadow: 0 20px 60px rgba(102, 126, 234, 0.3);
    border-color: #667eea;
}

.phase-number-badge {
    position: absolute;
    top: -15px;
    right: -15px;
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3em;
    font-weight: 800;
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.phase-icon-large {
    font-size: 3.5em;
    text-align: center;
    margin-bottom: 15px;
}

.phase-card-inner h3 {
    margin: 0 0 10px 0;
    font-size: 1.4em;
    color: #1f2937;
    font-weight: 700;
    text-align: center;
}

.phase-team {
    text-align: center;
    color: #6b7280;
    font-size: 0.9em;
    margin-bottom: 8px;
    font-weight: 600;
}

.phase-duration {
    text-align: center;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 0.85em;
    font-weight: 700;
    margin-bottom: 15px;
}

.phase-activities-mini {
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.activity-dot {
    width: 12px;
    height: 12px;
    background: #667eea;
    border-radius: 50%;
    animation: dotPulse 2s ease-in-out infinite;
}

.activity-dot:nth-child(2) { animation-delay: 0.2s; }
.activity-dot:nth-child(3) { animation-delay: 0.4s; }
.activity-dot:nth-child(4) { animation-delay: 0.6s; }
.activity-dot:nth-child(5) { animation-delay: 0.8s; }
.activity-dot:nth-child(6) { animation-delay: 1s; }

@keyframes dotPulse {
    0%, 100% { opacity: 0.4; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.3); }
}

/* Connection Lines */
.connection-lines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.connection-line {
    animation: dashAnimation 3s linear infinite;
}

@keyframes dashAnimation {
    to {
        stroke-dashoffset: -30;
    }
}

/* Summary Stats */
.summary-stats {
    position: absolute;
    top: 20px;
    right: 40px;
    display: flex;
    gap: 20px;
}

.stat-item-modern {
    background: white;
    border-radius: 15px;
    padding: 15px 20px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    min-width: 80px;
}

.stat-icon-modern {
    font-size: 2em;
    margin-bottom: 5px;
}

.stat-value-modern {
    font-size: 2em;
    font-weight: 800;
    color: #667eea;
    line-height: 1;
}

.stat-label-modern {
    font-size: 0.8em;
    color: #6b7280;
    margin-top: 5px;
}

/* Animations */
@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Responsive */
@media (max-width: 1024px) {
    .phase-card-modern {
        position: relative !important;
        width: auto !important;
        margin: 20px auto !important;
        max-width: 300px;
        top: auto !important;
        left: auto !important;
        right: auto !important;
        bottom: auto !important;
        transform: none !important;
    }
    
    .connection-lines {
        display: none;
    }
    
    .gear-container {
        display: none;
    }
    
    .central-hub {
        position: relative;
        transform: none;
        margin: 40px auto;
    }
    
    .summary-stats {
        position: relative;
        justify-content: center;
        margin: 40px auto;
    }
}
/* ========== SISTEMA DE ENGRANAJES ========== */

.gears-system-container {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    min-height: 100vh;
}

/* Header */
.gears-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 50px 40px;
    text-align: center;
    color: white;
}

.gears-header h1 {
    font-size: 3em;
    margin: 0 0 15px 0;
    font-weight: 800;
}

.gears-header p {
    font-size: 1.3em;
    margin: 0 0 35px 0;
    opacity: 0.95;
}

.plan-selector-gears {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.plan-btn-gear {
    padding: 15px 30px;
    background: rgba(255,255,255,0.2);
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 25px;
    color: white;
    font-weight: 700;
    font-size: 1.1em;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.plan-btn-gear:hover {
    background: rgba(255,255,255,0.3);
    transform: translateY(-3px);
}

.plan-btn-gear.selected {
    background: white;
    color: #667eea;
    transform: scale(1.1);
}

/* Canvas */
.gears-canvas {
    padding: 60px 40px;
    position: relative;
}

.gears-svg {
    width: 100%;
    max-width: 1400px;
    height: auto;
    margin: 0 auto;
    display: block;
}

/* Gear Animations */
.gear-rotating {
    animation: rotateClockwise 8s linear infinite;
    transform-origin: center;
}

.gear-reverse {
    animation: rotateCounterClockwise 8s linear infinite;
}

.gear-slow {
    animation-duration: 12s;
}

@keyframes rotateClockwise {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes rotateCounterClockwise {
    from { transform: rotate(0deg); }
    to { transform: rotate(-360deg); }
}

/* Gear Groups */
.gear-group {
    cursor: pointer;
    transition: all 0.3s ease;
}

.gear-group:hover .gear-rotating {
    animation-duration: 4s !important;
    filter: brightness(1.2) drop-shadow(0 0 20px currentColor);
}

.gear-icon {
    pointer-events: none;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}

.gear-number {
    pointer-events: none;
}

.central-gear {
    pointer-events: none;
}

.central-label {
    pointer-events: none;
}

/* Tooltip */
.gear-tooltip {
    position: fixed;
    background: white;
    border-radius: 16px;
    padding: 25px;
    box-shadow: 0 15px 50px rgba(0,0,0,0.2);
    border: 3px solid #e5e7eb;
    max-width: 350px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 1000;
}

.gear-tooltip.show {
    opacity: 1;
}

.tooltip-title {
    font-size: 1.5em;
    font-weight: 800;
    color: #1f2937;
    margin-bottom: 12px;
}

.tooltip-team {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #6b7280;
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 0.95em;
}

.tooltip-team::before {
    content: '👥';
    font-size: 1.2em;
}

.tooltip-duration {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #667eea;
    font-weight: 700;
    margin-bottom: 15px;
    font-size: 0.95em;
}

.tooltip-duration::before {
    content: '⏱️';
    font-size: 1.2em;
}

.tooltip-activities {
    background: #f9fafb;
    padding: 15px;
    border-radius: 10px;
    border-left: 4px solid #667eea;
}

.tooltip-activities strong {
    display: block;
    margin-bottom: 10px;
    color: #1f2937;
    font-size: 0.95em;
}

.tooltip-activities ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.tooltip-activities li {
    padding: 6px 0;
    padding-left: 20px;
    position: relative;
    font-size: 0.9em;
    color: #4b5563;
}

.tooltip-activities li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #667eea;
    font-weight: bold;
}

/* Responsive */
@media (max-width: 768px) {
    .gears-header h1 {
        font-size: 2em;
    }
    
    .gears-svg {
        height: 600px;
    }
    
    .gear-tooltip {
        max-width: 280px;
        padding: 20px;
    }
}

/* ========== FIX ENGRANAJES CIRCULARES ========== */

.gear-circle {
    animation: rotateGearCircle 10s linear infinite;
    transform-origin: center;
}

.gear-central {
    animation-duration: 15s;
}

@keyframes rotateGearCircle {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.gear-group:hover .gear-circle {
    animation-duration: 5s !important;
    filter: brightness(1.3) drop-shadow(0 0 25px currentColor);
}

.gear-icon {
    pointer-events: none;
    animation: counterRotate 10s linear infinite;
    transform-origin: center;
}

.central-gear .gear-icon {
    animation-duration: 15s;
}

@keyframes counterRotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(-360deg); }
}

.gear-label {
    pointer-events: none;
}
/* ========== ENGRANAJES REALISTAS ========== */

.gears-real-container {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    min-height: 100vh;
}

.gears-real-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 50px 40px;
    text-align: center;
    color: white;
}

.gears-real-header h1 {
    font-size: 3em;
    margin: 0 0 15px 0;
    font-weight: 800;
}

.gears-real-header p {
    font-size: 1.2em;
    margin: 0 0 30px 0;
}

.plan-selector-real {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.plan-btn-real {
    padding: 15px 30px;
    background: rgba(255,255,255,0.2);
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 25px;
    color: white;
    font-weight: 700;
    font-size: 1.1em;
    cursor: pointer;
    transition: all 0.3s ease;
}

.plan-btn-real:hover {
    background: rgba(255,255,255,0.3);
    transform: translateY(-3px);
}

.plan-btn-real.selected {
    background: white;
    color: #667eea;
    transform: scale(1.1);
}

/* Gears Display */
.gears-display {
    padding: 60px 40px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    max-width: 1400px;
    margin: 0 auto;
}

.gear-item {
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    transition: all 0.4s ease;
    cursor: pointer;
    position: relative;
}

.gear-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(102, 126, 234, 0.3);
}

.gear-visual {
    margin-bottom: 20px;
}

.gear-svg-item {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 5px 15px rgba(0,0,0,0.2));
}

.gear-rotate {
    animation: rotateGear 8s linear infinite;
    transform-origin: center;
}

.gear-reverse {
    animation-direction: reverse;
}

@keyframes rotateGear {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.gear-item:hover .gear-rotate {
    animation-duration: 4s;
}

.gear-info {
    text-align: center;
}

.gear-number-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3em;
    font-weight: 800;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.gear-info h3 {
    margin: 0 0 8px 0;
    font-size: 1.5em;
    color: #1f2937;
    font-weight: 700;
}

.gear-info p {
    margin: 0;
    color: #6b7280;
    font-weight: 600;
}

/* Tooltip */
.gear-tooltip-real {
    position: fixed;
    background: white;
    border-radius: 16px;
    padding: 25px;
    box-shadow: 0 15px 50px rgba(0,0,0,0.25);
    border: 3px solid #e5e7eb;
    max-width: 350px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 1000;
}

.gear-tooltip-real.show {
    opacity: 1;
}
/* ========== ENGRANAJES MECÁNICOS ========== */

.mechanical-system {
    background: #0f172a;
    min-height: 100vh;
}

.mechanical-header {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    padding: 50px 40px;
    text-align: center;
    color: white;
    border-bottom: 2px solid #334155;
}

.mechanical-header h1 {
    font-size: 3em;
    margin: 0 0 15px 0;
    font-weight: 800;
    text-shadow: 0 0 20px rgba(102, 126, 234, 0.5);
}

.mechanical-header p {
    font-size: 1.2em;
    margin: 0 0 30px 0;
    opacity: 0.9;
}

.plan-selector-mech {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.plan-btn-mech {
    padding: 15px 30px;
    background: rgba(255,255,255,0.1);
    border: 2px solid rgba(255,255,255,0.2);
    border-radius: 25px;
    color: white;
    font-weight: 700;
    font-size: 1.1em;
    cursor: pointer;
    transition: all 0.3s ease;
}

.plan-btn-mech:hover {
    background: rgba(255,255,255,0.2);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
}

.plan-btn-mech.selected {
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-color: #667eea;
    transform: scale(1.1);
    box-shadow: 0 10px 40px rgba(102, 126, 234, 0.5);
}

/* Canvas */
.mechanical-canvas {
    padding: 40px;
}

.mechanical-canvas svg {
    width: 100%;
    max-width: 1400px;
    height: auto;
    margin: 0 auto;
    display: block;
    filter: drop-shadow(0 10px 40px rgba(0,0,0,0.5));
}

/* Gears */
.mech-gear {
    cursor: pointer;
    transition: all 0.3s ease;
}

.gear-spin {
    animation: spinGear 12s linear infinite;
    transform-origin: center;
}

.gear-reverse {
    animation-direction: reverse;
    animation-duration: 10s;
}

@keyframes spinGear {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.mech-gear:hover .gear-spin {
    animation-duration: 6s !important;
}

.mech-gear:hover {
    filter: brightness(1.3) drop-shadow(0 0 30px currentColor);
}

/* Tooltip */
.mech-tooltip {
    position: fixed;
    background: rgba(30, 41, 59, 0.98);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 25px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
    border: 2px solid rgba(255,255,255,0.1);
    max-width: 350px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 1000;
    color: white;
}

.mech-tooltip.show {
    opacity: 1;
}
/* ========== ENGRANAJES ESTÁTICOS CON ROTACIÓN LENTA ========== */

.static-gears-container {
    background: #0f172a;
    min-height: 100vh;
}

.static-header {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    padding: 50px 40px;
    text-align: center;
    color: white;
}

.static-header h1 {
    font-size: 3em;
    margin: 0 0 15px 0;
    font-weight: 800;
}

.static-header p {
    font-size: 1.2em;
    margin: 0 0 30px 0;
}

/* Plan Info Banner */
.plan-info-banner {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(139, 92, 246, 0.2));
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 25px;
    margin: 0 40px 30px 40px;
    animation: slideInDown 0.5s ease;
}

.plan-info-content {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 15px;
}

.plan-legend {
    display: flex;
    gap: 25px;
    justify-content: center;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: white;
    font-size: 0.9em;
    font-weight: 600;
}

.legend-indicator {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 0.3);
    position: relative;
}

.legend-indicator.active {
    background: linear-gradient(135deg, #60a5fa, #3b82f6);
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.6);
    animation: legendPulse 2s ease-in-out infinite;
}

.legend-indicator.inactive {
    background: linear-gradient(135deg, #64748b, #475569);
    opacity: 0.5;
}

@keyframes legendPulse {
    0%, 100% {
        box-shadow: 0 0 15px rgba(59, 130, 246, 0.6);
    }
    50% {
        box-shadow: 0 0 25px rgba(59, 130, 246, 0.9);
    }
}

/* Puntos de contacto mecánico */
.contact-point {
    animation: contactPulse 2s ease-in-out infinite;
}

@keyframes contactPulse {
    0%, 100% {
        opacity: 0.3;
        r: 8;
    }
    50% {
        opacity: 0.6;
        r: 10;
    }
}

.plan-info-icon {
    font-size: 3em;
    animation: bounce 2s ease-in-out infinite;
}

.plan-info-text {
    flex: 1;
    color: white;
}

.plan-info-text h3 {
    font-size: 1.5em;
    margin: 0 0 8px 0;
    font-weight: 800;
}

.plan-info-text p {
    font-size: 1em;
    margin: 0;
    opacity: 0.9;
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.plan-selector-static {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.plan-btn-static {
    padding: 15px 30px;
    background: rgba(255,255,255,0.1);
    border: 2px solid rgba(255,255,255,0.2);
    border-radius: 25px;
    color: white;
    font-weight: 700;
    font-size: 1.1em;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.plan-btn-static .gear-count {
    font-size: 0.75em;
    opacity: 0.8;
    font-weight: 500;
}

.plan-btn-static:hover {
    background: rgba(255,255,255,0.2);
    transform: translateY(-3px);
}

.plan-btn-static.selected {
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-color: #667eea;
    transform: scale(1.1);
}

/* Canvas */
.static-canvas {
    padding: 60px 40px;
}

.static-canvas svg {
    width: 100%;
    max-width: 1200px;
    height: auto;
    margin: 0 auto;
    display: block;
}

/* Gears - SOLO ROTAN SOBRE SU EJE */
.static-gear {
    cursor: pointer;
    transition: all 0.6s ease;
}

/* Engranaje ACTIVO - Brillante y colorido */
.static-gear.gear-active {
    pointer-events: auto;
    transition: all 0.6s ease;
}

/* Seguridad con transición de tamaño suave */
#gear-security g[transform] {
    transition: transform 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.static-gear.gear-active:hover {
    transform: scale(1.08);
}

/* Intensidades de servicio */
.static-gear.intensity-low {
    /* Servicio mínimo - colores muy degradados */
}

.static-gear.intensity-low .gear-rotation {
    animation-duration: 50s; /* Gira muy lento */
}

.static-gear.intensity-medium {
    /* Servicio medio */
}

.static-gear.intensity-medium .gear-rotation {
    animation-duration: 35s;
}

.static-gear.intensity-high {
    /* Servicio alto */
}

.static-gear.intensity-high .gear-rotation {
    animation-duration: 25s;
}

.static-gear.intensity-full {
    /* Servicio completo - máxima intensidad */
}

.static-gear.intensity-full .gear-rotation {
    animation-duration: 20s; /* Gira rápido */
}

.static-gear.gear-active .gear-rotation {
    animation-duration: 30s; /* Default */
}

/* Engranaje INACTIVO - Atenuado pero visible */
.static-gear.gear-inactive {
    opacity: 0.35;
    filter: grayscale(0.7) brightness(0.6);
    pointer-events: auto;
}

.static-gear.gear-inactive:hover {
    opacity: 0.5;
    filter: grayscale(0.5) brightness(0.8);
}

.static-gear.gear-inactive .gear-rotation {
    animation-duration: 60s; /* Gira más lento */
}

/* Conexiones */
.gear-connection {
    transition: all 0.6s ease;
}

.connection-active {
    stroke: #60a5fa !important;
    opacity: 0.7 !important;
    stroke-width: 5;
    filter: drop-shadow(0 0 8px rgba(96, 165, 250, 0.6));
}

.connection-inactive {
    stroke: #334155 !important;
    opacity: 0.2 !important;
    stroke-width: 3;
}

.gear-rotation {
    animation: slowRotate 30s linear infinite;
    transform-origin: 0 0;
}

.gear-reverse {
    animation-direction: reverse;
    animation-duration: 25s;
}

@keyframes slowRotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.static-gear:hover .gear-rotation {
    animation-duration: 15s !important;
}

.static-gear:hover circle {
    filter: brightness(1.3);
}

/* Plan-specific gear effects */
.static-canvas[data-plan="essential"] .static-gear {
    filter: grayscale(0.3) brightness(0.9);
}

.static-canvas[data-plan="essential"] .static-gear:hover {
    filter: grayscale(0) brightness(1.1);
}

.static-canvas[data-plan="standard"] .static-gear {
    filter: drop-shadow(0 0 10px rgba(59, 130, 246, 0.5));
}

.static-canvas[data-plan="standard"] .static-gear .gear-rotation {
    animation-duration: 25s !important;
}

.static-canvas[data-plan="ultra"] .static-gear {
    filter: drop-shadow(0 0 15px rgba(139, 92, 246, 0.6));
}

.static-canvas[data-plan="ultra"] .static-gear .gear-rotation {
    animation-duration: 20s !important;
}

.static-canvas[data-plan="ultra"] .static-gear:hover {
    filter: drop-shadow(0 0 25px rgba(139, 92, 246, 0.9));
}

.static-canvas[data-plan="premium"] .static-gear {
    filter: drop-shadow(0 0 20px rgba(251, 191, 36, 0.8));
    animation: premiumPulse 2s ease-in-out infinite;
}

.static-canvas[data-plan="premium"] .static-gear .gear-rotation {
    animation-duration: 15s !important;
}

.static-canvas[data-plan="premium"] .static-gear:hover {
    filter: drop-shadow(0 0 30px rgba(251, 191, 36, 1)) drop-shadow(0 0 50px rgba(255, 215, 0, 0.6));
}

@keyframes premiumPulse {
    0%, 100% {
        filter: drop-shadow(0 0 20px rgba(251, 191, 36, 0.8));
    }
    50% {
        filter: drop-shadow(0 0 30px rgba(251, 191, 36, 1));
    }
}

/* Plan-specific button styles */
.plan-btn-static[data-plan="essential"].selected {
    background: linear-gradient(135deg, #94a3b8, #64748b);
    border-color: #94a3b8;
}

.plan-btn-static[data-plan="standard"].selected {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    border-color: #3b82f6;
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.5);
}

.plan-btn-static[data-plan="ultra"].selected {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
    border-color: #8b5cf6;
    box-shadow: 0 10px 30px rgba(139, 92, 246, 0.5);
}

.plan-btn-static[data-plan="premium"].selected {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    border-color: #fbbf24;
    box-shadow: 0 10px 30px rgba(251, 191, 36, 0.6);
    animation: premiumButtonGlow 2s ease-in-out infinite;
}

@keyframes premiumButtonGlow {
    0%, 100% {
        box-shadow: 0 10px 30px rgba(251, 191, 36, 0.6);
    }
    50% {
        box-shadow: 0 10px 40px rgba(251, 191, 36, 0.9), 0 0 20px rgba(255, 215, 0, 0.5);
    }
}

/* Tooltip */
.static-tooltip {
    position: fixed;
    background: rgba(30, 41, 59, 0.98);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 25px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
    border: 2px solid rgba(255,255,255,0.1);
    max-width: 350px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 1000;
    color: white;
}

.static-tooltip.show {
    opacity: 1;
}

/* ========== CONFIGURADOR ========== */
/* ========== CONFIGURADOR EMx + AWS ========== */

.config-guide-container {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 40px 20px;
}

/* Hero */
.config-hero {
    text-align: center;
    color: white;
    margin-bottom: 40px;
    animation: fadeInDown 0.6s ease;
}

.config-hero h1 {
    font-size: 3em;
    margin: 0 0 15px 0;
    font-weight: 800;
    text-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.config-hero p {
    font-size: 1.3em;
    opacity: 0.95;
}

/* Selector */
.config-selector {
    max-width: 1200px;
    margin: 0 auto 40px;
    animation: fadeInUp 0.6s ease 0.2s both;
}

.selector-card {
    background: white;
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.selector-card h2 {
    text-align: center;
    font-size: 2em;
    margin: 0 0 30px 0;
    color: #1f2937;
    font-weight: 700;
}

.plan-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.plan-option {
    background: linear-gradient(135deg, #f9fafb, #f3f4f6);
    border: 3px solid #e5e7eb;
    border-radius: 20px;
    padding: 30px 20px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
}

.plan-option:hover {
    transform: translateY(-10px) scale(1.05);
    box-shadow: 0 20px 40px rgba(102, 126, 234, 0.3);
    border-color: #667eea;
}

.plan-option.selected {
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-color: #667eea;
    transform: scale(1.1);
    box-shadow: 0 20px 50px rgba(102, 126, 234, 0.5);
}

.plan-icon {
    font-size: 4em;
    margin-bottom: 15px;
    animation: bounce 2s ease-in-out infinite;
}

.plan-option.selected .plan-icon {
    animation: spin 1s ease-in-out;
}

.plan-name {
    font-size: 1.5em;
    font-weight: 800;
    margin-bottom: 8px;
    color: #1f2937;
}

.plan-option.selected .plan-name {
    color: white;
}

.plan-tagline {
    font-size: 0.9em;
    color: #6b7280;
}

.plan-option.selected .plan-tagline {
    color: rgba(255,255,255,0.9);
}

/* Results */
.config-results {
    max-width: 1200px;
    margin: 0 auto;
    animation: fadeInUp 0.6s ease;
}

.selected-plan-info {
    background: white;
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    animation: slideInLeft 0.6s ease;
}

/* Support Options */
.support-options {
    background: white;
    border-radius: 24px;
    padding: 40px;
    margin-bottom: 30px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.support-options h2 {
    text-align: center;
    font-size: 2em;
    margin: 0 0 30px 0;
    color: #1f2937;
    font-weight: 700;
}

.support-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.support-card {
    background: #f9fafb;
    border: 3px solid #e5e7eb;
    border-radius: 16px;
    padding: 25px;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.support-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: #e5e7eb;
    transition: all 0.4s ease;
}

.support-card.valid {
    border-color: #10b981;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(5, 150, 105, 0.05));
    animation: validPulse 0.6s ease;
}

.support-card.valid::before {
    background: linear-gradient(90deg, #10b981, #34d399);
}

.support-card.invalid {
    border-color: #ef4444;
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.1), rgba(220, 38, 38, 0.05));
    opacity: 0.6;
    animation: shake 0.5s ease;
}

.support-card.invalid::before {
    background: linear-gradient(90deg, #ef4444, #f87171);
}

.support-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

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

.support-name {
    font-size: 1.3em;
    font-weight: 700;
    color: #1f2937;
}

.support-status {
    text-align: center;
    padding: 12px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 1.1em;
    margin-bottom: 15px;
}

.support-card.valid .support-status {
    background: #10b981;
    color: white;
}

.support-card.valid .support-status::before {
    content: '✅ COMPATIBLE';
}

.support-card.invalid .support-status {
    background: #ef4444;
    color: white;
}

.support-card.invalid .support-status::before {
    content: '❌ NO COMPATIBLE';
}

.support-description {
    font-size: 0.9em;
    color: #6b7280;
    line-height: 1.5;
}

/* Summary */
.config-summary {
    background: linear-gradient(135deg, #1f2937, #111827);
    border-radius: 20px;
    padding: 35px;
    color: white;
    box-shadow: 0 20px 60px rgba(0,0,0,0.4);
    animation: slideInUp 0.6s ease;
}

/* Animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes spin {
    from {
        transform: rotate(0deg) scale(1);
    }
    to {
        transform: rotate(360deg) scale(1.2);
    }
}

@keyframes validPulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes shake {
    0%, 100% {
        transform: translateX(0);
    }
    25% {
        transform: translateX(-10px);
    }
    75% {
        transform: translateX(10px);
    }
}

/* Utility */
.hidden {
    display: none !important;
}

/* Responsive */
@media (max-width: 768px) {
    .config-hero h1 {
        font-size: 2em;
    }
    
    .plan-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .support-grid {
        grid-template-columns: 1fr;
    }
}
