/* ===================================================
   SOS Venezuela — Estilos globales
   Diseño fiel a sosvenezuela.madrina.org
   Colores: azul marino #0F2344 + rojo #D72638 + crema #F7F3EC
   =================================================== */

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

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

:root {
  --navy: #1D406F;
  --navy-dark: #132a4a;
  --red: #D33C3E;
  --red-dark: #b62c2e;
  --red-light: #fff5f5;
  --cream: #F7F3EC;
  --white: #ffffff;
  --slate-950: #020617;
  --slate-800: #1e293b;
  --slate-600: #475569;
  --slate-500: #64748b;
  --slate-400: #94a3b8;
  --slate-200: #e2e8f0;
  --slate-100: #f1f5f9;
  --slate-50: #f8fafc;
  --shadow-lg: 0 10px 40px rgba(0,0,0,0.12);
  --shadow-xl: 0 20px 60px rgba(0,0,0,0.16);
  --radius-card: 2rem;
  --radius-input: 1rem;
  --radius-btn: 9999px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--cream);
  color: var(--slate-950);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  border-top: 6px solid var(--red); /* Franja roja corporativa */
}

/* ── Animations ─────────────────────────────────── */
@keyframes fadeDown {
  from { opacity: 0; transform: translateY(-20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes float {
  0%, 100% { transform: translateY(0) scale(1); }
  50%       { transform: translateY(-20px) scale(1.05); }
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

.anim-fade-down { animation: fadeDown 700ms ease-out both; }
.anim-fade-up-1 { animation: fadeUp 700ms ease-out 100ms both; }
.anim-fade-up-2 { animation: fadeUp 800ms ease-out 180ms both; }
.anim-fade-up-3 { animation: fadeUp 800ms ease-out 260ms both; }
.anim-fade-up-4 { animation: fadeUp 800ms ease-out 340ms both; }
.anim-fade-up-5 { animation: fadeUp 800ms ease-out 420ms both; }
.anim-fade-up-6 { animation: fadeUp 800ms ease-out 500ms both; }

/* ── Header / Hero ─────────────────────────────── */
.hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: var(--white);
  padding: 2rem 1.25rem 7rem;
  color: var(--slate-950);
}

.hero__grid-bg {
  position: absolute; inset: 0; z-index: -1; opacity: 0.45;
  background-image:
    linear-gradient(var(--slate-100) 1px, transparent 1px),
    linear-gradient(90deg, var(--slate-100) 1px, transparent 1px);
  background-size: 72px 72px;
}
.hero__blob-1 {
  position: absolute; left: -8rem; top: 5rem; z-index: -1;
  width: 26rem; height: 26rem;
  border-radius: 9999px;
  background: rgba(211, 60, 62, 0.05); /* soft red #D33C3E */
  filter: blur(80px);
  animation: float 8s ease-in-out infinite;
}
.hero__blob-2 {
  position: absolute; right: -8rem; bottom: 0; z-index: -1;
  width: 32rem; height: 32rem;
  border-radius: 9999px;
  background: rgba(29, 64, 111, 0.06); /* soft blue #1D406F */
  filter: blur(80px);
  animation: float 10s ease-in-out infinite reverse;
}

/* ── Nav ─────────────────────────────────────────── */
.nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  max-width: 72rem;
  margin: 0 auto;
  padding: 1rem 0;
}
/* Fila superior del nav: logo izquierda + selector idioma derecha */
.nav__top-row {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 0.75rem;
}
.nav__logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--navy);
}
.nav__logo-img {
  height: 3rem;
  width: auto;
  object-fit: contain;
  transition: transform 0.3s;
}
.nav__logo-img:hover { transform: scale(1.05); }
.nav__logo-text {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--navy);
}
.nav__links-container {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  width: 100%;
}
.nav__link {
  padding: 0.6rem 1.25rem;
  border-radius: var(--radius-btn);
  border: 1.5px solid var(--slate-200);
  background: var(--white);
  color: var(--navy);
  font-size: 0.875rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s;
}
.nav__link:hover {
  background: var(--slate-50);
  border-color: var(--navy);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(29, 64, 111, 0.08);
}

/* ── Hero Content ───────────────────────────────── */
.hero__content {
  max-width: 60rem;
  margin: 2rem auto 0;
  text-align: center;
  padding: 0 1rem;
}
/* Botones de navegación centrados — separados del nav */
.hero__nav-links {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 0.5rem;
  margin-bottom: 2rem;
  width: 100%;
}
.hero__badge {
  display: inline-flex;
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius-btn);
  background: var(--red);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--white);
  box-shadow: 0 4px 15px rgba(211, 60, 62, 0.2);
  margin-top: 1rem;
}
.hero__title {
  margin-top: 1.75rem;
  font-size: clamp(2.5rem, 8vw, 4.5rem);
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: -0.06em;
  color: var(--navy);
  text-wrap: balance;
}
.hero__subtitle {
  margin-top: 1.75rem;
  max-width: 48rem;
  margin-left: auto; margin-right: auto;
  font-size: 1.125rem;
  line-height: 1.85;
  color: var(--slate-600);
}
.hero__ctas {
  margin-top: 2.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}
.hero__notice {
  margin: 2.5rem auto 0;
  max-width: 48rem;
  padding: 1rem 1.5rem;
  border-radius: 1.5rem;
  border: 1px solid var(--slate-200);
  background: var(--slate-50);
  font-size: 0.875rem;
  line-height: 1.75;
  color: var(--slate-600);
  box-shadow: 0 4px 20px rgba(0,0,0,0.01);
}

/* ── Buttons ────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 3.5rem;
  padding: 0 2rem;
  border-radius: var(--radius-btn);
  font-size: 1rem;
  font-weight: 900;
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: all 0.3s;
  white-space: nowrap;
}
.btn--primary {
  background: var(--red);
  color: var(--white);
  box-shadow: 0 15px 35px rgba(211, 60, 62, 0.25);
}
.btn--primary:hover { background: var(--red-dark); transform: translateY(-3px); box-shadow: 0 20px 45px rgba(211, 60, 62, 0.35); }
.btn--ghost {
  background: var(--white);
  color: var(--navy);
  border: 1.5px solid var(--slate-200);
}
.btn--ghost:hover { background: var(--slate-50); border-color: var(--navy); transform: translateY(-3px); }
.btn--outline {
  background: transparent;
  color: var(--red);
  border: 2px solid var(--red);
}
.btn--outline:hover { background: var(--red); color: var(--white); }
.btn--sm { min-height: 2.5rem; padding: 0 1.25rem; font-size: 0.875rem; }
.btn--danger { background: #ef4444; color: var(--white); }
.btn--danger:hover { background: #dc2626; }
.btn--success { background: #22c55e; color: var(--white); }
.btn--success:hover { background: #16a34a; }
.btn--success.is-desaturated { background: #6da27e; color: var(--white); opacity: 0.75; }
.btn--success.is-desaturated:hover { background: #5a8d6b; }
.btn--neutral { background: var(--slate-100); color: var(--slate-800); border: 1px solid var(--slate-200); }
.btn--neutral:hover { background: var(--slate-200); }
.btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none !important; }

/* ── Stats ─────────────────────────────────────── */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  max-width: 72rem;
  margin: -2.5rem auto 0;
  padding: 0 1rem;
}
.stat-card {
  background: var(--white);
  border-radius: var(--radius-card);
  padding: 2rem;
  box-shadow: var(--shadow-lg);
  border-top: 5px solid var(--red); /* Borde rojo destacado */
  transition: all 0.3s;
}
.stat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-xl); }
.stat-card__value {
  display: block;
  font-size: 3rem;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.05em;
  color: var(--red);
  transition: transform 0.3s;
}
.stat-card:hover .stat-card__value { transform: scale(1.05); }
.stat-card__label { margin-top: 0.75rem; display: block; font-size: 1rem; color: var(--slate-500); }

/* ── Container ──────────────────────────────────── */
.container { max-width: 72rem; margin: 0 auto; padding: 0 1rem; }

/* ── Section ────────────────────────────────────── */
.section { padding: 5rem 1rem; }
.section__label { font-size: 0.7rem; font-weight: 900; letter-spacing: 0.18em; text-transform: uppercase; color: var(--red); }
.section__title {
  margin-top: 0.75rem;
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.055em;
}
.section__header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.25rem;
  margin-bottom: 2rem;
}
.section__desc { max-width: 28rem; font-size: 1rem; line-height: 1.75; color: var(--slate-500); }

/* ── Search/Filter Bar ───────────────────────────── */
.filter-bar {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  background: var(--white);
  border-radius: var(--radius-card);
  padding: 0.75rem;
  box-shadow: 0 8px 32px rgba(0,0,0,0.06);
  margin-bottom: 1.75rem;
}
@media (min-width: 768px) {
  .filter-bar { grid-template-columns: 1fr 240px 280px; }
}

/* ── Inputs ─────────────────────────────────────── */
.input, .select, .textarea {
  width: 100%;
  min-height: 3.25rem;
  padding: 0 1rem;
  border-radius: var(--radius-input);
  border: 1.5px solid var(--slate-200);
  background: var(--slate-50);
  color: var(--slate-950);
  font-size: 0.9375rem;
  font-family: inherit;
  font-weight: 500;
  outline: none;
  transition: all 0.3s;
  -webkit-appearance: none;
}
.input::placeholder, .textarea::placeholder { color: var(--slate-400); }
.input:focus, .select:focus, .textarea:focus {
  border-color: #fca5a5;
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(215,38,56,0.08);
}
.textarea { padding: 0.75rem 1rem; resize: vertical; min-height: 8rem; line-height: 1.6; }

.form-group { display: grid; gap: 0.5rem; }
.form-label { font-size: 0.875rem; font-weight: 800; color: var(--slate-800); }
.form-label--required::after { content: " *"; color: var(--red); }
.form-hint { font-size: 0.8rem; color: var(--slate-500); line-height: 1.5; }
.form-error { font-size: 0.8rem; color: var(--red); }

.phone-row { display: grid; grid-template-columns: 120px 1fr; gap: 0.75rem; }

/* ── File input ─────────────────────────────────── */
.file-input {
  width: 100%;
  padding: 1rem;
  border-radius: var(--radius-input);
  border: 2px dashed var(--slate-300);
  background: var(--slate-50);
  color: var(--slate-950);
  font-family: inherit;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s;
}
.file-input:hover { background: var(--white); border-color: #fca5a5; }
.file-input::file-selector-button {
  margin-right: 1rem;
  padding: 0.4rem 1rem;
  border: none;
  border-radius: var(--radius-btn);
  background: var(--red);
  color: var(--white);
  font-weight: 900;
  font-size: 0.85rem;
  cursor: pointer;
}

/* ── Checkbox row ───────────────────────────────── */
.checkbox-row {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 0.75rem;
  align-items: start;
  padding: 1rem;
  border-radius: var(--radius-input);
  background: var(--red-light);
  border: 1px solid #fecaca;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.7;
  color: var(--slate-700);
}
.checkbox-row input[type="checkbox"] { margin-top: 0.25rem; width: 1rem; height: 1rem; accent-color: var(--red); cursor: pointer; }

/* ── Professional Cards ─────────────────────────── */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.25rem;
}
.pro-card {
  background: var(--white);
  border-radius: var(--radius-card);
  padding: 1.75rem;
  box-shadow: 0 4px 24px rgba(0,0,0,0.07);
  border: 1px solid rgba(0,0,0,0.04);
  border-top: 3px solid transparent; /* Transición suave de borde */
  transition: all 0.3s;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.pro-card:hover { transform: translateY(-4px); box-shadow: 0 12px 40px rgba(0,0,0,0.12); border-top-color: var(--red); }
.pro-card__type {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-btn);
  background: var(--red-light);
  color: var(--red);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  align-self: flex-start;
}
.pro-card__name { font-size: 1.1rem; font-weight: 800; color: var(--slate-950); line-height: 1.3; }
.pro-card__specialty { font-size: 0.9rem; color: var(--slate-600); font-weight: 600; }
.pro-card__meta { display: flex; flex-wrap: wrap; gap: 0.5rem 1rem; margin-top: 0.25rem; width: 100%; }
.pro-card__meta-item { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 0.35rem; font-size: 0.8rem; color: var(--slate-500); word-break: break-word; }
.pro-card__desc { font-size: 0.875rem; color: var(--slate-600); line-height: 1.65; flex: 1; }
.pro-card__footer { margin-top: auto; padding-top: 0.75rem; border-top: 1px solid var(--slate-100); }

/* ── Horario visual ──────────────────────────────── */
.pro-card__schedule {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  padding: 0.5rem 0.65rem;
  background: var(--slate-50);
  border-radius: 0.75rem;
  border: 1px solid var(--slate-100);
  margin-top: 0.35rem;
  color: var(--slate-500);
}
.schedule-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem 0.5rem;
  flex: 1;
}
.schedule-row {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  white-space: nowrap;
}
.schedule-day {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  padding: 0.1rem 0.4rem;
  border-radius: 999px;
  min-width: 2.4rem;
  text-align: center;
}
.btn--whatsapp {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  min-height: 2.75rem;
  border-radius: var(--radius-btn);
  background: #25d366;
  color: var(--white);
  font-weight: 800;
  font-size: 0.9375rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.3s;
}
.btn--whatsapp:hover { background: #1da851; transform: translateY(-2px); }

/* ── Empty / Loading states ─────────────────────── */
.state-box {
  background: var(--white);
  border-radius: var(--radius-card);
  padding: 3rem 2rem;
  text-align: center;
  color: var(--slate-500);
  box-shadow: 0 4px 24px rgba(0,0,0,0.07);
  font-size: 1rem;
}
.spinner {
  display: inline-block;
  width: 2rem; height: 2rem;
  border: 3px solid var(--slate-200);
  border-top-color: var(--red);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin-bottom: 0.75rem;
}

/* ── Registration Form Section ───────────────────── */
.registro-section {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  padding-bottom: 6rem;
}
@media (min-width: 1024px) {
  .registro-section { grid-template-columns: 0.85fr 1.15fr; }
}
.registro-info { }
@media (min-width: 1024px) {
  .registro-info { position: sticky; top: 2rem; align-self: start; }
}
.info-card {
  margin-top: 1.5rem;
  background: var(--white);
  border-radius: var(--radius-card);
  padding: 1.5rem;
  color: var(--slate-600);
  box-shadow: 0 4px 24px rgba(0,0,0,0.07);
  border-top: 4px solid var(--navy); /* Sub-acento en azul */
}
.info-card ul { margin-top: 0.75rem; padding-left: 1.25rem; list-style: disc; display: grid; gap: 0.5rem; line-height: 1.75; }
.reg-form {
  background: var(--white);
  border-radius: var(--radius-card);
  padding: 2rem;
  box-shadow: var(--shadow-xl);
  display: grid;
  gap: 1.25rem;
  border-top: 6px solid var(--red); /* Borde rojo corporativo para impacto visual */
}
@media (min-width: 768px) { .reg-form { padding: 2.5rem; } }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } }

/* ── Toast / Alert ──────────────────────────────── */
.toast-container {
  position: fixed; bottom: 2rem; right: 1.5rem; z-index: 9999;
  display: flex; flex-direction: column; gap: 0.75rem; align-items: flex-end;
}
.toast {
  padding: 1rem 1.5rem;
  border-radius: 1rem;
  box-shadow: var(--shadow-xl);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--white);
  max-width: 360px;
  animation: fadeUp 0.3s ease-out;
}
.toast--success { background: #22c55e; }
.toast--error   { background: #ef4444; }
.toast--info    { background: var(--navy); }

/* ── Footer ─────────────────────────────────────── */
.footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  max-width: 72rem;
  margin: 0 auto;
  padding: 2.5rem 1rem;
  border-top: 1px solid var(--slate-200);
  color: var(--slate-500);
  font-size: 0.875rem;
}
.footer__brand { font-weight: 900; color: var(--slate-950); }

/* ── Admin Panel ─────────────────────────────────── */
.admin-layout {
  min-height: 100vh;
  background: var(--slate-100);
}
.admin-nav {
  background: var(--white);
  color: var(--slate-950);
  border-bottom: 1px solid var(--slate-200);
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4.5rem;
  box-shadow: 0 2px 10px rgba(0,0,0,0.02);
}
.admin-nav__brand {
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.03em;
  color: var(--navy);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.admin-nav__right {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  font-size: 0.875rem;
  color: var(--slate-600);
}
.admin-nav__right strong {
  color: var(--navy);
}
.admin-main { max-width: 80rem; margin: 0 auto; padding: 2rem 1.5rem; }
.admin-tabs { display: flex; gap: 0.5rem; margin-bottom: 1.5rem; flex-wrap: wrap; }
.tab-btn {
  padding: 0.6rem 1.25rem;
  border-radius: var(--radius-btn);
  font-size: 0.875rem;
  font-weight: 700;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.25s;
  background: var(--white);
  color: var(--slate-600);
}
.tab-btn.active { background: var(--navy); color: var(--white); }
.tab-btn .badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.4rem; height: 1.4rem;
  border-radius: 9999px;
  background: var(--red);
  color: var(--white);
  font-size: 0.7rem;
  font-weight: 900;
  margin-left: 0.4rem;
}

/* ── Admin Cards ─────────────────────────────────── */
.admin-card {
  background: var(--white);
  border-radius: 1.5rem;
  padding: 1.5rem;
  box-shadow: 0 2px 12px rgba(0,0,0,0.07);
  border: 1px solid var(--slate-200);
  margin-bottom: 1rem;
  transition: box-shadow 0.2s;
}
.admin-card:hover { box-shadow: 0 6px 24px rgba(0,0,0,0.1); }
.admin-card__header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--slate-100);
}
.admin-card__name { font-size: 1.1rem; font-weight: 800; }
.admin-card__date { font-size: 0.75rem; color: var(--slate-400); }
.admin-card__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.75rem;
  margin-bottom: 1rem;
}
.admin-field { }
.admin-field__label { font-size: 0.7rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; color: var(--slate-400); }
.admin-field__value { font-size: 0.9rem; font-weight: 600; color: var(--slate-800); margin-top: 0.2rem; }
.admin-card__actions { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.status-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.status-badge--pendiente { background: #fef3c7; color: #92400e; }
.status-badge--aprobado  { background: #dcfce7; color: #166534; }
.status-badge--rechazado { background: #fee2e2; color: #991b1b; }

/* ── Modal ────────────────────────────────────────── */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(4px);
  z-index: 1000;
  display: flex; align-items: center; justify-content: center;
  padding: 1rem;
}
.modal-overlay.hidden { display: none; }
.modal {
  background: var(--white);
  border-radius: 1.5rem;
  padding: 2rem;
  max-width: 480px;
  width: 100%;
  box-shadow: var(--shadow-xl);
}
.modal__title { font-size: 1.25rem; font-weight: 800; margin-bottom: 1rem; }
.modal__actions { display: flex; gap: 0.75rem; margin-top: 1.5rem; justify-content: flex-end; }

/* ── Login Page ─────────────────────────────────── */
.login-page {
  min-height: 100vh;
  background: var(--cream);
  display: flex; align-items: center; justify-content: center;
  padding: 2rem;
}
.login-card {
  background: var(--white);
  border-radius: var(--radius-card);
  padding: 3rem 2.5rem;
  max-width: 420px;
  width: 100%;
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--slate-200);
}
.login-card__brand { text-align: center; margin-bottom: 2rem; }
.login-card__logo-img {
  display: inline-block;
  height: 4.5rem;
  width: auto;
  object-fit: contain;
  margin-bottom: 1.25rem;
}
.login-card__title { font-size: 1.5rem; font-weight: 900; letter-spacing: -0.04em; color: var(--navy); }
.login-card__subtitle { color: var(--slate-500); font-size: 0.875rem; margin-top: 0.25rem; }
.login-form { display: grid; gap: 1rem; }

/* ── Responsive tweaks ──────────────────────────── */
@media (max-width: 640px) {
  .hero { padding-bottom: 4rem; padding-top: 0.5rem; }
  .hero__content { margin-top: 1.5rem; }
  .section { padding: 3.5rem 1rem; }
  .hero__title { 
    font-size: clamp(2rem, 8.5vw, 3.2rem); 
    text-wrap: wrap !important;
    line-height: 1.15 !important;
    letter-spacing: -0.04em !important;
  }
  .hero__subtitle {
    font-size: 0.95rem !important;
    line-height: 1.65 !important;
  }
  .hero__ctas .btn { width: 100%; }
  .nav { 
    padding: 0.75rem 0.5rem; 
    gap: 0.75rem; 
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important; 
    justify-content: center !important;
    text-align: center !important; 
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 auto !important;
  }
  .nav__logo {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    margin: 0 auto !important;
  }
  .nav__links-container { 
    display: flex !important;
    flex-direction: row !important; 
    flex-wrap: nowrap !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 0.5rem !important; 
    width: 100% !important;
    margin: 0 auto !important;
  }
  .nav__link { 
    font-size: 0.72rem !important; 
    padding: 0.45rem 0.75rem !important;
    white-space: nowrap !important;
    display: inline-flex !important;
    justify-content: center !important;
    align-items: center !important;
    flex: 0 1 auto !important;
  }
  .stats { margin-top: 2rem; padding: 0 1rem; }
}

/* ── Utility ────────────────────────────────────── */
.hidden { display: none !important; }

/* ============================================================
   ADMIN DASHBOARD
   ============================================================ */

/* ── Dashboard top-level wrapper ─────────────────────── */
.dashboard-section {
  animation: fadeUp 400ms ease-out both;
}

/* ── KPI Grid ────────────────────────────────────────── */
.dashboard-kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.kpi-card {
  background: var(--white);
  border-radius: 1.5rem;
  padding: 1.5rem 1.75rem;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  border: 1px solid var(--slate-200);
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  position: relative;
  overflow: hidden;
}
.kpi-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  border-radius: 1.5rem 1.5rem 0 0;
  background: var(--kpi-accent, var(--navy));
}
.kpi-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.1);
}

.kpi-card__icon {
  font-size: 1.6rem;
  line-height: 1;
  margin-bottom: 0.1rem;
}
.kpi-card__value {
  font-size: 2.4rem;
  font-weight: 900;
  letter-spacing: -0.05em;
  color: var(--navy);
  line-height: 1;
}
.kpi-card__label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--slate-500);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.kpi-card__sub {
  font-size: 0.8rem;
  color: var(--slate-400);
  margin-top: 0.2rem;
}

/* ── Two-column breakdown row ────────────────────────── */
.dashboard-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-bottom: 2rem;
}
@media (max-width: 768px) {
  .dashboard-row { grid-template-columns: 1fr; }
}

/* ── Panel card (used for breakdown sections) ─────────── */
.dashboard-panel {
  background: var(--white);
  border-radius: 1.5rem;
  padding: 1.5rem 1.75rem;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  border: 1px solid var(--slate-200);
}
.dashboard-panel__title {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--slate-500);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

/* ── Bar rows (for tipo_ayuda / estado breakdowns) ──── */
.bar-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.9rem;
}
.bar-row:last-child { margin-bottom: 0; }
.bar-label {
  width: 8rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--slate-700, #334155);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex-shrink: 0;
}
.bar-track {
  flex: 1;
  height: 10px;
  background: var(--slate-100);
  border-radius: 999px;
  overflow: hidden;
}
.bar-fill {
  height: 100%;
  border-radius: 999px;
  background: var(--bar-color, var(--navy));
  transition: width 0.7s cubic-bezier(0.25, 1, 0.5, 1);
}
.bar-count {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--slate-600);
  min-width: 2rem;
  text-align: right;
}
.bar-pct {
  font-size: 0.72rem;
  color: var(--slate-400);
  min-width: 2.5rem;
  text-align: right;
}

/* ── Status pill (funnel states) ─────────────────────── */
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
}
.status-pill--pendiente  { background: #fef9c3; color: #854d0e; }
.status-pill--en-atencion { background: #dbeafe; color: #1e40af; }
.status-pill--completada  { background: #dcfce7; color: #166534; }

/* ── Top Professionals Table ─────────────────────────── */
.top-pros-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}
.top-pros-table th {
  text-align: left;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--slate-500);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0 0.75rem 0.75rem;
  border-bottom: 1.5px solid var(--slate-200);
}
.top-pros-table td {
  padding: 0.75rem;
  color: var(--slate-800);
  border-bottom: 1px solid var(--slate-100);
}
.top-pros-table tr:last-child td { border-bottom: none; }
.top-pros-table tr:hover td { background: var(--slate-50); }

.pro-rank {
  width: 1.8rem;
  height: 1.8rem;
  border-radius: 50%;
  background: var(--slate-100);
  color: var(--slate-600);
  font-size: 0.75rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.pro-rank--1 { background: #fef9c3; color: #854d0e; }
.pro-rank--2 { background: #f1f5f9; color: #475569; }
.pro-rank--3 { background: #fef3c7; color: #92400e; }

/* ── Empty state for dashboard ───────────────────────── */
.dashboard-empty {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--slate-400);
  font-size: 0.9rem;
}

/* ── Dashboard header ────────────────────────────────── */
.dashboard-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.75rem;
}
.dashboard-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.03em;
}
.dashboard-subtitle {
  font-size: 0.82rem;
  color: var(--slate-400);
  margin-top: 0.1rem;
}

/* ── Calendario de disponibilidad ────────────────────── */
.slot-btn {
  background: var(--slate-50);
  border: 1.5px solid var(--slate-200);
  border-radius: 0.5rem;
  padding: 0.35rem 0.1rem;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--slate-700);
  cursor: pointer;
  text-align: center;
  transition: all 0.2s ease;
  min-height: 2.2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 576px) {
  .slot-btn {
    font-size: 0.62rem;
    padding: 0.2rem 0.05rem;
    min-height: 1.8rem;
    border-radius: 0.35rem;
  }
}
.slot-btn:hover {
  background: var(--slate-100);
  border-color: var(--slate-400);
  color: var(--slate-950);
}
.slot-btn.selected {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
  box-shadow: 0 4px 10px rgba(29,64,111,0.2);
}
.slot-btn.disabled {
  background: var(--slate-100);
  border-color: var(--slate-200);
  color: var(--slate-300);
  cursor: not-allowed;
  opacity: 0.65;
}
.slot-btn.disabled.selected {
  background: var(--slate-300);
  color: var(--slate-500);
}

/* ── selector de idiomas ────────────────────────────── */
.lang-selector {
  position: fixed;
  top: 1rem;
  right: 1rem;
  display: flex;
  gap: 0.25rem;
  background: rgba(255, 255, 255, 0.9);
  padding: 0.35rem;
  border-radius: 9999px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
  backdrop-filter: blur(8px);
  z-index: 99999;
  border: 1px solid var(--slate-200);
}

.lang-btn {
  background: none;
  border: none;
  cursor: pointer;
  width: 1.8rem;
  height: 1.8rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: all 0.2s ease;
  padding: 0;
}

.lang-btn:hover {
  transform: scale(1.15);
}

.lang-btn.active {
  background: var(--navy);
  box-shadow: 0 2px 5px rgba(29,64,111,0.2);
}

/* Cuando el selector está DENTRO del nav admin/profesional fluye con el flex */
.admin-nav__right .lang-selector {
  position: static;        /* deja de ser fixed — fluye en el flexbox */
  box-shadow: none;
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.2);
  padding: 0.25rem;
  margin-right: 0.5rem;   /* separación del texto "Funcionario:" */
}

@media (max-width: 768px) {
  .lang-selector {
    /* El selector ya fluye dentro del nav en index.html - no necesita posición absoluta */
    position: static !important;
    background: transparent;
    box-shadow: none;
    border: none;
    padding: 0.25rem;
  }
}
