/* Animaciones para la página de mantenimiento */

/* Animación de entrada principal */
@keyframes slideInFromTop {
    0% {
        opacity: 0;
        transform: translateY(-50px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInScale {
    0% {
        opacity: 0;
        transform: scale(0.8);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }
    50% {
        opacity: 1;
        transform: scale(1.05);
    }
    70% {
        transform: scale(0.9);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes slideInFromLeft {
    0% {
        opacity: 0;
        transform: translateX(-30px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInFromRight {
    0% {
        opacity: 0;
        transform: translateX(30px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Animación de pulso suave para el icono */
@keyframes gentlePulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.03);
        opacity: 0.9;
    }
}

/* Animación de rotación sutil */
@keyframes subtleRotate {
    0% {
        transform: rotate(0deg);
    }
    25% {
        transform: rotate(1deg);
    }
    75% {
        transform: rotate(-1deg);
    }
    100% {
        transform: rotate(0deg);
    }
}

/* Aplicación de animaciones a elementos */
.construction-icon {
    animation: bounceIn 1s ease-out, gentlePulse 3s ease-in-out 1s infinite;
}

.maintenance-title {
    animation: slideInFromTop 0.8s ease-out 0.2s both;
}

.maintenance-message {
    animation: fadeInScale 0.8s ease-out 0.4s both;
}

.contact-info .contact-item:nth-child(1) {
    animation: slideInFromLeft 0.8s ease-out 0.6s both;
}

.contact-info .contact-item:nth-child(2) {
    animation: slideInFromRight 0.8s ease-out 0.8s both;
}

.additional-info {
    animation: fadeInScale 0.8s ease-out 1s both;
}

/* Animaciones de hover mejoradas */
.contact-button {
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.contact-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.contact-button:hover::before {
    left: 100%;
}

.contact-button:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.contact-button:active {
    transform: translateY(-1px) scale(0.98);
    transition: all 0.1s ease;
}

/* Animación de carga para el contenedor */
.content-wrapper {
    animation: fadeInScale 1s ease-out;
}

/* Animación de texto que aparece letra por letra */
@keyframes typewriter {
    from {
        width: 0;
    }
    to {
        width: 100%;
    }
}

/* Efecto de brillo sutil en el fondo */
@keyframes backgroundShimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

/* Animación de flotación suave */
@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* Aplicar flotación al icono en desktop */
@media (min-width: 769px) {
    .construction-icon {
        animation: bounceIn 1s ease-out, float 4s ease-in-out 2s infinite;
    }
}

/* Animaciones de entrada escalonadas para móvil */
@media (max-width: 768px) {
    .contact-info .contact-item:nth-child(1),
    .contact-info .contact-item:nth-child(2) {
        animation: fadeInScale 0.6s ease-out 0.6s both;
    }
    
    .contact-info .contact-item:nth-child(2) {
        animation-delay: 0.8s;
    }
}

/* Desactivar animaciones complejas en dispositivos de bajo rendimiento */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .construction-icon {
        animation: none;
    }
    
    .contact-button:hover {
        transform: none;
    }
    
    .contact-button::before {
        display: none;
    }
}

/* Animación de parpadeo suave para elementos importantes */
@keyframes softBlink {
    0%, 50%, 100% {
        opacity: 1;
    }
    25%, 75% {
        opacity: 0.7;
    }
}

/* Efecto de ondas en los botones */
.contact-button {
    position: relative;
}

.contact-button::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.3s, height 0.3s;
}

.contact-button:active::after {
    width: 300px;
    height: 300px;
    transition: width 0.1s, height 0.1s;
}