/* Reseteo básico y fuente */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f3f2f1; /* Gris muy claro de fondo */
    color: #323130;
    height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Barra superior */
.top-bar {
    background-color: #0078D4; /* Azul solicitado */
    color: white;
    padding: 15px 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.top-bar h1 {
    font-size: 1.2rem;
    font-weight: 600;
}

/* Contenedor Flexbox principal */
.container {
    display: flex;
    flex: 1;
    padding: 20px;
    gap: 20px;
    overflow: hidden;
}

/* Panel Izquierdo */
.left-panel {
    width: 300px;
    background-color: white;
    border: 1px solid #e1dfdd;
    display: flex;
    flex-direction: column;
    padding: 15px;
}

.search-container {
    display: flex;
    border: 1px solid #8a8886;
    padding: 5px 10px;
    border-radius: 2px;
    margin-bottom: 15px;
}

.search-container input {
    border: none;
    outline: none;
    width: 100%;
    font-size: 1rem;
}

.btn-nuevo {
    background: transparent;
    border: none;
    color: #323130;
    text-align: left;
    padding: 10px 0;
    font-size: 1rem;
    cursor: pointer;
    border-bottom: 1px solid #e1dfdd;
    margin-bottom: 10px;
}

.btn-nuevo span { color: #0078D4; font-size: 1.2rem; font-weight: bold; margin-right: 5px;}

/* Lista de artículos */
.item-list {
    list-style: none;
    overflow-y: auto;
}

.item-list li {
    padding: 15px 10px;
    border-bottom: 1px solid #e1dfdd;
    cursor: pointer;
    transition: background 0.2s;
}

.item-list li:hover { background-color: #f3f2f1; }
.item-list li.active { background-color: #edebe9; border-left: 4px solid #0078D4; }

.item-title { font-weight: 600; margin-bottom: 3px; }
.item-subtitle { font-size: 0.85rem; color: #605e5c; }

/* Panel Derecho */
.right-panel {
    flex: 1;
    background-color: white;
    border: 1px solid #e1dfdd;
    padding: 20px;
    overflow-y: auto;
}

.detail-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #e1dfdd;
    padding-bottom: 15px;
    margin-bottom: 20px;
}

.detail-header h2 { font-size: 1.1rem; }

.icon-btn {
    background: none;
    border: none;
    font-size: 1.2rem;
    margin-left: 15px;
    cursor: pointer;
}

.detail-content {
    display: flex;
    gap: 40px;
}

.info-grid {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.info-row {
    display: flex;
}

.label {
    width: 150px;
    font-weight: 600;
    color: #323130;
}

.value { color: #605e5c; }

.image-container img {
    max-width: 300px;
    border: 2px solid #000; /* Borde negro como en la imagen */
    padding: 5px;
}

/* Responsividad para Celulares */
@media (max-width: 768px) {
    .container { flex-direction: column; padding: 10px; }
    .left-panel { width: 100%; max-height: 300px; }
    .detail-content { flex-direction: column; }
    .image-container img { max-width: 100%; }
}