.loading-page {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100dvh; /* Usa dynamic viewports mobile-friendly */
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    transition: opacity 1.2s ease-out;
    background-color: #ffffff;
    overflow: hidden;
    overscroll-behavior: none;
    touch-action: none; /* Evita gestos de scroll */
}

.loading-page.fade-out {
    opacity: 0;
    pointer-events: none;
}

.loading-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #000;
}

.background-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../../assets/Fotografia-22.jpg');
    background-size: cover;
    background-position: center top; 
    filter: brightness(0.5);
    z-index: 0;
    opacity: 1;
    transition: opacity 1s ease;
}

.content-loaded .background-overlay {
    opacity: 1;
}

.loading-content {
    position: relative;
    z-index: 10;
    text-align: center;
    color: white;
    padding: 20px;
}

.loading-animation {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    justify-content: center;
    gap: 12px;
    margin: 0;
    z-index: 30;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #bea587;
    opacity: 0;
}

.content-loaded .dot {
    opacity: 1;
    animation: bubble 1.0s ease-in-out infinite;
}

.dot:nth-child(1) {
    animation-delay: 0s;
}

.dot:nth-child(2) {
    animation-delay: 0.2s;
}

.dot:nth-child(3) {
    animation-delay: 0.4s;
}

.enter-btn {
    position: fixed;
    top: auto;
    bottom: 33%;
    left: 50%;
    transform: translateX(-50%);
    padding: 12px 30px;
    font-family: 'Poppins', sans-serif;
    font-size: 1.2rem;
    color: #e2d5c4;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 30;
    text-transform: uppercase;
    letter-spacing: 2px;
    border-radius: 50px;
    white-space: nowrap;
    animation: fadeIn 0.5s ease-in;

}

.enter-btn:hover {
    color: #fff;
}

.enter-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50px;
    padding: 2px;
    background: linear-gradient(to right, #815533, #e0caac);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.loading-custom-text {
    top: 100px;
    font-family: 'Poppins', sans-serif;
    font-size: 30px;
    color: #e2d5c4;
    letter-spacing: 0.321em;
    line-height: 1.29;
    z-index: 20;
    margin: 0;
    text-transform: uppercase;
    transform: translateX(-10px);
}

.loading-initials-text {
    top: 150px;
    font-family: 'Binggo Wood', cursive;
    font-size: 163px;
    color: #e2d5c4;
    text-shadow: 4px 4px 3px rgba(0, 0, 0, 0.31);
    z-index: 20;
    margin: 0;
    line-height: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.initial-left,
.initial-right {
    flex: 1;
    opacity: 0;
}

.content-loaded .initial-left,
.content-loaded .initial-right {
    animation: riseDown 1s ease-out forwards;
}

.initial-left {
    text-align: right;
    animation-delay: 0.5s;
}

.initial-right {
    text-align: left;
    animation-delay: 0.7s;
}

.loading-initials-text .separator {
    display: inline-block;
    width: 2px;
    height: 140px;
    background-color: #e2d5c4;
    margin: 0 40px;
    position: relative;
    top: -10px;
    flex-shrink: 0;
    opacity: 0;
}

.content-loaded .loading-initials-text .separator {
    animation: riseDown 1s ease-out forwards;
    animation-delay: 0.6s;
}

.block-reveal {
    position: relative;
    display: inline-block;
    color: transparent;
}

.content-loaded .block-reveal {
    animation: text-appear 0.1s 0.5s forwards;
}

.block-reveal::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background-color: #e2d5c4;
}

.content-loaded .block-reveal::after {
    animation: block-reveal-anim 0.5s cubic-bezier(0.74, 0.06, 0.4, 0.92) forwards;
}

@keyframes block-reveal-anim {
    0% {
        width: 0;
        left: 0;
    }

    50% {
        width: 100%;
        left: 0;
    }

    100% {
        width: 0;
        left: 100%;
    }
}

@keyframes text-appear {
    to {
        color: #e2d5c4;
        text-shadow: 6px 6px 6px rgba(0, 0, 0, 0.5);
    }
}

@keyframes bubble {

    0%,
    100% {
        transform: scale(0.2);
        opacity: 0.6;
    }

    50% {
        transform: scale(1.4);
        opacity: 1;
    }
}

@keyframes riseDown {
    from {
        opacity: 0;
        transform: translateY(-40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@media (max-width: 768px) {
    .loading-custom-text {
        font-size: 18px;
        top: 70px;
        letter-spacing: 0.2em;
    }

    .loading-initials-text {
        font-size: 80px;
        top: 100px;
    }

    .loading-initials-text .separator {
        height: 60px;
        width: 1px;
        margin: 0 20px;
        top: 0px;
    }
}

@media (max-width: 480px) {
    .dot {
        width: 10px;
        height: 10px;
    }
}