/* ============================================================
   TURISTEANDO EN CIUDAD BOLÍVAR
   Sistema de Gestión de Solicitudes Turísticas
   Dirección de Turismo - Alcaldía Angostura del Orinoco
   
   Paleta extraída del logo oficial de la marca
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700;800;900&family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  /* ── Colores del Logo Oficial ── */
  --morado:       #6815B4;
  --morado-claro: #8B3FD4;
  --morado-oscuro:#5010A0;
  --naranja:      #E98A05;
  --naranja-claro:#F5A623;
  --verde:        #09A305;
  --verde-claro:  #0CC707;
  --rojo:         #CD1217;
  --azul-indigo:  #272674;
  --rosa:         #C80C6F;
  --celeste:      #869FE1;
  --amarillo:     #FAB900;

  /* ── Neutros ── */
  --blanco:       #FFFFFF;
  --fondo:        #F8F7FC;
  --fondo-alt:    #F0EEF5;
  --gris-100:     #F3F2F8;
  --gris-200:     #E8E6F0;
  --gris-300:     #D1CFE0;
  --gris-400:     #9B97B0;
  --texto:        #1E1B4B;
  --texto-suave:  #64618A;
  --texto-claro:  #8E8BB0;

  /* ── Semánticos ── */
  --exito:        #09A305;
  --error:        #CD1217;
  --info:         #869FE1;
  --advertencia:  #FAB900;

  /* ── Sombras (Material Design) ── */
  --sombra:       0 1px 3px rgba(39,38,116,0.06), 0 1px 2px rgba(39,38,116,0.04);
  --sombra-media: 0 4px 12px rgba(39,38,116,0.08), 0 2px 4px rgba(39,38,116,0.04);
  --sombra-fuerte:0 12px 32px rgba(39,38,116,0.12), 0 4px 8px rgba(39,38,116,0.06);
  --sombra-hover: 0 8px 24px rgba(39,38,116,0.10), 0 2px 6px rgba(39,38,116,0.05);

  /* ── Radios (más redondeado) ── */
  --radio:    16px;
  --radio-sm: 10px;
  --radio-lg: 24px;
  --radio-xl: 32px;

  /* ── Tipografía ── */
  --font-titulo: 'DM Sans', 'Segoe UI', sans-serif;
  --font-cuerpo: 'Inter', 'Segoe UI', sans-serif;

  /* ── Transiciones (más suaves) ── */
  --trans: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --trans-slow: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-cuerpo);
  background: var(--fondo);
  color: var(--texto);
  line-height: 1.6;
  min-height: 100vh;
}

/* ── TIPOGRAFÍA ── */
h1, h2, h3, h4 {
  font-family: var(--font-titulo);
  font-weight: 800;
  color: var(--azul-indigo);
  line-height: 1.2;
}
h1 { font-size: clamp(1.8rem, 4.5vw, 3rem); }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); }
h3 { font-size: 1.15rem; }
h4 { font-size: 0.95rem; }

a { color: var(--morado); text-decoration: none; }
a:hover { color: var(--morado-oscuro); }

/* ── BOTONES ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: var(--radio-sm);
  border: 2px solid transparent;
  cursor: pointer;
  font-family: var(--font-cuerpo);
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
  transition: all var(--trans);
  white-space: nowrap;
  letter-spacing: 0.01em;
}
.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--sombra-media);
}
.btn:active { transform: translateY(0); }

.btn-morado  { background: var(--morado); color: #fff; border-color: var(--morado); }
.btn-morado:hover { background: var(--morado-oscuro); border-color: var(--morado-oscuro); }
.btn-naranja { background: var(--naranja); color: #fff; border-color: var(--naranja); }
.btn-naranja:hover { background: #D47B04; border-color: #D47B04; }
.btn-verde   { background: var(--verde); color: #fff; border-color: var(--verde); }
.btn-azul    { background: var(--azul-indigo); color: #fff; border-color: var(--azul-indigo); }
.btn-rosa    { background: var(--rosa); color: #fff; border-color: var(--rosa); }
.btn-outline {
  background: transparent;
  border: 2px solid var(--gris-300);
  color: var(--texto);
}
.btn-outline:hover {
  border-color: var(--morado);
  color: var(--morado);
  background: rgba(104, 21, 180, 0.04);
}
.btn-outline-white {
  background: transparent;
  border: 2px solid rgba(255,255,255,0.35);
  color: #fff;
}
.btn-outline-white:hover {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.6);
}
.btn-sm  { padding: 7px 14px; font-size: 0.82rem; }
.btn-lg  { padding: 14px 28px; font-size: 1rem; }
.btn-full { width: 100%; justify-content: center; }

/* ── CARDS ── */
.card {
  background: var(--blanco);
  border-radius: var(--radio-lg);
  box-shadow: var(--sombra);
  overflow: hidden;
  transition: all var(--trans);
  border: 1px solid rgba(232,230,240,0.6);
}
.card:hover {
  box-shadow: var(--sombra-hover);
  transform: translateY(-3px);
  border-color: transparent;
}
.card-header {
  padding: 16px 20px;
  font-weight: 700;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 10px;
}
.card-body { padding: 20px; }

/* ── BADGES DE ESTADO ── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.badge-pendiente   { background: #FEF3CD; color: #92660A; }
.badge-en_revision { background: #E0E7FF; color: #3730A3; }
.badge-aprobada    { background: #D1FAE5; color: #065F46; }
.badge-denegada    { background: #FEE2E2; color: #991B1B; }
.badge-en_proceso  { background: #FFF3E0; color: #A65D00; }
.badge-cumplida    { background: #EDE9FE; color: #5B21B6; }

/* ── FORMULARIOS ── */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 18px;
}
.form-group label {
  font-weight: 700;
  font-size: 0.82rem;
  color: var(--azul-indigo);
  letter-spacing: 0.02em;
}
.form-group input,
.form-group select,
.form-group textarea {
  padding: 12px 16px;
  border: 2px solid var(--gris-200);
  border-radius: var(--radio-sm);
  font-family: var(--font-cuerpo);
  font-size: 0.92rem;
  color: var(--texto);
  background: var(--blanco);
  transition: border-color var(--trans), box-shadow var(--trans);
  outline: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--morado);
  box-shadow: 0 0 0 4px rgba(104, 21, 180, 0.08);
}
.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--texto-claro);
}
.form-group textarea { resize: vertical; min-height: 90px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }

/* ── NOTICIAS CARDS ── */
.noticias-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
  max-width: 1080px;
  margin: 0 auto;
}
.noticia-card {
  background: var(--blanco);
  border-radius: var(--radio-lg);
  overflow: hidden;
  border: 1px solid rgba(232,230,240,0.6);
  box-shadow: var(--sombra);
  transition: all var(--trans);
  display: flex;
  flex-direction: column;
}
.noticia-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--sombra-fuerte);
  border-color: transparent;
}
.noticia-card-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}
.noticia-card-body {
  padding: 20px 24px 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.noticia-card-date {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--morado);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.noticia-card-title {
  font-family: var(--font-titulo);
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--texto);
  margin-bottom: 8px;
  line-height: 1.35;
}
.noticia-card-text {
  font-size: 0.85rem;
  color: var(--texto-suave);
  line-height: 1.65;
  flex: 1;
}

/* ── NAVBAR ── */
.navbar {
  background: var(--azul-indigo);
  padding: 0 32px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(0,0,0,0.18);
}
.navbar-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.navbar-logo-img {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: contain;
  background: #fff;
  padding: 2px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.navbar-brand {
  font-family: var(--font-titulo);
  font-size: 1rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
}
.navbar-brand span {
  display: block;
  font-size: 0.68rem;
  font-family: var(--font-cuerpo);
  font-weight: 600;
  color: rgba(255,255,255,0.55);
  letter-spacing: 0.04em;
}
.navbar-links {
  display: flex;
  gap: 8px;
  align-items: center;
}
.navbar-links a, .navbar-links button {
  color: rgba(255,255,255,0.8);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
  padding: 7px 14px;
  border-radius: var(--radio-sm);
  border: none;
  background: transparent;
  cursor: pointer;
  transition: all var(--trans);
  font-family: var(--font-cuerpo);
}
.navbar-links a:hover, .navbar-links button:hover {
  background: rgba(255,255,255,0.1);
  color: #fff;
}
.navbar-links .nav-active {
  background: var(--morado);
  color: #fff !important;
}

/* ── TOAST ── */
#toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.toast {
  padding: 13px 20px;
  border-radius: var(--radio-sm);
  color: #fff;
  font-weight: 700;
  font-size: 0.88rem;
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
  animation: slideInRight 0.3s ease, fadeOut 0.4s ease 2.6s forwards;
  max-width: 360px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.toast-success { background: var(--verde); }
.toast-error   { background: var(--rojo); }
.toast-info    { background: var(--azul-indigo); }

@keyframes slideInRight {
  from { transform: translateX(120%); opacity: 0; }
  to   { transform: translateX(0);    opacity: 1; }
}
@keyframes fadeOut {
  to { opacity: 0; transform: translateX(120%); }
}

/* ── MODAL ── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(30, 27, 75, 0.6);
  backdrop-filter: blur(6px);
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
}
.modal-overlay.active { opacity: 1; pointer-events: all; }
.modal {
  background: var(--blanco);
  border-radius: var(--radio-lg);
  box-shadow: 0 24px 64px rgba(0,0,0,0.25);
  width: 100%;
  max-width: 640px;
  max-height: 90vh;
  overflow-y: auto;
  transform: scale(0.95) translateY(16px);
  transition: transform 0.25s;
}
.modal-overlay.active .modal { transform: scale(1) translateY(0); }
.modal-header {
  padding: 24px 28px 0;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  position: sticky;
  top: 0;
  background: var(--blanco);
  z-index: 1;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--gris-200);
  margin-bottom: 24px;
}
.modal-header h3 {
  font-size: 1.3rem;
  color: var(--azul-indigo);
}
.modal-close {
  background: var(--gris-100);
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--trans);
  flex-shrink: 0;
  color: var(--texto-suave);
}
.modal-close:hover { background: var(--gris-200); color: var(--texto); }
.modal-body { padding: 0 28px 28px; }

/* ── LOADING ── */
.spinner {
  width: 36px; height: 36px;
  border: 3px solid var(--gris-200);
  border-top-color: var(--morado);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.loading-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 48px;
  color: var(--texto-suave);
  font-size: 0.88rem;
}

/* ── RUTA COLORS ── */
.ruta-color-1 { --rc: var(--rosa); }
.ruta-color-2 { --rc: var(--celeste); }
.ruta-color-3 { --rc: var(--morado); }
.ruta-color-4 { --rc: var(--naranja); }
.ruta-color-5 { --rc: var(--verde); }
.ruta-color-6 { --rc: var(--amarillo); }
.ruta-color-7 { --rc: var(--azul-indigo); }

/* ── UTILITIES ── */
.text-center { text-align: center; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.gap-2 { gap: 16px; }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.w-full { width: 100%; }
.hidden { display: none !important; }
.text-suave { color: var(--texto-suave); }
.text-sm { font-size: 0.875rem; }
.font-bold { font-weight: 700; }
.divider { height: 1px; background: var(--gris-200); margin: 20px 0; }

/* ── EMPTY STATE ── */
.empty-state {
  text-align: center;
  padding: 48px 20px;
  color: var(--texto-suave);
}
.empty-state .emoji { font-size: 3rem; display: block; margin-bottom: 14px; }
.empty-state h3 { color: var(--texto); margin-bottom: 8px; }

/* ── SCROLLBAR ── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--fondo); }
::-webkit-scrollbar-thumb { background: var(--gris-300); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--gris-400); }

/* ── GLOBAL SELECTION ── */
::selection {
  background: rgba(104, 21, 180, 0.15);
  color: var(--azul-indigo);
}
