body {
    font-family: sans-serif;
    margin: 0;
    overflow: hidden; /* Evita barras de scroll */
    background-color: #f0f0f0;
    display: flex;
    flex-direction: column;
    height: 100vh;
}

h1 {
    text-align: center;
    padding: 10px;
    margin: 0;
    background-color: #333;
    color: white;
    font-size: 1.5em;
}

#main-container {
    display: flex;
    flex-grow: 1; /* Ocupa el espacio restante */
    overflow: hidden; /* Contiene los elementos hijos */
}

#prism-container {
    flex-grow: 3; /* El prisma ocupa más espacio */
    height: 100%;
    background-color: #e0e0e0;
    position: relative; /* Necesario para el canvas */
    min-width: 300px; /* Asegura un tamaño mínimo */
}

#details-panel {
    flex-grow: 1; /* El panel ocupa menos espacio */
    height: 100%;
    padding: 20px;
    background-color: #ffffff;
    border-left: 2px solid #ccc;
    overflow-y: auto; /* Scroll si el contenido es largo */
    min-width: 250px; /* Asegura un tamaño mínimo */
}

#details-panel h2 {
    margin-top: 0;
    color: #333;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

#details-panel h3 {
    color: #007bff;
    margin-top: 15px;
}

#details-panel ul {
    list-style: none;
    padding-left: 15px;
}

#details-panel li {
    margin-bottom: 8px;
    font-size: 0.95em;
    border-left: 3px solid #eee;
    padding-left: 8px;
}

#details-panel li.completed {
    text-decoration: line-through;
    opacity: 0.7;
    border-left-color: #5cb85c;
}

/* Estilos para hitos y tareas */
.hito-title {
    font-weight: bold;
    color: #555;
    margin-top: 10px;
    display: block; /* Asegura que esté en su propia línea */
}
.task-item {
    margin-left: 10px;
}
.task-priority-3 { color: red; font-weight: bold; }
.task-priority-2 { color: orange; }
.task-priority-1 { color: green; }
.task-estimation { font-size: 0.8em; color: #777; margin-left: 5px;}
.task-blocked { color: red; font-weight: bold; margin-left: 5px; }


canvas {
    display: block; /* Evita espacio extra debajo del canvas */
}