/* ================================================
   Sección: Inicio - Quiénes Somos
   Archivo: astra-child/assets/css/inicio-quienes-somos.css
   ================================================ */

/* Contenedor principal flex — única clase que necesitás asignar */
.qs-bloque {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    gap: 2rem;
    padding: 6rem 10rem !important;
    box-sizing: border-box;
}

/* Div interno con el texto (primer hijo directo) */
.qs-bloque > div:first-child {
    flex: 0 0 44%;            /* 44% fijo → aprox 370px en 840px total */
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;      /* ← centrado horizontal del contenido */
    text-align: center;       /* ← centra el texto en sí */
    padding: 1.5rem;
    box-sizing: border-box;
}

/* Imagen (segundo hijo directo) */
.qs-bloque > figure,
.qs-bloque > div:last-child {
    flex: 0 0 56%;            /* 56% fijo → aprox 470px en 840px total */
    min-width: 0;
}

.qs-bloque > figure img,
.qs-bloque > div:last-child img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 4px;
}

/* ================================================
   Responsivo — Tablet (menor a 900px)
   ================================================ */
@media (max-width: 900px) {
    .qs-bloque {
        padding: 2rem 1.5rem;
        gap: 1.5rem;
    }
}

/* ================================================
   Responsivo — Mobile (menor a 640px)
   ================================================ */
@media (max-width: 640px) {
    .qs-bloque {
        flex-direction: column;
        padding: 1.5rem 1rem;
        gap: 1.25rem;
    }

    /* Texto primero */
    .qs-bloque > div:first-child {
        order: 1;
        flex: unset;
        width: 100%;
        padding: 1rem;
    }

    /* Imagen después */
    .qs-bloque > figure,
    .qs-bloque > div:last-child {
        order: 2;
        flex: unset;
        width: 100%;
    }

    .qs-bloque > figure img,
    .qs-bloque > div:last-child img {
        height: 260px;
        object-fit: cover;
    }
}