body,
html {
    margin: 0;
    padding: 0;
    height: 100%;
    font-family: 'Segoe UI', sans-serif;
}

/* Contenedor principal */
.split-container {
    display: flex;
    height: 100vh;
}

/* Secciones */
.split {
    flex: 1;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.5s ease;
}

/* Imágenes */
.split::before {
    content: "";
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transition: transform 0.6s ease;
    background-size: 90%;
}

/* Overlay oscuro */
.split::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    transition: background 0.4s ease;
}

/* Contenido */
.content {
    position: relative;
    z-index: 2;
    color: white;
    text-align: center;
    top: 50%;
    transform: translateY(-50%);
    padding: 20px;
}

/* Títulos */
.content h1 {
    font-size: 2.5rem;
    font-weight: bold;
}

.content p {
    opacity: 0.9;
}

/* Botón */
.btn-enter {
    margin-top: 15px;
    padding: 10px 25px;
    border-radius: 30px;
    border: none;
    background: green;
    color: #fff;
    font-weight: bold;
    transition: all 0.3s ease;
    width: 20%;
    min-width: 150px;
}

.btn-enter:hover {
    background: gold;
    color: black;
}

/* Hover efectos */
.split:hover {
    flex: 1.2;
}

.split:hover::before {
    transform: scale(1.1);
}

.split:hover::after {
    background: rgba(0, 0, 0, 0.3);
}

/* Fondos */
.left::before {
    background-image: url('img/copa_revolucion-izquierda.png');
    /* CAMBIA */
}

.right::before {
    background-image: url('img/north_american_derecha.png');
    /* CAMBIA */
}

/* Texto superior */
.header-container {
    position: absolute;
    bottom: 30px;
    width: max-content;
    max-width: 90%;
    left: 0;
    right: 0;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    z-index: 10;
}

.header-text {
    background: rgba(0, 0, 0, 0.6);
    /* negro con transparencia */
    color: white;
    padding: 15px 35px;
    border-radius: 20px;
    font-size: 1.5rem;
    font-weight: 500;
    text-align: center;
    backdrop-filter: blur(8px);
    /* 🔥 efecto glass */
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
    letter-spacing: 1px;
}

.sub {
    display: block;
    font-size: 1.2rem;
    opacity: 0.8;
    margin-top: 5px;
    letter-spacing: 1px;
}

/* =========================================
   RESPONSIVE DESIGN (MÓVILES)
   ========================================= */
@media (max-width: 768px) {

    /* Apilamos las dos mitades para que se vean bien en móvil */
    .split-container {
        flex-direction: column;
    }

    /* El header container antes de 30% ahora es 90% para caber en móvil */
    .header-container {
        width: 90%;
        bottom: 15px;
    }

    /* Achicamos textos del header principal */
    .header-text {
        font-size: 1.1rem;
        padding: 10px 20px;
    }

    .sub {
        font-size: 0.9rem;
    }

    /* Achicamos la tipografía del contenido central */
    .content h1 {
        font-size: 1.8rem;
    }

    .content p {
        font-size: 0.95rem;
    }

    /* Que el botón no intente ser % sino que se ajuste a su min-width o al padding */
    .btn-enter {
        width: auto;
        min-width: 120px;
        padding: 8px 20px;
    }

    /* Para que las imágenes en móvil no queden tan expandidas (opcional, ajustarlo a cover) */
    .split::before {
        background-size: cover;
    }
}