/* Estilos adicionales específicos de Microsoft 365 Copilot */

/* Efectos de glow y animaciones inspiradas en Copilot */
@keyframes copilot-pulse {
    0%, 100% {
        box-shadow: 0 0 20px rgba(139, 95, 191, 0.3);
    }
    50% {
        box-shadow: 0 0 30px rgba(139, 95, 191, 0.6);
    }
}

/* Hover effects para elementos interactivos */
.article-card:hover,
.contact-link:hover,
.cta-button:hover {
    animation: copilot-pulse 2s infinite;
}

/* Gradiente animado para el hero */
@keyframes gradient-shift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.hero {
    background: linear-gradient(-45deg, #8b5fbf, #0078d4, #00bcf2, #8b5fbf);
    background-size: 400% 400%;
    animation: gradient-shift 15s ease infinite;
}

/* Efectos de cristal para elementos flotantes */
.glassmorphism {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(139, 95, 191, 0.1);
}

/* Estilo de loading inspirado en Copilot */
.copilot-loading {
    display: inline-block;
    width: 24px;
    height: 24px;
    border: 3px solid rgba(139, 95, 191, 0.3);
    border-radius: 50%;
    border-top-color: var(--primary-color);
    animation: spin 1s ease-in-out infinite;
}

/* Efectos de hover mejorados */
.nav-link:hover {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Estilo para code blocks inspirado en VS Code */
pre code {
    background: var(--background-dark) !important;
    color: #e5e7eb !important;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
}

/* Animaciones de entrada mejoradas */
@keyframes fadeInUpCopilot {
    from {
        opacity: 0;
        transform: translateY(40px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.article-card {
    animation: fadeInUpCopilot 0.6s ease-out;
}

/* Estilo para tooltips */
.tooltip {
    position: relative;
    cursor: help;
}

.tooltip::before {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--background-dark);
    color: white;
    padding: 8px 12px;
    border-radius: var(--border-radius);
    font-size: 0.9rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 1000;
}

.tooltip:hover::before {
    opacity: 1;
    visibility: visible;
}

/* Estilo para badges */
.copilot-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--gradient);
    color: white;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    box-shadow: 0 4px 12px rgba(139, 95, 191, 0.3);
}

/* Responsive mejoras para móviles */
@media (max-width: 768px) {
    .hero {
        background-size: 300% 300%;
    }
    
    .copilot-glow {
        box-shadow: 0 0 15px rgba(139, 95, 191, 0.2);
    }
    
    .copilot-glow:hover {
        box-shadow: 0 0 20px rgba(139, 95, 191, 0.4);
    }
}

/* Dark mode para Copilot */
.dark-mode {
    --primary-color: #a78bfa;
    --primary-dark: #8b5fbf;
    --secondary-color: #60a5fa;
    --background: #1a1a1a;
    --background-secondary: #2d2d2d;
    --text-primary: #f3f4f6;
    --text-secondary: #d1d5db;
}

.dark-mode .hero {
    background: linear-gradient(-45deg, #a78bfa, #60a5fa, #34d399, #a78bfa);
    background-size: 400% 400%;
}

/* Estilos para elementos destacados */
.highlight-copilot {
    background: linear-gradient(135deg, rgba(139, 95, 191, 0.1), rgba(0, 120, 212, 0.1));
    border-left: 4px solid var(--primary-color);
    padding: 1rem;
    border-radius: var(--border-radius);
    margin: 1rem 0;
}

/* Animación para iconos flotantes */
@keyframes float-gentle {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    33% {
        transform: translateY(-10px) rotate(1deg);
    }
    66% {
        transform: translateY(5px) rotate(-1deg);
    }
}

.floating-icons .icon {
    animation: float-gentle 8s ease-in-out infinite;
}

.floating-icons .icon:nth-child(odd) {
    animation-direction: reverse;
}

/* Efectos para botones secundarios */
.btn-secondary-copilot {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius);
    font-weight: 600;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.btn-secondary-copilot::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--gradient);
    transition: left 0.3s ease;
    z-index: -1;
}

.btn-secondary-copilot:hover::before {
    left: 0;
}

.btn-secondary-copilot:hover {
    color: white;
    border-color: transparent;
}
