/* Estilos personalizados para Placas Antihumedad */

/* Estilos generales */
html {
    scroll-behavior: smooth;
}

body {
    overflow-x: hidden;
}

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

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

/* Animación de pulsado suave para destacados */
@keyframes softPulse {
    0% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.97;
        transform: scale(1.02);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.animate-pulse {
    animation: softPulse 3s ease-in-out infinite;
}

/* Destello sutil para destacados */
@keyframes subtleGlow {
    0% {
        box-shadow: 0 0 5px rgba(30, 111, 92, 0.3);
    }
    50% {
        box-shadow: 0 0 15px rgba(30, 111, 92, 0.5);
    }
    100% {
        box-shadow: 0 0 5px rgba(30, 111, 92, 0.3);
    }
}

.glow-effect {
    animation: subtleGlow 3s ease-in-out infinite;
}

/* Hero section con gradiente sutil */
.hero-gradient {
    background: linear-gradient(135deg, rgba(30, 111, 92, 0.05) 0%, rgba(86, 197, 150, 0.1) 100%);
}

/* Sombras personalizadas */
.custom-shadow {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: box-shadow 0.3s ease-in-out;
}

.custom-shadow:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

/* Efecto de hover en cards */
.card-hover {
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.card-hover:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

/* Efecto de enfoque para imágenes */
.img-hover-zoom {
    overflow: hidden;
}

.img-hover-zoom img {
    transition: transform 0.5s ease;
}

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

/* Estilos de navegación móvil */
@media (max-width: 768px) {
    .mobile-menu-enter {
        opacity: 0;
        transform: translateY(-10px);
    }
    
    .mobile-menu-enter-active {
        opacity: 1;
        transform: translateY(0);
        transition: opacity 300ms, transform 300ms;
    }
    
    .mobile-menu-exit {
        opacity: 1;
        transform: translateY(0);
    }
    
    .mobile-menu-exit-active {
        opacity: 0;
        transform: translateY(-10px);
        transition: opacity 300ms, transform 300ms;
    }
    
    /* Mejoras para menú móvil */
    #mobile-menu {
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease-out;
    }
    
    #mobile-menu.expanded {
        max-height: 300px;
    }
    
    /* Mejoras para tamaños en móvil */
    .text-4xl {
        font-size: 1.875rem !important;
        line-height: 2.25rem !important;
    }
    
    .py-16 {
        padding-top: 3rem !important;
        padding-bottom: 3rem !important;
    }
    
    .mb-16 {
        margin-bottom: 2.5rem !important;
    }
    
    /* Mejora spacing en cards */
    .p-8 {
        padding: 1.5rem !important;
    }
    
    /* Espaciado para textos promocionales */
    .animate-pulse.glow-effect {
        margin-left: auto;
        margin-right: auto;
        text-align: center;
    }
}

/* Estilos específicos para el formulario de contacto */
.input-focus {
    transition: border-color 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.input-focus:focus {
    border-color: #1E6F5C;
    box-shadow: 0 0 0 3px rgba(30, 111, 92, 0.2);
}

/* Lazy loading para imágenes */
.lazy-load {
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.lazy-load.loaded {
    opacity: 1;
}

/* Aumentar accesibilidad para mejor SEO */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Mejoras de usabilidad para dispositivos táctiles */
@media (hover: none) {
    .touch-target {
        min-height: 44px;
        min-width: 44px;
    }
}