﻿/* Agregando loading screen tecnológico */

.tech-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #334155 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease-out;
}

    .tech-loader.fade-out {
        opacity: 0;
        pointer-events: none;
    }

.loader-container {
    text-align: center;
    color: #00d4ff;
}

.circuit-board {
    width: 200px;
    height: 200px;
    position: relative;
    margin: 0 auto 30px;
}

.circuit-line {
    position: absolute;
    background: linear-gradient(90deg, transparent, #00d4ff, transparent);
    animation: circuit-flow 2s infinite;
}

    .circuit-line.horizontal {
        height: 2px;
        width: 100%;
        top: 50%;
    }

    .circuit-line.vertical {
        width: 2px;
        height: 100%;
        left: 50%;
    }

    .circuit-line.diagonal1 {
        width: 141%;
        height: 2px;
        top: 50%;
        left: -20%;
        transform: rotate(45deg);
        animation-delay: 0.5s;
    }

    .circuit-line.diagonal2 {
        width: 141%;
        height: 2px;
        top: 50%;
        left: -20%;
        transform: rotate(-45deg);
        animation-delay: 1s;
    }

.circuit-node {
    position: absolute;
    width: 12px;
    height: 12px;
    background: #00d4ff;
    border-radius: 50%;
    box-shadow: 0 0 20px #00d4ff;
    animation: pulse-node 1.5s infinite;
}

.node-1 {
    top: 20%;
    left: 20%;
    animation-delay: 0.2s;
}

.node-2 {
    top: 20%;
    right: 20%;
    animation-delay: 0.4s;
}

.node-3 {
    bottom: 20%;
    left: 20%;
    animation-delay: 0.6s;
}

.node-4 {
    bottom: 20%;
    right: 20%;
    animation-delay: 0.8s;
}

.node-5 {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: 1s;
}

.loading-text {
    font-family: 'Courier New', monospace;
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 20px;
    animation: typing 3s infinite;
}

.loading-progress {
    width: 300px;
    height: 4px;
    background: rgba(0, 212, 255, 0.2);
    border-radius: 2px;
    overflow: hidden;
    margin: 0 auto;
}

.loading-bar {
    height: 100%;
    background: linear-gradient(90deg, #00d4ff, #0099cc);
    width: 0%;
    animation: loading-fill 3s ease-out forwards;
}

@keyframes circuit-flow {
    0% {
        opacity: 0;
    }

    50% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}

@keyframes pulse-node {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.5);
        opacity: 0.7;
    }
}

@keyframes typing {
    0%, 100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

@keyframes loading-fill {
    0% {
        width: 0%;
    }

    100% {
        width: 100%;
    }
}


/* Agregando estilos para sección de desarrollos dinámicos */
.development-showcase {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

.dev-item {
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    border-left: 5px solid var(--primary);
    position: relative;
    overflow: hidden;
}

    .dev-item:hover {
        transform: translateY(-10px);
        box-shadow: 0 20px 40px rgba(0,0,0,0.15);
    }

    .dev-item::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 3px;
        background: var(--gradient-accent);
    }

.dev-status {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
}

.status-active {
    background: #dcfce7;
    color: #166534;
}

.status-completed {
    background: #dbeafe;
    color: #1e40af;
}

.status-planning {
    background: #fef3c7;
    color: #92400e;
}

.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 15px;
}

.tech-badge {
    padding: 4px 12px;
    background: var(--gradient-primary);
    color: white;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
}

/* TEMA 1: Tech Innovation (Azul Cyan + Naranja) */
.theme-tech {
    --primary: #0891b2;
    --primary-dark: #164e63;
    --accent: #f59e0b;
    --gradient-primary: linear-gradient(135deg, #0891b2 0%, #164e63 100%);
    --gradient-accent: linear-gradient(135deg, #f59e0b 0%, #ea580c 100%);
    --gradient-hero: linear-gradient(135deg, #0891b2 0%, #164e63 70%, #f59e0b 100%);
}

/* TEMA 2: Mercado Pago Inspired (Azul + Verde) */
.theme-mercadopago {
    --primary: #009ee3;
    --primary-dark: #0066cc;
    --accent: #00a650;
    --gradient-primary: linear-gradient(135deg, #009ee3 0%, #0066cc 100%);
    --gradient-accent: linear-gradient(135deg, #00a650 0%, #00d084 100%);
    --gradient-hero: linear-gradient(135deg, #009ee3 0%, #0066cc 70%, #00a650 100%);
}

/* TEMA 3: Professional Dark (Gris + Púrpura) */
.theme-professional {
    --primary: #6366f1;
    --primary-dark: #4338ca;
    --accent: #8b5cf6;
    --gradient-primary: linear-gradient(135deg, #6366f1 0%, #4338ca 100%);
    --gradient-accent: linear-gradient(135deg, #8b5cf6 0%, #a855f7 100%);
    --gradient-hero: linear-gradient(135deg, #1f2937 0%, #6366f1 70%, #8b5cf6 100%);
}

/* TEMA 4: Creative Energy (Naranja + Rojo) */
.theme-creative {
    --primary: #ea580c;
    --primary-dark: #dc2626;
    --accent: #f59e0b;
    --gradient-primary: linear-gradient(135deg, #ea580c 0%, #dc2626 100%);
    --gradient-accent: linear-gradient(135deg, #f59e0b 0%, #fbbf24 100%);
    --gradient-hero: linear-gradient(135deg, #ea580c 0%, #dc2626 70%, #f59e0b 100%);
}

/* TEMA 5: Elegant Minimal (Verde + Teal) */
.theme-elegant {
    --primary: #059669;
    --primary-dark: #047857;
    --accent: #0d9488;
    --gradient-primary: linear-gradient(135deg, #059669 0%, #047857 100%);
    --gradient-accent: linear-gradient(135deg, #0d9488 0%, #14b8a6 100%);
    --gradient-hero: linear-gradient(135deg, #059669 0%, #047857 70%, #0d9488 100%);
}

/* Estilos base que usan las variables CSS */
.gradient-bg {
    background: var(--gradient-primary);
}

.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.card-gradient {
    background: var(--gradient-accent);
    border: none;
}

.btn-gradient {
    background: var(--gradient-accent);
    border: none;
    color: white;
    transition: all 0.3s ease;
}

    .btn-gradient:hover {
        background: var(--gradient-primary);
        color: white;
        transform: translateY(-2px);
    }

.hero-section {
    background: var(--gradient-hero);
    min-height: 100vh;
}

.section-divider {
    background: var(--gradient-accent);
    height: 4px;
    border: none;
}

.text-primary-custom {
    color: var(--primary) !important;
}

.bg-primary-custom {
    background-color: var(--primary) !important;
}

/* Selector de temas */
.theme-selector {
    position: fixed;
    top: 100px;
    right: 20px;
    z-index: 1050;
    background: white;
    border-radius: 10px;
    padding: 15px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    max-width: 250px;
}

.theme-option {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 3px solid transparent;
    cursor: pointer;
    margin: 5px;
    transition: all 0.3s ease;
}

    .theme-option:hover {
        transform: scale(1.1);
        border-color: #333;
    }

    .theme-option.active {
        border-color: #333;
        transform: scale(1.2);
    }

.theme-tech-preview {
    background: linear-gradient(135deg, #0891b2 0%, #f59e0b 100%);
}

.theme-mercadopago-preview {
    background: linear-gradient(135deg, #009ee3 0%, #00a650 100%);
}

.theme-professional-preview {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
}

.theme-creative-preview {
    background: linear-gradient(135deg, #ea580c 0%, #f59e0b 100%);
}

.theme-elegant-preview {
    background: linear-gradient(135deg, #059669 0%, #0d9488 100%);
}

/* */

/* Estilo base */
.navbar-brand {
    color: var(--primary-dark);
    transition: all 0.3s ease;
}

    .navbar-brand:hover {
        color: var(--primary);
    }

    /* Link activo */
    .navbar-brand.active {
        color: var(--primary) !important;
        font-weight: bold;
        border-bottom: 2px solid var(--accent);
        padding-bottom: 2px;
    }

    /* Opcional: resaltar más con un fondo */
    .navbar-brand.active {
        background: var(--gradient-accent);
        color: white !important;
        border-radius: 6px;
        padding: 6px 12px;
    }
