/* Custom CSS for Abundiss Services */

/* Glass Morphism Effects */
.glass-morphism {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

.glass-morphism-strong {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 16px 48px 0 rgba(0, 0, 0, 0.45);
}

/* Mirror Glass Effect */
.mirror-glass {
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.1) 0%,
        rgba(255, 255, 255, 0.05) 25%,
        rgba(255, 255, 255, 0.02) 50%,
        rgba(255, 255, 255, 0.05) 75%,
        rgba(255, 255, 255, 0.1) 100%
    );
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 
        0 8px 32px 0 rgba(0, 0, 0, 0.37),
        inset 0 1px 0 0 rgba(255, 255, 255, 0.15),
        inset 0 -1px 0 0 rgba(255, 255, 255, 0.05);
}

/* Shine Effect for Buttons */
.shine-effect {
    position: relative;
    overflow: hidden;
}

.shine-effect::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent
    );
    transform: skewX(-15deg);
    transition: left 0.6s;
}

.shine-effect:hover::before {
    left: 150%;
}

/* Glow Effects */
.glow-primary {
    box-shadow: 0 0 20px rgba(29, 26, 78, 0.6);
}

.glow-secondary {
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.5);
}

.glow-accent {
    box-shadow: 0 0 25px rgba(255, 107, 107, 0.5);
}

/* Floating Animation Enhancement */
@keyframes float {
    0%, 100% { 
        transform: translateY(0px) translateX(0px) scale(1); 
    }
    25% { 
        transform: translateY(-20px) translateX(10px) scale(1.02); 
    }
    50% { 
        transform: translateY(-10px) translateX(-5px) scale(1); 
    }
    75% { 
        transform: translateY(-15px) translateX(5px) scale(1.01); 
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(29, 26, 78, 0.2);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #FFD700, #FFA500);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #FFD700, #FFD700);
}

/* Perspective for 3D Effects */
.perspective-1000 {
    perspective: 1000px;
}

.preserve-3d {
    transform-style: preserve-3d;
}

.backface-hidden {
    backface-visibility: hidden;
}

.rotate-y-180 {
    transform: rotateY(180deg);
}

/* Hover Effects */
.hover-lift {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hover-lift:hover {
    transform: translateY(-8px) scale(1.02);
}

/* Text Effects */
.text-gradient {
    background: linear-gradient(135deg, #FFD700, #FFA500, #FFD700);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientShift 3s ease infinite;
}

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

/* Form Styles - fondo oscuro y texto claro para contraste visible en todos los navegadores */
.glass-input {
    background: rgba(26, 26, 46, 0.95) !important;
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    color: #e2e8f0 !important;
    -webkit-text-fill-color: #e2e8f0;
    transition: all 0.3s ease;
}

.glass-input::placeholder {
    color: #94a3b8;
    opacity: 0.9;
}

.glass-input:focus {
    background: rgba(42, 39, 102, 0.95) !important;
    border-color: #FFD700;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
    outline: none;
    color: #e2e8f0 !important;
    -webkit-text-fill-color: #e2e8f0;
}

/* Autocompletado del navegador: mantener fondo oscuro y texto visible */
.glass-input:-webkit-autofill,
.glass-input:-webkit-autofill:hover,
.glass-input:-webkit-autofill:focus,
.glass-input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 1000px #1a1a2e inset !important;
    -webkit-text-fill-color: #e2e8f0 !important;
    box-shadow: 0 0 0 1000px #1a1a2e inset !important;
}

/* Card Interactions */
.solution-card {
    transform-origin: center;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.solution-card:hover {
    transform: scale(1.02) translateY(-10px);
}

/* Loading States */
.loading {
    position: relative;
    overflow: hidden;
}

.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.1),
        transparent
    );
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* Mobile Optimizations */
@media (max-width: 768px) {
    .glass-morphism {
        backdrop-filter: blur(15px);
        -webkit-backdrop-filter: blur(15px);
    }
    
    .solution-card:hover {
        transform: scale(1) translateY(0);
    }
    
    .solution-card:active {
        transform: scale(0.98);
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .glass-morphism {
        background: rgba(255, 255, 255, 0.15);
        border: 2px solid rgba(255, 255, 255, 0.3);
    }
    
    .text-textMuted {
        color: #e2e8f0;
        opacity: 0.9;
    }
}

/* Print Styles */
@media print {
    .glass-morphism,
    .mirror-glass {
        background: white !important;
        color: black !important;
        backdrop-filter: none !important;
        box-shadow: none !important;
    }
    
    .text-gradient {
        -webkit-text-fill-color: black !important;
    }
}

/* Accordion / Details - hide default marker */
details.problem-item summary::-webkit-details-marker,
details.problem-item summary::marker {
    display: none;
}