*,*::before, *::after {
   box-sizing: inherit;
}

html, body{
    height: 100%;
    margin: 0;
    padding: 0; 
    overflow: hidden; 
    box-sizing: border-box;
    color: #7A7A7A;
    font-family: 'Montserrat', sans-serif;
}


.container {
    display: flex;
    align-items: stretch;
    justify-content: flex-start;
    width: 100%;
    height: 100vh;
    padding: 0;
}

.container-background {  
    background: url('../imagenes/fondo.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    padding: 20px;
    width: 65%;
    height: 100%;
    overflow: auto;
}

.sidebar {
    width: 35%;
    height: 100%;
    overflow: auto; 
    display: flex;
    flex-direction: column;
    gap: 10px;
    overflow: auto;
}

h2{
    color: #d00606;
    font-weight: bold;
    font-size: 22px;
    font-weight: 700;
    line-height: 20px;
}

@media (max-width: 1024px) {
    html, body { overflow: auto; }

   .container {
        position: relative;
        height: auto; 
        min-height: 100vh; 
        justify-content: center;
        padding: 20px 0 80px;
        display: block; 
    }

    .container-background {
        display: none;
    }
    body{
        background-image: url('../imagenes/fondo.png');
        background-position: center;
        background-size: cover;
        background-repeat: no-repeat;
        padding-top: 25px;

    }

    .sidebar {
        position: relative; 
        left: auto; 
        top: auto; 
        transform: none; 
        width: calc(100% - 80px); 
        max-width: 600px;
        max-height: none; 
        height: auto;
        overflow: visible; 
        border-radius: 12px;
        box-shadow: 0 20px 40px rgba(0,0,0,0.25);
        z-index: 2;
        background: #fff; 
        display: flex;
        flex-direction: column;
        gap: 10px;
        margin: 0 auto; 
    }
    .section-image img { height: auto; max-width: 100%; }
}

@media (max-width: 600px) {
    .container { height: auto; padding: 20px 0 80px; }
    .container-background { height: auto; min-height: 24vh; }
    .sidebar {
        width: calc(100% - 48px); 
        max-width: 480px;
    }
    .section-banner-top { height: auto; align-items: center; }
}
