
.header {
    display: flex;
    flex-direction: column;
    height: 100vh;
    overflow: hidden;
}

/* Portada container (logo + CTA) */
.portada_container {
    display: flex;
    box-sizing: border-box;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
    background-color: #fff;
    padding: 20px;
    text-align: center;
    position: relative;
}

/* Imagen del logo */
.header_img {
    max-width: 70px;
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    margin: 5px;
}
.header_title{
    margin: 0;
    margin-bottom: 40px;
    text-align: center;
    width: 80%;
    max-width: 600px;
    font-size: 1.9em;
}
/* Botón moderno */
.cta_button {
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 250px;
    height: 50px;
    font-size: 1.1em;
    color: #fff;
    background: linear-gradient(45deg, #01653E, #068655);
    border: none;
    border-radius: 999px;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cta_button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}

/* Bricks container */
.bricks_container {
    position: relative;
    overflow: hidden;
    flex: 1;
}
.bricks_container::after{
    content: "";
    width: 100%;
    height: 60%;
    background-image:  linear-gradient(rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.7));
    position: absolute;
    bottom: 0;
}

/* Imagen ladrillos con paneo */
.bricks_desktop_img{
    display: block;
    position: absolute;
    object-fit: cover;
    width: 100%;
    height: 200%;
    animation: panBricksY 20s linear infinite alternate;
    filter: brightness(0.8);
}
/* Animación paneo horizontal (por defecto mobile) */
@keyframes panBricksX {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

/* Animación paneo vertical (desktop) */
@keyframes panBricksY {
    from { transform: translateY(0); }
    to { transform:translateY(-50%); }
}
/* Desktop layout (a partir de 700px) */
@media (min-width: 700px) {
    .header {
        flex-direction: row-reverse;
    }
    .header_title{
        font-size: 2.5em;
    }
    .cta_button {
        margin-bottom: 60px;
    }
    .portada_container, .bricks_container {
        flex: 1;
        height: 100%;
    }
    .bricks_img{
        display: none;
    }
}