/* Accessibility Enhancements */

/* Skip link for keyboard navigation */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: var(--primary);
    color: var(--white);
    padding: 8px;
    text-decoration: none;
    font-weight: bold;
    border-radius: 4px;
    z-index: 10000;
    transition: top 0.3s ease;
}

.skip-link:focus {
    top: 6px;
}

/* Focus indicators for better keyboard navigation */
button:focus,
.language-option:focus,
.menu-item:focus,
.brand-option:focus,
.brand-item:focus,
.contact-btn:focus {
    outline: 3px solid var(--secondary);
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --primary: #000080;
        --secondary: #FFD700;
        --text-primary: #000000;
        --text-secondary: #333333;
    }
}

/* Reduced motion support */
@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;
    }
    
    .logo:hover,
    .menu-item:hover,
    .brand-item:hover,
    .agent-card:hover {
        transform: none !important;
    }
}

/* Improved keyboard navigation for language menu */
.language-option[role="menuitem"] {
    cursor: pointer;
}

.language-option[role="menuitem"]:hover,
.language-option[role="menuitem"]:focus {
    background: var(--off-white);
    transform: translateX(5px);
}

/* Screen reader only content */
.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;
}

/* Enhanced touch targets for mobile */
@media (max-width: 768px) {
    .language-fab,
    .back-btn,
    .language-option,
    .menu-item,
    .contact-btn {
        min-height: 44px;
        min-width: 44px;
    }
}

/* Forzar modo claro siempre */
@media (prefers-color-scheme: dark) {
    :root {
        /* Mantener colores claros incluso en modo oscuro */
        --white: #ffffff;
        --off-white: #f8f9fa;
        --light-gray: #e9ecef;
        --text-primary: #2c3e50;
        --text-secondary: #6c757d;
        --gradient-start: rgba(255, 255, 255, 0.95);
        --gradient-end: rgba(255, 255, 255, 0.98);
    }
    
    /* Asegurar que el fondo se mantenga claro */
    body {
        background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end)) !important;
        color: var(--text-primary) !important;
    }
    
    body::before {
        opacity: 0.1 !important;
    }
    
    /* Forzar elementos específicos a modo claro */
    * {
        color-scheme: light !important;
    }
} 