/* styles.css */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Nunito', 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: #f8f9fa;
    color: #333;
    overflow-x: hidden;
}

.panel-vencimientos {
    max-width: 1200px;
    margin: 30px auto;
    padding: 0 40px;
}
.status-bar {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}
.pill {
    padding: 10px 18px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: bold;
    color: white;
}
.red { background: #e74c3c; }
.orange { background: #e67e22; }
.yellow { background: #f1c40f; color: black; }
.green { background: #2ecc71; }

.vencimientos-box {
    background: white;
    border-radius: 16px;
    padding: 18px 24px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin-bottom: 25px;
    position: relative;
}
.vencimientos-box ul {
    list-style: none;
    padding-left: 0;
    margin-top: 10px;
}
.vencimientos-box li {
    background: #fceaea;
    padding: 6px 10px;
    margin-bottom: 6px;
    border-radius: 6px;
    font-size: 14px;
}
.vencimientos-box .cerrar {
    position: absolute;
    top: 10px;
    right: 12px;
    border: none;
    background: transparent;
    font-size: 22px;
    color: #aaa;
    cursor: pointer;
}

.prioritarios h3 {
    margin-bottom: 12px;
    color: #2c3e50;
}
.filtros {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 15px;
}
.filtros input,
.filtros select {
    padding: 10px;
    font-size: 14px;
    border: 1px solid #ccc;
    border-radius: 6px;
    flex: 1;
    min-width: 160px;
}
table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}
th, td {
    padding: 12px 16px;
    font-size: 14px;
    text-align: left;
}
thead {
    background: #eef1f5;
    font-weight: bold;
}
tr.urgente {
    background: #fff3f3;
}
.badge {
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: bold;
    color: white;
}
.rojo { background: #e74c3c; }
.naranja { background: #f39c12; }

.barra {
    width: 100%;
    background: #d0e3ff;
    border-radius: 6px;
    height: 10px;
}
.llenado {
    width: 60%;
    background: #3498db;
    height: 100%;
    border-radius: 6px 0 0 6px;
}

.panel-derecho {
    padding: 30px 40px;
    max-width: 1200px;
    margin: auto;
}

.tabla-tramites h3 {
    font-size: 18px;
    margin-bottom: 12px;
    color: #2c3e50;
}

.filtros {
    display: flex;
    gap: 12px;
    margin-bottom: 14px;
}

.filtros input, .filtros select {
    padding: 10px 12px;
    border-radius: 6px;
    border: 1px solid #ccc;
    font-size: 14px;
    flex: 1;
}

table {
    width: 100%;
    background: white;
    border-collapse: collapse;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 1px 6px rgba(0,0,0,0.1);
}

th, td {
    padding: 12px 16px;
    font-size: 14px;
    text-align: left;
}

th {
    background: #2479A9;
    color: white;
}

tr:nth-child(even) {
    background: #fbfcfd;
}

.badge {
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 600;
    display: inline-block;
}

.badge-observado {
    background: #f39c12;
    color: white;
}

.badge-aprobado {
    background: #27ae60;
    color: white;
}

.badge-rechazado {
  background: #e74c3c;
  color: white;
}

.badge-administrador {
  background: #9b59b6;
  color: white;
}

.badge-profesional {
  background: #3498db;
  color: white;
}

.badge-propietario {
  background: #e67e22;
  color: white;
}

.badge-verificador {
  background: #27ae60;
  color: white;
}

.info-cards {
    display: flex;
    gap: 20px;
    margin: 30px 0;
    flex-wrap: wrap;
}

.card {
    background: white;
    padding: 20px;
    border-radius: 12px;
    flex: 1;
    min-width: 260px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.07);
}

.card h4 {
    margin-bottom: 10px;
    color: #2c3e50;
    font-size: 15px;
}

.card ul {
    list-style-type: none;
    padding-left: 0;
    margin-bottom: 10px;
}

.card ul li {
    margin-bottom: 6px;
    font-size: 14px;
}

.mensajes {
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.07);
}

.mensajes h4 {
    margin-bottom: 15px;
    color: #2980b9;
}

.mensaje-recibido, .mensaje-enviado {
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 10px;
    font-size: 14px;
    background: #f1f9ff;
}

.mensaje-enviado {
    background: #eaf6ff;
    text-align: right;
}

.timestamp {
    font-size: 11px;
    color: #7f8c8d;
    margin-top: 4px;
}

.formulario-mensaje {
    margin-top: 15px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.formulario-mensaje textarea {
    resize: none;
    height: 70px;
    padding: 10px;
    font-size: 14px;
    border-radius: 6px;
    border: 1px solid #ccc;
}

.formulario-mensaje button {
    align-self: flex-end;
    background: #1abc9c;
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

.formulario-mensaje button:hover {
    background: #16a085;
}

/* Header */
.header {
    background: #2479A9;
    padding: 10px 25px;
    color: white;
}

.header-nav {
    display: flex;
    justify-content: flex-end;
    gap: 35px;
    align-items: center;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 400;
    letter-spacing: 0.3px;
}

.nav-item:hover {
    opacity: 0.85;
}

.nav-arrow {
    margin-left: 8px;
    font-size: 11px;
}

/* Container */
.container {
    display: flex;
    min-height: calc(100vh - 50px);
    gap: 0;
}

/* Sidebar */
.sidebar {
    background: #2479A9;
    width: 280px;
    color: white;
    padding: 0;
    box-shadow: 2px 0 5px rgba(0,0,0,0.1);
    flex: 0 0 280px; /* evita que se achique por contenido grande */
}

.profile-section {
    text-align: center;
    padding: 25px 20px 30px;
    background: rgba(255, 255, 255, 0.08);
}

.avatar-face {
    position: relative;
    width: 100%;
    height: 100%;
}

.face-base {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 35px;
    height: 40px;
    background: #8B4513;
    border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
}

.face-hair {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 45px;
    height: 25px;
    background: #654321;
    border-radius: 50% 50% 0 0;
}

.face-eyes {
    position: absolute;
    top: 35px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
}

.eye {
    width: 4px;
    height: 4px;
    background: white;
    border-radius: 50%;
}

.face-mouth {
    position: absolute;
    top: 48px;
    left: 50%;
    transform: translateX(-50%);
    width: 8px;
    height: 4px;
    background: #ff4757;
    border-radius: 0 0 8px 8px;
}

.profile-title {
    font-size: 10px;
    font-weight: 400;
    color: #cfdce6;
    margin-bottom: 6px;
    letter-spacing: 1px;
}

.profile-name {
    font-size: 20px;
    font-weight: 700;
    color: white;
    margin-bottom: 0px;
}

.profile-role {
    font-size: 14px;
    color: white;
    font-weight: 500;
    text-transform: uppercase;
}

.profile-access {
    color: white;
    font-size: 12px;

}



	

.stats {
    padding: 25px 20px;
    font-size: 13px;
    background: rgba(255, 255, 255, 0.03);
}

.stat-item {
    margin-bottom: 2px;
}

.stat-number {
    font-weight: 700;
    font-size: 15px;
}

.nav-menu {
    margin-top: 0;
}

.nav-menu-item {
    padding: 16px 20px;
    cursor: pointer;
    font-weight: 500;
    font-size: 13px;

    transition: all 0.3s ease;
    letter-spacing: 0.3px;
    position: relative;
	border-top: 1px solid white;
    border-bottom: 1px solid white;
}

.nav-menu-item:hover {
    background: rgba(255, 255, 255, 0.08);
}

.nav-menu-item.active {
    background: #0e4e73;
}

.nav-menu-item.current {
    background: rgba(255, 255, 255, 0.12);
}

.nav-icon {
    font-size: 14px;
    margin-right: 4px;
}
.header-nav {
    gap: 20px;
}


.arrow {
    position: absolute;
    right: 20px;
    font-size: 10px;
}

/* Main Content */
.main-content {
    flex: 1;
    margin: 25px 30px;
    
}

.status-pills {
    display: flex;
    gap: 12px;
    margin-bottom: 35px;
    flex-wrap: wrap;
    justify-content: space-between;
    width: 100%;
}


.pill {
    padding: 12px 18px;
    border-radius: 20px;
    font-weight: 500;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    flex: 1 1 auto;
    text-align: center;
    min-width: 160px;
}

.pill-red {
    background: #e74c3c;
}

.pill-orange {
    background: #f39c12;
}

.pill-yellow {
    background: #f1c40f;
    color: #2c3e50;
}

.pill-green {
    background: #27ae60;
}

.pill strong {
    font-weight: 700;
}

.create-section {
    text-align: center;
    margin: 50px 0;
    padding: 40px 20px;
    background: #f8f9fa;
    border-radius: 8px;
}

.create-btn {
    background: #27ae60;
    color: white;
    border: none;
    padding: 16px 32px;
    border-radius: 25px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 auto 15px;
    transition: all 0.3s ease;
    box-shadow: 0 3px 6px rgba(39, 174, 96, 0.3);
}

.create-btn:hover {
    background: #229954;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(39, 174, 96, 0.4);
}

.plus-icon {
    font-size: 16px;
    font-weight: bold;
}

.create-subtitle {
    color: #7f8c8d;
    font-size: 14px;
    margin-top: 8px;
}

.processes-section {
    margin-top: 35px;
}

.section-title {
    color: #5499c7;
    margin-bottom: 25px;
    font-size: 18px;
    font-weight: 600;
}

.processes-controls {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.filter-select, .search-input {
    padding: 10px 14px;
    border: 1px solid #bdc3c7;
    border-radius: 4px;
    font-size: 13px;
    background: white;
}

.filter-select {
    min-width: 130px;
}

.search-input {
    flex: 1;
    max-width: 280px;
}

.processes-table {
    background: white;
    border-radius: 6px;
    overflow: visible; /* Cambiado de hidden a visible para permitir dropdowns */
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid #ecf0f1;
}

.table-header {
    background: #f8f9fa;
    display: grid;
    grid-template-columns: 120px 200px 120px 200px 120px;
    gap: 15px;
    padding: 16px 20px;
    font-weight: 600;
    color: #5a6c7d;
    border-bottom: 1px solid #ecf0f1;
    font-size: 13px;
}

.table-row {
    display: grid;
    grid-template-columns: 120px 200px 120px 200px 120px;
    gap: 15px;
    padding: 18px 20px;
    border-bottom: 1px solid #ecf0f1;
    align-items: center;
    font-size: 13px;
}

.table-row:hover {
    background: #fbfcfd;
}

.status-badge {
    padding: 6px 12px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-align: center;
    display: inline-block;
}

.status-process {
    background: #d5e8f7;
    color: #2980b9;
}

.detail-btn {
    background: #5499c7;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    transition: background 0.3s;
}

.detail-btn:hover {
    background: #2980b9;
}

/* Calendar Sidebar */
.calendar-sidebar {
    width: 260px;
    background: white;
    padding: 15px 15px;
    border-left: 1px solid #ecf0f1;
}

.calendar-title {
    color: #5499c7;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 25px;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.calendar-nav {
    background: none;
    border: none;
    font-size: 14px;
    cursor: pointer;
    padding: 8px 12px;
    color: #5499c7;
    border-radius: 4px;
    transition: background 0.3s;
}

.calendar-nav:hover {
    background: #f8f9fa;
}

.calendar-month {
    font-weight: 600;
    color: #2c3e50;
    font-size: 14px;
}

.calendar-container {
    background: white;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    border: 1px solid #ecf0f1;
}

.calendar-grid {
    width: 100%;
}

.calendar-days-header {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    background: #f8f9fa;
}

.day-header {
    padding: 12px 8px;
    text-align: center;
    font-size: 11px;
    font-weight: 600;
    color: #7f8c8d;
    border-right: 1px solid #ecf0f1;
}

.day-header:last-child {
    border-right: none;
}

.calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
}

.calendar-day {
    padding: 12px 8px;
    text-align: center;
    border-right: 1px solid #ecf0f1;
    border-bottom: 1px solid #ecf0f1;
    cursor: pointer;
    font-size: 13px;
    min-height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.calendar-day:hover {
    background: #f0f8ff;
}

.calendar-day:last-child {
    border-right: none;
}

.calendar-day.prev-month,
.calendar-day.next-month {
    color: #bdc3c7;
    background: #fafbfc;
}

.calendar-day.highlighted {
    background: #5499c7;
    color: white;
    font-weight: 700;
}

.calendar-day.today {
    background: #e8f4fd;
    color: #2980b9;
    font-weight: 600;
}

/*aca*/
.revision-tramite {
  background-color: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 24px;
  padding: 24px;
  margin: 0 auto;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.revision-tramite .modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.revision-tramite .modal-header h2 {
  font-size: 1.1rem;
  font-weight: 600;
  color: #2479A9;
}

.revision-tramite .close-btn {
  background: none;
  border: none;
  font-size: 1.1rem;
  color: #6b7280;
  cursor: pointer;
}

.revision-tramite .section {
  margin-bottom: 24px;
}

.revision-tramite .section h3 {
  font-size: 0.9rem;
  font-weight: 600;
  color: #2479A9;
  margin-bottom: 12px;
}

.revision-tramite .section p {
  font-size: 1rem;
  color: #4b5563;
  margin-bottom: 8px;
}

.revision-tramite .add-nota label,
.revision-tramite .comentarios-profesional label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: #374151;
  margin-bottom: 8px;
}

.revision-tramite .add-nota textarea,
.revision-tramite .comentarios-profesional textarea {
  width: 100%;
  padding: 8px;
  border: 1px solid #d1d5db;
  border-radius: 4px;
  min-height: 80px;
  margin-bottom: 12px;
}

.revision-tramite .document-item {
  display: flex;
  align-items: center;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.revision-tramite .document-item span {
  font-size: 1rem;
  color: #4b5563;
  margin-right: 12px;
  flex: 1 0 auto;
}

.revision-tramite .document-item button {
  background-color: #e5e7eb;
  color: #374151;
  padding: 6px 12px;
  border: none;
  border-radius: 4px;
  font-size: 0.875rem;
  cursor: pointer;
  margin-right: 8px;
  transition: background-color 0.2s;
}

.revision-tramite .document-item button:hover {
  background-color: #d1d5db;
}

.revision-tramite .acciones button {
  background-color: #2563eb;
  color: #ffffff;
  padding: 10px 16px;
  border: none;
  border-radius: 4px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  margin-right: 12px;
  transition: background-color 0.2s;
}

.revision-tramite .acciones button:hover {
  background-color: #1d4ed8;
}

.revision-tramite .add-nota button,
.revision-tramite .comentarios-profesional button,
.revision-tramite .exportar-info button {
  background-color: #2563eb;
  color: #ffffff;
  padding: 8px 12px;
  border: none;
  border-radius: 4px;
  font-size: 0.875rem;
  cursor: pointer;
  transition: background-color 0.2s;
}

.revision-tramite .add-nota button:hover,
.revision-tramite .comentarios-profesional button:hover,
.revision-tramite .exportar-info button:hover {
  background-color: #1d4ed8;
}
/* Detalle del Trámite - Estilo unificado con Trámites Activos */
.detalle-tramite {
    background: white;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid #ecf0f1;
    margin-top: 35px;
}

.detalle-tramite.show {
    display: block;
}

/* Título de sección - igual que section-title */
.detalle-tramite h3 {
    color: #5499c7;
    margin-bottom: 5px;
    font-size: 18px;
    font-weight: 600;
    padding: 20px 20px 0;
}

/* Grid de información del trámite - estilo tabla */
.info-tramite-grid {
    margin-left:20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0px;
    padding: 16px 20px;
    font-weight: 600;
    color: #5a6c7d;
    border-bottom: 1px solid #ecf0f1;
    font-size: 13px;
}

@media (max-width: 768px) {
    .info-tramite-grid {
        grid-template-columns: 1fr;
    }
}

/* Items individuales de información - estilo tabla */
.info-item {
    padding: 2px 0;
    font-size: 13px;
    color: #5a6c7d;
}

.info-item strong {
    font-weight: 600;
    color: #2c3e50;
    margin-right: 8px;
}

/* Item que ocupa toda la fila en grid */
.info-item.full-width {
    grid-column: 1 / -1;
}

/* Estilos específicos para el verificador - destacado como status badge */
.verificador-info {
    background-color: #d5e8f7;
    padding: 10px 15px;
    border-radius: 4px;
    color: black;
    font-weight: 600;
    border: 1px solid #5499c7;
	margin-top:20px;
}

.verificador-info strong {
    color: #2980b9;
}

/* Secciones internas del detalle */
.detalle-tramite .seccion-interna {
    padding: 20px;
    border-bottom: 1px solid #ecf0f1;
}

.detalle-tramite .seccion-interna:last-child {
    border-bottom: none;
}

.detalle-tramite .seccion-interna h3 {
    color: #5499c7;
    margin-bottom: 15px;
    font-size: 16px;
    font-weight: 600;
    padding: 0;
}

/* Documentos requeridos */
.documentos-requeridos {
    padding: 5px;
    border-bottom: 0px solid #ecf0f1;
}

.documentos-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0px;
    font-size: 13px;
    list-style: none;
    padding: 0;
    margin: 0;
	margin-left: 40px;
}

@media (max-width: 768px) {
    .documentos-grid {
        grid-template-columns: 1fr;
    }
}

.documento-item {
    padding: 0px 0;
    font-size: 13px;
}

.documento-completado {
    color: #27ae60;
    font-weight: 500;
}

.documento-pendiente {
    color: #e74c3c;
    font-weight: 500;
}

.documento-pagado {
    text-decoration: line-through;
    color: #7f8c8d;
}

.enlace-documento {
    color: #5499c7;
    text-decoration: underline;
    font-size: 12px;
    background: none;
    border: none;
    cursor: pointer;
    font-weight: 600;
    transition: color 0.3s;
}

.enlace-documento:hover {
    color: #2980b9;
}

/* Historial de acciones */
.historial-acciones {
    padding: 5px;
    border-bottom: 0px solid #ecf0f1;
}

.historial-lista {
    list-style-type: none;
    padding: 0;
    margin: 0;
    font-size: 13px;
    color: #5a6c7d;
}

.historial-lista li {
    padding: 8px 15px;
    margin-bottom: 5px;
    background: #fbfcfd;
    border-radius: 4px;
    border-left: 3px solid #5499c7;
	margin-left: 50px;
}

.historial-lista strong {
    font-weight: 600;
    color: #2c3e50;
}

/* Información de la obra */
.info-obra-section {
    padding: 5px;
    border-bottom: 0px solid #ecf0f1;
}

.info-obra-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0px;
    font-size: 13px;
    color: #5a6c7d;
	margin-left:50px;
}

@media (max-width: 768px) {
    .info-obra-grid {
        grid-template-columns: 1fr;
    }
}

.obra-item {
    padding: 0px 0;
    padding: 0px 0;
}

.obra-item strong {
    font-weight: 600;
    color: #2c3e50;
    margin-right: 8px;
}

/* Botón de subir declaración jurada */
.boton-subir-dj {
    padding: 20px;
    text-align: left;
}

.btn-dj {
    background: #5499c7;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    transition: background 0.3s;
}

.btn-dj:hover {
    background: #2980b9;
}
.upload-declaracion-jurada {
  background-color: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 24px;
  margin: 0 auto;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.upload-declaracion-jurada .modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.upload-declaracion-jurada .modal-header h2 {
	color: #5499c7;
  margin-bottom: 25px;
  font-size: 15px;
  font-weight: 600;
}

.upload-declaracion-jurada .close-btn {
  background: none;
  border: none;
  font-size: 13px;
  color: #6b7280;
  cursor: pointer;
}

.upload-declaracion-jurada .modal-content p {
  font-size: 13px;
  color: #4b5563;
  margin-bottom: 2px;
}

.upload-declaracion-jurada .modal-content p strong {
  font-weight: 600;
  color: #111827;
}

.upload-declaracion-jurada .upload-section {
  margin-bottom: 16px;
}

.upload-declaracion-jurada .upload-section label {
  display: block;
  font-size: 13px;
  font-weight: 800;
  color: #374151;
  margin-bottom: 8px;
}

.upload-declaracion-jurada .upload-section input[type="file"] {
  width: 100%;
  padding: 8px;
  border: 1px solid #d1d5db;
  border-radius: 4px;
  font-size: 0.875rem;
}

.upload-declaracion-jurada .comments-section {
  margin-bottom: 24px;
  margin-top: 24px;
}

.upload-declaracion-jurada .comments-section h3 {
  font-size:13px;
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 12px;
}

.upload-declaracion-jurada .comment {
  background-color: #f9fafb;
  padding: 12px;
  border-radius: 6px;
  margin-bottom: 12px;
}

.upload-declaracion-jurada .comment p {
  margin: 0;
  font-size: 0.875rem;
  color: #374151;
}

.upload-declaracion-jurada .comment span {
  font-size: 0.75rem;
  color: #6b7280;
}

.upload-declaracion-jurada .save-btn {
  background-color: #2563eb;
  color: #ffffff;
  padding: 10px 16px;
  border: none;
  border-radius: 4px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s;
}

.upload-declaracion-jurada .save-btn:hover {
  background-color: #1d4ed8;
}
.documentacion-pendiente {
  background-color: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.documentacion-pendiente h3 {
  color: #5499c7;
  margin-bottom: 25px;
  font-size: 15px;
  font-weight: 600;
}

.documentacion-pendiente ul {
  list-style-type: disc;
  padding-left: 20px;
  margin: 0;
}

.documentacion-pendiente li {
  font-size: 13px;
  color: #4b5563;

}


.programar-inspeccion {
  background-color: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 24px;
  margin: 0 auto;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.programar-inspeccion .modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.programar-inspeccion .modal-header h2 {
  font-size: 1rem;
  font-weight: 600;
  color: #2479A9;
}

.programar-inspeccion .close-btn {
  background: none;
  border: none;
  font-size: 1rem;
  color: #6b7280;
  cursor: pointer;
}

.programar-inspeccion .modal-content > div {
  margin-bottom: 16px;
}

.programar-inspeccion label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: #374151;
  margin-bottom: 8px;
}

.programar-inspeccion select,
.programar-inspeccion input[type="date"] {
  width: 100%;
  padding: 8px;
  border: 1px solid #d1d5db;
  border-radius: 4px;
  font-size: 0.8rem;
}

.programar-inspeccion textarea {
  width: 100%;
  padding: 8px;
  border: 1px solid #d1d5db;
  border-radius: 4px;
  min-height: 100px;
  font-size: 1rem;
}

.programar-inspeccion .actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 24px;
}

.programar-inspeccion .actions button {
  padding: 10px 16px;
  border: none;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s;
}

.programar-inspeccion .cancel-btn {
  background-color: #e5e7eb;
  color: #374151;
  margin-right: 12px;
}

.programar-inspeccion .cancel-btn:hover {
  background-color: #d1d5db;
}

.programar-inspeccion .programar-btn {
  background-color: #2563eb;
  color: #ffffff;
}

.programar-inspeccion .programar-btn:hover {
  background-color: #1d4ed8;
}
.info-sections {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
}

.info-card {
    background-color: white;
    color: #333;
    border-radius: 8px;
    flex: 1;
    font-size: 14px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.info-card-title {
    background-color: #2479A9;
    color: white;
    padding: 10px 15px;
    font-weight: bold;
    font-size: 14px;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}

.info-content {
    padding: 15px;
}

.inicio {
    font-weight: bold;
    margin-bottom: 10px;
}

.info-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.info-list li {
    margin-bottom: 8px;
}

.check {
    color: #4caf50;
    margin-right: 5px;
    font-weight: bold;
}

.cross {
    color: #f44336;
    margin-right: 5px;
    font-weight: bold;
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.nav-title {
    font-size: 20px;
    font-weight: bold;
    color: #2479A9;
}

.search-container {
    display: flex;
    gap: 10px;
}

.search-input, .status-select {
    padding: 8px 15px;
    border: none;
    border-radius: 20px;
    background-color: #f0f0f0;
    color: #333;
    font-size: 14px;
}
/*acafin*/

/* Responsive */
@media (max-width: 1200px) {
    .table-header,
    .table-row {
        grid-template-columns: 100px 150px 100px 150px 100px;
        gap: 10px;
        font-size: 12px;
    }
}

@media (max-width: 1024px) {
    .container {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
    }
    
    .calendar-sidebar {
        width: 100%;
        border-left: none;
        border-top: 1px solid #ecf0f1;
    }
    
    .status-pills {
        justify-content: center;
    }
    
    .table-header,
    .table-row {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .table-col {
        padding: 5px 0;
    }
}

@media (max-width: 768px) {
    .main-content {
        margin: 25px 40px; /* en lugar de 30px */
    }
    
    .sidebar {
        position: relative;
        z-index: 1000;
    }
    
    .status-pills {
        flex-direction: column;
        align-items: center;
    }
    
    .pill {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
}

.nav-menu-item,
.nav-menu-item:link,
.nav-menu-item:visited {
    display: block;
    color: white;
    text-decoration: none;
    padding: 16px 20px;
    cursor: pointer;
    font-weight: 500;
    font-size: 13px;
    transition: all 0.3s ease;
    letter-spacing: 0.3px;
    position: relative;
    border-top: 1px solid white;
    border-bottom: 1px solid white;
}

.nav-menu-item:hover,
.nav-menu-item.active {
    background: rgba(255, 255, 255, 0.08);
}

/* Tabla de usuarios - hover y fondos */
table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 12px;
    overflow: visible; /* Cambiado de hidden a visible para permitir dropdowns */
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}
thead tr {
    background: #bdc3c7;
    color: #2c3e50;
    font-weight: bold;
}
tbody tr {
    background: #ecf0f1;
    transition: background 0.2s;
}
tbody tr:nth-child(even) {
    background: #ecf0f1;
}
tbody tr:hover {
    background: #e3eaf2;
}
td, th {
    padding: 14px 18px;
    font-size: 14px;
    text-align: left;
    overflow: visible; /* Permitir que los dropdowns sean visibles */
}

.detail-btn, .create-btn {
    padding: 6px 18px;
    border: none;
    background-color: #3498db;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    font-size: 15px;
    font-weight: 600;
    margin: 0 2px;
    display: inline-block;
}
.detail-btn:hover, .create-btn:hover {
    background-color: #2980b9;
}
.create-btn {
    background: #27ae60;
    margin-top: 0;
    box-shadow: 0 3px 6px rgba(39, 174, 96, 0.3);
    border-radius: 25px;
    padding: 14px 32px;
    font-size: 16px;
}
.create-btn:hover {
    background: #229954;
}
a, a:link, a:visited {
    text-decoration: none !important;
}

/* ===== ESTILOS PARA SECCIONES DEL MENÚ ===== */

.nav-section {
    /*margin-bottom: 24px;*/
    border-bottom: 0px solid rgba(255, 255, 255, 0.1);
    /*padding-bottom: 16px;*/
}

.nav-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.nav-section-title {
    color: #ffffff;
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
    padding: 8px 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    border-left: 3px solid #3498db;
}

/* Ajustar espaciado de los items del menú dentro de las secciones */
.nav-section .nav-menu-item {
    margin-bottom: 2px;
    border-radius: 6px;
    border: none;
    background: transparent;
}

.nav-section .nav-menu-item:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateX(4px);
}

.nav-section .nav-menu-item.active {
    background: #0e4e73;
    box-shadow: 0 2px 8px rgba(14, 78, 115, 0.3);
}

/* Responsive para las secciones del menú */
@media (max-width: 768px) {
    .nav-section-title {
        font-size: 11px;
        padding: 6px 16px;
    }
    
    .nav-section .nav-menu-item {
        padding: 14px 16px;
        font-size: 12px;
    }
}

/* ===== ESTILOS PARA ELIMINACIÓN DE OBRAS ===== */

/* Botón de eliminar obra */
.btn-eliminar-obra {
    background: #e74c3c !important;
    color: white !important;
    border: none !important;
    transition: all 0.3s ease;
}

.btn-eliminar-obra:hover {
    background: #c0392b !important;
    transform: scale(1.05);
    box-shadow: 0 2px 8px rgba(231, 76, 60, 0.3);
}

.btn-eliminar-obra:active {
    transform: scale(0.95);
}

/* Advertencia de eliminación */
.advertencia-eliminacion {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 8px;
    color: #856404;
    padding: 12px 16px;
    margin-top: 20px;
}

.advertencia-eliminacion .icono-advertencia {
    color: #f39c12;
    margin-right: 8px;
}

.advertencia-eliminacion ul {
    margin: 8px 0 0 20px;
    font-size: 0.9em;
}

.advertencia-eliminacion .recomendacion {
    margin: 8px 0 0 0;
    font-size: 0.9em;
    font-style: italic;
}

/* ===== ESTILOS PARA DROPDOWN DE ACCIONES ===== */

.acciones-cell {
    min-width: 140px;
    text-align: center;
    position: relative;
    padding: 8px 4px;
    overflow: visible; /* Asegurar que el dropdown sea visible */
}

.dropdown-acciones {
    position: relative;
    display: inline-block;
    width: 100%;
    z-index: 10000; /* Increased z-index even more */
}

.btn-acciones-principal {
    background: linear-gradient(135deg, #2479A9 0%, #1e5f8a 100%);
    color: white;
    border: none;
    padding: 10px 18px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(36, 121, 169, 0.3);
    width: 100%;
    min-width: 120px;
    position: relative;
    overflow: hidden;
}

.btn-acciones-principal::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.btn-acciones-principal:hover::before {
    left: 100%;
}

.btn-acciones-principal:hover {
    background: linear-gradient(135deg, #1e5f8a 0%, #154a6b 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(36, 121, 169, 0.4);
}

.btn-acciones-principal:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(36, 121, 169, 0.3);
}

.btn-acciones-principal .material-icons {
    font-size: 18px;
    transition: transform 0.2s ease;
}

.btn-acciones-principal:hover .material-icons {
    transform: rotate(180deg);
}

.dropdown-content {
    display: none;
    position: fixed; /* Cambiado de absolute a fixed para evitar cortes */
    background: white;
    min-width: 280px; /* Aumentado el ancho mínimo */
    max-width: 320px; /* Agregado ancho máximo */
    box-shadow: 0 12px 32px rgba(0,0,0,0.2);
    border-radius: 12px;
    z-index: 99999; /* Z-index muy alto */
    border: 2px solid #e1e8ed;
    overflow: visible; /* Cambiado de hidden a visible */
    animation: dropdownFadeIn 0.3s ease-out;
    backdrop-filter: blur(10px);
    /* Asegurar que el fondo sea sólido */
    background-color: white !important;
    background-image: none !important;
}

@keyframes dropdownFadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.dropdown-content::before {
    content: '';
    position: absolute;
    top: -8px;
    right: 20px;
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 8px solid white;
    z-index: 1;
}

.dropdown-content::after {
    content: '';
    position: absolute;
    top: -10px;
    right: 20px;
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-bottom: 10px solid #e1e8ed;
    z-index: 0;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    text-decoration: none;
    color: #2c3e50;
    border-bottom: 1px solid #f8f9fa;
    transition: all 0.2s ease;
    font-size: 14px;
    font-weight: 500;
    position: relative;
    overflow: hidden;
}

.dropdown-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 0;
    height: 100%;
    background: linear-gradient(90deg, #2479A9, #1e5f8a);
    transition: width 0.3s ease;
    z-index: -1;
}

.dropdown-item:hover::before {
    width: 100%;
}

.dropdown-item:hover {
    background: transparent;
    color: white;
    transform: translateX(6px);
    padding-left: 24px;
}

.dropdown-item .material-icons {
    font-size: 20px;
    color: #7f8c8d;
    transition: all 0.2s ease;
    min-width: 20px;
}

.dropdown-item:hover .material-icons {
    color: white;
    transform: scale(1.1);
}

.dropdown-divider {
    height: 2px;
    background: linear-gradient(90deg, transparent, #e1e8ed, transparent);
    margin: 8px 0;
    border: none;
}

.dropdown-item-danger {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    text-decoration: none;
    color: #e74c3c;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

.dropdown-item-danger::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 0;
    height: 100%;
    background: linear-gradient(90deg, #e74c3c, #c0392b);
    transition: width 0.3s ease;
    z-index: -1;
}

.dropdown-item-danger:hover::before {
    width: 100%;
}

.dropdown-item-danger:hover {
    background: transparent;
    color: white;
    transform: translateX(6px);
    padding-left: 24px;
}

.dropdown-item-danger .material-icons {
    font-size: 20px;
    color: #e74c3c;
    transition: all 0.2s ease;
    min-width: 20px;
}

.dropdown-item-danger:hover .material-icons {
    color: white;
    transform: scale(1.1);
}

/* Responsive para el dropdown */
@media (max-width: 768px) {
    .acciones-cell {
        min-width: 120px;
        padding: 6px 2px;
    }
    
    .btn-acciones-principal {
        padding: 8px 14px;
        font-size: 13px;
        min-width: 100px;
    }
    
    .dropdown-content {
        min-width: 220px;
        right: -10px;
        top: calc(100% + 6px);
    }
    
    .dropdown-item, .dropdown-item-danger {
        padding: 12px 16px;
        font-size: 13px;
    }
    
    .dropdown-item .material-icons,
    .dropdown-item-danger .material-icons {
        font-size: 18px;
    }
}

/* Asegurar que el dropdown esté siempre visible */
.dropdown-acciones {
    z-index: 1000;
}

.dropdown-content.show {
    display: block;
}

/* ===== ESTILOS PARA LOGIN ===== */

/* Contenedor principal del login */
.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #2479A9 0%, #1e5f8a 100%);
    padding: 20px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Tarjeta del formulario de login */
.login-container > div {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    padding: 40px;
    width: 100%;
    max-width: 400px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    animation: slideInUp 0.6s ease-out;
}

/* Título del login */
.login-container h2 {
    text-align: center;
    color: #2c3e50;
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 30px;
    background: linear-gradient(135deg, #2479A9, #1e5f8a);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
}

.login-container h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(135deg, #2479A9, #1e5f8a);
    border-radius: 2px;
}

/* Formulario */
.login-container form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Labels */
.login-container label {
    color: #34495e;
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 8px;
    display: block;
    transition: color 0.3s ease;
}

.login-container label:hover {
    color: #2479A9;
}

/* Inputs */
.login-container input[type="email"],
.login-container input[type="password"],
.login-container #password {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid #e1e8ed;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.9);
    box-sizing: border-box;
}

/* Deja lugar al ícono de mostrar/ocultar contraseña (ver login.php) para
   que el texto ingresado no quede debajo del ícono. */
.login-container #password {
    padding-right: 45px;
}

.login-container input[type="email"]:focus,
.login-container input[type="password"]:focus,
.login-container #password:focus {
    outline: none;
    border-color: #2479A9;
    box-shadow: 0 0 0 3px rgba(36, 121, 169, 0.1);
    transform: translateY(-2px);
}

.login-container input[type="email"]:hover,
.login-container input[type="password"]:hover,
.login-container #password:hover {
    border-color: #bdc3c7;
    transform: translateY(-1px);
}

/* Botón de envío */
.login-container button[type="submit"] {
    background: linear-gradient(135deg, #2479A9 0%, #1e5f8a 100%);
    color: white;
    border: none;
    padding: 16px 30px;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
    position: relative;
    overflow: hidden;
}

.login-container button[type="submit"]::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.login-container button[type="submit"]:hover::before {
    left: 100%;
}

.login-container button[type="submit"]:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(36, 121, 169, 0.3);
}

.login-container button[type="submit"]:active {
    transform: translateY(-1px);
}

/* Mensaje de error */
.login-container .error {
    background: linear-gradient(135deg, #ff6b6b, #ee5a52);
    color: white;
    padding: 15px 20px;
    border-radius: 12px;
    margin-bottom: 20px;
    font-weight: 500;
    text-align: center;
    box-shadow: 0 5px 15px rgba(255, 107, 107, 0.3);
    animation: shake 0.5s ease-in-out;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Mensaje de éxito */
.login-container .success {
    background: linear-gradient(135deg, #2ecc71, #27ae60);
    color: white;
    padding: 15px 20px;
    border-radius: 12px;
    margin-bottom: 20px;
    font-weight: 500;
    text-align: center;
    box-shadow: 0 5px 15px rgba(46, 204, 113, 0.3);
    animation: slideInUp 0.5s ease-out;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Mensaje de advertencia */
.login-container .warning {
    background: linear-gradient(135deg, #f39c12, #e67e22);
    color: white;
    padding: 15px 20px;
    border-radius: 12px;
    margin-bottom: 20px;
    font-weight: 500;
    text-align: center;
    box-shadow: 0 5px 15px rgba(243, 156, 18, 0.3);
    animation: slideInUp 0.5s ease-out;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Animaciones */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

/* Efectos de hover para inputs */
.login-container input[type="email"]::placeholder,
.login-container input[type="password"]::placeholder,
.login-container #password::placeholder {
    color: #95a5a6;
    transition: color 0.3s ease;
}

.login-container input[type="email"]:focus::placeholder,
.login-container input[type="password"]:focus::placeholder,
.login-container #password:focus::placeholder {
    color: #bdc3c7;
}

/* Responsive design */
@media (max-width: 480px) {
    .login-container {
        padding: 15px;
    }
    
    .login-container > div {
        padding: 30px 25px;
        border-radius: 15px;
    }
    
    .login-container h2 {
        font-size: 1.8rem;
    }
    
    .login-container input[type="email"],
    .login-container input[type="password"],
    .login-container #password {
        padding: 12px 16px;
        font-size: 0.95rem;
    }
    
    .login-container button[type="submit"] {
        padding: 14px 25px;
        font-size: 1rem;
    }
}

/* Efecto de partículas de fondo */
.login-container::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 80%, rgba(36, 121, 169, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(84, 153, 199, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(30, 95, 138, 0.3) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

/* Mejoras adicionales para accesibilidad */
.login-container input[type="email"]:focus,
.login-container input[type="password"]:focus,
.login-container #password:focus {
    background: rgba(255, 255, 255, 1);
}

.login-container button[type="submit"]:focus {
    outline: 2px solid rgba(255, 255, 255, 0.5);
    outline-offset: 2px;
}

/* Efecto de carga para el botón */
.login-container button[type="submit"].loading {
    pointer-events: none;
    opacity: 0.8;
}

.login-container button[type="submit"].loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    border: 2px solid transparent;
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Estilos para el módulo de consultas */
.consultas-container {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 20px;
    height: calc(100vh - 200px);
}

.expedientes-lista {
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    overflow-y: auto;
}

.expediente-item {
    padding: 15px;
    border-bottom: 1px solid #eee;
    cursor: pointer;
    transition: background 0.3s;
}

.expediente-item:hover {
    background: #f8f9fa;
}

.expediente-item.activo {
    background: #e3f2fd;
    border-left: 4px solid #2196f3;
}

.expediente-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5px;
}

.expediente-numero {
    font-weight: bold;
    color: #2196f3;
}

.mensajes-badge {
    background: #ff5722;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
}

.expediente-direccion {
    font-size: 14px;
    color: #666;
    margin-bottom: 5px;
}

.expediente-estado {
    font-size: 12px;
    padding: 2px 8px;
    border-radius: 12px;
    background: #e8f5e8;
    color: #2e7d32;
    display: inline-block;
}

.chat-container {
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
}

.chat-header {
    padding: 20px;
    border-bottom: 1px solid #eee;
    background: #f8f9fa;
    border-radius: 10px 10px 0 0;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.message {
    margin-bottom: 15px;
    display: flex;
    align-items: flex-start;
}

.message.profesional {
    justify-content: flex-end;
}

.message-content {
    max-width: 70%;
    padding: 12px 16px;
    border-radius: 18px;
    position: relative;
}

.message.profesional .message-content {
    background: #2196f3;
    color: white;
    border-bottom-right-radius: 4px;
}

.message.verificador .message-content {
    background: #f1f3f4;
    color: #333;
    border-bottom-left-radius: 4px;
}

.message-time {
    font-size: 11px;
    margin-top: 5px;
    opacity: 0.7;
}

.message.verificador .message-time {
    text-align: left;
}

.message.profesional .message-time {
    text-align: right;
}

.chat-input {
    padding: 20px;
    border-top: 1px solid #eee;
    background: #f8f9fa;
    border-radius: 0 0 10px 10px;
}

.input-group {
    display: flex;
    gap: 10px;
}

.input-group textarea {
    flex: 1;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 20px;
    resize: none;
    font-family: inherit;
}

.send-btn {
    background: #2196f3;
    color: white;
    border: none;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
}

.send-btn:hover {
    background: #1976d2;
}

.observaciones-panel {
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.observacion-item {
    padding: 15px;
    border-bottom: 1px solid #eee;
    transition: background 0.3s;
    cursor: pointer;
}

.observacion-item:hover {
    background: #fff3e0;
}

.observacion-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.observacion-expediente {
    font-weight: bold;
    color: #ff9800;
}

.observacion-fecha {
    font-size: 12px;
    color: #666;
}

.observacion-verificador {
    font-size: 14px;
    color: #666;
    margin-bottom: 8px;
}

.observacion-mensaje {
    background: #fff3e0;
    padding: 10px;
    border-radius: 8px;
    border-left: 4px solid #ff9800;
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #666;
}

.empty-state .material-icons {
    font-size: 64px;
    color: #ddd;
    margin-bottom: 20px;
}

.nueva-consulta-btn {
    background: #4caf50;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    transition: background 0.3s;
}

.nueva-consulta-btn:hover {
    background: #388e3c;
}