/* Estilos principales del Sistema de Minutas Sacramentales */

:root {
    --primary-color: #2c5282;
    --secondary-color: #4a5568;
    --success-color: #38a169;
    --danger-color: #e53e3e;
    --warning-color: #dd6b20;
    --info-color: #3182ce;
    --light-gray: #f7fafc;
    --border-color: #e2e8f0;
    --text-color: #2d3748;
    --shadow: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-color);
    background-color: #f5f5f5;
    line-height: 1.6;
}

h1 { font-size: 1.875rem; line-height: 1.2; }
h2 { font-size: 1.5rem; line-height: 1.25; }

button,
input[type="text"],
input[type="password"],
input[type="email"],
input[type="number"],
input[type="tel"],
input[type="search"],
input[type="date"],
input[type="time"],
input[type="datetime-local"],
input[type="url"],
select,
textarea {
    -webkit-appearance: none;
    appearance: none;
}

/* Login Page */
.login-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.login-container {
    width: 100%;
    max-width: 450px;
    padding: 20px;
}

.login-box {
    background: white;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    padding: 40px;
}

.login-header {
    text-align: center;
    margin-bottom: 30px;
}

.login-header i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.login-logo {
    width: 120px;
    height: auto;
    margin-bottom: 20px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.login-header h1 {
    font-size: 1.5rem;
    color: var(--text-color);
    margin-bottom: 5px;
}

.login-header p {
    color: var(--secondary-color);
    font-size: 0.95rem;
}

.login-footer {
    text-align: center;
    margin-top: 20px;
    color: var(--secondary-color);
}

/* Navbar */
.navbar {
    background: var(--primary-color);
    color: white;
    padding: 0;
    box-shadow: var(--shadow);
}

.navbar .container {
    display: flex;
    align-items: center;
    padding: 10px;
}

.navbar-brand {
    display: flex;
    align-items: center;
    font-size: 1.25rem;
    font-weight: bold;
    gap: 10px;
    width: 100%;
}

.navbar-logo {
    height: 40px;
    width: auto;
    filter: brightness(0) invert(1);
}

.navbar-brand i {
    font-size: 1.5rem;
}

.navbar-menu {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: auto;
}

.navbar-menu a {
    color: white;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 6px;
    transition: background 0.3s;
    display: flex;
    align-items: center;
    gap: 6px;
}

.navbar-menu a:hover,
.navbar-menu a.active {
    background: rgba(255,255,255,0.1);
}

.navbar-user {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    background: rgba(255,255,255,0.1);
    border-radius: 6px;
    margin-left: 10px;
}

.btn-logout {
    color: white !important;
    padding: 6px 10px !important;
}

.btn-logout:hover {
    background: rgba(255,255,255,0.2) !important;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
}

.main-content {
    padding: 30px 20px;
}

/* Page Header */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.page-header h1 {
    font-size: 1.875rem;
    color: var(--text-color);
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Cards */
.card {
    background: white;
    border-radius: 8px;
    box-shadow: var(--shadow);
    margin-bottom: 20px;
    overflow: visible;
}

.card-header {
    background: var(--light-gray);
    padding: 15px 20px;
    border-bottom: 2px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-header h2 {
    font-size: 1.25rem;
    color: var(--text-color);
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
}

.card-body {
    padding: 20px;
}

/* Forms */
.form-group {
    margin-bottom: 1rem;
    position: relative;
}

.sugerencia-item{
    padding: 5px 10px;
    cursor: pointer;
    border: 1px solid var(--border-color);
    border-top: none;
    background: white;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-color);
    display: flex;
    align-items: center;
    gap: 6px;
}

.form-control {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.3s, box-shadow 0.3s;
    resize: none;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(44, 82, 130, 0.1);
}

.form-control.is-invalid {
    border-color: var(--danger-color);
}

.form-row {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.form-row .form-group {
    flex: 1;
    min-width: 250px;
}

.col-md-2 { flex: 0 0 16.666%; }
.col-md-4 { flex: 0 0 33.333%; }
.col-md-5 { flex: 0 0 41.666%; }
.col-md-6 { flex: 0 0 50%; }
.col-md-10 { flex: 0 0 83.333%; }

/* Buttons */
.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    font-weight: 500;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background: #2c5282;
}

.btn-secondary {
    background: var(--secondary-color);
    color: white;
}

.btn-success {
    background: var(--success-color);
    color: white;
}

.btn-danger {
    background: var(--danger-color);
    color: white;
}

.btn-warning {
    background: var(--warning-color);
    color: white;
}

.btn-info {
    background: var(--info-color);
    color: white;
}

.btn-light {
    background: var(--light-gray);
    color: var(--text-color);
    border: 1px solid var(--border-color);
}

.btn-sm {
    padding: 6px 12px;
    font-size: 0.875rem;
}

.btn-block {
    width: 100%;
    justify-content: center;
}

.btn-group {
    display: flex;
    gap: 5px;
}

/* Table */
.table-responsive {
    overflow-x: auto;
    background: white;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.table {
    width: 100%;
    border-collapse: collapse;
}

.table thead {
    background: var(--light-gray);
}

.table th,
.table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.table th {
    font-weight: 600;
    color: var(--text-color);
}

.table tbody tr:hover {
    background: var(--light-gray);
}

.text-center {
    text-align: center !important;
}

/* Badges */
.badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.875rem;
    font-weight: 500;
}

.badge-borrador {
    background: #fef3c7;
    color: #92400e;
}

.badge-publicada {
    background: #d1fae5;
    color: #065f46;
}

.badge-archivada {
    background: #e5e7eb;
    color: #374151;
}

.badge-primary {
    background: #dbeafe;
    color: #1e40af;
}

.badge-secondary {
    background: #e5e7eb;
    color: #4b5563;
}

.badge-success {
    background: #d1fae5;
    color: #065f46;
}

.badge-danger {
    background: #fee2e2;
    color: #991b1b;
}

/* Search Box */
.search-box {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: var(--shadow);
    margin-bottom: 20px;
}

.search-input-group {
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
}

.search-input-group i {
    position: absolute;
    left: 12px;
    color: var(--secondary-color);
    z-index: 1;
}

.search-input-group input {
    flex: 1;
    padding: 10px 12px 10px 40px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.search-input-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(44, 82, 130, 0.1);
}

/* Alerts */
.alert {
    padding: 15px 20px;
    border-radius: 6px;
    margin-bottom: 20px;
    align-items: center;
    gap: 10px;
    position: relative;
    transition: opacity 0.3s;
}

.alert-success {
    background: #d1fae5;
    color: #065f46;
    border-left: 4px solid var(--success-color);
}

.alert-error,
.alert-danger {
    background: #fee2e2;
    color: #991b1b;
    border-left: 4px solid var(--danger-color);
}

.alert-warning {
    background: #fef3c7;
    color: #92400e;
    border-left: 4px solid var(--warning-color);
}

.alert-info {
    background: #dbeafe;
    color: #1e40af;
    border-left: 4px solid var(--info-color);
}

.alert .close {
    margin-left: auto;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.25rem;
    color: inherit;
    opacity: 0.6;
}

.alert .close:hover {
    opacity: 1;
}

.alert-dismissible {
    padding-right: 40px;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    background: white;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.empty-state > i {
    font-size: 4rem;
    color: var(--secondary-color);
    opacity: 0.5;
    margin-bottom: 20px;
    display: block;
}

.empty-state h3 {
    color: var(--text-color);
    margin-bottom: 10px;
}

.empty-state p {
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.empty-state .btn i {
    color: white;
    font-size: 1rem;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-top: 30px;
}

.pagination-info {
    color: var(--secondary-color);
}

/* Sortable Lists */
.sortable-list {
    min-height: 50px;
}

.sortable-item {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    transition: all 0.3s;
}

.sortable-item:hover {
    box-shadow: var(--shadow);
}

.drag-handle {
    padding: 15px;
    cursor: move;
    color: var(--secondary-color);
    border-right: 1px solid var(--border-color);
}

.drag-handle:hover {
    background: var(--light-gray);
    color: var(--primary-color);
}

.item-content {
    flex: 1;
    padding: 10px 15px;
}

.sortable-ghost {
    opacity: 0.4;
    background: var(--light-gray);
}

.sortable-drag {
    opacity: 0.8;
}

/* Discursantes */
.discursante-item {
    border-left: 3px solid var(--primary-color);
    padding-left: 15px;
}

.discursante-item h4 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

/* Form Actions */
.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 30px;
    padding: 20px;
    background: var(--light-gray);
    border-radius: 8px;
}

/* Loading Overlay */
#loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.loading-spinner {
    text-align: center;
    color: white;
}

.loading-spinner i {
    margin-bottom: 15px;
}

/* Autocomplete miembros */
.autocomplete-list {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
    max-height: 220px;
    overflow-y: auto;
    z-index: 1050;
}

.autocomplete-item {
    padding: 8px 10px;
    cursor: pointer;
}

.autocomplete-item:hover {
    background: #f2f4f7;
}

.loading-spinner p {
    font-size: 1.1rem;
}

/* Text Utilities */
.text-muted {
    color: var(--secondary-color);
    font-size: 0.875rem;
}

.mt-2 { margin-top: 0.5rem; }
.mb-2 { margin-bottom: 0.5rem; }
.hidden { display: none !important; }
.mb-3 { margin-bottom: 1rem; }

/* Responsive */
@media (max-width: 768px) {
    .navbar .container {
        flex-direction: column;
        gap: 15px;
    }
    
    .navbar-menu {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .page-header {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
    
    .form-row {
        flex-direction: column;
    }
    
    .form-row .form-group {
        min-width: 100%;
    }
    
    .btn-group {
        flex-direction: column;
    }
    
    .table-responsive {
        font-size: 0.875rem;
    }
    
    .table th,
    .table td {
        padding: 8px;
    }
    
    .no-print {
        display: none;
    }
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.3s;
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: white;
    margin: auto;
    padding: 0;
    border-radius: 8px;
    width: 90%;
    max-width: 600px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    animation: slideDown 0.3s;
}

.modal-header {
    padding: 20px 25px;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    margin: 0;
    font-size: 1.5rem;
    color: var(--primary-color);
}

.btn-close {
    background: none;
    border: none;
    font-size: 2rem;
    color: #6b7280;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s;
}

.btn-close:hover {
    color: var(--primary-color);
}

.modal form {
    padding: 25px;
}

.modal-footer {
    padding: 20px 25px;
    border-top: 1px solid #e5e7eb;
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    background: #f9fafb;
    border-radius: 0 0 8px 8px;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideDown {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Data Table Improvements */
.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

.data-table thead {
    background: var(--primary-color);
    color: white;
}

.data-table thead th {
    padding: 12px 15px;
    text-align: left;
    font-weight: 600;
    border: none;
}

.data-table tbody tr {
    border-bottom: 1px solid #e5e7eb;
    transition: background-color 0.2s;
}

.data-table tbody tr:hover {
    background-color: #f9fafb;
}

.data-table tbody td {
    padding: 12px 15px;
    vertical-align: middle;
}

.data-table .action-buttons {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.data-table .action-buttons .btn {
    padding: 6px 12px;
}

/* Form Text Helper */
.form-text {
    display: block;
    margin-top: 4px;
    font-size: 0.875rem;
    color: #6b7280;
}

#password-hint {
    font-size: 0.875rem;
    color: #6b7280;
    font-style: italic;
}

/* Responsive table */
@media (max-width: 992px) {
    .data-table {
        font-size: 0.875rem;
    }
    
    .data-table thead th,
    .data-table tbody td {
        padding: 10px;
    }
}

@media (max-width: 768px) {
    .data-table thead {
        display: none;
    }
    
    .data-table tbody tr {
        display: block;
        margin-bottom: 15px;
        border: 1px solid #e5e7eb;
        border-radius: 8px;
        padding: 15px;
    }
    
    .data-table tbody td {
        display: flex;
        justify-content: space-between;
        padding: 8px 0;
        border: none;
    }
    
    .data-table tbody td:before {
        content: attr(data-label);
        font-weight: 600;
        color: var(--primary-color);
    }
    
    .data-table .action-buttons {
        justify-content: flex-start;
        margin-top: 10px;
    }
    
    .modal-content {
        width: 95%;
        margin: 20px auto;
    }
}

/* Navbar Mobile Drawer */
.navbar-inner { display:flex; align-items:center; justify-content:flex-start; gap:12px; }
.navbar-toggle { display:none; background:none; border:1px solid rgba(255,255,255,0.25); color:white; padding:8px 12px; border-radius:6px; cursor:pointer; align-items:center; gap:8px; margin-left:auto; order:2; }
.navbar-toggle:focus { outline:2px solid rgba(255,255,255,0.4); outline-offset:2px; }
.navbar-toggle i { font-size:1.1rem; }
.navbar-menu { display:flex; align-items:center; gap:10px; }
.navbar-overlay { position:fixed; inset:0; background:rgba(0,0,0,0.45); opacity:0; visibility:hidden; transition:opacity 0.25s ease; z-index:998; }
.navbar-menu.drawer { position:fixed; top:0; left:0; width:280px; max-width:85vw; height:100vh; background:var(--primary-color); flex-direction:column; padding:22px 18px; padding-bottom:calc(22px + env(safe-area-inset-bottom, 0px) + 40px); box-shadow:6px 0 20px rgba(0,0,0,0.35); transform:translateX(-110%); opacity:0; transition:transform 0.32s cubic-bezier(0.25, 0.8, 0.25, 1), opacity 0.25s ease; z-index:999; overflow-y:auto; }
.navbar-menu.drawer .navbar-user { width:100%; justify-content:space-between; background:rgba(255,255,255,0.12); }
.navbar-menu.drawer a { width:100%; justify-content:flex-start; }
.navbar-menu.drawer.show { transform:translateX(0); opacity:1; }
.navbar-overlay.show { opacity:1; visibility:visible; }

/* Login page icon helpers */
.material-symbols-outlined { font-family:'Material Symbols Outlined' !important; font-weight:normal; font-style:normal; font-size:24px; display:inline-block; line-height:1; text-transform:none; letter-spacing:normal; word-wrap:normal; white-space:nowrap; direction:ltr; }
.login-header .material-symbols-outlined { font-size:4rem !important; color:var(--primary-color); display:block; margin-bottom:1rem; }
.input-group { position:relative; margin-bottom:1.5rem; }
.input-group label { display:block; margin-bottom:8px; font-weight:600; color:#374151; font-size:0.95rem; }
.input-group .material-symbols-outlined { position:absolute; left:15px; bottom:14px; color:#9ca3af; font-size:22px !important; pointer-events:none; z-index:2; }
.input-group input { width:100%; padding:14px 15px 14px 50px; border:2px solid #e5e7eb; border-radius:10px; font-size:1rem; transition:all 0.3s ease; background:#f9fafb; box-sizing:border-box; }
.input-group input:focus { outline:none; border-color:var(--primary-color); background:white; box-shadow:0 0 0 4px rgba(44,82,130,0.1); }
.input-group input:focus ~ .material-symbols-outlined { color:var(--primary-color); }
.btn-login { width:100%; padding:14px 20px; background:linear-gradient(135deg, #667eea 0%, #764ba2 100%); border:none; border-radius:10px; color:white; font-size:1.05rem; font-weight:600; cursor:pointer; display:flex; align-items:center; justify-content:center; gap:10px; transition:all 0.3s ease; box-shadow:0 4px 6px rgba(0,0,0,0.1); margin-top:1rem; }
.btn-login:hover { transform:translateY(-2px); box-shadow:0 6px 12px rgba(0,0,0,0.15); }
.btn-login:active { transform:translateY(0); }
.btn-login .material-symbols-outlined { font-size:20px !important; }
.alert-error { animation:shake 0.5s; display:flex; align-items:center; gap:10px; padding:12px; margin-bottom:1rem; }
.alert-error .material-symbols-outlined { font-size:20px !important; }
@keyframes shake { 0%,100%{transform:translateX(0);} 25%{transform:translateX(-10px);} 75%{transform:translateX(10px);} }

/* Bitácoras view/list */
.bitacora-content { background:#fff; padding:20px; border-radius:8px; margin-bottom:20px; }
.bitacora-content h3 { margin-top:20px; border-bottom:1px solid #eee; padding-bottom:8px; }
.bitacora-meta { color:#666; font-size:0.9em; margin-bottom:15px; }
.bitacora-content div ul, .bitacora-content div ol { padding:20px; }
.asistencia-grid { display:grid; grid-template-columns:repeat(auto-fill, minmax(280px,1fr)); gap:12px; margin-top:15px; }
.asistencia-card { background:linear-gradient(135deg, #f8f9fa 0%, #fff 100%); border:1px solid #e0e0e0; border-radius:10px; padding:12px 15px; display:flex; align-items:center; gap:12px; }
.asistencia-avatar { width:40px; height:40px; border-radius:50%; background:linear-gradient(135deg, #667eea 0%, #764ba2 100%); display:flex; align-items:center; justify-content:center; color:#fff; font-weight:bold; font-size:0.95rem; flex-shrink:0; }
.asistencia-info { flex:1; min-width:0; }
.asistencia-nombre { font-weight:600; color:#333; }
.asistencia-llamamiento { font-size:0.85em; color:#666; }
.table-bitacoras { width:100%; border-collapse:collapse; }
.table-bitacoras th, .table-bitacoras td { padding:12px; text-align:left; border-bottom:1px solid #eee; }
.table-bitacoras tr:hover { background:#f9f9f9; }
.table-bitacoras-wrap { overflow-x: auto; }
.table-responsive { width: 100%; overflow-x: auto; }
.table-responsive table { width: 100%; }
.badge { padding:4px 8px; border-radius:4px; font-size:0.8em; }
.badge-obispado { background:#e3f2fd; color:#1565c0; }
.badge-consejo { background:#e8f5e9; color:#2e7d32; }
.badge-otro { background:#f3e5f5; color:#7b1fa2; }

/* Tareas */
.tareas-container { max-width:1200px; margin:0 auto; padding:12px; }
.tareas-container .card { background:#fff; padding:16px; border-radius:6px; box-shadow:0 4px 14px rgba(0,0,0,0.04); }
.tareas-container .flex { display:flex; gap:12px; flex-wrap:wrap; }
.tareas-container .list { margin-top:12px; }
.tareas-container table { width:100%; border-collapse:collapse; }
.tareas-container th { background:#f8f9fa; font-weight:600; color:#2c3e50; text-align:left; }
.tareas-container th, .tareas-container td { padding:12px 8px; border-bottom:1px solid #eee; }
.tareas-container tbody tr:hover { background:#f8f9fa; }
.btn-action { display:inline-flex; align-items:center; justify-content:center; width:36px; height:36px; padding:0; border:none; border-radius:6px; cursor:pointer; font-size:15px; transition:all 0.2s ease; margin-right:6px; box-shadow:0 2px 4px rgba(0,0,0,0.1); }
.btn-action:hover { transform:translateY(-2px); box-shadow:0 4px 8px rgba(0,0,0,0.15); }
.btn-action:active { transform:translateY(0); box-shadow:0 2px 4px rgba(0,0,0,0.1); }
.btn-complete { background:#10b981; color:white; }
.btn-complete:hover { background:#059669; }
.btn-edit { background:#3b82f6; color:white; }
.btn-edit:hover { background:#2563eb; }
.btn-delete { background:#ef4444; color:white; }
.btn-delete:hover { background:#dc2626; }
.badge-prioridad { display:inline-block; padding:4px 12px; border-radius:4px; font-size:12px; font-weight:600; color:white; }
.prioridad-alta { background:#dc2626; }
.prioridad-media { background:#f59e0b; }
.prioridad-baja { background:#10b981; }

/* Agenda Entrevistas */
.agenda-container { padding:20px; max-width:1400px; margin:0 auto; }
.agenda-header { display:flex; justify-content:space-between; align-items:center; margin-bottom:30px; gap:20px; flex-wrap:wrap; }
.agenda-header h1 { font-size:1.875rem; color:#2c5282; margin:0; }
.agenda-controls { display:flex; gap:10px; align-items:center; flex-wrap:wrap; }
.filtro-select { min-width:220px; }
.lider-chips { display:flex; flex-wrap:wrap; gap:8px; margin:10px 0 20px; }
.lider-chip { padding:6px 12px; border-radius:999px; border:1px solid #e2e8f0; background:#fff; cursor:pointer; transition:all 0.2s ease; font-size:0.9rem; display:inline-flex; align-items:center; gap:8px; }
.lider-chip .dot { width:10px; height:10px; border-radius:50%; background:#2c5282; }
.lider-chip.active { background:#2c5282; color:#fff; border-color:#2c5282; }
.lider-chip:hover { border-color:#2c5282; transform:translateY(-1px); }
.btn-vista { padding:8px 16px; border:1px solid #e2e8f0; background:white; color:#2c5282; border-radius:6px; cursor:pointer; transition:all 0.3s; text-decoration:none; display:inline-block; }
.btn-vista.active { background:#2c5282; color:white; border-color:#2c5282; }
.btn-vista:hover { border-color:#2c5282; }
.btn-action { padding:10px 20px; background:#48bb78; color:white; border:none; border-radius:6px; cursor:pointer; font-size:1rem; transition:all 0.3s; display:inline-flex; align-items:center; gap:8px; }
.btn-action:hover { background:#38a169; transform:translateY(-2px); }
.calendario { background:white; border-radius:12px; box-shadow:0 4px 6px rgba(0,0,0,0.07); overflow:hidden; }
.calendario-header { background:#2c5282; color:white; padding:20px; display:flex; justify-content:space-between; align-items:center; gap:20px; flex-wrap:wrap; }
.calendario-nav { display:flex; gap:10px; align-items:center; }
.calendario-nav button { background:rgba(255,255,255,0.2); color:white; border:none; padding:8px 16px; border-radius:6px; cursor:pointer; transition:all 0.3s; }
.calendario-nav button:hover { background:rgba(255,255,255,0.3); }
.calendario-titulo { font-size:1.5rem; font-weight:bold; }
.dias-grid { display:grid; grid-template-columns:repeat(7, minmax(120px,1fr)); gap:1px; background:#e2e8f0; min-height:600px; }
.dia-header { background:#f1f5f9; font-weight:700; text-align:center; padding:10px 0; text-transform:uppercase; letter-spacing:0.5px; }
.dia-card { background:white; padding:12px; min-height:120px; position:relative; cursor:pointer; }
.dia-numero { font-weight:700; color:#2d3748; margin-bottom:8px; display:inline-block; }
.badge-evento { display:inline-flex; align-items:center; gap:6px; padding:6px 10px; background:#edf2ff; color:#2c5282; border-radius:8px; font-size:0.9rem; margin-bottom:6px; }
.agenda-empty { padding:40px; text-align:center; color:#6b7280; }
.fab { position:fixed; bottom:30px; right:30px; width:56px; height:56px; background:#48bb78; color:#fff; border:none; border-radius:50%; display:flex; align-items:center; justify-content:center; font-size:1.4rem; box-shadow:0 10px 24px rgba(72,187,120,0.35); cursor:pointer; transition:all 0.2s ease; z-index:1050; }
.fab:hover { transform:scale(1.05) translateY(-1px); box-shadow:0 12px 28px rgba(72,187,120,0.45); }
.fab:active { transform:scale(0.97); }

/* Modal Entrevistas */
#modalEntrevista .modal-content { max-width:820px; border-radius:12px; overflow:hidden; }
#modalEntrevista .modal-header { background:#f8fafc; border-bottom:1px solid #e2e8f0; padding:18px 22px; }
#modalEntrevista .modal-header h2 { font-size:1.4rem; color:#1f2937; }
#modalEntrevista form { padding:20px 22px 10px; }
#modalEntrevista .form-row { gap:16px; }
#modalEntrevista .form-row .form-group { flex:1; min-width:220px; }
#modalEntrevista .form-group label { font-weight:700; color:#1f2937; }
#modalEntrevista .form-group input,
#modalEntrevista .form-group select,
#modalEntrevista .form-group textarea {
    width:100%;
    padding:10px 12px;
    border:1px solid #d9e1ec;
    border-radius:8px;
    background:#f8fafc;
    font-size:0.95rem;
    transition:border-color 0.2s, box-shadow 0.2s, background 0.2s;
}
#modalEntrevista .form-group input:focus,
#modalEntrevista .form-group select:focus,
#modalEntrevista .form-group textarea:focus { outline:none; border-color:#2c5282; box-shadow:0 0 0 3px rgba(44,82,130,0.12); background:#fff; }
#modalEntrevista .form-group textarea { min-height:80px; resize:vertical; }
#modalEntrevista .btn-group { margin-top:4px; gap:10px; }
.btn-guardar { background:#2c5282; color:#fff; border:none; padding:10px 16px; border-radius:8px; cursor:pointer; display:inline-flex; align-items:center; gap:8px; font-weight:600; box-shadow:0 6px 16px rgba(44,82,130,0.25); transition:all 0.2s ease; }
.btn-guardar:hover { background:#1e3a5f; transform:translateY(-1px); }
.btn-guardar:active { transform:translateY(0); }
.btn-eliminar { background:#e53e3e; color:#fff; border:none; padding:10px 14px; border-radius:8px; cursor:pointer; display:inline-flex; align-items:center; gap:8px; font-weight:600; box-shadow:0 6px 16px rgba(229,62,62,0.2); transition:all 0.2s ease; }
.btn-eliminar:hover { background:#c53030; transform:translateY(-1px); }

.entrevista-detail { background:#f8fafc; border:1px solid #e2e8f0; border-radius:12px; padding:16px 18px; margin:0 22px 14px; box-shadow:inset 0 1px 0 rgba(255,255,255,0.7); }
.entrevista-detail-row { display:grid; grid-template-columns:repeat(2, minmax(0, 1fr)); gap:12px 18px; margin-bottom:10px; }
.entrevista-detail-item { background:#fff; border:1px solid #e2e8f0; border-radius:10px; padding:10px 12px; box-shadow:0 1px 3px rgba(15,23,42,0.04); }
.entrevista-detail-label { font-size:0.85rem; font-weight:700; color:#4a5568; margin-bottom:4px; text-transform:uppercase; letter-spacing:0.4px; }
.entrevista-detail-valor { font-size:1rem; color:#111827; word-break:break-word; }
.entrevista-detail-row:last-child { margin-bottom:0; }

.comentarios-section { margin-top:18px; padding-top:12px; border-top:1px solid #e2e8f0; }
.comentarios-section h3 { margin:0 0 10px; color:#1f2937; display:flex; align-items:center; gap:8px; }
.comentarios-list { display:flex; flex-direction:column; gap:10px; max-height:220px; overflow-y:auto; }
.comentario-card { border:1px solid #e2e8f0; border-radius:8px; padding:10px 12px; background:#f8fafc; }
.comentario-meta { display:flex; justify-content:space-between; font-size:0.85rem; color:#4a5568; }
.comentario-texto { margin-top:6px; line-height:1.5; color:#1f2937; }
.comentario-input { display:flex; gap:10px; align-items:flex-start; margin-top:10px; }
.comentario-input textarea { flex:1; min-height:70px; border:1px solid #d9e1ec; border-radius:8px; padding:10px; resize:vertical; }
.comentario-input button { background:#2c5282; color:#fff; border:none; padding:10px 12px; border-radius:8px; cursor:pointer; transition:all 0.2s ease; display:inline-flex; align-items:center; justify-content:center; }
.comentario-input button:hover { background:#1e3a5f; }

/* Minuta sheet */
body.minuta-body { background-color:#f5f5f5; padding:20px 0; }
.minuta-sheet { max-width:900px; margin:0 auto; background:white; padding:40px 60px; box-shadow:0 2px 10px rgba(0,0,0,0.1); font-size:10pt; font-family:Arial, sans-serif; }
.logo-container { text-align:center; margin-bottom:15px; }
.logo { max-width:200px; width:100%; height:auto; }
.mobile-summary { display:none; }
.minuta-header { text-align:center; margin-bottom:20px; }
.minuta-header h1 { font-size:16pt; font-weight:bold; margin:0 0 5px 0; }
.minuta-header h2 { font-size:12pt; font-weight:bold; margin:0; }
.section-title { font-size:11pt; font-weight:bold; margin:15px 0 8px 0; text-align:left; }
.subsection-title { font-size:10pt; font-weight:bold; margin:10px 0 5px 0; }
.minuta-table { width:100%; border-collapse:collapse; margin-bottom:15px; }
.minuta-table td { border:1px solid #000; padding:4px 6px; font-size:10pt; }
.minuta-table .label-cell { width:30%; font-weight:bold; }
.minuta-table .hymn-number { width:50px; text-align:center; font-weight:bold; }
.minuta-table .name-cell { width:40%; }
.content-box { border:1px solid #000; min-height:30px; padding:5px; margin-bottom:15px; }
.content-box.empty { min-height:30px; }
.italic-text { font-style:italic; margin:5px 0; }
.instruction-text { font-size:8pt; margin:5px 0 15px 0; line-height:1.3; }

/* Nueva Bitácora form */
.accordion { border:1px solid #e0e0e0; border-radius:4px; margin-bottom:10px; }
.accordion-header { background:#f7f7f7; padding:10px; cursor:pointer; display:flex; justify-content:space-between; align-items:center; }
.accordion-body { padding:10px; display:none; }
.accordion-body.open { display:block; }
.quill-editor { height:300px; }
.asistencia-card.quill { box-shadow:0 2px 4px rgba(0,0,0,0.04); }
.asistencia-card:hover { border-color:#007bff; box-shadow:0 4px 12px rgba(0,123,255,0.15); transform:translateY(-2px); }
.asistencia-avatar.large { width:45px; height:45px; font-size:1.1rem; }
.asistencia-empty { text-align:center; padding:30px; color:#999; font-style:italic; }
.asistencia-count { background:#e3f2fd; color:#1565c0; padding:4px 12px; border-radius:20px; font-size:0.85em; font-weight:600; }
.input-asistencia-row { display:flex; gap:10px; flex-wrap:wrap; }
.input-asistencia-row input { flex:1; min-width:150px; }



.entrevista-item{
    background-color: var(--info-color);
    color: #ffffff;
    font-size: 14px;
    border-radius: 5px;
    margin:5px;
    padding: 8px;
}

.entrevista-item.completada{
    background-color: var(--success-color);
}