/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    color: #ffffff;
    /* Use background2.jpg correctly */
    background-image: url('background3.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    height: 100vh;
    overflow: hidden;
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

/* Main Container Layout */
.container {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 0 2rem;
    margin-top: 40px;
    max-width: 800px;
    width: 100%;
}

.content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0;
}

/* Logo and Animation */
.logo {
    width: 380px;
    height: 380px;
    object-fit: contain;
    margin-bottom: -60px;
    /* Make it pop initially */
    animation:
        fadeIn 1.2s ease-out,
        float 6s ease-in-out infinite;
}

/* Typography styles */
.title {
    font-family: 'Patrick Hand', cursive;
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    font-weight: 400;
    color: #151616;
    line-height: 1.1;
    margin-top: 0;
    /* Resplandor blanco para contrastar mejor letras negras en cielo azul */
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.9), 0 0 5px rgba(255, 255, 255, 0.5);
}

.title+.title {
    margin-top: 20px;
}

.subtitle {
    font-size: clamp(1rem, 3vw, 1.25rem);
    line-height: 1.6;
    color: #cbd5e1;
    font-weight: 400;
    max-width: 500px;
}

/* Loader Animation */
.loader {
    display: flex;
    gap: 8px;
    margin-top: 1rem;
}

.dot {
    width: 10px;
    height: 10px;
    background-color: #f8fafc;
    border-radius: 50%;
    animation: pulse 1.5s infinite ease-in-out both;
}

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

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

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

/* Keyframes */
@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-15px);
    }

    100% {
        transform: translateY(0px);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.8) translateY(20px);
    }

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

@keyframes pulse {

    0%,
    80%,
    100% {
        transform: scale(0);
        opacity: 0.5;
    }

    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Responsive adjustments */
@media (max-width: 900px) {

    /* Tablet */
    .logo {
        width: 280px;
        height: 280px;
        margin-bottom: -40px;
    }
}

@media (max-width: 600px) {

    /* Mobile */
    .container {
        padding: 1rem;
        margin-top: 30px;
    }

    .logo {
        width: 200px;
        height: 200px;
        margin-bottom: -30px;
    }
}

/* Footer Styles */
.footer {
    position: absolute;
    bottom: 1.5rem;
    left: 1.5rem;
    z-index: 10;
}

.footer p {
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    color: #cbd5e1;
    margin: 0;
    font-weight: 400;
    letter-spacing: 0.5px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.6);
}

@media (max-width: 600px) {
    .footer {
        bottom: 1rem;
        left: 1rem;
    }
    .footer p {
        font-size: 0.7rem;
    }
}