/**
 * BitForward Typography System
 * Sistema de tipografía moderna y futurista para la marca BitForward
 */

/* Importar fuentes modernas */
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;500;600;700;800;900&family=Exo+2:wght@300;400;500;600;700;800&family=Space+Grotesk:wght@300;400;500;600;700&display=swap');

/* Variables de tipografía */
:root {
    /* Fuentes principales */
    --bf-font-brand: 'Orbitron', 'Exo 2', monospace;        /* Para el logo BitForward */
    --bf-font-heading: 'Space Grotesk', 'Exo 2', sans-serif; /* Para títulos */
    --bf-font-body: 'Exo 2', -apple-system, BlinkMacSystemFont, sans-serif; /* Para texto */
    
    /* Tamaños de fuente */
    --bf-text-xs: 0.75rem;
    --bf-text-sm: 0.875rem;
    --bf-text-base: 1rem;
    --bf-text-lg: 1.125rem;
    --bf-text-xl: 1.25rem;
    --bf-text-2xl: 1.5rem;
    --bf-text-3xl: 1.875rem;
    --bf-text-4xl: 2.25rem;
    --bf-text-5xl: 3rem;
    --bf-text-6xl: 3.75rem;
    
    /* Colores de texto BitForward */
    --bf-text-primary: #1e3c72;
    --bf-text-secondary: #4A90E2;
    --bf-text-accent: #FFD700;
    --bf-text-white: #FFFFFF;
    --bf-text-muted: #6B7280;
}

/* Clase base para branding BitForward */
.bitforward-brand {
    font-family: var(--bf-font-brand);
    font-weight: 700;
    background: linear-gradient(135deg, 
        #4A90E2 0%, 
        #FFD700 50%, 
        #C0C0C0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 2px 10px rgba(74, 144, 226, 0.3);
    position: relative;
}

.bitforward-brand::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #4A90E2 0%, #7B68EE 50%, #FFD700 100%);
    opacity: 0;
    filter: blur(10px);
    transition: opacity 0.3s ease;
    z-index: -1;
}

.bitforward-brand:hover::before {
    opacity: 0.2;
}

/* Variaciones de tamaño para el logo */
.bitforward-brand.size-xs { font-size: var(--bf-text-sm); }
.bitforward-brand.size-sm { font-size: var(--bf-text-lg); }
.bitforward-brand.size-md { font-size: var(--bf-text-2xl); }
.bitforward-brand.size-lg { font-size: var(--bf-text-4xl); }
.bitforward-brand.size-xl { font-size: var(--bf-text-5xl); }
.bitforward-brand.size-2xl { font-size: var(--bf-text-6xl); }

/* Efecto de animación para el texto */
.bitforward-brand.animated {
    background-size: 200% 200%;
    animation: gradientShift 3s ease infinite;
}

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

/* Estilo futurista para títulos */
.bitforward-heading {
    font-family: var(--bf-font-heading);
    font-weight: 600;
    color: var(--bf-text-primary);
    letter-spacing: -0.025em;
    line-height: 1.2;
    position: relative;
}

.bitforward-heading.glow {
    text-shadow: 
        0 0 10px rgba(74, 144, 226, 0.5),
        0 0 20px rgba(74, 144, 226, 0.3),
        0 0 30px rgba(74, 144, 226, 0.2);
}

/* Texto con efecto holográfico */
.bitforward-holo {
    font-family: var(--bf-font-brand);
    background: linear-gradient(45deg, 
        #4A90E2 0%, 
        #7B68EE 25%, 
        #FFD700 50%, 
        #7B68EE 75%, 
        #4A90E2 100%);
    background-size: 400% 400%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: hologram 2s ease-in-out infinite;
    filter: drop-shadow(0 0 10px rgba(74, 144, 226, 0.4));
}

@keyframes hologram {
    0%, 100% { background-position: 0% 50%; }
    25% { background-position: 100% 0%; }
    50% { background-position: 100% 100%; }
    75% { background-position: 0% 100%; }
}

/* Texto con efecto de escritura */
.bitforward-typewriter {
    font-family: var(--bf-font-brand);
    color: var(--bf-text-secondary);
    border-right: 2px solid var(--bf-text-accent);
    animation: typewriter 3s steps(11) 1s both, blinkCursor 1s step-end infinite;
    white-space: nowrap;
    overflow: hidden;
}

@keyframes typewriter {
    from { width: 0; }
    to { width: 100%; }
}

@keyframes blinkCursor {
    0%, 50% { border-color: var(--bf-text-accent); }
    51%, 100% { border-color: transparent; }
}

/* Texto con efecto neon */
.bitforward-neon {
    font-family: var(--bf-font-brand);
    color: var(--bf-text-white);
    text-shadow: 
        0 0 5px currentColor,
        0 0 10px currentColor,
        0 0 15px currentColor,
        0 0 20px #4A90E2,
        0 0 35px #4A90E2,
        0 0 40px #4A90E2;
    animation: neonFlicker 2s ease-in-out infinite alternate;
}

@keyframes neonFlicker {
    0%, 19%, 21%, 23%, 25%, 54%, 56%, 100% {
        text-shadow: 
            0 0 5px currentColor,
            0 0 10px currentColor,
            0 0 15px currentColor,
            0 0 20px #4A90E2,
            0 0 35px #4A90E2,
            0 0 40px #4A90E2;
    }
    20%, 24%, 55% {
        text-shadow: none;
    }
}

/* Efecto especial para texto de carga */
.bitforward-loading {
    font-family: var(--bf-font-brand);
    background: linear-gradient(90deg, 
        #4A90E2 0%, 
        #FFD700 33%, 
        #C0C0C0 66%, 
        #FFD700 100%);
    background-size: 300% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: loadingWave 2s ease-in-out infinite;
    text-shadow: 0 0 20px rgba(74, 144, 226, 0.5);
    position: relative;
}

.bitforward-loading::after {
    content: '';
    animation: loadingDots 1.5s infinite;
    position: absolute;
}

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

@keyframes loadingDots {
    0%, 20% { content: '.'; }
    40% { content: '..'; }
    60% { content: '...'; }
    80%, 100% { content: ''; }
}

/* Texto premium con gradiente dorado */
.bitforward-premium {
    font-family: var(--bf-font-brand);
    font-weight: 800;
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 50%, #FF8C00 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 2px 10px rgba(255, 215, 0, 0.3);
    position: relative;
}

.bitforward-premium::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, transparent 30%, rgba(255, 255, 255, 0.5) 50%, transparent 70%);
    animation: shine 3s ease-in-out infinite;
}

@keyframes shine {
    0% { transform: translateX(-100%); }
    50% { transform: translateX(100%); }
    100% { transform: translateX(100%); }
}

/* Texto con efecto de cristal */
.bitforward-glass {
    font-family: var(--bf-font-heading);
    color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    background: rgba(74, 144, 226, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

/* Utilidades de texto */
.bf-text-shadow-sm { text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1); }
.bf-text-shadow-md { text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2); }
.bf-text-shadow-lg { text-shadow: 0 4px 8px rgba(0, 0, 0, 0.3); }

.bf-letter-spacing-tight { letter-spacing: -0.05em; }
.bf-letter-spacing-normal { letter-spacing: 0; }
.bf-letter-spacing-wide { letter-spacing: 0.05em; }
.bf-letter-spacing-wider { letter-spacing: 0.1em; }

/* Responsive typography */
@media (max-width: 768px) {
    .bitforward-brand.size-2xl { font-size: var(--bf-text-4xl); }
    .bitforward-brand.size-xl { font-size: var(--bf-text-3xl); }
    .bitforward-brand.size-lg { font-size: var(--bf-text-2xl); }
}
