/* ============================================================
   VENEZUELA EMERGENCIA — Estilos Principales
   Sistema de Ayuda Humanitaria
   ============================================================ */

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

/* ── Variables ── */
:root {
  --red:          #DC2626;
  --red-dark:     #991B1B;
  --red-light:    #FEE2E2;
  --amber:        #D97706;
  --amber-light:  #FEF3C7;
  --green:        #059669;
  --green-light:  #D1FAE5;
  --blue:         #2563EB;
  --blue-light:   #DBEAFE;
  --gray-900:     #0F172A;
  --gray-800:     #1E293B;
  --gray-700:     #334155;
  --gray-600:     #475569;
  --gray-500:     #64748B;
  --gray-400:     #94A3B8;
  --gray-200:     #E2E8F0;
  --gray-100:     #F1F5F9;
  --gray-50:      #F8FAFC;
  --white:        #FFFFFF;
  --vzla-red:     #CF142B;
  --vzla-yellow:  #FFCD00;
  --vzla-blue:    #003893;
  --shadow-sm:    0 1px 2px rgba(0,0,0,.06), 0 1px 3px rgba(0,0,0,.1);
  --shadow:       0 4px 6px -1px rgba(0,0,0,.1), 0 2px 4px -2px rgba(0,0,0,.1);
  --shadow-lg:    0 10px 15px -3px rgba(0,0,0,.1), 0 4px 6px -4px rgba(0,0,0,.1);
  --shadow-xl:    0 20px 25px -5px rgba(0,0,0,.1), 0 8px 10px -6px rgba(0,0,0,.1);
  --radius:       12px;
  --radius-sm:    8px;
  --radius-lg:    16px;
  --radius-xl:    24px;
  --transition:   .2s cubic-bezier(.4,0,.2,1);
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--gray-100);
  color: var(--gray-800);
  line-height: 1.6;
  min-height: 100vh;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: inherit; }
input, select, textarea { font-family: inherit; }
ul { list-style: none; }

/* ── Alert Banner de Emergencia ── */
.emergency-banner {
  background: linear-gradient(90deg, var(--vzla-red) 0%, #ff3a3a 50%, var(--vzla-red) 100%);
  background-size: 200% 100%;
  animation: bannerPulse 3s ease infinite;
  color: #fff;
  text-align: center;
  padding: .6rem 1rem;
  font-weight: 700;
  font-size: .9rem;
  letter-spacing: .5px;
  position: sticky;
  top: 0;
  z-index: 1000;
}
.emergency-banner .pulse-dot {
  display: inline-block;
  width: 8px; height: 8px;
  background: #fff;
  border-radius: 50%;
  margin-right: 8px;
  animation: pulseDot 1s ease infinite;
}
@keyframes bannerPulse {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}
@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .4; transform: scale(.7); }
}

/* ── Navigation ── */
.navbar {
  background: linear-gradient(135deg, var(--gray-900) 0%, var(--vzla-blue) 100%);
  padding: 0 2rem;
  position: sticky;
  top: 37px;   /* altura del emergency banner en desktop */
  z-index: 999;
  box-shadow: var(--shadow-lg);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1280px;
  margin: 0 auto;
  height: 68px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 1.35rem;
  text-decoration: none;
}
.nav-logo .flag-icon {
  width: 36px; height: 24px;
  background: linear-gradient(180deg, var(--vzla-yellow) 33%, var(--vzla-blue) 33% 66%, var(--vzla-red) 66%);
  border-radius: 4px;
  box-shadow: var(--shadow-sm);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: .25rem;
}
.nav-links a {
  color: rgba(255,255,255,.8);
  padding: .5rem .9rem;
  border-radius: var(--radius-sm);
  font-size: .9rem;
  font-weight: 500;
  transition: all var(--transition);
  display: flex;
  align-items: center;
  gap: 6px;
}
.nav-links a:hover, .nav-links a.active {
  color: #fff;
  background: rgba(255,255,255,.15);
}
.nav-links .btn-nav-primary {
  background: var(--vzla-red);
  color: #fff !important;
  font-weight: 600;
  padding: .5rem 1.1rem;
  border-radius: 50px;
  transition: all var(--transition);
}
.nav-links .btn-nav-primary:hover {
  background: var(--red-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(207,20,43,.4);
}
.nav-hamburger { display: none; background: none; border: none; color: #fff; font-size: 1.5rem; }

/* ── Hero ── */
.hero {
  background: linear-gradient(135deg, var(--gray-900) 0%, #1a0a0a 40%, var(--vzla-blue) 100%);
  position: relative;
  overflow: hidden;
  padding: 5rem 2rem 4rem;
  text-align: center;
  color: #fff;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(207,20,43,.3);
  border: 1px solid rgba(207,20,43,.5);
  color: #fca5a5;
  padding: .4rem 1rem;
  border-radius: 50px;
  font-size: .82rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  animation: fadeInDown .6s ease;
}
.hero h1 {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 1.2rem;
  animation: fadeInDown .7s ease .1s both;
}
.hero h1 .highlight {
  background: linear-gradient(90deg, var(--vzla-yellow), #fbbf24);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero p {
  font-size: 1.1rem;
  color: rgba(255,255,255,.75);
  max-width: 600px;
  margin: 0 auto 2.5rem;
  animation: fadeInDown .8s ease .2s both;
}
.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeInDown .9s ease .3s both;
}
.hero-stats {
  display: flex;
  justify-content: center;
  gap: 2.5rem;
  margin-top: 3rem;
  flex-wrap: wrap;
  animation: fadeInDown 1s ease .4s both;
}
.hero-stat {
  text-align: center;
}
.hero-stat .number {
  font-family: 'Outfit', sans-serif;
  font-size: 2rem;
  font-weight: 800;
  color: var(--vzla-yellow);
  display: block;
}
.hero-stat .label {
  font-size: .8rem;
  color: rgba(255,255,255,.6);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ── Botones ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: .75rem 1.5rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: .95rem;
  border: 2px solid transparent;
  transition: all var(--transition);
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
}
.btn-primary {
  background: var(--vzla-red);
  color: #fff;
  border-color: var(--vzla-red);
}
.btn-primary:hover {
  background: var(--red-dark);
  border-color: var(--red-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(207,20,43,.45);
}
.btn-secondary {
  background: rgba(255,255,255,.1);
  color: #fff;
  border-color: rgba(255,255,255,.3);
  backdrop-filter: blur(10px);
}
.btn-secondary:hover {
  background: rgba(255,255,255,.2);
  transform: translateY(-2px);
}
.btn-success {
  background: var(--green);
  color: #fff;
  border-color: var(--green);
}
.btn-success:hover {
  background: #047857;
  border-color: #047857;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(5,150,105,.35);
}
.btn-warning {
  background: var(--amber);
  color: #fff;
  border-color: var(--amber);
}
.btn-warning:hover { background: #b45309; border-color: #b45309; transform: translateY(-2px); }
.btn-outline {
  background: transparent;
  color: var(--gray-700);
  border-color: var(--gray-300);
}
.btn-outline:hover { background: var(--gray-100); transform: translateY(-1px); }
.btn-danger {
  background: var(--red);
  color: #fff;
  border-color: var(--red);
}
.btn-danger:hover { background: var(--red-dark); border-color: var(--red-dark); transform: translateY(-2px); }
.btn-sm { padding: .45rem 1rem; font-size: .82rem; }
.btn-lg { padding: 1rem 2rem; font-size: 1.05rem; }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none !important; }

/* ── Container ── */
.container { max-width: 1280px; margin: 0 auto; padding: 0 1.5rem; }
.section { padding: 3.5rem 0; }
.section-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--gray-900);
  margin-bottom: .5rem;
}
.section-subtitle { color: var(--gray-500); margin-bottom: 2rem; }
.section-header { margin-bottom: 2rem; }
.section-header-row { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem; }

/* ── Sección Bot Telegram ── */
.telegram-section {
  background: linear-gradient(135deg, var(--gray-900) 0%, #0a1628 40%, var(--vzla-blue) 100%);
  padding: 3.5rem 1.5rem;
  position: relative;
  overflow: hidden;
}
.telegram-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.02'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.telegram-card {
  position: relative;
  max-width: 860px;
  margin: 0 auto;
  border-radius: var(--radius-xl);
  overflow: hidden;
}
.telegram-card-glow {
  position: absolute;
  inset: -2px;
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, #0088cc 0%, #00c6ff 25%, #0088cc 50%, #005f8f 75%, #0088cc 100%);
  background-size: 300% 300%;
  animation: tgGlow 4s ease infinite;
  z-index: 0;
}
@keyframes tgGlow {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}
.telegram-card-content {
  position: relative;
  z-index: 1;
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(20px);
  border-radius: calc(var(--radius-xl) - 2px);
  padding: 2.5rem;
  display: flex;
  align-items: center;
  gap: 2rem;
}
.telegram-icon-wrap {
  flex-shrink: 0;
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, #0088cc, #00aaff);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  box-shadow: 0 8px 24px rgba(0,136,204,.35);
}
.telegram-icon-svg {
  width: 42px;
  height: 42px;
  fill: #fff;
}
.telegram-online-dot {
  position: absolute;
  bottom: -2px;
  right: -2px;
  width: 18px;
  height: 18px;
  background: #22c55e;
  border-radius: 50%;
  border: 3px solid #fff;
  animation: tgPulseOnline 2s ease infinite;
}
@keyframes tgPulseOnline {
  0%, 100% { box-shadow: 0 0 0 0 rgba(34,197,94,.4); }
  50% { box-shadow: 0 0 0 6px rgba(34,197,94,0); }
}
.telegram-text {
  flex: 1;
  min-width: 0;
}
.telegram-text h2 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--gray-900);
  margin-bottom: .4rem;
}
.telegram-text p {
  color: var(--gray-500);
  font-size: .92rem;
  line-height: 1.6;
  margin-bottom: 1rem;
}
.telegram-text p strong {
  color: #0088cc;
  font-weight: 700;
}
.telegram-features {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
}
.telegram-feature {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  padding: .3rem .75rem;
  border-radius: 50px;
  font-size: .8rem;
  font-weight: 500;
  color: var(--gray-600);
}
.tg-feat-icon {
  font-size: .9rem;
}
.telegram-btn {
  flex-shrink: 0;
  background: linear-gradient(135deg, #0088cc, #00aaff);
  color: #fff !important;
  border: none;
  padding: 1rem 2rem;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 6px 20px rgba(0,136,204,.4);
  transition: all var(--transition);
  text-decoration: none;
  white-space: nowrap;
}
.telegram-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(0,136,204,.55);
  background: linear-gradient(135deg, #006fa0, #0099dd);
}

/* ── Cards ── */
.card {
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: all var(--transition);
  border: 1px solid rgba(0,0,0,.04);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-xl); }
.card-body { padding: 1.5rem; }
.card-footer { padding: 1rem 1.5rem; background: var(--gray-50); border-top: 1px solid var(--gray-200); }

/* ── Grid ── */
.grid { display: grid; gap: 1.5rem; }
.grid-2 { grid-template-columns: repeat(auto-fill, minmax(400px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }

/* ── Centros de Acopio Cards ── */
.centro-card { position: relative; }
.centro-card .status-badge {
  position: absolute;
  top: 1rem; right: 1rem;
  padding: .3rem .75rem;
  border-radius: 50px;
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
}
.badge-verified { background: var(--green-light); color: #065F46; }
.badge-pending  { background: var(--amber-light); color: #78350F; }
.badge-blocked  { background: var(--red-light); color: var(--red-dark); }
.centro-card .centro-name {
  font-family: 'Outfit', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: .35rem;
  padding-right: 90px;
}
.centro-card .estado-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--blue-light);
  color: var(--blue);
  padding: .2rem .65rem;
  border-radius: 50px;
  font-size: .78rem;
  font-weight: 600;
  margin-bottom: .8rem;
}
.centro-card .info-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: .5rem;
  font-size: .88rem;
  color: var(--gray-600);
}
.centro-card .info-row .icon { color: var(--gray-400); min-width: 16px; margin-top: 2px; }
.centro-card .social-links {
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}
.centro-card .social-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: .3rem .7rem;
  border-radius: 50px;
  font-size: .8rem;
  font-weight: 600;
  text-decoration: none;
  transition: all var(--transition);
}
.social-wa { background: #E7F9ED; color: #128C7E; }
.social-wa:hover { background: #128C7E; color: #fff; }
.social-ig { background: #FDE8F0; color: #C13584; }
.social-ig:hover { background: #C13584; color: #fff; }
.social-tw { background: #E7F5FE; color: #1DA1F2; }
.social-tw:hover { background: #1DA1F2; color: #fff; }
.social-fb { background: #E8F0FE; color: #1877F2; }
.social-fb:hover { background: #1877F2; color: #fff; }
.centro-card.bloqueado-card { opacity: .65; }
.centro-card.bloqueado-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(-45deg, transparent, transparent 10px, rgba(220,38,38,.04) 10px, rgba(220,38,38,.04) 20px);
  border-radius: var(--radius-lg);
  pointer-events: none;
}

/* ── Desaparecidos Cards ── */
.desap-card { display: flex; gap: 1rem; }
.desap-foto {
  width: 90px; height: 90px;
  border-radius: var(--radius);
  object-fit: cover;
  flex-shrink: 0;
  background: var(--gray-200);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-400);
  font-size: 2rem;
}
.desap-foto img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius); }
.desap-info .name {
  font-family: 'Outfit', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: .25rem;
}
.desap-info .cedula-badge {
  display: inline-block;
  background: var(--gray-100);
  color: var(--gray-600);
  padding: .15rem .6rem;
  border-radius: 50px;
  font-size: .78rem;
  font-weight: 600;
  margin-bottom: .5rem;
  font-family: monospace;
}
.desap-info .desc { font-size: .87rem; color: var(--gray-500); margin-bottom: .5rem; }
.desap-info .meta { font-size: .8rem; color: var(--gray-400); }

/* ── Resultados Web Google ── */
.web-result {
  padding: 1rem 1.5rem;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  margin-bottom: .75rem;
  background: #fff;
  transition: all var(--transition);
}
.web-result:hover { border-color: var(--blue); box-shadow: var(--shadow); }
.web-result .source {
  font-size: .75rem;
  color: var(--green);
  font-weight: 600;
  margin-bottom: .3rem;
  display: flex;
  align-items: center;
  gap: 5px;
}
.web-result .title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--blue);
  margin-bottom: .3rem;
  text-decoration: none;
}
.web-result .title:hover { text-decoration: underline; }
.web-result .snippet { font-size: .85rem; color: var(--gray-600); }

/* ── Filtros ── */
.filters-bar {
  display: flex;
  gap: .75rem;
  flex-wrap: wrap;
  align-items: center;
  padding: 1.25rem 1.5rem;
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  margin-bottom: 2rem;
  border: 1px solid var(--gray-200);
}
.filters-bar select {
  padding: .55rem 1rem;
  border: 2px solid var(--gray-200);
  border-radius: 50px;
  font-size: .9rem;
  color: var(--gray-700);
  background: #fff;
  cursor: pointer;
  outline: none;
  transition: border-color var(--transition);
}
.filters-bar select:focus { border-color: var(--vzla-blue); }
.filter-label { font-weight: 600; font-size: .9rem; color: var(--gray-700); }

/* ── Formularios ── */
.form-wrapper {
  background: #fff;
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  box-shadow: var(--shadow-xl);
  max-width: 780px;
  margin: 0 auto;
}
.form-group { margin-bottom: 1.25rem; }
.form-label {
  display: block;
  font-weight: 600;
  font-size: .9rem;
  color: var(--gray-700);
  margin-bottom: .4rem;
}
.form-label .required { color: var(--red); margin-left: 3px; }
.form-control {
  width: 100%;
  padding: .75rem 1rem;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius);
  font-size: .95rem;
  color: var(--gray-800);
  outline: none;
  transition: all var(--transition);
  background: #fff;
}
.form-control:focus { border-color: var(--vzla-blue); box-shadow: 0 0 0 3px rgba(0,56,147,.1); }
.form-control.is-invalid { border-color: var(--red); }
.form-text { font-size: .82rem; color: var(--gray-400); margin-top: .3rem; }
.form-section-title {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  color: var(--gray-900);
  padding-bottom: .5rem;
  border-bottom: 2px solid var(--gray-200);
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 8px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
textarea.form-control { resize: vertical; min-height: 100px; }
.file-upload-area {
  border: 2px dashed var(--gray-300);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition);
  color: var(--gray-500);
  font-size: .9rem;
}
.file-upload-area:hover { border-color: var(--vzla-blue); background: var(--blue-light); }

/* ── Modals ── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.6);
  backdrop-filter: blur(4px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition);
}
.modal-overlay.active { opacity: 1; visibility: visible; }
.modal {
  background: #fff;
  border-radius: var(--radius-xl);
  padding: 2rem;
  max-width: 500px;
  width: 100%;
  box-shadow: var(--shadow-xl);
  transform: translateY(20px) scale(.97);
  transition: all var(--transition);
}
.modal-overlay.active .modal { transform: translateY(0) scale(1); }
.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}
.modal-title { font-family: 'Outfit', sans-serif; font-weight: 800; font-size: 1.2rem; }
.modal-close { background: none; border: none; font-size: 1.5rem; color: var(--gray-400); cursor: pointer; }
.modal-close:hover { color: var(--gray-800); }

/* ── Alertas ── */
.alert {
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  font-size: .9rem;
  font-weight: 500;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 1rem;
}
.alert-danger  { background: var(--red-light);   color: var(--red-dark);   border-left: 4px solid var(--red); }
.alert-success { background: var(--green-light);  color: #065F46;           border-left: 4px solid var(--green); }
.alert-warning { background: var(--amber-light);  color: #78350F;           border-left: 4px solid var(--amber); }
.alert-info    { background: var(--blue-light);   color: #1E40AF;           border-left: 4px solid var(--blue); }

/* ── Empty State ── */
.empty-state {
  text-align: center;
  padding: 4rem 1rem;
  color: var(--gray-400);
}
.empty-state .icon { font-size: 3.5rem; margin-bottom: 1rem; }
.empty-state h3 { font-size: 1.1rem; color: var(--gray-600); margin-bottom: .5rem; }
.empty-state p { font-size: .9rem; }

/* ── Loading ── */
.spinner {
  display: inline-block;
  width: 20px; height: 20px;
  border: 3px solid rgba(255,255,255,.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin .7s linear infinite;
}
.spinner-dark { border-color: rgba(0,0,0,.1); border-top-color: var(--vzla-blue); }
@keyframes spin { to { transform: rotate(360deg); } }
.skeleton {
  background: linear-gradient(90deg, var(--gray-200) 25%, var(--gray-100) 50%, var(--gray-200) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.2s infinite;
  border-radius: var(--radius-sm);
}
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }

/* ── Footer ── */
.footer {
  background: var(--gray-900);
  color: rgba(255,255,255,.6);
  padding: 2.5rem 1.5rem;
  margin-top: 4rem;
  text-align: center;
}
.footer .footer-flag {
  display: flex;
  justify-content: center;
  gap: 0;
  margin: 0 auto 1rem;
  width: 60px; height: 10px;
  border-radius: 2px;
  overflow: hidden;
}
.footer .footer-flag span { flex: 1; }
.flag-r { background: var(--vzla-yellow); }  /* Amarillo — arriba */
.flag-y { background: var(--vzla-blue); }    /* Azul — medio */
.flag-b { background: var(--vzla-red); }     /* Rojo — abajo */
.footer p { font-size: .85rem; line-height: 1.8; }
.footer a { color: rgba(255,255,255,.8); text-decoration: underline; }

/* ── Animaciones ── */
@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-in { animation: fadeInUp .5s ease both; }

/* ── Pagination ── */
.pagination {
  display: flex;
  justify-content: center;
  gap: .5rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}
.page-btn {
  width: 38px; height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: .9rem;
  font-weight: 600;
  border: 2px solid var(--gray-200);
  background: #fff;
  color: var(--gray-700);
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
}
.page-btn:hover, .page-btn.active {
  background: var(--vzla-blue);
  border-color: var(--vzla-blue);
  color: #fff;
}

/* ── Whatsapp Floating Button ── */
.wa-float {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 60px; height: 60px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,.5);
  z-index: 998;
  transition: all var(--transition);
  color: #fff;
  font-size: 1.6rem;
  text-decoration: none;
  animation: bounceIn .8s cubic-bezier(.68,-.55,.27,1.55);
}
.wa-float:hover { transform: scale(1.1); box-shadow: 0 6px 24px rgba(37,211,102,.65); }
@keyframes bounceIn {
  from { transform: scale(0); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}

/* ── Utility ── */
.text-center { text-align: center; }
.text-muted  { color: var(--gray-400); }
.mt-1 { margin-top: .5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: .5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.d-flex { display: flex; }
.align-center { align-items: center; }
.gap-1 { gap: .5rem; }
.gap-2 { gap: 1rem; }
.fw-bold { font-weight: 700; }
.text-danger { color: var(--red); }
.text-success { color: var(--green); }
.text-warning { color: var(--amber); }

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE — COMPLETO (Mobile-first)
   ═══════════════════════════════════════════════════════════ */

/* ── Tablet grande (≤ 1024px) ── */
@media (max-width: 1024px) {
  .grid-2 { grid-template-columns: 1fr 1fr; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

/* ── Tablet / Mobile grande (≤ 768px) ── */
@media (max-width: 768px) {

  /* -- Navbar -- */
  .navbar {
    top: 0;
    padding: 0 1rem;
    position: sticky;
    z-index: 999;
  }
  .emergency-banner {
    position: relative;
    font-size: .78rem;
    padding: .45rem .75rem;
    letter-spacing: 0;
  }
  .nav-inner { height: 60px; }
  .nav-hamburger { display: block; }

  /* -- Menú mobile (drawer desde arriba) -- */
  .nav-links {
    display: none;
  }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 60px;
    left: 0; right: 0;
    background: linear-gradient(180deg, #0F172A 0%, #003893 100%);
    padding: 1rem;
    z-index: 997;
    gap: .15rem;
    box-shadow: 0 8px 32px rgba(0,0,0,.4);
    border-top: 1px solid rgba(255,255,255,.1);
    max-height: calc(100vh - 60px);
    overflow-y: auto;
  }
  .nav-links.open a {
    padding: .9rem 1rem;
    border-radius: 10px;
    border-left: 3px solid transparent;
    font-size: .95rem;
    color: rgba(255,255,255,.85);
  }
  .nav-links.open a:hover,
  .nav-links.open a.active {
    background: rgba(255,255,255,.1);
    color: #fff;
  }
  .nav-links.open a.active { border-left-color: #FFCD00; }
  .nav-links.open .btn-nav-primary {
    background: #CF142B;
    border-radius: 50px;
    text-align: center;
    justify-content: center;
    border-left: none;
    margin-top: .5rem;
  }

  /* -- Hero -- */
  .hero { padding: 2.5rem 1.25rem 2rem; }
  .hero p { font-size: .95rem; margin-bottom: 1.5rem; }
  .hero-actions { flex-direction: column; align-items: center; gap: .75rem; }
  .hero-actions .btn { width: 100%; max-width: 340px; justify-content: center; }
  .hero-stats {
    gap: 1rem;
    margin-top: 2rem;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }
  .hero-stat .number { font-size: 1.6rem; }

  /* -- Grids -- */
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }

  /* -- Telegram section -- */
  .telegram-section { padding: 2rem 1rem; }
  .telegram-card-content {
    flex-direction: column;
    text-align: center;
    padding: 1.75rem 1.25rem;
    gap: 1.25rem;
  }
  .telegram-icon-wrap {
    width: 64px;
    height: 64px;
    border-radius: 16px;
  }
  .telegram-icon-svg {
    width: 34px;
    height: 34px;
  }
  .telegram-text h2 { font-size: 1.25rem; }
  .telegram-text p { font-size: .88rem; }
  .telegram-features { justify-content: center; }
  .telegram-btn {
    width: 100%;
    justify-content: center;
    padding: .9rem 1.5rem;
    font-size: .95rem;
  }

  /* -- Formularios -- */
  .form-row { grid-template-columns: 1fr; }
  .form-wrapper { padding: 1.5rem 1.1rem; border-radius: 16px; }

  /* -- Filtros -- */
  .filters-bar {
    flex-direction: column;
    align-items: stretch;
    gap: .6rem;
    padding: 1rem;
  }
  .filters-bar select { width: 100%; }

  /* -- Sección -- */
  .section { padding: 2.5rem 0; }
  .section-title { font-size: 1.35rem; }
  .section-header-row {
    flex-direction: column;
    align-items: flex-start;
    gap: .75rem;
  }

  /* -- Cards -- */
  .card:hover { transform: none; box-shadow: var(--shadow); }
  .card-body { padding: 1.1rem; }

  /* -- Links de utilidad -- */
  .links-section .grid-3 { grid-template-columns: 1fr; }

  /* -- Telegram flotante (reducir tamaño en mobile) -- */
  #tg-float-btn { bottom: 14px !important; right: 12px !important; }
  #tg-main-btn { width: 48px !important; height: 48px !important; }
  #tg-main-btn svg { width: 22px !important; height: 22px !important; }
  #tg-bubble { max-width: 170px !important; font-size: .76rem !important; padding: 8px 11px !important; }

  /* -- Footer -- */
  .footer { padding: 2rem 1rem; margin-top: 2rem; }
}

/* ── Mobile (≤ 480px) ── */
@media (max-width: 480px) {

  /* -- Contenedor -- */
  .container { padding: 0 .9rem; }

  /* -- Navbar -- */
  .nav-logo { font-size: 1.05rem; gap: 7px; }
  .nav-logo .flag-icon { width: 26px; height: 17px; }
  .nav-hamburger { font-size: 1.3rem; }

  /* -- Hero -- */
  .hero { padding: 2rem .9rem 1.75rem; }
  .hero h1 { font-size: clamp(1.4rem, 7vw, 2.2rem); }
  .hero p { font-size: .88rem; margin-bottom: 1.5rem; }
  .hero-badge { font-size: .75rem; padding: .3rem .8rem; }
  .hero-stats { gap: .8rem; }
  .hero-stat .number { font-size: 1.3rem; }
  .hero-stat .label { font-size: .65rem; letter-spacing: .5px; }
  .hero-actions .btn { font-size: .9rem; padding: .7rem 1.2rem; }

  /* -- Botones -- */
  .btn { padding: .65rem 1.1rem; font-size: .87rem; }
  .btn-lg { padding: .8rem 1.5rem; font-size: .95rem; }

  /* -- Section -- */
  .section { padding: 2rem 0; }
  .section-title { font-size: 1.15rem; }
  .section-subtitle { font-size: .85rem; }

  /* -- Telegram section -- */
  .telegram-section { padding: 1.5rem .75rem; }
  .telegram-card-content { padding: 1.25rem 1rem; gap: 1rem; }
  .telegram-icon-wrap { width: 56px; height: 56px; border-radius: 14px; }
  .telegram-icon-svg { width: 28px; height: 28px; }
  .telegram-text h2 { font-size: 1.1rem; }
  .telegram-text p { font-size: .84rem; }
  .telegram-feature { font-size: .75rem; padding: .25rem .6rem; }
  .telegram-btn { font-size: .88rem; padding: .8rem 1.2rem; }

  /* -- Formularios -- */
  .form-wrapper { padding: 1.1rem .9rem; border-radius: 12px; }
  .form-control { padding: .7rem .9rem; font-size: .9rem; }
  .form-label { font-size: .85rem; }

  /* -- Filtros -- */
  .filters-bar { padding: .85rem .9rem; border-radius: 12px; }

  /* -- Cards -- */
  .card-body { padding: 1rem .9rem; }

  /* -- Desaparecidos card -- */
  .desap-card { flex-direction: column; }
  .desap-foto { width: 100%; height: 160px; border-radius: 10px; }

  /* -- Modal -- */
  .modal-overlay { align-items: flex-end; padding: 0; }
  .modal {
    padding: 1.5rem 1rem;
    border-radius: 20px 20px 0 0;
    margin: 0;
    width: 100%;
    max-width: 100%;
    max-height: 85vh;
    overflow-y: auto;
  }

  /* -- Centros card -- */
  .centro-card .centro-name { font-size: 1rem; padding-right: 70px; }
  .centro-card .status-badge { font-size: .68rem; padding: .2rem .55rem; }

  /* -- Web results -- */
  .web-result { padding: .9rem 1rem; }
  .web-result .title { font-size: .92rem; }

  /* -- Telegram flotante -- */
  #tg-float-btn { bottom: 10px !important; right: 10px !important; }
  #tg-main-btn { width: 44px !important; height: 44px !important; }
  #tg-main-btn svg { width: 20px !important; height: 20px !important; }
  #tg-bubble { display: none !important; }
}

/* ── Móvil muy pequeño (≤ 360px) ── */
@media (max-width: 360px) {
  .container { padding: 0 .75rem; }
  .hero h1 { font-size: 1.3rem; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); gap: .6rem; }
  .btn { padding: .6rem 1rem; font-size: .84rem; }
  .telegram-card-content { padding: 1rem .85rem; }
  .telegram-text h2 { font-size: 1rem; }
}
