/* ==============================================================================
   Sistema: Ecovía Comechingones (Smart City & Tourism)
   Creador y Desarrollador: Silvio Deandrea
   Copyright: © 2026 Silvio Deandrea. Todos los derechos reservados.
   Licencia: Propiedad Privada - Producto Protegido por Derechos de Autor.
   ============================================================================== */

/* F44.11 — refresco "Sierra Comechingones" (shell común, acento emerald propio):
   papel cálido + Fraunces + curvas + microinteracciones. El emerald se mantiene
   como color distintivo del Panel del Comerciante (no se unifica a sierra). */
body   { background: #f7f5f0; }
#login { background: #f7f5f0; }
/* Fraunces self-hosteada (reusa la del Portal Turista; CSP font-src 'self' OK). */
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/turismo/fonts/fraunces-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
#login h1, #page-title, #view h2, #view h3, .font-display {
  font-family: 'Fraunces', ui-serif, Georgia, serif; font-optical-sizing: auto;
}
/* microinteracciones (respetan reduce-motion); foco visible en el emerald del portal */
a, button { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid #047857; outline-offset: 2px; border-radius: 6px; }
@media (prefers-reduced-motion: no-preference) {
  .kpi-card { transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
  .kpi-card:hover { transform: translateY(-2px); border-color: #6ee7b7; box-shadow: 0 10px 24px -12px rgba(4, 120, 87, .35); }
  .nav-tab { transition: color .15s ease, border-color .15s ease; }
}

/* Tab activo del top-nav */
.nav-tab {
  padding: 0.6rem 0.9rem;
  border-bottom: 2px solid transparent;
  color: #57534e;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 500;
  cursor: pointer;
  transition: color .15s, border-color .15s;
}
.nav-tab:hover {
  color: #047857;
}
.nav-tab.is-active {
  color: #047857;
  border-bottom-color: #047857;
}

/* Tabla genérica */
table.dyn {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
  background: white;
  border: 1px solid #e7e5e4;
  border-radius: 0.75rem;
  overflow: hidden;
}
table.dyn thead {
  background: #f5f5f4;
}
table.dyn th, table.dyn td {
  padding: 0.6rem 0.9rem;
  border-bottom: 1px solid #f5f5f4;
  text-align: left;
}
table.dyn tbody tr:last-child td {
  border-bottom: none;
}
table.dyn tbody tr:hover {
  background: #fafaf9;
}

/* Card KPI del dashboard */
.kpi-card {
  background: white;
  border: 1px solid #e7e5e4;
  border-radius: 1rem;
  padding: 1.25rem;
}
.kpi-card .kpi-label {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #78716c;
}
.kpi-card .kpi-value {
  font-size: 2rem;
  font-weight: 600;
  color: #1c1917;
  margin-top: 0.25rem;
}

/* Modal */
.modal-backdrop {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.4);
  display: flex; align-items: center; justify-content: center;
  z-index: 50;
  padding: 1rem;
}
.modal-card {
  background: white;
  border-radius: 1rem;
  max-width: 32rem;
  width: 100%;
  padding: 1.5rem;
}

/* Badge de oferta vigente */
.badge-oferta {
  display: inline-block;
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #fcd34d;
  padding: 0.15rem 0.5rem;
  border-radius: 9999px;
  font-size: 0.65rem;
  font-weight: 600;
}
