/* ========= CITYREPORT THEME - UNIFIED STYLESHEET ========= */
:root{
  /* Marca (color principal en RGB) */
  --brand-ink: rgb(21, 73, 101);
  --brand-ink-900: rgb(21, 73, 101);
  --brand-accent: rgb(241, 143, 1);
  --brand-accent-900:#b8620f;

  /* Primary tonal scale */
  --primary-50: #f0f9f9;
  --primary-100: #e0f2f4;
  --primary-200: #bae6ea;
  --primary-300: #7dd3d8;
  --primary-400: #38bdc3;
  --primary-500: #0ea5aa;
  --primary-600: #0d8f94;
  --primary-700: #0c797d;
  --primary-800: #0b6366;
  --primary-900: #114b58;

  /* Grises */
  --gray-50: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-300: #cbd5e1;
  --gray-400: #94a3b8;
  --gray-500: #64748b;
  --gray-600: #475569;
  --gray-700: #334155;
  --gray-800: #1e293b;
  --gray-900: #0f172a;

  /* Design tokens */
  --bg-soft: var(--gray-50);
  --ink: var(--brand-ink);
  --muted: var(--gray-500);
  --panel-border: rgba(17,96,106,0.08);
  --radius-sm: 0.375rem;
  --radius: 0.5rem;
  --radius-lg: 0.75rem;
  --shadow: 0 6px 18px rgba(0,0,0,.08);
  --shadow-lg: 0 10px 25px rgba(0,0,0,.12);
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --transition: all 0.18s ease;
}

@font-face{
  font-family: "CircularStd";
  src: url("../fonts/circular-std-medium-500.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

/* Aplica a todo */
html, body{
  font-family: "CircularStd", Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}


/* ===== RESET Y BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 16px; height: 100%; scroll-behavior: smooth; }

body {
  min-height: 100%;
  font-family: "CircularStd", Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--text-color);
  background: var(--body-bg, var(--bg-soft));
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
}

main.principal {
  flex: 1;
}

/* ===== HEADER UNIFICADO (nav.css + alternativas) ===== */
.main-header, header.main-header, .header, header.header {
  background: linear-gradient(180deg, var(--brand-ink-900), var(--brand-ink));
  color: #fff;
  padding: 1rem 0;
}

/* ✅ ANCHO UNIFICADO (antes 1200px) */
.header-container, .main-header .header-container, .header-content {
  max-width: 1300px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0 1.5rem;
}

.logo-container, .header-logo { display:flex; align-items:center; gap:0.75rem; }
.logo-link { display:flex; align-items:center; gap:0.75rem; text-decoration:none; }
.logo-img { transition: transform 0.2s ease; }
.logo-img:hover { transform: scale(1.05); }

.header-logos img,
.header-logo .logo-img,
.logo-link .logo-img,
.logo-urbano,
.logo-city {
  background: #fff;
  padding: 10px;
  border-radius: 10px;
  transition: transform 0.2s ease;
  box-shadow: 0 3px 6px rgba(0,0,0,0.15);
  display: block;
  object-fit: contain;
  z-index: 5;
}

/* Forzar visibilidad si alguna regla inline o mezcla atenúa el logo */
.header-logo .logo-img,
.logo-link .logo-img{
  opacity: 1 !important;
  filter: none !important;
  mix-blend-mode: normal !important;
}

.logo-urbano { height: 140px; }
.logo-city { height: 138px; }

.header-title {
  flex:1;
  text-align:center;
  margin:0;
}

.title-with-icon {
  display:flex;
  align-items:center;
  gap:.6rem;
  margin:0;
}

.header-title h1 {
  font-size:1.625rem;
  font-weight:600;
  margin:0;
  color:#fff;
}

.header-subtitle {
  font-size:0.875rem;
  font-weight:400;
  margin-top:0.25rem;
  color: var(--primary-100, #bde4ee);
  display:flex;
  align-items:center;
  justify-content:center;
  gap:0.5rem;
}

.main-nav, .header-nav {
  display:flex;
  align-items:center;
  gap:0.5rem;
}

.main-nav .nav-link, .header-nav .nav-link, .nav-link {
  display:flex;
  align-items:center;
  gap:0.5rem;
  color:#dff3ff;
  text-decoration:none;
  padding:0.5rem 0.75rem;
  border-radius:0.5rem;
  transition:all 0.2s ease;
  font-weight:500;
  font-size:0.9375rem;
}

.nav-link:hover {
  background: rgba(255,255,255,0.1);
  color:#fff;
}

.nav-link.active {
  background: rgba(255,255,255,0.15);
  color:#fff;
}

.nav-icon {
  width:1.25rem;
  height:1.25rem;
  opacity:0.9;
  transition: transform 0.2s ease;
}

.nav-link:hover .nav-icon {
  transform: translateY(-1px);
  opacity:1;
}

@media (max-width:768px){
  .header-container { flex-direction: column; gap:1rem; padding:1rem; }
  .main-nav { width:100%; justify-content:center; flex-wrap:wrap; }
  .nav-link { flex-direction:column; text-align:center; padding:0.5rem; font-size:0.875rem; }
  .nav-icon { width:1.5rem; height:1.5rem; margin-bottom:0.25rem; }
  .header-title { font-size:1.375rem; }
}

/* ===== DASHBOARD / INDEX (estilos.css + animaciones) ===== */
.dashboard-grid{
  display:grid;
  grid-template-columns:1fr 380px;
  gap:20px;

  /* ✅ ANCHO UNIFICADO (antes 1200px) */
  max-width:1300px;

  margin:24px auto;
  padding:0 16px;
}

.card {
  background:#fff;
  border-radius:var(--radius-lg);
  box-shadow:var(--shadow-lg);
}

.welcome-card{
  background:linear-gradient(135deg,rgba(255,255,255,.95),rgba(255,255,255,.9));
  padding:40px;
  border-radius:var(--radius-lg);
  box-shadow:0 15px 35px rgba(0,0,0,.1);
  backdrop-filter:blur(10px);
  text-align:center;
  animation:slideIn .5s ease-out forwards;
  border:1px solid rgba(255,255,255,.2);
  position:relative;
  overflow:hidden;
}

.welcome-card::before{
  content:'';
  position:absolute;
  top:0; left:0; right:0;
  height:4px;
  background:linear-gradient(90deg,#11606a,#0d4f56);
  animation:shimmer 2s infinite;
}

.welcome-time{
  font-size:.9rem;
  color:#666;
  margin-bottom:1rem;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:6px;
  animation:fadeIn .5s ease-out .3s forwards;
  opacity:0;
}

.welcome-heading{
  font-size:2.2rem;
  color:#11606a;
  margin-bottom:1rem;
  font-weight:700;
  animation:slideUp .5s ease-out forwards;
}

.welcome-message{
  font-size:1.1rem;
  color:#444;
  margin-bottom:2rem;
  line-height:1.6;
  animation:fadeIn .5s ease-out .2s forwards;
  opacity:0;
}

.stats-preview{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(200px,1fr));
  gap:20px;
  margin:2rem 0;
  animation:fadeIn .5s ease-out .4s forwards;
  opacity:0;
}

.stat-item{
  background:rgba(255,255,255,.8);
  padding:1.5rem;
  border-radius:12px;
  border:1px solid rgba(17,96,106,.1);
  transition:transform .2s ease, box-shadow .2s ease;
}

.stat-item:hover{
  transform:translateY(-5px);
  box-shadow:0 8px 20px rgba(17,96,106,.1);
}

.stat-value{
  font-size:1.8rem;
  font-weight:700;
  color:#11606a;
  margin-bottom:.3rem;
}

.stat-label{
  font-size:.9rem;
  color:#666;
}

.action-buttons{
  display:flex;
  flex-wrap:wrap;
  gap:.6rem;
  margin:2rem 0;
  justify-content: center;
  animation:slideUp .5s ease-out .3s forwards;
  opacity:0;
}

.quick-access{
  background:rgba(255,255,255,.9);
  padding:24px;
  border-radius:var(--radius-lg);
  box-shadow:var(--shadow-lg);
  backdrop-filter:blur(10px);
  animation:slideIn .5s ease-out forwards;
  animation-delay:.2s;
  opacity:0;
}

.quick-access-header{
  display:flex;
  align-items:center;
  gap:16px;
  margin-bottom:20px;
  padding-bottom:16px;
  border-bottom:2px solid var(--primary-100);
  justify-content:center;
}

.quick-access-logo{
  height:138px;
  width:auto;
  background:#fff;
  padding:10px;
  border-radius:10px;
  box-shadow:0 3px 6px rgba(0,0,0,.15);
  transition:transform .2s ease;
  object-fit:contain;
  display:block;
}

.quick-access-logo:hover{
  transform:scale(1.05);
}

.quick-links{
  display:grid;
  gap:16px;
}

.quick-link{
  display:flex;
  align-items:center;
  justify-content:center;
  padding:16px;
  background:var(--gray-50);
  border:1px solid var(--gray-200);
  border-radius:var(--radius);
  color:var(--gray-800);
  text-decoration:none;
  font-size:16px;
  transition:all .2s ease;
  font-weight: 600;
}

.quick-link:hover{
  background:var(--primary-50);
  border-color:var(--primary-200);
  transform:translateX(4px);
}

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

/* ===== FORMULARIOS (forms.css) ===== */
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  align-items: start;
  margin-top: 1.5rem;
}

.full { grid-column: 1 / -1; }

.form-group {
  margin-bottom: 1rem;
}

label {
  display: block;
  font-weight: 600;
  color: var(--primary-900);
  margin-bottom: 0.5rem;
}

.form-control {
  display: block;
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  line-height: 1.5;
  color: var(--gray-700);
  background-color: white;
  background-clip: padding-box;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius);
  transition: var(--transition);
}

.form-control::placeholder {
  color: var(--gray-400);
}

.form-control:focus {
  color: var(--gray-900);
  background-color: white;
  border-color: var(--primary-400);
  outline: 0;
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.15);
}

select.form-control {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
  background-position: right 0.75rem center;
  background-repeat: no-repeat;
  background-size: 1.25rem;
  padding-right: 2.5rem;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

textarea.form-control {
  resize: vertical;
  min-height: 100px;
}

.form-control.is-invalid {
  border-color: #dc3545;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23dc3545'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23dc3545' stroke='none'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 1.5rem;
  padding-right: 2.5rem;
}

.form-control.is-invalid:focus {
  border-color: #dc3545;
  box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.15);
}

.invalid-feedback {
  display: none;
  width: 100%;
  margin-top: 0.25rem;
  font-size: 0.875rem;
  color: #dc3545;
}

.form-control.is-invalid ~ .invalid-feedback {
  display: block;
}

.muted {
  color: var(--gray-500);
  font-size: 0.875rem;
}

.hint {
  font-size: 0.875rem;
  color: var(--gray-500);
  margin-top: 0.375rem;
}

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

/* ===== BOTONES ===== */
.btn{
  display:inline-flex;
  align-items:center;
  gap:.5rem;
  border:none;
  border-radius:12px;
  padding:.75rem 1.15rem;
  cursor:pointer;
  text-decoration:none;
  font-weight:600;
  transition:.18s;
  justify-content: center;
}

.btn-primary{
  background:linear-gradient(180deg,var(--brand-ink),var(--brand-ink-900));
  color:#fff;
  box-shadow:0 6px 18px rgba(21,73,101,.18);
}

.btn-primary:hover{
  transform:translateY(-1px);
  box-shadow:0 10px 22px rgba(21,73,101,.24);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-primary:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.btn-accent{
  background:linear-gradient(180deg,var(--brand-accent),var(--brand-accent-900));
  color:#fff;
  box-shadow:0 6px 18px rgba(241,143,1,.25);
}

.btn-accent:hover{
  transform:translateY(-1px);
  box-shadow:0 10px 22px rgba(241,143,1,.35);
}

.btn-danger{
  background:linear-gradient(135deg,#d32f2f,#c62828);
  color:#fff;
}

.btn-danger:hover {
  transform: translateY(-1px);
}

.btn-outline{
  background: transparent;
  color: var(--brand-ink);
  border: 2px solid var(--brand-ink);
}

.btn-outline:hover {
  background: rgba(21,73,101,0.1);
}

.btn-secondary {
  color: var(--primary-700);
  background: white;
  border: 1px solid var(--gray-300);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  border-color: var(--primary-300);
  color: var(--primary-600);
  background: var(--primary-50);
  transform: translateY(-1px);
}

.btn-secondary:active {
  background: var(--primary-100);
  transform: translateY(0);
}

.btn.sm{
  padding:.6rem .9rem;
  border-radius:10px;
  font-size:.95rem;
}

.btn-action{
  display:inline-flex;
  align-items:center;
  gap:.5rem;
  border:none;
  border-radius:12px;
  padding:.75rem 1.15rem;
  cursor:pointer;
  text-decoration:none;
  font-weight:600;
  transition:.18s;
}

/* ===== TABLAS (tables.css) ===== */
.panel {
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 2rem;
  margin: 2rem auto;

  /* ✅ ANCHO UNIFICADO (antes 1200px) */
  max-width: 1300px;

  width: 100%; /* ✅ evita “saltos” por contenido interno */
  border: 1px solid var(--gray-200);
  position: relative;
  transition: var(--transition);
}

.panel:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 40px -5px rgba(0, 0, 0, 0.1);
}

.table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 1rem 0;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  background: white;

  max-width: 100%; /* ✅ */
}

.table-responsive, .table-container {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 1rem 0;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  background: white;
}

.results-table {
  width: 100%;
  border-collapse: collapse;
  color: var(--gray-700);
}

.table {
  width: 100%;
  color: var(--gray-700);
  border-collapse: separate;
  border-spacing: 0;
  min-width: 800px;
}

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

.text-right {
  text-align: right;
}

.table th {
  padding: 1rem;
  background: #114b58;
  color: #fff;
  font-weight: 600;
  text-align: left;
  border-bottom: 2px solid #0f5160;
  position: sticky;
  top: 0;
  z-index: 10;
}

.table td {
  padding: 1rem;
  vertical-align: middle;
  border-bottom: 1px solid var(--gray-200);
}

.table tbody tr {
  transition: var(--transition);
}

.table tbody tr:hover {
  background: #f8fbfc;
  transform: none;
}

.table tbody tr.selected {
  background: var(--primary-50);
}

.text-center th,
.text-center td {
  text-align: center;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1;
  border-radius: var(--radius);
}

.status-badge .nav-icon {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
}

.status-pendiente {
  background: var(--warning-50, #fffbeb);
  color: var(--warning-700, #b45309);
}

.status-resuelto {
  background: var(--success-50, #f0fdf4);
  color: var(--success-700, #15803d);
}

.status-en-proceso {
  background: var(--info-50, #f0f9ff);
  color: var(--info-700, #0369a1);
}

.status-completado {
  background: #d1e7dd;
  color: #155724;
}

.actions-cell {
  display: flex;
  gap: 0.5rem;
  justify-content: flex-end;
  opacity: 0;
  transition: var(--transition);
}

tr:hover .actions-cell {
  opacity: 1;
}

.btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius);
  background: transparent;
  border: 1px solid var(--gray-200);
  color: var(--gray-600);
  transition: var(--transition);
  cursor: pointer;
  font-size: 0.875rem;
  font-weight: 500;
}

.btn-icon:hover {
  background: var(--gray-50);
  border-color: var(--gray-300);
  color: var(--gray-900);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.btn-icon .icon {
  width: 1rem;
  height: 1rem;
  stroke-width: 2;
}

.pagination {
  display: flex;
  padding-left: 0;
  list-style: none;
  border-radius: var(--radius);
  margin: 1rem 0;
  gap: 0.25rem;
}

.page-item .page-link {
  position: relative;
  display: block;
  padding: 0.5rem 0.75rem;
  margin-left: -1px;
  line-height: 1.25;
  color: var(--primary-600);
  background-color: white;
  border: 1px solid var(--gray-300);
  transition: var(--transition);
}

.page-item:first-child .page-link {
  border-top-left-radius: var(--radius);
  border-bottom-left-radius: var(--radius);
}

.page-item:last-child .page-link {
  border-top-right-radius: var(--radius);
  border-bottom-right-radius: var(--radius);
}

.page-item.active .page-link {
  z-index: 3;
  color: white;
  background-color: var(--primary-600);
  border-color: var(--primary-600);
}

.page-item.disabled .page-link {
  color: var(--gray-400);
  pointer-events: none;
  background-color: white;
  border-color: var(--gray-300);
}

.loading-overlay {
  position: relative;
  min-height: 200px;
}

.loading {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  backdrop-filter: blur(4px);
  border-radius: var(--radius);
}

.spinner {
  width: 40px;
  height: 40px;
  border: 4px solid var(--gray-200);
  border-top-color: var(--primary-500);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@media (max-width: 768px) {
  .panel {
    padding: 1.5rem;
    margin: 1rem;
  }

  .table-responsive {
    margin: 0 -1.5rem;
    padding: 0 1.5rem;
  }

  .table th,
  .table td {
    padding: 0.75rem;
  }

  .table-actions {
    flex-wrap: wrap;
  }
}

/* ===== ESTADÍSTICAS (stats.css) ===== */

/* ✅ ANCHO UNIFICADO (antes 1200px) */
.content-panel {
  max-width: 1300px;
  margin: 2rem auto;
  padding: 0 1.5rem;
}

.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: linear-gradient(135deg, rgba(255,255,255,0.95), rgba(255,255,255,0.9));
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  position: relative;
  overflow: hidden;
  animation: fadeIn 0.5s ease-out;
}

.panel-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #11606a, #0d4f56);
  animation: shimmer 2s infinite;
}

.panel-title {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.5rem;
  color: #11606a;
  font-weight: 600;
}

.stats-date {
  font-size: 1.1rem;
  color: #666;
  margin-right: 1rem;
  animation: fadeIn 0.5s ease-out;
}

.stats-title {
  color: var(--primary-900);
  margin: 0;
  font-size: 1.875rem;
  font-weight: 700;
  line-height: 1.2;
}

.stats-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
  opacity: 0;
  animation: fadeIn 0.5s ease-out forwards 0.2s;
}

.stat-card {
  background: linear-gradient(135deg, rgba(255,255,255,0.95), rgba(255,255,255,0.9));
  padding: 2rem;
  border-radius: 15px;
  text-align: center;
  transition: all 0.3s ease;
  border: 1px solid rgba(255,255,255,0.2);
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  animation: slideIn 0.5s ease-out forwards;
  opacity: 0;
}

.stat-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
}

.stat-card.total::before { background: linear-gradient(90deg, #11606a, #0d4f56); }
.stat-card.pending::before { background: linear-gradient(90deg, #f6b93b, #e55039); }
.stat-card.in-progress::before { background: linear-gradient(90deg, #4a69bd, #1e3799); }
.stat-card.completed::before { background: linear-gradient(90deg, #78e08f, #38ada9); }

.stat-label {
  font-size: 1rem;
  color: #666;
  margin-bottom: 1rem;
  font-weight: 500;
  opacity: 0;
  animation: fadeIn 0.5s ease-out forwards 0.3s;
}

.stat-value {
  font-size: 2.5rem;
  font-weight: 700;
  color: #11606a;
  margin: 0.5rem 0;
  line-height: 1;
  opacity: 0;
  animation: fadeIn 0.5s ease-out forwards 0.4s;
}

.stat-card .nav-icon {
  width: 32px;
  height: 32px;
  color: #11606a;
  opacity: 0.7;
  margin-bottom: 1rem;
  animation: fadeIn 0.5s ease-out forwards 0.2s;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
  justify-items: stretch;
  align-items: stretch;
  opacity: 0;
  animation: fadeIn 0.5s ease-out forwards 0.4s;
}

.info-card {
  background: linear-gradient(135deg, rgba(255,255,255,0.95), rgba(255,255,255,0.9));
  padding: 2rem;
  border-radius: 15px;
  text-align: center;
  transition: all 0.3s ease;
  border: 1px solid rgba(255,255,255,0.2);
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  animation: slideIn 0.5s ease-out forwards;
  opacity: 0;
}

.info-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

.info-value {
  font-size: 1.8rem;
  font-weight: 700;
  color: #11606a;
  margin: 1rem 0;
  opacity: 0;
  animation: fadeIn 0.5s ease-out forwards 0.5s;
}

.info-label {
  font-size: 1rem;
  color: #666;
  margin: 0;
  opacity: 0;
  animation: fadeIn 0.5s ease-out forwards 0.6s;
}

.info-card .nav-icon {
  width: 40px;
  height: 40px;
  color: #11606a;
  margin-bottom: 1rem;
  opacity: 0;
  animation: fadeIn 0.5s ease-out forwards 0.3s;
}

.chart-container {
  background: white;
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-top: 2rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--gray-200);
}

.chart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.chart-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--gray-900);
  margin: 0;
}

.icon-stats {
  width: 1rem;
  height: 1rem;
  margin-right: 0.5rem;
  opacity: 0.7;
}

.animate-count {
  animation: countUp 0.5s ease-out forwards;
}

@keyframes countUp {
  from { transform: translateY(1rem); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

@media (max-width: 1024px) {
  .stats-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .stats-cards {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .stats-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .stat-value {
    font-size: 1.75rem;
  }

  .info-value {
    font-size: 1.25rem;
  }
}

/* ===== ANIMACIONES GLOBALES ===== */
@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

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

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

/* ===== LOGIN PAGE (login.php) ===== */
@keyframes cr-gradientBG {
  0%{background-position:0% 50%}
  50%{background-position:100% 50%}
  100%{background-position:0% 50%}
}

@keyframes cr-float {
  0%,100%{transform:translateY(0)}
  50%{transform:translateY(-10px)}
}

@keyframes cr-shimmer {
  0%{left:-60%}
  100%{left:120%}
}

@keyframes cr-fadeInUp {
  from{opacity:0;transform:translateY(30px)}
  to{opacity:1;transform:translateY(0)}
}

/* ✅ Login también usa CircularStd */
body.login-page{
  font-family: "CircularStd", Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  margin:0;
  min-height:100vh;
  background:
    radial-gradient(circle at top left, var(--primary, #11606a), transparent),
    radial-gradient(circle at top right, #2E86DE, transparent),
    radial-gradient(circle at bottom left, #54A0FF, transparent),
    radial-gradient(circle at bottom right, var(--primary-dark, #0d4f56), transparent),
    #1a4c69;
  background-size:400% 400%;
  animation: cr-gradientBG 15s ease infinite;
  display:flex;
  align-items:center;
  justify-content:center;
  overflow:hidden;
}

body.login-page .particles{
  position:absolute;
  inset:0;
  width:100vw;
  height:100vh;
  z-index:1;
  pointer-events:none;
}

body.login-page .container{
  width:95%;
  max-width:460px;
  background: rgba(255,255,255,0.15);
  padding:42px 32px;
  border-radius:28px;
  backdrop-filter: blur(20px);
  box-shadow:0 8px 32px rgba(0,0,0,.25);
  border:1.5px solid rgba(255,255,255,0.25);
  position:relative;
  z-index:2;
  animation: cr-fadeInUp .8s ease;
  overflow:hidden;
}

body.login-page .container::before{
  content:'';
  position:absolute;
  top:0; left:0; right:0;
  height:4px;
  background: linear-gradient(90deg, var(--primary,#11606a), #2E86DE, #54A0FF, var(--primary-dark,#0d4f56));
  background-size:300% 100%;
  animation: cr-shimmer 3s ease infinite;
}

body.login-page .logo-wrapper{
  display:flex;
  justify-content:center;
  align-items:center;
  gap:28px;
  margin-bottom:18px;
}

body.login-page .logo-side{
  animation: cr-float 3.5s ease-in-out infinite;
  background: rgba(255,255,255,0.15);
  border:1px solid rgba(255,255,255,0.25);
  border-radius:18px;
  padding:15px;
  backdrop-filter:blur(8px);
}

body.login-page .logo-side img{
  height:85px;
  background:#fff;
  border-radius:14px;
  box-shadow:0 4px 15px rgba(17,96,106,.15);
  padding:8px 12px;
  display:block;
  object-fit:contain;
}

body.login-page h2{
  color: var(--primary,#11606a);
  text-align:center;
  font-size:2rem;
  font-weight:700;
  margin:0 0 10px;
}

body.login-page .welcome{
  color:#fff;
  text-align:center;
  margin-bottom:25px;
  font-weight:500;
}

body.login-page label{
  color:#fff;
  font-weight:600;
  display:block;
  margin-bottom:6px;
}

body.login-page input{
  width:100%;
  padding:14px 16px;
  border-radius:15px;
  border:2px solid rgba(255,255,255,0.25);
  background:rgba(255,255,255,.15);
  color:#fff;
  font-size:1rem;
  margin-bottom:18px;
  transition:.3s;
}

body.login-page input:focus{
  outline:none;
  border-color:#54A0FF;
  background:rgba(255,255,255,.25);
}

body.login-page button{
  width:100%;
  padding:16px;
  border-radius:15px;
  background:linear-gradient(135deg, var(--primary,#11606a), #2E86DE, #54A0FF);
  color:#fff;
  border:none;
  cursor:pointer;
  font-size:1.1rem;
  font-weight:600;
  transition:.2s;
  background-size:200% 100%;
  animation: cr-gradientBG 5s ease infinite;
}

body.login-page button:hover{
  transform:scale(1.03);
}

body.login-page .error{
  color:#d32f2f;
  text-align:center;
  margin-top:16px;
  font-size:15px;
  background:rgba(211,47,47,.08);
  padding:10px;
  border-radius:7px;
  backdrop-filter:blur(5px);
  font-weight:600;
  letter-spacing:.1px;
  display:none;
}

/* ===== UTILIDADES ===== */
.flex-between{display:flex;align-items:center;justify-content:space-between}
.gap-12{gap:12px}
.p-16{padding:16px}
.mb-16{margin-bottom:16px}
.mt-12{margin-top:12px}
.text-danger{color:#dc3545}
.text-color { color: var(--text-color); }
.icon{width:20px;height:20px}
.small, .icon.small{width:18px;height:18px}

/* ===== ALERTAS ===== */
.alert{padding:12px 14px;border-radius:12px}
.alert.ok{background:#d4edda;color:#155724;border:1px solid #c3e6cb}
.alert.error{background:#f8d7da;color:#721c24;border:1px solid #f5c6cb}
.alert.warn{background:#fff3cd;color:#664d03;border:1px solid #ffecb5}

/* ===== FOOTER ===== */
.pie {
  background: rgb(21, 73, 101);
  color: #fff;
  text-align: center;
  padding: 14px 0;
  font-size: 14px;
  margin-top: auto;
}

/* ✅ ANCHO UNIFICADO (antes 1200px) */
.contenedor { max-width: 1300px; margin: 0 auto; padding: 0 16px; }

/* ===== RESPONSIVO GENERAL ===== */
@media (max-width:720px){
  .form-grid{grid-template-columns:1fr}
}

/* Contenedor de evidencias para mantener tamaño y proporción */
.evidencia-box {
  width: 200px;             /* Ancho fijo o ajustable */
  height: 150px;            /* Alto fijo para todas las imágenes */
  overflow: hidden;         /* Oculta lo que sobresalga */
  border-radius: 10px;      /* Bordes redondeados */
  border: 1px solid #dce6ee; /* Borde sutil */
  display: flex;
  justify-content: center;
  align-items: center;
  background: #f9fcff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

/* Imagen dentro del contenedor */
.evidencia-box img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;   /* Mantiene la proporción y evita que se salga */
  display: block;
}

/* ✅ Extra anti “encogimiento” del listado */
#list { width: 100%; }
