/*

:root { --primary: #2c3e50; --accent: #27ae60; --light: #ecf0f1; }
body { font-family: 'Segoe UI', sans-serif; margin: 0; background: #f4f4f4; }

/* Navegación * /
.navbar { background: var(--primary); padding: 1rem; display: flex; justify-content: center; gap: 30px; }
.navbar a { color: white; text-decoration: none; font-weight: bold; padding: 5px 15px; border-radius: 4px; }
.navbar a.active { background: var(--accent); }

/* Contenedores * /
.container { max-width: 1200px; margin: 20px auto; background: white; padding: 20px; border-radius: 8px; box-shadow: 0 4px 6px rgba(0,0,0,0.1); }
table { width: 100%; border-collapse: collapse; margin-top: 15px; }
th, td { border: 1px solid #ddd; padding: 10px; text-align: left; }
th { background: #f8f9fa; color: var(--primary); }

*/

/* Configuracion General */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f4f7f6;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
    color: #333;
}

/* Menu de Navegacion */
.navbar {
    width: 100%;
    background-color: #2c3e50;
    padding: 12px 0;
    display: flex;
    justify-content: center;
    gap: 15px;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.navbar a {
    color: #ecf0f1;
    text-decoration: none;
    font-weight: 600;
    padding: 8px 20px;
    border-radius: 5px;
    transition: 0.3s;
}

.navbar a.active {
    background-color: #27ae60;
}

.navbar a:hover:not(.active) {
    background-color: #34495e;
}

/* Contenedor Principal */
.container {
    background-color: white;
    width: 95%;
    max-width: 1100px;
    margin: 30px 0;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

h1 {
    text-align: center;
    margin-bottom: 25px;
    color: #2c3e50;
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
}

/* Secciones y Formularios */
.section-box {
    border: 1px solid #e1e8ed;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 25px;
    background: #fff;
}

.section-box h3 {
    margin-bottom: 15px;
    color: #2c3e50;
    font-size: 1.1em;
}

/* Reorganizacion de campos: Cuadricula de 4 columnas */
.grid-fields {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 600;
    font-size: 0.85em;
    margin-bottom: 4px;
    color: #7f8c8d;
}

input, select {
    padding: 8px;
    border: 1px solid #dcdfe6;
    border-radius: 4px;
    font-size: 0.9em;
}

input:focus {
    border-color: #3498db;
    outline: none;
}

/* Estilos de Tablas */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
    font-size: 0.85em;
}

th {
    background-color: #f8f9fa;
    color: #2c3e50;
    padding: 10px;
    border-bottom: 2px solid #dee2e6;
    text-align: left;
}

td {
    padding: 8px;
    border-bottom: 1px solid #eee;
}

/* Botones */
.btn-add {
    background: #27ae60;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    margin-top: 15px;
    font-weight: bold;
}

.btn-del {
    background: #e74c3c;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 3px;
    cursor: pointer;
}

.btn-save {
    width: 100%;
    padding: 18px;
    background: #2c3e50;
    color: white;
    font-size: 1.1em;
    font-weight: bold;
    cursor: pointer;
    border-radius: 8px;
    border: none;
    margin-top: 20px;
    transition: background 0.3s;
}

.btn-save:hover {
    background: #1a252f;
}

.error-ot { border: 2px solid #e74c3c !important; }