/* Configuración estructural base */
body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f9;
    color: #333;
    padding: 20px;
    margin: 0;
}

h1 {
    color: #2c3e50;
    border-bottom: 2px solid #2c3e50;
    padding-bottom: 10px;
}

h2 {
    color: #2c3e50;
    margin-top: 5px;
    font-size: 1.3rem;
}

.ejercicio {
    background-color: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.explicacion {
    background-color: #ebf8ff;
    padding: 10px 15px;
    border-left: 4px solid #3182ce;
    margin-bottom: 20px;
    border-radius: 0 4px 4px 0;
    color: #2b6cb0;
}

.sub-tecnico {
    font-size: 0.85rem;
    color: #718096;
    margin-top: 5px;
}

/* Layout del laboratorio */
.malla-laboratorio {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.btn-interactivo {
    padding: 12px 20px;
    background-color: #3182ce;
    color: white;
    border: none;
    border-radius: 4px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.2s;
}

.btn-interactivo:hover {
    background-color: #2b6cb0;
}

.area-render {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    min-height: 200px;
    padding: 20px;
    border: 2px dashed #e2e8f0;
    border-radius: 6px;
}

/* Estilos de las cajas dinámicas */
.caja-dinamica {
    width: 160px;
    height: 100px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    color: white;
    font-weight: bold;
    font-size: 0.9rem;
    border-radius: 6px;
    cursor: pointer;
    background-color: #3182ce;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.caja-dinamica:hover {
    transform: scale(1.05);
}

/* Botón de eliminar dentro de la caja */
.btn-eliminar {
    background-color: #e53e3e;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 4px 8px;
    cursor: pointer;
    font-size: 0.7rem;
}

.btn-eliminar:hover {
    background-color: #c53030;
}

/* Estado de selección */
.caja-seleccionada {
    background-color: #48bb78 !important; /* Verde para indicar selección */
}