/* Estilos generales */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background-color: #f0f0f0;
    padding: 20px;
}

/* Contenedor principal */
.container {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Estilos base para las filas */
.row {
    display: flex;
    background-color: #e0e0e0;
    border: 2px solid #ccc;
    padding: 10px;
    gap: 10px;
}

/* Estilos base para las cajas */
.box {
    background-color: #2196F3;
    color: white;
    font-weight: bold;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 60px;
    border-radius: 4px;
}

/* FILA 1: Cuatro cajas iguales */
.row-1 {
    justify-content: space-between;
}

.row-1 .box {
    flex: 1;
}

/* FILA 2: Tres cajas, centro más ancha */
.row-2 {
    justify-content: space-between;
}

.row-2 .box {
    flex: 1;
}

.row-2 .box-wide {
    flex: 2; /* Doble de ancho */
}

/* FILA 3: Tres cajas, centro más angosta */
.row-3 {
    justify-content: space-between;
}

.row-3 .box {
    flex: 2;
}

.row-3 .box-narrow {
    flex: 1; /* Mitad de ancho */
}

/* FILA 4: Cinco cajas pequeñas */
.row-4 {
    justify-content: space-between;
}

.row-4 .box-small {
    width: 80px;
    height: 50px;
    flex-shrink: 0;
}

/* FILA 5: Contenedor alto con distribución especial */
.row-5 {
    height: 200px;
    align-items: stretch;
}

.box-vertical {
    width: 80px;
    height: 100%;
    flex-shrink: 0;
}

.right-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;
    padding-left: 20px;
}

.box-top {
    width: 100px;
    height: 40px;
    align-self: flex-start;
}

.box-center {
    width: 60px;
    height: 40px;
    align-self: center;
}

.box-bottom {
    width: 80px;
    height: 40px;
    align-self: flex-end;
}