body, html {
    margin: 0;
    padding: 0;
    font-family: sans-serif;
    background-color: #f0f2f5;
    color: #333;
}

.contenedor-principal {
    display: flex;
    height: 100vh;
}

/* --- Sección del QR (con el color de fondo cambiado) --- */
.seccion-qr {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
    /* CAMBIA ESTE COLOR */
    background-color: #333; /* Por ejemplo, un gris oscuro */
}

.seccion-qr img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.seccion-qr img:hover {
    transform: scale(1.02);
}

.seccion-qr img:fullscreen {
    object-fit: contain;
    background-color: #000;
}

/* --- Sección de la galería de fotos (con el fondo cambiado) --- */
.seccion-fotos {
    flex: 1;
    display: flex;
    box-sizing: border-box;
    background-color: #F0F0F0; /* Por ejemplo, un color gris claro */
    overflow: hidden;
}

.galeria {
    display: grid;
    width: 100%;
    height: 100%;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 15px;
    padding: 15px;
    box-sizing: border-box;
}

.galeria img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
}

.galeria img:hover {
    transform: scale(1.03);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

/* --- Reglas para pantallas pequeñas (móviles) --- */
@media (max-width: 768px) {
    .contenedor-principal {
        display: block;
        height: 100vh;
    }
    
    .seccion-qr {
        height: 100%;
        width: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .seccion-qr img {
        width: 100%;
        height: 100%;
        max-width: 100%;
        object-fit: cover;
    }
    
    .seccion-fotos {
        display: none;
    }
}