/* ---- RESET BÁSICO Y ESTILOS GENERALES ---- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%; /* Asegura que el body pueda tener una altura del 100% */
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: #ffffff;
    color: #333333;
}

/* ---- NUEVO CONTENEDOR PRINCIPAL ---- */
.main-wrapper {
    width: 100%;
    min-height: 100vh; /* Ocupa como mínimo toda la altura de la pantalla */
    display: flex;
    flex-direction: column;
    justify-content: center; /* Centra el contenido verticalmente */
    align-items: center;     /* Centra el contenido horizontalmente */
    padding: 2rem 20px;      /* Añade padding para que no se pegue a los bordes */
}

/* ---- CONTENEDOR DE CONTENIDO INTERNO ---- */
.container {
    width: 100%;
    max-width: 960px;
    text-align: center;
    /* El contenedor interno ahora es un elemento flex para controlar sus hijos */
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* ---- LOGO (TAMAÑO Y MARGEN AJUSTADO) ---- */
.logo {
    max-width: 400px; /* Reducimos ligeramente el tamaño máximo */
    width: 85%;
    margin-bottom: 1.5rem; /* Reducimos el margen inferior */
}

/* ---- MENSAJES PRINCIPALES (TAMAÑOS Y MÁRGENES AJUSTADOS) ---- */
.main-message h1 {
    font-family: 'Anton', sans-serif;
    font-size: 2.2rem; /* Reducimos ligeramente el tamaño de fuente */
    color: #000000;
    margin-bottom: 0.75rem; /* Reducimos el margen inferior */
    line-height: 1.2;
}

.main-message p {
    font-family: 'Anton', sans-serif;
    font-size: 1.8rem; /* Reducimos ligeramente el tamaño de fuente */
    color: #000000;
    margin-bottom: 2rem; /* Reducimos el margen inferior */
}

/* ---- SECCIÓN DE CARTELES (TAMAÑOS Y MÁRGENES AJUSTADOS) ---- */
.posters-section {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 2rem; /* Espacio horizontal entre los carteles */
}

.poster-card {
    width: 220px; /* Reducimos el ancho de la tarjeta para que la altura también disminuya */
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.3s ease;
}

.poster-card:hover {
    transform: scale(1.05);
}

.poster-card a {
    display: block;
    margin-bottom: 0.75rem; /* Reducimos el espacio entre imagen y texto */
}

.poster-card img {
    width: 100%;
    height: auto;
    border: 1px solid #dddddd;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.poster-card h3 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1.1rem; /* Reducimos ligeramente el tamaño de fuente */
    color: #000000;
}


/* ---- AJUSTES PARA DISPOSITIVOS MÓVILES (RESPONSIVE) ---- */
@media (max-width: 768px) {
    /* En móvil, permitimos que el contenedor crezca si es necesario */
    .main-wrapper {
        justify-content: flex-start; /* Alineamos al inicio en lugar de centrar */
        padding: 2rem 15px;
    }

    .main-message h1 {
        font-size: 2rem;
    }

    .main-message p {
        font-size: 1.5rem;
    }
    
    .posters-section {
        flex-direction: column;
        align-items: center;
        gap: 2.5rem;
    }

    .poster-card {
        width: 80%;
        max-width: 300px;
    }
}