:root {
    --guinda: #691C32;
    --oro: #BC955C;
    --gris-fondo: #F4F4F4;
    --blanco: #ffffff;
}

body { font-family: 'Montserrat', sans-serif; margin: 0; background: var(--gris-fondo); color: #333; }

header {
    background: var(--blanco); padding: 10px 5%; display: flex; align-items: center;
    border-bottom: 4px solid var(--oro); box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.logo-img { height: 60px; margin-right: 20px; }
.titulo-header { color: var(--guinda); font-weight: bold; line-height: 1.2; }
.titulo-header span { font-weight: normal; font-size: 0.8rem; color: #666; }

.container { max-width: 1200px; margin: 20px auto; background: var(--blanco); padding: 25px; border-radius: 8px; box-shadow: 0 2px 10px rgba(0,0,0,0.05); }

/* Barra de Herramientas */
.admin-toolbar { display: flex; flex-wrap: wrap; gap: 15px; margin-bottom: 30px; padding: 15px; background: #f9f9f9; border-radius: 8px; border: 1px solid #eee; }

.btn { padding: 12px 25px; border: none; border-radius: 6px; cursor: pointer; font-weight: bold; display: flex; align-items: center; justify-content: center; gap: 10px; transition: all 0.3s; }
.btn-search { background: var(--oro); color: white; flex: 2; min-width: 200px; }
.btn-edit-toggle { background: #333; color: white; flex: 1; }
.btn-edit-active { background: #ffc107; color: black; border: 2px solid #333; flex: 1; }
.btn-excel { background: #1D6F42; color: white; flex: 1; }

/* Semáforo de Estatus */
select.status-select { font-weight: bold; }
.status-aprobado { background-color: #d4edda !important; color: #155724; border: 2px solid #28a745 !important; }
.status-rechazado { background-color: #f8d7da !important; color: #721c24; border: 2px solid #dc3545 !important; }
.status-pendiente { background-color: #fff3cd !important; color: #856404; border: 2px solid #ffc107 !important; }
.status-sin-info { background-color: #e2e3e5 !important; color: #383d41; border: 2px solid #6c757d !important; }

/* Formulario */
.form-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
h4 { color: var(--guinda); border-bottom: 2px solid var(--oro); padding-bottom: 8px; margin-top: 35px; }
label { display: block; font-size: 0.75rem; font-weight: bold; margin-bottom: 5px; color: #555; }

input, select { 
    width: 100%; padding: 12px; border: 1px solid #ccc; border-radius: 5px; 
    box-sizing: border-box; background: #f4f4f4; font-family: 'Montserrat';
}
input.editable, select.editable { background: white; border: 1px solid var(--oro); }

/* Sección PDF */
.pdf-section { margin-top: 30px; padding: 20px; background: #fdfdfd; border: 1px dashed var(--oro); border-radius: 8px; }
.pdf-controls { display: flex; flex-direction: column; gap: 10px; }
.pdf-info { display: flex; align-items: center; gap: 20px; }
.pdf-buttons { display: flex; gap: 10px; }
.btn-mini { padding: 6px 12px; font-size: 0.75rem; border-radius: 4px; cursor: pointer; border: 1px solid #ccc; }
.btn-danger { background: #c0392b; color: white; border: none; }

/* Modal */
.modal { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.8); z-index: 2000; }
.modal-content { background: white; width: 90%; max-width: 1000px; margin: 40px auto; padding: 25px; border-radius: 10px; max-height: 85vh; overflow-y: auto; }
.modal-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.close-btn { background: none; border: none; font-size: 2rem; cursor: pointer; }
.search-table { width: 100%; border-collapse: collapse; }
.search-table th { background: var(--guinda); color: white; padding: 12px; text-align: left; }
.search-table td { padding: 12px; border-bottom: 1px solid #eee; cursor: pointer; }

.botonera-final { display: flex; flex-wrap: wrap; gap: 15px; margin-top: 30px; padding-top: 20px; border-top: 1px solid #eee; }
.btn-save { background: var(--guinda); color: white; opacity: 0.3; pointer-events: none; }
.btn-save.active { opacity: 1; pointer-events: auto; }
.btn-delete { background: #c0392b; color: white; display: none; }