/**
 * Suite4Work - Landing Page
 * Estilos adicionales personalizados
 */

/* Animaciones personalizadas */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeIn 0.6s ease-out forwards;
}

/* Mejoras de accesibilidad - Focus visible */
*:focus-visible {
    outline: 2px solid #557170;
    outline-offset: 2px;
}

/* Transiciones suaves para elementos interactivos */
a, button {
    transition: all 0.3s ease;
}

/* Mejora del contraste para texto sobre fondos oscuros */
header a, header button {
    color: #ffffff;
}

/* Estilos para el formulario - mejoras visuales */
input:focus, textarea:focus, select:focus {
    box-shadow: 0 0 0 3px rgba(85, 113, 112, 0.1);
}

/* Estilos para campos con error */
input.border-red-500, textarea.border-red-500, select.border-red-500 {
    border-color: #ef4444 !important;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

/* Mejora de legibilidad */
body {
    line-height: 1.6;
}

/* Smooth scroll mejorado para navegadores que no lo soportan nativamente */
@media (prefers-reduced-motion: no-preference) {
    html {
        scroll-behavior: smooth;
    }
}

/* Respetar preferencias de movimiento reducido */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Mejoras para impresión */
@media print {
    nav, footer, #contacto {
        display: none;
    }
    
    body {
        color: #000;
        background: #fff;
    }
}

/* Estilos para mensajes del formulario */
#form-messages {
    min-height: 50px;
}

/* Mejora de hover en cards */
.bg-white:hover {
    transform: translateY(-4px);
}

/* Estilos para el logo */
img[alt="Suite4Work Logo"] {
    max-height: 100px;
    width: auto;
    height: auto;
}

/* Mejoras responsive adicionales */
@media (max-width: 640px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 2rem;
    }
}

/* Estilos para el menú móvil */
#mobile-menu {
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Animación para el banner de cookies */
.animate-slide-up {
    animation: slideUp 0.5s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(100%);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mejora de contraste WCAG AA */
.text-[#545454] {
    color: #545454;
}

/* Asegurar que los botones sean accesibles */
button:disabled {
    cursor: not-allowed;
    opacity: 0.6;
}

/* Estilos para el textarea con contador de caracteres */
textarea {
    min-height: 100px;
}

/* Mejoras visuales para el captcha */
#captcha {
    font-size: 1.25rem;
    text-align: center;
    font-weight: 600;
}

/* Estilos para el footer */
footer a {
    transition: color 0.2s ease;
}

footer a:hover {
    color: #ffffff;
}

/* Mejoras de accesibilidad para enlaces */
a[href^="#"] {
    cursor: pointer;
}

/* Estilos para las secciones */
section {
    scroll-margin-top: 80px;
}

