
.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;
}

/* Imagen del logo */
.header_img {
    max-width: 500px;
    width: 100%;
    margin-bottom: 60px;
}

/* 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.2em;
    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;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
}

/* Imagen ladrillos con paneo */
.bricks_img,  .bricks_desktop_img{
    display: block;
    position: absolute;
    width: 200%;
    height: 100%;
    object-fit: cover;
    animation: panBricksX 20s linear infinite alternate;
}
.bricks_desktop_img{
    display: none;
}
/* 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;
    }
    .portada_container, .bricks_container {
        flex: 1;
        height: 100%;
    }
    .bricks_img{
        display: none;
    }
    .bricks_desktop_img{
        display: block;
        width: 100%;
        height: 200%;
        animation: panBricksY 20s linear infinite alternate;
    }
}