/* Reset CSS */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    font-family: 'Arial', sans-serif;
}

/* Contenedor principal */
.container {
    position: relative;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Imagen de fondo */
.background-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: 1;
}

/* Imagen para dispositivos horizontales/desktop - visible por defecto */
.desktop-image {
    display: block;
}

/* Imagen para dispositivos verticales/móviles - oculta por defecto */
.mobile-image {
    display: none;
}

/* Media query para dispositivos en orientación vertical (portrait) */
@media screen and (orientation: portrait) {
    .desktop-image {
        display: none;
    }
    
    .mobile-image {
        display: block;
    }
}

/* Media query adicional para asegurar que funcione en móviles específicamente */
@media screen and (max-width: 768px) and (orientation: portrait) {
    .desktop-image {
        display: none;
    }
    
    .mobile-image {
        display: block;
    }
}

/* Ajuste específico para pantallas muy pequeñas */
@media (max-width: 480px) {
    .container {
        height: 100vh;
        height: 100dvh; /* Usa dynamic viewport height para móviles */
    }
    
    .background-image {
        height: 100vh;
        height: 100dvh;
    }
}