/* Custom styles for Albergue Municipal */

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

/* Clip path for hero */
.clip-diagonal {
    clip-path: polygon(30% 0, 100% 0, 100% 100%, 0% 100%);
}

/* Hero animations */
.hero-subtitle {
    animation: slideUp 0.8s ease forwards 0.2s;
}

.hero-title {
    animation: slideUp 0.8s ease forwards 0.4s;
}

.hero-desc {
    animation: slideUp 0.8s ease forwards 0.6s;
}

.hero-cta {
    animation: slideUp 0.8s ease forwards 0.8s;
}

.hero-image-main {
    animation: fadeIn 1s ease forwards 0.5s;
    opacity: 0;
}

.hero-floating-card {
    animation: slideUp 0.8s ease forwards 1s;
}

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

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Scroll indicator animation */
.scroll-indicator {
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* Navbar scroll effect */
.nav-scrolled {
    background: rgba(250, 250, 249, 0.95) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.05);
}

/* Section label animation */
.section-label {
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.6s ease;
}

.section-label.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Section title animation */
.section-title {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s ease;
}

.section-title.visible {
    opacity: 1;
    transform: translateY(0);
}

/* About image items */
.about-image-item {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s ease;
}

.about-image-item.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Service cards */
.service-card {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

.service-card.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Contact items */
.contact-item {
    opacity: 0;
    transform: translateX(-20px);
    transition: all 0.6s ease;
}

.contact-item.visible {
    opacity: 1;
    transform: translateX(0);
}

/* Location items */
.location-item {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

.location-item.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Mobile menu */
.mobile-link {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease;
}

/* Active nav link */
.nav-link.active {
    color: #0f766e !important;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #fafaf9;
}

::-webkit-scrollbar-thumb {
    background: #d6d3d1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a8a29e;
}

/* Focus styles */
input:focus,
textarea:focus {
    outline: none;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .clip-diagonal {
        clip-path: none;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-image-main img {
        height: 400px;
    }
    
    .hero-floating-card {
        position: relative;
        bottom: auto;
        left: auto;
        margin-top: 1rem;
    }
}

/* Print styles */
@media print {
    nav,
    .scroll-indicator,
    button {
        display: none;
    }
}
