@font-face {
    font-family: 'Montserrat';
    src: url('../fonts/Montserrat-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'Montserrat';
    src: url('../fonts/Montserrat-Light.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

.content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    z-index: 10;
    width: 90%;
    max-width: 600px;
    height: 100%;
}

.logo-container {
    width: 100%;
    max-width: 380px;
    margin-bottom: 2.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.svg-logo {
    width: 100%;
    height: auto;
    display: block;
}

/* Base style for elements before animation */
.svg-logo path {
    opacity: 0;
    transform: translateY(15px);
    fill: #ffffff;
}

/* Trigger class added via JS */
.svg-logo.animate path {
    animation: fadeUpLogo 1.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes fadeUpLogo {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.text-container {
    height: 60px;
    position: relative;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.animated-text {
    position: relative;
    width: 100%;
    text-align: center;
    font-size: clamp(1.2rem, 5vw, 2rem);
    font-weight: 300;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.9);
}

.text-anim {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    white-space: nowrap;
    animation: textSwap 7s infinite ease-in-out;
}

.text-2 {
    animation-delay: 3.5s;
}

@keyframes textSwap {

    0%,
    5% {
        opacity: 0;
        transform: translate(-50%, -50%) translateY(15px);
    }

    15%,
    45% {
        opacity: 1;
        transform: translate(-50%, -50%) translateY(0);
    }

    55%,
    100% {
        opacity: 0;
        transform: translate(-50%, -50%) translateY(-15px);
    }
}

@media (min-width: 768px) {
    .logo-container {
        max-width: 500px;
    }
}

body {
    background-color: #000000;
    color: #ffffff;
    font-family: 'Montserrat', sans-serif;
    min-height: 100vh;
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    position: relative;
}

/* Background Image System */
.background-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.background-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    /* Mouse ignores this entire container */
}

.background-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    opacity: 0;
    transform: scale(1.1);
    animation: premiumBgEntry 2.5s cubic-bezier(0.23, 1, 0.32, 1) forwards;
    pointer-events: none;
    /* Mouse ignores the image itself */
    user-select: none;
    -webkit-user-drag: none;
}

.background-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    /* Degradado oscuro (vignette) para enmarcar el contenido */
    background: radial-gradient(circle,
            rgba(0, 0, 0, 0) 30%,
            rgba(0, 0, 0, 0.4) 70%,
            rgba(0, 0, 0, 0.8) 100%);
    pointer-events: auto;
}

@keyframes premiumBgEntry {
    0% {
        opacity: 0;
        transform: scale(1.1);
    }

    100% {
        opacity: 0.85;
        /* Sustancial pero permite ver el texto claramente */
        transform: scale(1);
    }
}