/* Estilos personalizados para Lurin.pe Coming Soon */

/* Variables CSS personalizadas */
:root {
    --primary-gradient: linear-gradient(135deg, #10b981, #3b82f6, #8b5cf6);
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
    --emerald-glow: rgba(16, 185, 129, 0.3);
}

/* Mejoras de rendimiento */
* {
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Optimización de scroll suave */
html {
    scroll-behavior: smooth;
}

/* Efectos de texto mejorados */
.text-stroke {
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.3);
}

/* Efectos de hover mejorados */
.hover-lift {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.hover-lift:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.4),
        0 0 30px rgba(16, 185, 129, 0.3);
}

/* Animaciones de texto mejoradas */
.typewriter {
    overflow: hidden;
    border-right: 3px solid #10b981;
    white-space: nowrap;
    margin: 0 auto;
    animation: typing 3.5s steps(40, end), blink-caret 0.75s step-end infinite;
}

@keyframes typing {
    from { width: 0 }
    to { width: 100% }
}

@keyframes blink-caret {
    from, to { border-color: transparent }
    50% { border-color: #10b981 }
}

/* Efectos de partículas mejorados */
.particle {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    animation: particle-float 8s ease-in-out infinite;
}

@keyframes particle-float {
    0%, 100% { 
        transform: translateY(0px) rotate(0deg) scale(1);
        opacity: 0.4;
    }
    33% {
        transform: translateY(-20px) rotate(120deg) scale(1.1);
        opacity: 0.7;
    }
    66% {
        transform: translateY(-10px) rotate(240deg) scale(0.9);
        opacity: 0.6;
    }
}

/* Efectos de brillo y resplandor */
.neon-glow {
    text-shadow: 
        0 0 5px currentColor,
        0 0 10px currentColor,
        0 0 15px currentColor,
        0 0 20px currentColor;
}

.element-glow {
    box-shadow: 
        0 0 20px rgba(16, 185, 129, 0.4),
        0 0 40px rgba(16, 185, 129, 0.2),
        inset 0 0 20px rgba(16, 185, 129, 0.1);
}

/* Animaciones de entrada mejoradas */
.slide-in-left {
    animation: slideInLeft 1s ease-out forwards;
    opacity: 0;
    transform: translateX(-100px);
}

.slide-in-right {
    animation: slideInRight 1s ease-out forwards;
    opacity: 0;
    transform: translateX(100px);
}

@keyframes slideInLeft {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Efectos de loading mejorados */
.loading-dots {
    display: inline-block;
    position: relative;
    width: 80px;
    height: 80px;
}

.loading-dots div {
    position: absolute;
    top: 33px;
    width: 13px;
    height: 13px;
    border-radius: 50%;
    background: linear-gradient(45deg, #10b981, #3b82f6);
    animation-timing-function: cubic-bezier(0, 1, 1, 0);
}

.loading-dots div:nth-child(1) {
    left: 8px;
    animation: loading-dots1 0.6s infinite;
}

.loading-dots div:nth-child(2) {
    left: 8px;
    animation: loading-dots2 0.6s infinite;
}

.loading-dots div:nth-child(3) {
    left: 32px;
    animation: loading-dots2 0.6s infinite;
}

.loading-dots div:nth-child(4) {
    left: 56px;
    animation: loading-dots3 0.6s infinite;
}

@keyframes loading-dots1 {
    0% { transform: scale(0); }
    100% { transform: scale(1); }
}

@keyframes loading-dots3 {
    0% { transform: scale(1); }
    100% { transform: scale(0); }
}

@keyframes loading-dots2 {
    0% { transform: translate(0, 0); }
    100% { transform: translate(24px, 0); }
}

/* Efectos de degradado animado */
.animated-gradient {
    background: linear-gradient(-45deg, #10b981, #3b82f6, #8b5cf6, #ec4899);
    background-size: 400% 400%;
    animation: gradient-shift 4s ease infinite;
}

@keyframes gradient-shift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Efectos de cristal mejorados */
.glass-morphism {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 16px;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

/* Responsive mejoras */
@media (max-width: 768px) {
    .parallax-bg {
        background-attachment: scroll;
    }
    
    .glass-effect, .glass-effect-strong {
        background: rgba(0, 0, 0, 0.85);
        backdrop-filter: blur(10px);
    }
    
    .hover-lift:hover {
        transform: translateY(-4px) scale(1.01);
    }
}

@media (max-width: 480px) {
    .text-enhanced {
        text-shadow: 
            0 0 8px rgba(0, 0, 0, 0.9),
            0 0 15px rgba(0, 0, 0, 0.7),
            1px 1px 3px rgba(0, 0, 0, 0.9);
    }
}

/* Accesibilidad */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .parallax-bg {
        background-attachment: scroll !important;
    }
}

/* Estados de focus para accesibilidad */
.btn-focus:focus {
    outline: 3px solid #10b981;
    outline-offset: 3px;
    box-shadow: 0 0 0 6px rgba(16, 185, 129, 0.3);
}

/* Efectos adicionales para botones */
.pulse-on-hover:hover {
    animation: pulse 1.5s infinite;
}

.button-shine {
    position: relative;
    overflow: hidden;
}

.button-shine::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.button-shine:hover::before {
    left: 100%;
}

/* Mejoras de contraste */
.high-contrast {
    filter: contrast(1.3) brightness(1.1);
}

/* Efectos de loading state */
.skeleton {
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.1) 25%, rgba(255, 255, 255, 0.2) 50%, rgba(255, 255, 255, 0.1) 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Efectos de profundidad */
.depth-shadow {
    box-shadow: 
        0 1px 3px rgba(0, 0, 0, 0.12),
        0 1px 2px rgba(0, 0, 0, 0.24),
        0 4px 8px rgba(0, 0, 0, 0.15),
        0 8px 16px rgba(0, 0, 0, 0.1);
}

/* Animaciones de entrada suaves */
.fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards;
    opacity: 0;
    transform: translateY(30px);
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
