/* Smooth Scroll Enhancements */
html {
    scroll-behavior: auto; /* Let Lenis handle smooth scrolling */
}

/* Section styling for better snap behavior */
section[id] {
    min-height: 100vh;
    position: relative;
    scroll-snap-align: start;
    scroll-margin-top: 80px; /* Account for fixed header */
}

/* Ensure hero section takes full viewport */
#inicio {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Services and contact sections */
#servicios,
#contacto {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Smooth transitions for section changes */
.section-transition {
    transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
}

/* Scroll indicator (optional) */
.scroll-indicator {
    position: fixed;
    right: 2rem;
    top: 50%;
    transform: translateY(-50%);
    z-index: 50;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.scroll-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
    cursor: pointer;
}

.scroll-dot.active {
    background-color: #0ea5e9;
    transform: scale(1.2);
}

.scroll-dot:hover {
    background-color: rgba(255, 255, 255, 0.6);
}

/* Hide scrollbars but keep functionality */
::-webkit-scrollbar {
    width: 0px;
    background: transparent;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    section[id] {
        min-height: 100svh; /* Use small viewport height on mobile */
        scroll-margin-top: 60px;
    }
    
    .scroll-indicator {
        display: none; /* Hide scroll indicator on mobile */
    }
}

/* Prevent text selection during scroll transitions */
.no-select {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* Loading state */
body.scroll-loading * {
    pointer-events: none;
}

/* Disable overscroll behavior */
body {
    overscroll-behavior: none;
}

/* Better focus styles for accessibility */
.scroll-dot:focus {
    outline: 2px solid #0ea5e9;
    outline-offset: 2px;
}

/* reCAPTCHA styling for dark theme */
.g-recaptcha {
    transform: scale(0.9);
    transform-origin: center;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
}

@media (max-width: 768px) {
    .g-recaptcha {
        transform: scale(0.8);
    }
}
