/* =============================================
   Fullpage Scroll - Main Styles
   ============================================= */

/* Body state when fullpage is active */
body.efs-fullpage-active {
    overflow: hidden;
}

/* Section styles when fullpage is active */
body.efs-fullpage-active .efs-section {
    min-height: 100vh;
    width: 100%;
    position: relative;
    box-sizing: border-box;
}

/* Wrapper for smooth transitions */
.efs-sections-wrapper {
    transition-property: transform;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

/* =============================================
   Navigation Dots
   ============================================= */

.efs-nav-dots {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 15px 10px;
}

.efs-nav-dots.efs-dots-right {
    right: 20px;
}

.efs-nav-dots.efs-dots-left {
    left: 20px;
}

.efs-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.3);
    border: none;
    cursor: pointer;
    padding: 0;
    transition: all 0.3s ease;
    position: relative;
}

.efs-dot:hover {
    transform: scale(1.3);
}

.efs-dot.active {
    background-color: #000000;
    transform: scale(1.2);
}

/* Tooltip */
.efs-dot-tooltip {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: #000000;
    color: #ffffff;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 13px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    pointer-events: none;
}

.efs-dots-right .efs-dot-tooltip {
    right: calc(100% + 10px);
}

.efs-dots-left .efs-dot-tooltip {
    left: calc(100% + 10px);
}

.efs-dot:hover .efs-dot-tooltip {
    opacity: 1;
    visibility: visible;
}

/* Tooltip arrow */
.efs-dot-tooltip::after {
    content: '';
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    border: 5px solid transparent;
}

.efs-dots-right .efs-dot-tooltip::after {
    left: 100%;
    border-left-color: #000000;
}

.efs-dots-left .efs-dot-tooltip::after {
    right: 100%;
    border-right-color: #000000;
}

/* =============================================
   Content Animations (OPCIONAL)
   Solo se aplican a secciones NO activas
   La sección activa siempre muestra su contenido
   ============================================= */

/* Elementos en secciones NO activas - ocultos */
body.efs-fullpage-active .efs-section:not(.efs-section-active) .efs-animate-item {
    opacity: 0;
    transition: opacity 0.5s ease, transform 0.5s ease;
}

/* Transforms para secciones NO activas */
body.efs-fullpage-active .efs-section:not(.efs-section-active) .efs-animate-item.efs-anim-fade-up {
    transform: translateY(30px);
}

body.efs-fullpage-active .efs-section:not(.efs-section-active) .efs-animate-item.efs-anim-fade-down {
    transform: translateY(-30px);
}

body.efs-fullpage-active .efs-section:not(.efs-section-active) .efs-animate-item.efs-anim-fade-left {
    transform: translateX(30px);
}

body.efs-fullpage-active .efs-section:not(.efs-section-active) .efs-animate-item.efs-anim-fade-right {
    transform: translateX(-30px);
}

body.efs-fullpage-active .efs-section:not(.efs-section-active) .efs-animate-item.efs-anim-zoom-in {
    transform: scale(0.9);
}

body.efs-fullpage-active .efs-section:not(.efs-section-active) .efs-animate-item.efs-anim-zoom-out {
    transform: scale(1.1);
}

/* Sección ACTIVA - contenido siempre visible */
body.efs-fullpage-active .efs-section.efs-section-active .efs-animate-item {
    opacity: 1;
    transform: none;
    transition: opacity 0.5s ease, transform 0.5s ease;
}

/* =============================================
   Scroll Indicator (optional)
   ============================================= */

.efs-scroll-indicator {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9998;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    opacity: 0.7;
    transition: opacity 0.3s ease;
    animation: efs-bounce 2s infinite;
}

.efs-scroll-indicator:hover {
    opacity: 1;
}

.efs-scroll-indicator-text {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.efs-scroll-indicator-icon {
    width: 24px;
    height: 24px;
}

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

/* Hide indicator on last section */
body.efs-fullpage-active.efs-last-section .efs-scroll-indicator {
    opacity: 0;
    visibility: hidden;
}

/* =============================================
   Progress Bar (optional alternative)
   ============================================= */

.efs-progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: rgba(0, 0, 0, 0.1);
    z-index: 9999;
}

.efs-progress-fill {
    height: 100%;
    background-color: #000000;
    width: 0%;
    transition: width 0.3s ease;
}

/* =============================================
   Responsive - Mobile adjustments
   ============================================= */

@media (max-width: 767px) {
    .efs-nav-dots {
        right: 10px;
        left: auto;
        gap: 10px;
        padding: 10px 8px;
    }

    .efs-dot {
        width: 10px;
        height: 10px;
    }

    .efs-dot-tooltip {
        display: none;
    }
}

/* =============================================
   Overflow Sections - Allow scroll within tall sections
   ============================================= */

/* 
   Para secciones con contenido más alto que la pantalla:
   - La sección tiene height: 100vh y overflow-y: auto
   - El usuario puede hacer scroll dentro de la sección
   - Al llegar al borde, cambia a la siguiente sección
*/

body.efs-fullpage-active .efs-section.efs-section-overflow {
    height: 100vh;
    max-height: 100vh;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
}

/* Asegurar que el contenido interno no esté limitado */
body.efs-fullpage-active .efs-section.efs-section-overflow > * {
    flex-shrink: 0;
}

/* =============================================
   Reduced Motion
   ============================================= */

@media (prefers-reduced-motion: reduce) {
    .efs-sections-wrapper {
        transition: none;
    }

    body.efs-fullpage-active .efs-section .efs-animate-item {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .efs-scroll-indicator {
        animation: none;
    }
}

/* =============================================
   Easing Functions (applied via JS)
   ============================================= */

/* 
   ease-out-cubic: cubic-bezier(0.33, 1, 0.68, 1)
   ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1)
   ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1)
   bounce: cubic-bezier(0.34, 1.56, 0.64, 1)
*/
