/* Estilos para el logo minimalista de Aurora Cybersecurity */

/* Nuevo texto animado de Aurora */
.aurora-text-logo {
    position: relative;
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 2.5rem;
    letter-spacing: 0.1em;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.aurora-text-container {
    display: flex;
    align-items: center;
    position: relative;
    z-index: 2;
}

.aurora-letter {
    position: relative;
    display: inline-block;
    color: #F8FAFC;
    text-shadow: 0 0 20px rgba(99, 102, 241, 0.3);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    animation: aurora-letter-float 6s ease-in-out infinite;
    animation-delay: calc(var(--letter-index, 0) * 0.1s);
}

.aurora-letter:nth-child(1) { --letter-index: 0; }
.aurora-letter:nth-child(2) { --letter-index: 1; }
.aurora-letter:nth-child(3) { --letter-index: 2; }
.aurora-letter:nth-child(4) { --letter-index: 3; }
.aurora-letter:nth-child(5) { --letter-index: 4; }
.aurora-letter:nth-child(6) { --letter-index: 5; }

.aurora-letter::before {
    content: attr(data-letter);
    position: absolute;
    top: 0;
    left: 0;
    color: transparent;
    background: linear-gradient(90deg, #6366F1 0%, #8B5CF6 50%, #EC4899 100%);
    -webkit-background-clip: text;
    background-clip: text;
    opacity: 0;
    transform: translateY(-100%);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.aurora-letter::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #6366F1 0%, #8B5CF6 100%);
    transform: translateX(-50%);
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
}

.aurora-glow-line {
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, #6366F1, #8B5CF6, transparent);
    opacity: 0.6;
    transform: scaleX(0);
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Hover effects */
.aurora-text-logo:hover .aurora-letter {
    transform: translateY(-2px) scale(1.05);
    text-shadow: 0 0 30px rgba(99, 102, 241, 0.6);
}

.aurora-text-logo:hover .aurora-letter::before {
    opacity: 1;
    transform: translateY(0);
}

.aurora-text-logo:hover .aurora-letter::after {
    width: 100%;
    opacity: 1;
}

.aurora-text-logo:hover .aurora-glow-line {
    transform: scaleX(1);
}

/* Animaciones únicas para cada letra */
@keyframes aurora-letter-float {
    0%, 100% { 
        transform: translateY(0) rotateX(0deg); 
    }
    25% { 
        transform: translateY(-1px) rotateX(2deg); 
    }
    50% { 
        transform: translateY(-2px) rotateX(0deg); 
    }
    75% { 
        transform: translateY(-1px) rotateX(-2deg); 
    }
}

/* Efecto de escaneo de letras */
@keyframes aurora-letter-scan {
    0% {
        transform: translateY(0) scale(1);
        filter: brightness(1);
    }
    50% {
        transform: translateY(-3px) scale(1.1);
        filter: brightness(1.3);
    }
    100% {
        transform: translateY(0) scale(1);
        filter: brightness(1);
    }
}

/* Efecto de ondas de luz */
@keyframes aurora-light-wave {
    0% {
        transform: translateX(-100%) scaleX(0);
        opacity: 0;
    }
    50% {
        transform: translateX(0%) scaleX(1);
        opacity: 1;
    }
    100% {
        transform: translateX(100%) scaleX(0);
        opacity: 0;
    }
}

/* Efecto de partículas flotantes */
@keyframes aurora-particle-float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
        opacity: 0.3;
    }
    50% {
        transform: translateY(-10px) rotate(180deg);
        opacity: 1;
    }
}

/* Efecto de carga inicial */
.aurora-text-logo.loading .aurora-letter {
    animation: aurora-letter-load 1.5s ease-out forwards;
    animation-delay: calc(var(--letter-index, 0) * 0.1s);
}

@keyframes aurora-letter-load {
    0% {
        opacity: 0;
        transform: translateY(20px) scale(0.5);
    }
    60% {
        opacity: 1;
        transform: translateY(-5px) scale(1.1);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Efecto de interacción */
.aurora-text-logo:active .aurora-letter {
    animation: aurora-letter-press 0.2s ease-out;
}

@keyframes aurora-letter-press {
    0% { transform: scale(1); }
    50% { transform: scale(0.95); }
    100% { transform: scale(1); }
}

/* Efecto de brillo cíclico */
.aurora-text-logo .aurora-letter {
    animation: aurora-letter-float 6s ease-in-out infinite, aurora-letter-glow 4s ease-in-out infinite;
}

@keyframes aurora-letter-glow {
    0%, 100% {
        text-shadow: 0 0 20px rgba(99, 102, 241, 0.3);
    }
    50% {
        text-shadow: 0 0 30px rgba(99, 102, 241, 0.6), 0 0 40px rgba(139, 92, 246, 0.4);
    }
}

/* Responsive design para el texto */
@media (max-width: 768px) {
    .aurora-text-logo {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .aurora-text-logo {
        font-size: 1.5rem;
    }
}

/* Efecto de partículas de fondo */
.aurora-text-logo::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    background: radial-gradient(circle at center, rgba(99, 102, 241, 0.05) 0%, transparent 70%);
    pointer-events: none;
    animation: aurora-particle-float 8s ease-in-out infinite;
}

/* Efecto de ondas de luz en hover */
.aurora-text-logo:hover::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.1), transparent);
    animation: aurora-light-wave 2s ease-in-out infinite;
    pointer-events: none;
}

.aurora-logo-minimal {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    filter: drop-shadow(0 0 15px rgba(99, 102, 241, 0.2));
    cursor: pointer;
}

.aurora-logo-minimal:hover {
    transform: scale(1.02);
    filter: drop-shadow(0 0 25px rgba(99, 102, 241, 0.4));
}

/* Animaciones CSS adicionales */
@keyframes minimal-glow {
    0%, 100% { 
        filter: drop-shadow(0 0 15px rgba(99, 102, 241, 0.2));
    }
    50% { 
        filter: drop-shadow(0 0 25px rgba(99, 102, 241, 0.4));
    }
}

@keyframes minimal-pulse {
    0%, 100% { 
        transform: scale(1);
    }
    50% { 
        transform: scale(1.01);
    }
}

@keyframes minimal-float {
    0%, 100% { 
        transform: translateY(0);
    }
    50% { 
        transform: translateY(-1px);
    }
}

@keyframes minimal-scan {
    0% { 
        opacity: 0.3;
        transform: translateX(-100%);
    }
    50% { 
        opacity: 0.8;
        transform: translateX(0%);
    }
    100% { 
        opacity: 0.3;
        transform: translateX(100%);
    }
}

/* Clases de animación */
.aurora-logo-minimal.animate-glow {
    animation: minimal-glow 4s ease-in-out infinite;
}

.aurora-logo-minimal.animate-pulse {
    animation: minimal-pulse 3s ease-in-out infinite;
}

.aurora-logo-minimal.animate-float {
    animation: minimal-float 6s ease-in-out infinite;
}

.aurora-logo-minimal.animate-scan {
    animation: minimal-scan 2s ease-in-out infinite;
}

/* Efectos de hover mejorados */
.aurora-logo-minimal:hover .letter {
    stroke-width: 3;
    transition: stroke-width 0.3s ease;
}

.aurora-logo-minimal:hover .subtitle {
    letter-spacing: 3;
    transition: letter-spacing 0.3s ease;
}

.aurora-logo-minimal:hover .corner-dots circle {
    animation-duration: 1s;
}

.aurora-logo-minimal:hover .decorative-lines line {
    stroke-width: 1;
    transition: stroke-width 0.3s ease;
}

.aurora-logo-minimal:hover .scan-line line {
    stroke-width: 1.5;
    transition: stroke-width 0.3s ease;
}

/* Responsive design */
@media (max-width: 768px) {
    .aurora-logo-minimal {
        width: 300px;
        height: auto;
    }
}

@media (max-width: 480px) {
    .aurora-logo-minimal {
        width: 250px;
        height: auto;
    }
}

/* Efectos de carga inicial */
.aurora-logo-minimal.loading {
    opacity: 0;
    transform: scale(0.9);
    animation: minimal-load 1.2s ease-out forwards;
}

@keyframes minimal-load {
    0% {
        opacity: 0;
        transform: scale(0.9) translateY(10px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Efectos de interacción */
.aurora-logo-minimal.interactive:active {
    transform: scale(0.98);
    transition: transform 0.1s ease;
}

/* Modo oscuro/claro */
@media (prefers-color-scheme: light) {
    .aurora-logo-minimal {
        filter: drop-shadow(0 0 10px rgba(99, 102, 241, 0.3));
    }
}

/* Accesibilidad */
.aurora-logo-minimal:focus {
    outline: 2px solid rgba(99, 102, 241, 0.4);
    outline-offset: 4px;
}

/* Estados de carga */
.aurora-logo-minimal.loading .letter {
    animation-play-state: paused;
}

.aurora-logo-minimal.loading .corner-dots circle {
    animation-play-state: paused;
}

/* Efectos de transición suave */
.aurora-logo-minimal * {
    transition: all 0.3s ease;
}

/* Optimizaciones de rendimiento */
.aurora-logo-minimal {
    will-change: transform, filter;
    backface-visibility: hidden;
    transform: translateZ(0);
}

/* Efectos especiales para eventos */
.aurora-logo-minimal.clicked {
    animation: minimal-click 0.3s ease-out;
}

@keyframes minimal-click {
    0% { transform: scale(1); }
    50% { transform: scale(0.95); }
    100% { transform: scale(1); }
}

/* Efectos de partículas en hover */
.aurora-logo-minimal:hover::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, rgba(99, 102, 241, 0.1) 0%, transparent 70%);
    pointer-events: none;
    animation: minimal-particle 2s ease-out infinite;
}

@keyframes minimal-particle {
    0% { opacity: 0; transform: scale(0.8); }
    50% { opacity: 1; transform: scale(1.2); }
    100% { opacity: 0; transform: scale(1.5); }
}
