/* Estilos personalizados adicionales */

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

/* Asegurar que los enlaces del menú funcionen con el header sticky */
section {
    scroll-margin-top: 80px;
}

/* Hover effects mejorados */
.hover-scale {
    transition: transform 0.3s ease;
}

.hover-scale:hover {
    transform: scale(1.05);
}

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

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

/* Carousel personalización */
.carousel-item {
    min-width: 100%;
}

@media (min-width: 768px) {
    .carousel-item {
        min-width: 33.333333%;
    }
}

/* Formulario - estados de validación */
input:focus, textarea:focus {
    outline: none;
}

input:invalid:not(:placeholder-shown),
textarea:invalid:not(:placeholder-shown) {
    border: 2px solid #ef4444;
}

input:valid:not(:placeholder-shown),
textarea:valid:not(:placeholder-shown) {
    border: 2px solid #10b981;
}

/* Loading spinner para formulario */
.spinner {
    border: 3px solid #f3f3f3;
    border-top: 3px solid #c2d64b;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    animation: spin 1s linear infinite;
    display: inline-block;
    margin-right: 8px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Mejoras responsive */
@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
}

/* Placeholder para logos de clientes - cuando agregues las imágenes reales */
.client-logo-placeholder {
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
    border: 2px dashed #d1d5db;
}

/* Animación de firma para el logo */
@keyframes signatureDraw {
    0% {
        clip-path: inset(0 100% 0 0);
        transform: translateX(-5px);
    }
    25% {
        transform: translateX(2px) translateY(-1px);
    }
    50% {
        clip-path: inset(0 50% 0 0);
        transform: translateX(-1px) translateY(1px);
    }
    75% {
        transform: translateX(1px) translateY(-0.5px);
    }
    100% {
        clip-path: inset(0 0 0 0);
        transform: translateX(0) translateY(0);
    }
}

.logo-signature {
    animation: signatureDraw 2.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    animation-delay: 0.3s;
    clip-path: inset(0 100% 0 0);
}

/* Efecto de brillo sutil después de la animación */
@keyframes logoGlow {
    0%, 100% {
        filter: brightness(1);
    }
    50% {
        filter: brightness(1.1);
    }
}

.logo-signature:hover {
    animation: logoGlow 0.6s ease-in-out;
}
