:root {
    --primary-font: 'Poppins', sans-serif;
    --title-font: 'Sacramento', cursive;
    --text-color: #333333; /* Darker text for white background */
    --accent-color: #005a4a; /* A green from the example site */
    --button-bg: var(--accent-color);
    --button-text: #ffffff;
    --button-hover-bg: #004a3c;
    --button-border-color: #66bb6a; /* Lighter green for border */
}

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    font-family: var(--primary-font);
}

body {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-image: url('ryg.jpg');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    position: relative;
}

/* Overlay to improve text readability */
body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.content-wrapper {
    position: relative;
    z-index: 2;
    background-color: rgba(20, 20, 20, 0.4);
    color: #ffffff;
    padding: 40px 30px;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    max-width: 500px;
    width: 90%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

h1 {
    font-family: var(--title-font);
    font-size: 4rem;
    margin-top: 0;
    margin-bottom: 0.5rem;
    font-weight: 400;
    color: #ffffff;
    animation: fadeInUp 1s ease-out forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

p {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    font-weight: 300;
    max-width: 400px;
}

.enter-button {
    display: inline-block;
    padding: 15px 40px;
    background-color: rgba(0, 0, 0, 0.2); /* Fondo oscuro semitransparente */
    color: var(--button-text); /* Always white */
    border: 2px solid var(--button-border-color); /* Lighter green border */
    border-radius: 50px; /* Bordes redondeados para forma ovalada */
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 600;
}

.destacado {
    font-weight: 600;
    color: #ffffff; /* White */
    /* Removed text-shadow */
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .content-wrapper {
        padding: 30px 20px;
        width: 85%; /* Changed from calc(100% - 40px) */
        max-width: 300px; /* Changed from 350px */
    }
    h1 {
        font-size: 3rem;
    }
    p {
        font-size: 0.9rem;
    }
    .enter-button {
        padding: 12px 30px;
        font-size: 1rem;
    }
}

footer {
    position: absolute;
    bottom: 20px; /* Some padding from the bottom */
    width: 100%;
    text-align: center;
    color: rgba(255, 255, 255, 0.7); /* Transparent white text */
    font-size: 0.9rem;
    z-index: 2; /* Above the background overlay */
}

/* --- Loader Styles --- */

/* Ocultar contenido por defecto y preparar transiciones */
body:not(.loaded) .content-wrapper,
body:not(.loaded) footer {
    visibility: hidden;
    opacity: 0;
}

/* Estilos del loader */
#loader {
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    background: #1a1a1a; /* Un color de fondo oscuro mientras carga */
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.spinner {
    border: 6px solid rgba(255, 255, 255, 0.2);
    border-top: 6px solid #fff;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Clases para gestionar la visibilidad post-carga */
body.loaded .content-wrapper,
body.loaded footer {
    visibility: visible;
    opacity: 1;
    transition: opacity 0.5s ease 0.2s; /* Pequeño retraso para una entrada más suave */
}
body.loaded #loader {
    opacity: 0;
    visibility: hidden;
}