@charset "UTF-8";

/* animations.css - Animaciones y transiciones */

/* ===================================
   KEYFRAMES
   =================================== */

/* Fade In */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Slide Up */
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Slide Down */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Scale In */
@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Bounce */
@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* Pulse */
@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

/* Spin */
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ===================================
   APLICAR ANIMACIONES
   =================================== */

/* Header */
.header {
    animation: slideDown 0.5s ease-out;
}

/* Credencial */
.credential-section {
    animation: fadeIn 0.6s ease-out;
}

.business-avatar {
    animation: scaleIn 0.6s ease-out 0.2s both;
}

.credential-info {
    animation: slideUp 0.6s ease-out 0.3s both;
}

/* Secciones */
.services-section,
.schedule-section,
.gallery-section {
    animation: fadeIn 0.5s ease-out;
}

.service-card {
    animation: slideUp 0.4s ease-out both;
}

.service-card:nth-child(1) { animation-delay: 0.1s; }
.service-card:nth-child(2) { animation-delay: 0.15s; }
.service-card:nth-child(3) { animation-delay: 0.2s; }
.service-card:nth-child(4) { animation-delay: 0.25s; }
.service-card:nth-child(5) { animation-delay: 0.3s; }
.service-card:nth-child(6) { animation-delay: 0.35s; }

.schedule-item {
    animation: slideUp 0.4s ease-out both;
}

.schedule-item:nth-child(1) { animation-delay: 0.1s; }
.schedule-item:nth-child(2) { animation-delay: 0.15s; }
.schedule-item:nth-child(3) { animation-delay: 0.2s; }

.gallery-item {
    animation: scaleIn 0.4s ease-out both;
}

.gallery-item:nth-child(1) { animation-delay: 0.1s; }
.gallery-item:nth-child(2) { animation-delay: 0.15s; }
.gallery-item:nth-child(3) { animation-delay: 0.2s; }

/* Footer */
.footer {
    animation: fadeIn 0.5s ease-out;
}

/* Modal */
.modal-overlay {
    animation: fadeIn 0.3s ease-out;
}

.modal-content {
    animation: slideUp 0.3s ease-out;
}

.permit-card {
    animation: slideUp 0.3s ease-out both;
}

.permit-card:nth-child(1) { animation-delay: 0.05s; }
.permit-card:nth-child(2) { animation-delay: 0.1s; }
.permit-card:nth-child(3) { animation-delay: 0.15s; }
.permit-card:nth-child(4) { animation-delay: 0.2s; }
.permit-card:nth-child(5) { animation-delay: 0.25s; }
.permit-card:nth-child(6) { animation-delay: 0.3s; }

/* ===================================
   NOTIFICACIONES
   =================================== */

.notification {
    position: fixed;
    bottom: -100px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gray-900);
    color: var(--white);
    padding: 16px 24px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    z-index: 10000;
    transition: bottom 0.3s ease;
    max-width: 90%;
    text-align: center;
}

.notification.show {
    bottom: 30px;
}

.notification-success {
    background: var(--success);
}

.notification-error {
    background: var(--danger);
}

.notification-info {
    background: var(--primary);
}

/* ===================================
   HOVER EFFECTS
   =================================== */

/* Smooth hover para todos los botones */
.btn-primary,
.btn-secondary,
.btn-view,
.modal-close {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Hover para cards */
.service-card,
.schedule-item,
.gallery-item,
.permit-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===================================
   LOADING STATES
   =================================== */

.loading {
    animation: fadeIn 0.3s ease-out;
}

.spinner {
    animation: spin 0.8s linear infinite;
}

/* ===================================
   RESPONSIVE ANIMATIONS
   =================================== */

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

/* Deshabilitar animaciones complejas en moviles de baja gama */
@media (max-width: 480px) {
    .service-card,
    .schedule-item,
    .gallery-item,
    .permit-card {
        animation: fadeIn 0.3s ease-out !important;
        animation-delay: 0s !important;
    }
}