/* ==========================================================================
   SISTEMA DE VOTACIONES REPRESENTANTES SENA CIMM
   Hoja de Estilos Principal - Diseñada para Móviles y Escritorio
   ========================================================================== */

/* Variables de Color e Identidad Institucional SENA */
:root {
  --sena-green: #39A900;
  --sena-green-dark: #2E8600;
  --sena-green-light: #E8F5E9;
  --sena-navy: #00324D;
  --sena-navy-light: #0A496E;
  --sena-navy-dark: #002235;
  --sena-orange: #FC7318;
  --sena-orange-light: #FFF3EC;

  --bg-main: #F4F7F6;
  --bg-card: #FFFFFF;
  --text-dark: #0F172A;
  --text-muted: #475569;
  --text-light: #94A3B8;
  --border-color: #E2E8F0;

  --shadow-sm: 0 2px 5px rgba(0, 50, 77, 0.05);
  --shadow-md: 0 5px 15px rgba(0, 50, 77, 0.08);
  --shadow-lg: 0 12px 28px rgba(0, 50, 77, 0.15);
  --shadow-hover: 0 14px 30px rgba(57, 169, 0, 0.2);

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;

  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset y optimización touch */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--bg-main);
  color: var(--text-dark);
  line-height: 1.5;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  overflow-x: hidden;
  width: 100%;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ==========================================================================
   CABECERA & NAVEGACIÓN MÓVIL Y ESCRITORIO
   ========================================================================== */
.header-navbar {
  background-color: var(--sena-navy);
  color: #ffffff;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow-md);
  border-bottom: 4px solid var(--sena-green);
  width: 100%;
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.75rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  z-index: 1001;
}

.brand-logo-icon {
  width: 42px;
  height: 42px;
  background: var(--sena-green);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: #ffffff;
  box-shadow: 0 3px 8px rgba(57, 169, 0, 0.4);
  flex-shrink: 0;
}

.brand-info {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #ffffff;
  line-height: 1.1;
}

.brand-subtitle {
  font-size: 0.72rem;
  color: #94D3A2;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* Menú de Navegación */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  list-style: none;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.1rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  color: #E2E8F0;
  transition: var(--transition);
  min-height: 44px;
  /* Tamaño táctil mínimo recomendado */
}

.nav-link:hover,
.nav-link.active {
  color: #ffffff;
  background-color: rgba(255, 255, 255, 0.12);
}

.nav-link-btn {
  background-color: var(--sena-green);
  color: #ffffff !important;
  box-shadow: 0 4px 10px rgba(57, 169, 0, 0.3);
}

.nav-link-btn:hover {
  background-color: var(--sena-green-dark);
}

/* Botón Hamburguesa Móvil */
.mobile-toggle {
  display: none;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  font-size: 1.25rem;
  cursor: pointer;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  align-items: center;
  justify-content: center;
  z-index: 1001;
  transition: var(--transition);
}

.mobile-toggle:active {
  transform: scale(0.95);
  background: rgba(255, 255, 255, 0.2);
}

/* Overlay para fondo oscuro al abrir menú móvil */
.mobile-nav-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 26, 41, 0.6);
  backdrop-filter: blur(4px);
  z-index: 998;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.mobile-nav-overlay.active {
  display: block;
  opacity: 1;
}

/* ==========================================================================
   SECCIÓN HERO (ADAPTATIVA)
   ========================================================================== */
.hero-section {
  background: linear-gradient(135deg, var(--sena-navy-dark) 0%, var(--sena-navy) 60%, var(--sena-navy-light) 100%);
  color: #ffffff;
  padding: 3.5rem 1.25rem 4.5rem 1.25rem;
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: -60px;
  right: -60px;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(57, 169, 0, 0.22) 0%, rgba(0, 0, 0, 0) 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(57, 169, 0, 0.18);
  border: 1px solid var(--sena-green);
  color: #5BF718;
  padding: 0.4rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
}

.hero-title {
  font-size: clamp(1.8rem, 4vw + 1rem, 2.75rem);
  font-weight: 800;
  line-height: 1.18;
  margin-bottom: 1rem;
  color: #ffffff;
  letter-spacing: -0.02em;
}

.hero-title span {
  color: var(--sena-green);
  background: linear-gradient(120deg, #5BF718, #39A900);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-description {
  font-size: clamp(0.95rem, 1.5vw + 0.5rem, 1.1rem);
  color: #CBD5E1;
  margin-bottom: 1.75rem;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  gap: 0.85rem;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  background-color: var(--sena-green);
  color: #ffffff;
  padding: 0.85rem 1.6rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.98rem;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(57, 169, 0, 0.4);
  transition: var(--transition);
  min-height: 48px;
}

.btn-primary:hover {
  background-color: var(--sena-green-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(57, 169, 0, 0.5);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  background-color: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  padding: 0.85rem 1.6rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.98rem;
  border: 1px solid rgba(255, 255, 255, 0.25);
  cursor: pointer;
  transition: var(--transition);
  min-height: 48px;
}

.btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.2);
  border-color: #ffffff;
}

.hero-visual {
  display: flex;
  justify-content: center;
}

.hero-card {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  width: 100%;
  max-width: 420px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.hero-card-header {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1.25rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-card-icon {
  width: 46px;
  height: 46px;
  background: var(--sena-orange);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: #ffffff;
  flex-shrink: 0;
}

.hero-card-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  text-align: center;
}

.stat-box {
  background: rgba(0, 50, 77, 0.5);
  padding: 0.85rem 0.4rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.stat-number {
  font-size: 1.35rem;
  font-weight: 800;
  color: #5BF718;
}

.stat-label {
  font-size: 0.72rem;
  color: #94A3B8;
  text-transform: uppercase;
  margin-top: 0.15rem;
}

/* ==========================================================================
   SECCIÓN DE CANDIDATOS Y PESTAÑAS JORNADA
   ========================================================================== */
.candidates-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 1.25rem;
  width: 100%;
}

.section-header {
  text-align: center;
  margin-bottom: 2.25rem;
}

.section-tag {
  display: inline-block;
  color: var(--sena-green-dark);
  background-color: var(--sena-green-light);
  font-weight: 700;
  font-size: 0.82rem;
  padding: 0.35rem 0.9rem;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.6rem;
}

.section-title {
  font-size: clamp(1.6rem, 3vw + 1rem, 2.25rem);
  font-weight: 800;
  color: var(--sena-navy);
  margin-bottom: 0.5rem;
}

.section-subtitle {
  font-size: 0.98rem;
  color: var(--text-muted);
  max-width: 650px;
  margin: 0 auto;
}

/* Selector / Pestañas de Jornada con scroll horizontal touch */
.jornada-tabs-container {
  display: flex;
  justify-content: center;
  margin-bottom: 2rem;
  width: 100%;
}

.jornada-tabs {
  display: inline-flex;
  background-color: #E2E8F0;
  padding: 0.35rem;
  border-radius: var(--radius-md);
  gap: 0.35rem;
  max-width: 100%;
  overflow-x: auto;
  scrollbar-width: none;
  /* Firefox */
  -ms-overflow-style: none;
  /* IE/Edge */
  -webkit-overflow-scrolling: touch;
}

.jornada-tabs::-webkit-scrollbar {
  display: none;
  /* Chrome/Safari */
}

.tab-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.7rem 1.2rem;
  border: none;
  background: transparent;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-muted);
  cursor: pointer;
  white-space: nowrap;
  transition: var(--transition);
  min-height: 44px;
  flex-shrink: 0;
}

.tab-btn i {
  font-size: 1rem;
}

.tab-text-short {
  display: none;
}

.tab-btn:hover {
  color: var(--sena-navy);
  background-color: rgba(255, 255, 255, 0.7);
}

.tab-btn.active {
  background-color: var(--sena-navy);
  color: #ffffff;
  box-shadow: var(--shadow-sm);
}

.tab-btn.active[data-jornada="manana"] {
  background-color: #D97706;
}

.tab-btn.active[data-jornada="tarde"] {
  background-color: var(--sena-orange);
}

.tab-btn.active[data-jornada="noche"] {
  background-color: var(--sena-navy);
}

.tab-btn.active[data-jornada="todos"] {
  background-color: var(--sena-green-dark);
}

/* Grid de Candidatos */
.candidates-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

/* Tarjeta de Candidato */
.candidate-card {
  background-color: var(--bg-card);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  position: relative;
}

.candidate-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: var(--sena-green);
}

.candidate-number {
  position: absolute;
  top: 0.85rem;
  left: 0.85rem;
  background-color: var(--sena-navy);
  color: #ffffff;
  font-weight: 800;
  font-size: 0.85rem;
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-full);
  z-index: 2;
  box-shadow: var(--shadow-sm);
  border: 2px solid #ffffff;
}

.candidate-jornada-badge {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  font-weight: 700;
  font-size: 0.72rem;
  padding: 0.28rem 0.7rem;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  z-index: 2;
}

.badge-manana {
  background-color: #FEF3C7;
  color: #92400E;
}

.badge-tarde {
  background-color: #FFEDD5;
  color: #C2410C;
}

.badge-noche {
  background-color: #E0F2FE;
  color: #0369A1;
}

.candidate-image-wrapper {
  height: 220px;
  background: linear-gradient(180deg, #E2E8F0 0%, #F1F5F9 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.candidate-avatar-placeholder {
  width: 145px;
  height: 145px;
  border-radius: 50%;
  background: var(--sena-navy);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
  border: 4px solid #ffffff;
  box-shadow: var(--shadow-md);
  overflow: hidden;
  position: relative;
}

.candidate-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.candidate-card-body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.candidate-name {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--sena-navy);
  margin-bottom: 0.2rem;
}

.candidate-program {
  font-size: 0.85rem;
  color: var(--sena-green-dark);
  font-weight: 600;
  margin-bottom: 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.candidate-proposals-title {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-dark);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.4rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.candidate-proposals-list {
  list-style: none;
  margin-bottom: 1.25rem;
  flex-grow: 1;
}

.candidate-proposals-list li {
  font-size: 0.88rem;
  color: var(--text-muted);
  position: relative;
  padding-left: 1.15rem;
  margin-bottom: 0.35rem;
  line-height: 1.45;
}

.candidate-proposals-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--sena-green);
  font-weight: bold;
}

.candidate-card-footer {
  margin-top: auto;
  padding-top: 0.85rem;
  border-top: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.btn-plan {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.7rem 0.95rem;
  background-color: #F8FAFC;
  color: var(--sena-navy);
  border: 1.5px solid #E2E8F0;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.86rem;
  text-decoration: none;
  transition: all 0.25s ease-in-out;
  box-sizing: border-box;
}

.btn-plan span {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-plan span i {
  color: var(--sena-green);
  font-size: 0.95rem;
  transition: color 0.25s ease;
}

.btn-plan .btn-plan-arrow {
  font-size: 0.8rem;
  color: var(--text-muted);
  transition: transform 0.25s ease, color 0.25s ease;
}

.btn-plan:hover {
  background-color: #ffffff;
  border-color: var(--sena-green);
  color: var(--sena-green-dark);
  box-shadow: 0 4px 12px rgba(57, 169, 0, 0.12);
  transform: translateY(-2px);
}

.btn-plan:hover span i {
  color: var(--sena-green-dark);
}

.btn-plan:hover .btn-plan-arrow {
  color: var(--sena-green);
  transform: translateX(4px);
}

.btn-plan:active {
  transform: translateY(0);
  box-shadow: var(--shadow-sm);
}

.btn-vote {
  margin-top: 0;
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background-color: var(--sena-navy);
  color: #ffffff;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.92rem;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  min-height: 46px;
  text-decoration: none;
}

.btn-vote:hover {
  background-color: var(--sena-green);
  box-shadow: 0 4px 14px rgba(57, 169, 0, 0.25);
  transform: translateY(-2px);
}

/* ==========================================================================
   SECCIÓN "CÓMO VOTAR"
   ========================================================================== */
.how-to-vote-section {
  background-color: #ffffff;
  padding: 3.5rem 1.25rem;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.how-container {
  max-width: 1200px;
  margin: 0 auto;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}

.step-card {
  background-color: var(--bg-main);
  padding: 1.75rem 1.25rem;
  border-radius: var(--radius-md);
  text-align: center;
  position: relative;
  border: 1px solid var(--border-color);
  transition: var(--transition);
}

.step-card:hover {
  transform: translateY(-4px);
  border-color: var(--sena-green);
}

.step-number {
  width: 46px;
  height: 46px;
  background-color: var(--sena-green);
  color: #ffffff;
  font-size: 1.35rem;
  font-weight: 800;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem auto;
  box-shadow: 0 4px 10px rgba(57, 169, 0, 0.3);
}

.step-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--sena-navy);
  margin-bottom: 0.4rem;
}

.step-description {
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* ==========================================================================
   PIE DE PÁGINA INSTITUCIONAL
   ========================================================================== */
.footer-institutional {
  background-color: var(--sena-navy-dark);
  color: #CBD5E1;
  margin-top: auto;
  padding-top: 3rem;
  border-top: 5px solid var(--sena-green);
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.25rem 2.5rem 1.25rem;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2.5rem;
}

.footer-col-brand h3 {
  color: #ffffff;
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 0.6rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.footer-col-brand p {
  font-size: 0.88rem;
  line-height: 1.6;
  margin-bottom: 1rem;
  max-width: 400px;
}

.footer-social-links {
  display: flex;
  gap: 0.75rem;
}

.social-icon {
  width: 42px;
  height: 42px;
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 1rem;
  transition: var(--transition);
}

.social-icon:hover {
  background-color: var(--sena-green);
  transform: translateY(-2px);
}

.footer-col h4 {
  color: #ffffff;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 1rem;
  position: relative;
  padding-bottom: 0.4rem;
}

.footer-col h4::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 30px;
  height: 3px;
  background-color: var(--sena-green);
  border-radius: 2px;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  font-size: 0.88rem;
  color: #94A3B8;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.2rem 0;
}

.footer-links a:hover {
  color: var(--sena-green);
  padding-left: 4px;
}

.footer-bottom {
  background-color: #001A29;
  padding: 1.1rem 1.25rem;
  text-align: center;
  font-size: 0.82rem;
  color: #64748B;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-bottom strong {
  color: #94A3B8;
}

/* ==========================================================================
   MEDIA QUERIES ESPECÍFICAS PARA DISPOSITIVOS MÓVILES Y TABLETS
   ========================================================================== */

/* Tablets y pantallas medianas (<= 992px) */
@media (max-width: 992px) {
  .hero-container {
    grid-template-columns: 1fr;
    gap: 2.25rem;
    text-align: center;
  }

  .hero-badge {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-card {
    margin: 0 auto;
  }

  .steps-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .footer-container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-col-brand p {
    max-width: 100%;
  }

  .footer-col h4::after {
    left: 50%;
    transform: translateX(-50%);
  }

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

  .footer-links a {
    justify-content: center;
  }

  .footer-social-links {
    justify-content: center;
  }
}

/* Dispositivos Móviles (<= 768px) */
@media (max-width: 768px) {
  .header-container {
    padding: 0.6rem 1rem;
  }

  .mobile-toggle {
    display: flex;
  }

  /* Menú desplegable móvil */
  .nav-menu {
    position: fixed;
    top: 0;
    right: 0;
    width: 280px;
    height: 100vh;
    background-color: var(--sena-navy-dark);
    flex-direction: column;
    padding: 5rem 1.5rem 2rem 1.5rem;
    gap: 0.75rem;
    box-shadow: -5px 0 25px rgba(0, 0, 0, 0.4);
    transform: translateX(100%);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
    z-index: 1000;
  }

  .nav-menu.show {
    transform: translateX(0);
    opacity: 1;
    visibility: visible;
  }

  .nav-link {
    width: 100%;
    justify-content: flex-start;
    padding: 0.85rem 1.25rem;
    border-radius: var(--radius-sm);
    font-size: 1rem;
    background-color: rgba(255, 255, 255, 0.05);
  }

  .hero-section {
    padding: 2.5rem 1rem 3.5rem 1rem;
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
  }

  .btn-primary,
  .btn-secondary {
    width: 100%;
  }

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

  /* Ajuste de pestañas de jornada para mostrar los 4 tabs visibles en móvil */
  .jornada-tabs-container {
    padding: 0;
    width: 100%;
    display: flex;
    justify-content: center;
  }

  .jornada-tabs {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    padding: 0.25rem;
    gap: 0.25rem;
    background-color: #E2E8F0;
    border-radius: var(--radius-md);
  }

  .tab-btn {
    padding: 0.5rem 0.15rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    min-height: 48px;
    width: 100%;
    border-radius: var(--radius-sm);
  }

  .tab-btn i {
    font-size: 0.95rem;
  }

  .tab-text-full {
    display: none;
  }

  .tab-text-short {
    display: inline;
    font-size: 0.72rem;
    font-weight: 700;
    white-space: nowrap;
  }
}

/* Pantallas pequeñas / Smartphones ajustados (<= 480px) */
@media (max-width: 480px) {
  .brand-title {
    font-size: 1.05rem;
  }

  .brand-subtitle {
    font-size: 0.65rem;
  }

  .brand-logo-icon {
    width: 36px;
    height: 36px;
    font-size: 1.1rem;
  }

  .hero-card {
    padding: 1.25rem;
  }

  .hero-card-stats {
    gap: 0.4rem;
  }

  .stat-number {
    font-size: 1.15rem;
  }

  .stat-label {
    font-size: 0.65rem;
  }

  .candidate-card-body {
    padding: 1rem;
  }

  .candidate-number {
    top: 0.65rem;
    left: 0.65rem;
    font-size: 0.78rem;
    padding: 0.25rem 0.65rem;
  }

  .candidate-jornada-badge {
    top: 0.65rem;
    right: 0.65rem;
    font-size: 0.68rem;
    padding: 0.25rem 0.6rem;
  }
}

/* ==========================================================================
   VISTA DE CONFIRMACIÓN DE VOTO Y COMPROBANTE (VOTAR.PHP)
   ========================================================================== */
.vote-result-container {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 1.25rem;
  background: linear-gradient(135deg, #001E33 0%, #00324D 100%);
}

.vote-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  max-width: 600px;
  width: 100%;
  padding: 2.5rem 2rem;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.25);
  text-align: center;
  animation: slideUpFade 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.vote-icon-wrapper {
  display: flex;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.vote-icon {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.25rem;
}

.vote-icon--success {
  background: linear-gradient(135deg, #5BF718, #39A900);
  color: #ffffff;
  box-shadow: 0 10px 25px rgba(57, 169, 0, 0.4);
  animation: pulseScale 2s infinite ease-in-out;
}

.vote-icon--warning {
  background: linear-gradient(135deg, #F59E0B, #D97706);
  color: #ffffff;
  box-shadow: 0 10px 25px rgba(217, 119, 6, 0.4);
}

@keyframes pulseScale {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.06);
  }
}

.vote-badge {
  display: inline-block;
  padding: 0.3rem 0.85rem;
  background-color: rgba(57, 169, 0, 0.12);
  color: var(--sena-green-dark);
  font-size: 0.8rem;
  font-weight: 700;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
}

.vote-badge--warning {
  background-color: rgba(217, 119, 6, 0.12);
  color: #B45309;
}

.vote-title {
  font-size: 1.65rem;
  font-weight: 800;
  color: var(--sena-navy);
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}

.vote-subtitle {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1.75rem;
  line-height: 1.5;
}

/* Comprobante de Voto */
.vote-voucher {
  background-color: #F8FAFC;
  border: 1.5px solid #E2E8F0;
  border-radius: var(--radius-md);
  padding: 1.25rem;
  margin-bottom: 1.75rem;
  text-align: left;
}

.voucher-header {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--sena-navy);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding-bottom: 0.75rem;
  margin-bottom: 1rem;
  border-bottom: 1px dashed #CBD5E1;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.voucher-candidate {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #E2E8F0;
}

.voucher-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--sena-green);
  flex-shrink: 0;
}

.voucher-avatar-placeholder {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--sena-navy);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.voucher-candidate-info {
  display: flex;
  flex-direction: column;
}

.voucher-number {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--sena-green);
  text-transform: uppercase;
}

.voucher-name {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--sena-navy);
  margin-bottom: 0.2rem;
}

.voucher-program,
.voucher-jornada {
  font-size: 0.8rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.voucher-details {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  font-size: 0.85rem;
}

.voucher-detail-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.detail-label {
  color: var(--text-muted);
}

.detail-value {
  font-weight: 600;
  color: var(--text-dark);
}

.text-success {
  color: var(--sena-green-dark);
}

/* Tarjeta del Temporizador */
.countdown-card {
  background: #EDFDF2;
  border: 1.5px solid rgba(57, 169, 0, 0.3);
  border-radius: var(--radius-md);
  padding: 1.25rem;
}

.countdown-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--sena-green-dark);
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.countdown-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--sena-green);
  box-shadow: 0 0 0 0 rgba(57, 169, 0, 0.7);
  animation: pulseDot 1.5s infinite;
}

@keyframes pulseDot {
  0% {
    box-shadow: 0 0 0 0 rgba(57, 169, 0, 0.7);
  }
  70% {
    box-shadow: 0 0 0 8px rgba(57, 169, 0, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(57, 169, 0, 0);
  }
}

.countdown-text {
  font-size: 0.92rem;
  color: var(--sena-navy);
  margin-bottom: 0.85rem;
}

.countdown-text strong {
  color: var(--sena-green-dark);
  font-size: 1.2rem;
}

.countdown-bar-container {
  width: 100%;
  height: 8px;
  background-color: #D1FAE5;
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 1.25rem;
}

.countdown-bar {
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, #5BF718, #39A900);
  border-radius: 4px;
}

.btn-finish {
  width: 100%;
  padding: 0.85rem;
}

.vote-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1rem;
}

/* ==========================================================================
   MODAL DE CONFIRMACIÓN DE VOTO INSTITUCIONAL SENA
   ========================================================================== */
.vote-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(10, 25, 47, 0.7);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.3s ease;
}

.vote-modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.vote-modal {
  background: #ffffff;
  border-radius: 1.25rem;
  width: 100%;
  max-width: 480px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 45px -10px rgba(10, 25, 47, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.8) inset;
  position: relative;
  padding: 2rem;
  transform: translateY(20px) scale(0.96);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  box-sizing: border-box;
}

.vote-modal-overlay.active .vote-modal {
  transform: translateY(0) scale(1);
}

.vote-modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: #F1F5F9;
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: #64748B;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.vote-modal-close:hover {
  background: #E2E8F0;
  color: var(--sena-navy);
  transform: rotate(90deg);
}

.vote-modal-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 1.25rem;
}

.vote-modal-icon-badge {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(57, 169, 0, 0.15) 0%, rgba(57, 169, 0, 0.25) 100%);
  color: var(--sena-green);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin-bottom: 0.75rem;
  box-shadow: 0 0 0 6px rgba(57, 169, 0, 0.08);
}

.vote-modal-tag {
  display: inline-block;
  background: #EFF6FF;
  color: var(--sena-navy);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  margin-bottom: 0.5rem;
  border: 1px solid #DBEAFE;
}

.vote-modal-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--sena-navy);
  margin-bottom: 0.35rem;
  line-height: 1.3;
}

.vote-modal-subtitle {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.45;
  margin: 0;
}

/* Tarjeta informativa del Candidato dentro del Modal */
.vote-modal-card {
  width: 100%;
  background: #F8FAFC;
  border: 1.5px solid #E2E8F0;
  border-radius: var(--radius-md);
  padding: 1.15rem;
  display: flex;
  align-items: center;
  gap: 1.1rem;
  text-align: left;
  margin-bottom: 1.25rem;
  box-sizing: border-box;
}

.vote-modal-avatar-wrapper {
  position: relative;
  flex-shrink: 0;
  width: 72px;
  height: 72px;
}

.vote-modal-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #ffffff;
  box-shadow: var(--shadow-sm);
  display: block;
}

.vote-modal-avatar-placeholder {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--sena-navy);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  border: 3px solid #ffffff;
  box-shadow: var(--shadow-sm);
}

.vote-modal-number {
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--sena-green);
  color: #ffffff;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 0.15rem 0.5rem;
  border-radius: 9999px;
  white-space: nowrap;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
  border: 1.5px solid #ffffff;
}

.vote-modal-candidate-info {
  flex: 1;
  min-width: 0;
}

.vote-modal-name {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--sena-navy);
  margin-bottom: 0.25rem;
  line-height: 1.25;
}

.vote-modal-program {
  font-size: 0.82rem;
  color: #475569;
  margin-bottom: 0.35rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.vote-modal-program i {
  color: var(--sena-green-dark);
}

.vote-modal-jornada {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: #0369A1;
  background: #E0F2FE;
  padding: 0.2rem 0.55rem;
  border-radius: 9999px;
  text-transform: uppercase;
}

/* Alerta de Advertencia */
.vote-modal-warning {
  width: 100%;
  background-color: #FEF3C7;
  border: 1px solid #FDE68A;
  border-left: 4px solid #F59E0B;
  border-radius: var(--radius-sm);
  padding: 0.75rem 0.9rem;
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  text-align: left;
  font-size: 0.83rem;
  color: #92400E;
  margin-bottom: 1.5rem;
  box-sizing: border-box;
  line-height: 1.4;
}

.vote-modal-warning i {
  color: #D97706;
  font-size: 1.1rem;
  margin-top: 0.1rem;
  flex-shrink: 0;
}

/* Botones del Modal */
.vote-modal-actions {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.btn-modal-cancel {
  background: #F1F5F9;
  color: #475569;
  border: 1px solid #CBD5E1;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  transition: all 0.2s ease;
  text-decoration: none;
}

.btn-modal-cancel:hover {
  background: #E2E8F0;
  color: var(--sena-navy);
}

.btn-modal-confirm {
  background: var(--sena-green);
  color: #ffffff;
  border: none;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  transition: all 0.2s ease;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(57, 169, 0, 0.25);
}

.btn-modal-confirm:hover {
  background: var(--sena-green-dark);
  box-shadow: 0 6px 16px rgba(57, 169, 0, 0.35);
  transform: translateY(-1px);
}

@media (max-width: 480px) {
  .vote-modal {
    padding: 1.5rem 1.15rem;
  }
  .vote-modal-actions {
    grid-template-columns: 1fr;
  }
  .btn-modal-confirm {
    order: -1;
  }
}