/*
|--------------------------------------------------------------------------
| MINIMALIST INTRO STYLES: SOLUCIÓN FINAL DE ANCHO Y ESPACIO
|--------------------------------------------------------------------------
*/

body {
    font-family: 'Roboto Mono', monospace; 
    margin: 0;
    padding: 0;
    background-color: #000; 
    color: #fff;
    overflow: hidden; 
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.section {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.masthead-image {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: background-pulse 20s infinite ease-in-out;
}

.content.center {
    text-align: center;
    z-index: 10;
    padding: 20px;
    opacity: 0; 
    animation: content-in 1s forwards 0.5s; 
}

/* TÍTULO PRINCIPAL */
.main-title {
    font-size: 3.5em; 
    font-weight: 300; 
    line-height: 1.2;
    display: flex; 
    justify-content: center;
    color: #fff;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.5); 
    letter-spacing: 1px;
    margin-bottom: 20px; 
}

/* Contenedor del texto rotatorio (CORREGIDO) */
#master-container-scroller {
    font-size: 1em; 
    line-height: 1.2em;
    height: 1.2em;
    overflow: hidden;
    /* 💡 Margen aumentado */
    margin-left: 20px; 
    position: relative;
    /* 💡 AUMENTO FINAL DEL ANCHO para asegurar que quepa "Masaya Market." */
    min-width: 480px; 
    display: inline-block; 
    vertical-align: top;
    white-space: nowrap; 
    text-align: left;
}

/* Ítems individuales: Ahora se apilan y la animación cambia su opacidad */
.master-container-scroller_item {
    color: #00FF7F; 
    font-weight: 700;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    opacity: 0; 
    animation: fade-word-in 4s infinite; 
    text-align: left;
    transform: none; 
}

/* Forzamos el primer ítem a ser visible al cargar */
#master-container-scroller .master-container-scroller_item:nth-child(1) {
    opacity: 1; 
    animation-delay: 0s; 
}

/* Aplicamos el delay a cada palabra para que aparezcan en secuencia */
.master-container-scroller_item:nth-child(2) { animation-delay: -2s; }


/* KEYFRAMES DE FADE: Simple y sin transformaciones 3D */
@keyframes fade-word-in {
    0% { opacity: 0; }
    1% { opacity: 1; } 
    49% { opacity: 1; } 
    50% { opacity: 0; } 
    100% { opacity: 0; } 
}

/* SUBTÍTULO y LISTA DE MIEMBROS (Mantenidos) */
.subtitle {
    font-size: 0.9em;
    font-weight: 300;
    margin-top: 30px;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 30px;
}

.members-container {
    margin-top: 20px;
    margin-bottom: 40px;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.1); 
    animation-delay: 2.5s !important; 
}

.members-heading {
    font-size: 0.7em; 
    font-weight: 700;
    letter-spacing: 3px;
    color: #00FF7F; 
    display: block;
    margin-bottom: 5px;
}

.members-list {
    font-size: 0.8em; 
    font-weight: 300;
    opacity: 0.7;
    margin: 0;
}

.enter-button {
    display: inline-block;
    background-color: transparent;
    border: 1px solid #00FF7F; 
    color: #00FF7F;
    text-decoration: none;
    padding: 10px 25px;
    margin-top: 50px;
    font-size: 1em;
    font-weight: 300;
    border-radius: 2px;
    letter-spacing: 2px;
    transition: all 0.3s ease;
}

.enter-button:hover {
    background-color: #00FF7F;
    color: #000;
    transform: scale(1.05);
}

.enter-button span {
    margin-left: 8px;
    transition: margin-left 0.3s ease;
}

.enter-button:hover span {
    margin-left: 12px;
}

/* ANIMACIONES ADICIONALES */
@keyframes content-in {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes background-pulse {
    0% { background-color: #000000; }
    50% { background-color: #030303; }
    100% { background-color: #000000; }
}

.fade-in-item {
    animation: item-fade-in 1s forwards;
    opacity: 0;
}

.subtitle .fade-in-item {
    animation-delay: 1.5s;
}

.enter-button.fade-in-item {
    animation-delay: 3s; 
}

@keyframes item-fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Media Query para pantallas más pequeñas */
@media (max-width: 768px) {
    .main-title {
        font-size: 2em;
        flex-direction: column; 
    }
    #master-container-scroller {
        margin-left: 0;
        min-width: 100%;
    }
    .master-container-scroller_item {
        text-align: center;
    }
}