/* Global Overflow Fix */
html,
body {
    overflow-x: hidden;
    width: 100%;
}

.text-gradient {
    background: linear-gradient(135deg, #E88D1F 0%, #FF6B00 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.bg-dot-pattern {
    background-image: radial-gradient(#E88D1F 0.5px, transparent 0.5px);
    background-size: 24px 24px;
}

.premium-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 20px 40px -10px rgba(232, 141, 31, 0.1);
}

/* ANIMACIONES DE ENTRADA (Lateral & Fade) */
.reveal,
.reveal-text,
.reveal-left,
.reveal-right {
    opacity: 0;
    transition: all 1s cubic-bezier(0.2, 0.8, 0.2, 1);
    will-change: opacity, transform;
}

/* Estado inicial */
.reveal,
.reveal-text {
    transform: translateY(30px);
}

.reveal-left {
    transform: translateX(-50px);
}

.reveal-right {
    transform: translateX(50px);
}

/* Estado activo (cuando es visible) */
.reveal.active,
.reveal-text.active {
    opacity: 1;
    transform: translateY(0);
}

.reveal-left.active {
    opacity: 1;
    transform: translateX(0);
}

.reveal-right.active {
    opacity: 1;
    transform: translateX(0);
}

/* Animación inicial del Hero (mantiene un poco más de drama solo al inicio) */
.fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards;
    opacity: 0;
    transform: translateY(20px);
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.delay-100 {
    animation-delay: 0.1s;
}

.delay-200 {
    animation-delay: 0.2s;
}

.delay-300 {
    animation-delay: 0.3s;
}

/* Animation delay for blob animation */
.animation-delay-2000 {
    animation-delay: 2s;
}

.animation-delay-4000 {
    animation-delay: 4s;
}

/* =================================
   ACCESSIBILITY STYLES
   ================================= */

/* Screen Reader Only - Hidden visually but accessible to screen readers */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Skip link becomes visible on focus */
.sr-only:focus,
.sr-only:focus-visible {
    position: static;
    width: auto;
    height: auto;
    padding: inherit;
    margin: inherit;
    overflow: visible;
    clip: auto;
    white-space: normal;
}

/* Enhanced Focus States for better keyboard navigation */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid #E88D1F;
    outline-offset: 2px;
}

/* Remove default focus for mouse users, keep for keyboard */
:focus:not(:focus-visible) {
    outline: none;
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    .animate-bounce,
    .animate-ping,
    .animate-pulse,
    .animate-blob,
    .animate-float {
        animation: none !important;
    }
}

/* High contrast mode support */
@media (forced-colors: active) {
    .premium-card,
    .text-gradient {
        forced-color-adjust: none;
    }
    
    a:focus,
    button:focus {
        outline: 3px solid CanvasText;
    }
}
