/* Candidatos 2026 - Modern Glassmorphism Landing */

:root {
  --mira-blue: #00289f;
  --mira-light-blue: #0052cc;
  --mira-dark-blue: #001f7a;
  --color-1: #00289f;
  --color-2: #0052cc;
  --color-3: #667eea;
  --color-4: #764ba2;
}

/* Background with animated gradient orbs */
.landing-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background: linear-gradient(180deg, #00289f 0%, #001f7a 50%, #001560 100%);
  background-image: url("../svg/bg-candidatos-2026.svg");
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.6;
  animation: float 20s ease-in-out infinite;
}

.orb-1 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, #0052cc 0%, transparent 70%);
  top: -250px;
  right: -250px;
  animation-delay: 0s;
}

.orb-2 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, #667eea 0%, transparent 70%);
  bottom: -200px;
  left: -200px;
  animation-delay: -5s;
}

.orb-3 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, #4facfe 0%, transparent 70%);
  top: 50%;
  left: 50%;
  animation-delay: -10s;
}

@keyframes float {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  33% {
    transform: translate(50px, -50px) scale(1.1);
  }
  66% {
    transform: translate(-50px, 50px) scale(0.9);
  }
}

/* Glassmorphism Cards */
.glass-card {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
  transition: all 0.3s ease;
}

.glass-card:hover {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transform: translateY(-5px);
}

/* Hero Section */
.hero-container {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 3rem 0 2rem;
}

/* Landing hero with negative margin */
.hero-container-landing {
  margin-top: -50px;
}

.hero-content {
  text-align: center;
  color: white;
  position: relative;
  z-index: 10;
}

.hero-badge {
  display: inline-block;
  padding: 0.5rem 1.5rem;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: 50px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 2rem;
  animation: fadeInDown 0.8s ease;
}

.hero-title {
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 900;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, #ffffff 0%, #0052cc 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: fadeInUp 0.8s ease 0.2s both;
  line-height: 0.8;
}

.hero-subtitle {
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  color: rgba(255, 255, 255, 0.8);
  max-width: 700px;
  margin: 0 auto 3rem;
  line-height: 1.6;
  animation: fadeInUp 0.8s ease 0.4s both;
}

.hero-buttons {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeInUp 0.8s ease 0.6s both;
}

/* Modern Buttons */
.btn-modern {
  padding: 1rem 2.5rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1.1rem;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  text-decoration: none;
  display: inline-block;
}

.btn-modern::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
  transition: left 0.5s ease;
}

.btn-modern:hover::before {
  left: 100%;
}

.btn-primary-modern {
  background: linear-gradient(135deg, #fbba00 0%, #ffd700 100%);
  color: #000;
  box-shadow: 0 10px 40px rgba(251, 186, 0, 0.5);
  font-weight: 700;
}

.btn-primary-modern:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 50px rgba(251, 186, 0, 0.7);
  background: linear-gradient(135deg, #ffd700 0%, #fbba00 100%);
  color: #000;
}

.btn-secondary-modern {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-secondary-modern:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-3px);
}

/* Stats Grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin: 4rem 0;
}

.stat-card {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px);
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 2.5rem;
  text-align: center;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
}

.stat-card::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.1) 0%,
    transparent 70%
  );
  opacity: 0;
  transition: opacity 0.3s ease;
}

.stat-card:hover::before {
  opacity: 1;
}

.stat-card:hover {
  transform: translateY(-10px) scale(1.02);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.stat-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  display: inline-block;
  transition: transform 0.3s ease;
}

.stat-card:hover .stat-icon {
  transform: scale(1.2) rotateY(360deg);
}

.stat-number {
  font-size: 3.5rem;
  font-weight: 800;
  color: white;
  margin-bottom: 0.5rem;
  display: block;
}

.stat-label {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 500;
}

/* Feature Cards */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin: 4rem 0;
}

.feature-card {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px);
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 2rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.feature-card::after {
  content: "";
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    45deg,
    transparent,
    rgba(255, 255, 255, 0.05),
    transparent
  );
  transform: rotate(45deg);
  transition: all 0.5s ease;
}

.feature-card:hover::after {
  transform: rotate(45deg) translate(50%, 50%);
}

.feature-card:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.feature-icon {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  display: inline-block;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  transition: all 0.3s ease;
}

.feature-card:hover .feature-icon {
  background: rgba(255, 255, 255, 0.15);
  transform: scale(1.1);
}

.feature-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: white;
  margin-bottom: 1rem;
}

.feature-description {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.6;
}

/* Floating Animation */
@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

/* Scroll Reveal Animation - Disabled */
.reveal {
  opacity: 1;
  transform: translateY(0);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Section Spacing */
.section {
  padding: 2rem 0;
  position: relative;
}

.section-title {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  color: white;
  text-align: center;
  margin-bottom: 3rem;
  background: linear-gradient(135deg, #ffffff 0%, #0052cc 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Responsive */
@media (max-width: 768px) {
  .hero-container {
    min-height: auto;
    padding: 1rem 1rem 0.5rem;
  }

  .hero-container-landing {
    margin-top: -20px;
  }

  .hero-title {
    font-size: 2rem !important;
    margin-bottom: 0.25rem !important;
    line-height: 0.95 !important;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: stretch;
  }

  .btn-modern {
    width: 100%;
  }

  .stats-grid,
  .features-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .orb {
    filter: blur(60px);
  }

  /* Search responsive */
  .search-container {
    margin: 0.25rem 0.5rem 0;
    padding: 0;
    max-width: 100%;
  }

  .search-container::before {
    display: none;
  }

  .search-tabs {
    flex-direction: row;
    gap: 0.5rem;
    margin-top: 0;
    margin-bottom: 0.75rem;
    padding: 0 0.5rem;
  }

  .search-tab {
    padding: 0.5rem 0.75rem;
    font-size: 0.85rem;
    flex: 1;
    justify-content: center;
  }

  .search-tab span {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .search-tab i {
    font-size: 0.8rem;
  }

  .search-form {
    padding: 0.75rem;
    margin: 0 0.5rem 0.75rem;
    overflow: visible;
  }

  /* Lottie animation smaller on mobile */
  .hero-content lottie-player,
  .hero-content [style*="width: 200px"] {
    width: 120px !important;
    height: 120px !important;
  }

  .search-grid {
    grid-template-columns: 1fr;
    gap: 0.6rem;
    width: 100%;
    max-width: 100%;
  }

  .search-input-group {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
  }

  .search-input,
  .search-input-large {
    font-size: 0.85rem;
    padding: 0.7rem 0.7rem 0.7rem 2.5rem;
    width: 100%;
    box-sizing: border-box;
  }

  .search-icon {
    left: 0.75rem;
    font-size: 0.9rem;
  }

  .search-buttons {
    flex-direction: column;
    gap: 0.5rem;
    padding: 0 0.5rem;
    margin-top: 0.25rem;
  }

  .btn-search-primary,
  .btn-search-secondary {
    width: 100%;
    padding: 0.65rem 1.25rem;
    font-size: 0.9rem;
    box-sizing: border-box;
  }

  .search-input-group-single {
    max-width: 100%;
    padding: 0 0.5rem;
  }

  /* Ensure inputs never overflow on small screens */
  .search-input-group,
  .search-input,
  .search-input-large,
  select.search-input {
    min-width: 0;
  }

  /* Section spacing adjustments */
  .section {
    padding: 1rem 0;
  }

  .section-title {
    font-size: 2rem !important;
    margin-bottom: 1.5rem;
  }
}

/* Search Container */
.search-container {
  max-width: 900px;
  margin: 3rem auto 0;
  position: relative;
  z-index: 20;
}

.search-container::before {
  content: "";
  position: absolute;
  inset: -40px;
  background: radial-gradient(
    circle at center,
    rgba(0, 40, 159, 0.4) 0%,
    transparent 70%
  );
  filter: blur(60px);
  z-index: -1;
  pointer-events: none;
}

.search-tabs {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 2rem;
  margin-top: -60px;
}

.search-tab {
  cursor: pointer;
  padding: 0.75rem 2rem;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: 50px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.7);
  font-weight: 600;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
}

.search-tab input[type="radio"] {
  display: none;
}

.search-tab:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
  color: white;
}

.search-tab.active {
  background: rgba(255, 255, 255, 0.3);
  border-color: white;
  color: white;
  box-shadow: 0 4px 20px rgba(255, 255, 255, 0.3),
    0 0 0 1px rgba(255, 255, 255, 0.1) inset;
}

.search-form {
  background: rgba(0, 40, 159, 0.3);
  backdrop-filter: blur(40px) saturate(180%);
  -webkit-backdrop-filter: blur(40px) saturate(180%);
  border-radius: 20px;
  border: 2px solid rgba(255, 255, 255, 0.5);
  padding: 2rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6),
    0 0 0 1px rgba(255, 255, 255, 0.2) inset, 0 0 60px rgba(255, 255, 255, 0.1);
  position: relative;
  z-index: 20;
}

.search-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
  width: 100%;
}

.search-input-group {
  position: relative;
}

.search-input-group-single {
  position: relative;
  max-width: 600px;
  margin: 0 auto;
}

.search-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(255, 255, 255, 0.5);
  font-size: 1.1rem;
  pointer-events: none;
  z-index: 2;
}

.search-input,
.search-input-large {
  width: 100%;
  padding: 1rem 1rem 1rem 3rem;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 12px;
  color: white;
  font-size: 1rem;
  transition: all 0.3s ease;
  appearance: none;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.search-input-large {
  padding: 1.25rem 1.25rem 1.25rem 3.5rem;
  font-size: 1.1rem;
}

.search-input::placeholder,
.search-input-large::placeholder {
  color: rgba(255, 255, 255, 0.8);
}

.search-input:focus,
.search-input-large:focus {
  outline: none;
  background: rgba(255, 255, 255, 0.25);
  border-color: white;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3), 0 0 0 4px rgba(255, 255, 255, 0.1);
}

.search-input option {
  background: #00289f;
  color: white;
}

.search-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-search-primary,
.btn-search-secondary {
  padding: 1rem 2.5rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1.1rem;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
}

.btn-search-primary {
  background: linear-gradient(135deg, #ffffff 0%, #e0e0e0 100%);
  color: #00289f;
  box-shadow: 0 10px 40px rgba(255, 255, 255, 0.3);
}

.btn-search-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 50px rgba(255, 255, 255, 0.4);
  background: white;
}

.btn-search-secondary {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-search-secondary:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-3px);
}

.hidden {
  display: none !important;
}

/* Utility Classes */
.text-white {
  color: white;
}

.text-glow {
  text-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
}

/* Candidates Grid */
.candidates-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin: 3rem 0;
}

@media (max-width: 1024px) {
  .candidates-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .candidates-grid {
    grid-template-columns: 1fr;
  }
}

.no-candidates {
  grid-column: 1 / -1;
  text-align: center;
  padding: 4rem 2rem;
}

.candidate-card {
  position: relative;
  height: 600px;
  border-radius: 24px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
  display: block;
  text-decoration: none;
  border: 5px solid transparent;
  background: linear-gradient(#001560, #001560) padding-box,
    linear-gradient(45deg, #00289f, #0052cc, #667eea, #00289f, #fbba00, #667eea)
      border-box;
  background-size: 100% 100%, 300% 300%;
  animation: borderAnimation 4s ease infinite;
}

@keyframes borderAnimation {
  0% {
    background-position: 0% 0%, 0% 50%;
  }
  50% {
    background-position: 0% 0%, 100% 50%;
  }
  100% {
    background-position: 0% 0%, 0% 50%;
  }
}

.candidate-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.4);
  animation: borderAnimation 2s ease infinite;
}

.candidate-image-wrapper {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  border-radius: 20px;
  overflow: hidden;
}

.candidate-image {
  position: relative;
  width: 100%;
  height: 100%;
}

.candidate-image::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    #1e3a8a 0%,
    #3b82f6 25%,
    #60a5fa 50%,
    #93c5fd 75%,
    #bfdbfe 100%
  );
  filter: blur(40px);
  z-index: 0;
}

.candidate-image::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60%;
  background: linear-gradient(
    to top,
    rgba(0, 40, 159, 0.95) 0%,
    rgba(0, 40, 159, 0.7) 20%,
    rgba(0, 40, 159, 0.4) 40%,
    rgba(0, 40, 159, 0.15) 70%,
    transparent 100%
  );
  z-index: 1;
}

.candidate-photo {
  position: relative;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center top;
  padding-top: 20px;
  box-sizing: border-box;
  z-index: 2;
}

.candidate-photo-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    180deg,
    #d8edf6 0%,
    #a9d3ec 40%,
    var(--mira-blue) 100%
  );
  color: rgba(255, 255, 255, 0.5);
}

.candidate-logo-wrapper {
  position: absolute;
  top: 1.5rem;
  left: 1.5rem;
  z-index: 15;
  max-width: 30%;
}

.candidate-logo-image {
  max-width: 100%;
  height: auto;
  max-height: 60px;
  display: block;
}

.candidate-name-wrapper {
  position: absolute;
  bottom: 45%;
  right: -5px;
  z-index: 15;
  transform: translateY(50%);
}

.candidate-name-image {
  max-width: 150px;
  display: block;
  height: auto;
}

.candidate-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.5rem;
  z-index: 10;
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.1) 0%,
    rgba(255, 255, 255, 0.25) 100%
  );
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  text-align: center;
  border-radius: 20px;
}

.candidate-user-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
}

.candidate-user-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid white;
  flex-shrink: 0;
}

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

.candidate-user-details {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.candidate-role {
  font-size: 1.3rem;
  font-family: "Poppins", sans-serif;
  font-weight: bold;
  color: #00289f;
  margin: 0;
  letter-spacing: -1px;
  text-shadow: 0 0 7px rgba(255, 255, 255);
}

.candidate-location {
  font-size: 1rem;
  font-weight: 600;
  color: white;
  margin: 0;
  line-height: 1.2;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.candidate-social {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap;
}

.candidate-action {
  width: 100%;
  display: flex;
  justify-content: center;
  padding-top: 0.5rem;
}

.social-link {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: white;
  transition: all 0.3s ease;
  text-decoration: none;
  font-size: 1rem;
  position: relative;
  z-index: 100;
}

.social-link:hover {
  transform: scale(1.15);
  color: white;
}

.social-link.facebook {
  background: #1877f2;
}

.social-link.twitter {
  background: #000000;
}

.social-link.instagram {
  background: linear-gradient(
    45deg,
    #f09433 0%,
    #e6683c 25%,
    #dc2743 50%,
    #cc2366 75%,
    #bc1888 100%
  );
}

.social-link.youtube {
  background: #ff0000;
}

.social-link.tiktok {
  background: linear-gradient(45deg, #25f4ee 0%, #000000 50%, #fe2c55 100%);
}

.btn-view-profile {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: white;
  color: #000;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.875rem;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.btn-view-profile:hover {
  background: #f0f0f0;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
  color: #000;
}

/* Candidate Card Buttons Row */
.candidate-buttons-row {
  width: 100%;
  display: flex;
  gap: 0.5rem;
  padding-top: 0.5rem;
}

.candidate-buttons-row .btn-whatsapp-share {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.6rem 0.5rem;
  font-size: 0.75rem;
  border-radius: 20px;
}

.candidate-buttons-row .btn-whatsapp-share i {
  font-size: 0.95rem;
}

.candidate-buttons-row .btn-view-profile {
  flex: 1;
  padding: 0.6rem 0.5rem;
  font-size: 0.75rem;
  border-radius: 20px;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: #001560;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, var(--mira-blue), var(--mira-light-blue));
  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(135deg, var(--mira-light-blue), var(--mira-blue));
}

/* Countdown Timer */
#countdown-timer {
  position: fixed;
  top: 20px;
  left: 20px;
  background: #00289f;
  color: white;
  padding: 15px 20px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  z-index: 9999;
  font-family: "Poppins", sans-serif;
  border: 2px solid rgba(255, 255, 255, 0.2);
}

#countdown-timer > div:first-child {
  text-align: center;
  margin-bottom: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.countdown-numbers {
  display: flex;
  gap: 12px;
  align-items: center;
}

.countdown-unit {
  text-align: center;
}

.countdown-value {
  font-size: 1.8rem;
  font-weight: 700;
  line-height: 1;
}

.countdown-label {
  font-size: 0.65rem;
  margin-top: 2px;
  opacity: 0.9;
}

.countdown-separator {
  font-size: 1.5rem;
  font-weight: 700;
  opacity: 0.7;
}

/* Floating Action Button (Mobile) */
#countdown-fab {
  display: none;
  position: fixed;
  top: 20px;
  left: 20px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, #fbba00 0%, #ffd700 100%);
  border: none;
  box-shadow: 0 4px 20px rgba(251, 186, 0, 0.5);
  cursor: pointer;
  z-index: 9998;
  transition: all 0.3s ease;
  align-items: center;
  justify-content: center;
}

#countdown-fab i {
  font-size: 1.5rem;
  color: #000;
}

#countdown-fab:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 30px rgba(251, 186, 0, 0.7);
}

#countdown-fab:active {
  transform: scale(0.95);
}

/* Modal Overlay */
#countdown-modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  z-index: 9997;
  backdrop-filter: blur(5px);
}

/* Modal Countdown */
#countdown-modal {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #00289f;
  color: white;
  padding: 30px 25px;
  border-radius: 20px;
  box-shadow: 0 10px 50px rgba(0, 0, 0, 0.5);
  z-index: 9999;
  font-family: "Poppins", sans-serif;
  border: 2px solid rgba(255, 255, 255, 0.3);
  max-width: 90%;
  animation: modalFadeIn 0.3s ease;
}

#countdown-modal .close-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: white;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1rem;
  transition: all 0.3s ease;
}

#countdown-modal .modal-title {
  text-align: center;
  margin-bottom: 15px;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.5px;
}

#countdown-modal .countdown-numbers-modal {
  display: flex;
  gap: 15px;
  align-items: center;
  justify-content: center;
}

#countdown-modal .countdown-value-modal {
  font-size: 2.2rem;
  font-weight: 700;
  line-height: 1;
}

#countdown-modal .countdown-label-modal {
  font-size: 0.7rem;
  margin-top: 4px;
  opacity: 0.9;
}

#countdown-modal .countdown-separator-modal {
  font-size: 1.8rem;
  font-weight: 700;
  opacity: 0.7;
}

@keyframes modalFadeIn {
  from {
    opacity: 0;
    transform: translate(-50%, -60%);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%);
  }
}

/* Filter Container */
.filter-container {
  max-width: 600px;
  margin: 2rem auto 0;
}

#filter-count {
  margin-top: 1rem;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
  font-weight: 500;
  text-align: center;
}

/* Clear Filter Button */
#clear-filter {
  display: none;
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.3);
  border: none;
  color: white;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
}

#clear-filter:hover {
  background: rgba(255, 255, 255, 0.5);
  transform: translateY(-50%) scale(1.1);
}

/* Footer */
.footer {
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 2rem 0;
  margin-top: 4rem;
  position: relative;
  z-index: 10;
}

.footer .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.footer p {
  color: rgba(255, 255, 255, 0.8);
  text-align: center;
  margin: 0;
  font-size: 0.95rem;
  font-weight: 500;
}

@media (max-width: 768px) {
  .footer {
    padding: 1.5rem 0;
    margin-top: 3rem;
  }

  .footer p {
    font-size: 0.85rem;
  }

  /* Ajustes de tarjetas de candidatos en tablet/mobile */
  .candidate-card {
    height: 550px;
  }

  .candidate-name-wrapper {
    bottom: 40%;
    right: -3px;
  }

  .candidate-name-image {
    max-width: 120px;
  }

  .candidate-social {
    gap: 0.6rem;
  }

  .social-link {
    width: 32px;
    height: 32px;
    font-size: 0.9rem;
  }
}

@media (max-width: 576px) {
  /* Ajustes de tarjetas de candidatos en móvil */
  .candidate-card {
    height: 500px;
  }

  .candidate-name-wrapper {
    bottom: 50%;
    right: 0;
  }

  .candidate-name-image {
    max-width: 100px;
  }

  .candidate-social {
    gap: 0.4rem;
  }

  .social-link {
    width: 28px;
    height: 28px;
    font-size: 0.8rem;
  }
}

/* Geolocation Modal */
.geo-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 40, 159, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

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

.geo-modal {
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.15) 0%,
    rgba(255, 255, 255, 0.1) 100%
  );
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 24px;
  padding: 2.5rem;
  max-width: 500px;
  width: 90%;
  margin: 1rem;
  position: relative;
  transform: translateY(20px);
  transition: transform 0.3s ease;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.geo-modal-overlay.active .geo-modal {
  transform: translateY(0);
}

.geo-modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: white;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  z-index: 10;
}

.geo-modal-close:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: rotate(90deg);
}

.geo-modal-content {
  text-align: center;
}

.geo-modal-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
  background: linear-gradient(135deg, #fbba00 0%, #ffd700 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(251, 186, 0, 0.4);
  animation: pulse 2s ease-in-out infinite;
}

.geo-modal-icon i {
  font-size: 2rem;
  color: #000;
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
    box-shadow: 0 8px 24px rgba(251, 186, 0, 0.4);
  }
  50% {
    transform: scale(1.05);
    box-shadow: 0 12px 32px rgba(251, 186, 0, 0.6);
  }
}

.geo-modal-title {
  color: white;
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 1rem;
  line-height: 1.3;
  font-family: "Poppins", sans-serif;
}

.geo-modal-title span {
  color: #fbba00;
  display: block;
  margin-top: 0.5rem;
}

.geo-modal-description {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 2rem;
}

.geo-modal-description strong {
  color: white;
  font-weight: 600;
}

.geo-modal-actions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 2rem;
}

.btn-view-candidates {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  background: linear-gradient(135deg, #fbba00 0%, #ffd700 100%);
  color: #000;
  border: none;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 16px rgba(251, 186, 0, 0.4);
  font-family: "Poppins", sans-serif;
}

.btn-view-candidates:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(251, 186, 0, 0.6);
  color: #000;
}

.btn-maybe-later {
  padding: 0.875rem 2rem;
  background: rgba(255, 255, 255, 0.1);
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: "Poppins", sans-serif;
}

.btn-maybe-later:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.5);
}

@media (max-width: 576px) {
  .geo-modal {
    padding: 2rem 1.5rem;
  }

  .geo-modal-title {
    font-size: 1.4rem;
  }

  .geo-modal-icon {
    width: 70px;
    height: 70px;
  }

  .geo-modal-icon i {
    font-size: 1.75rem;
  }

  .btn-view-candidates {
    padding: 0.875rem 1.5rem;
    font-size: 0.95rem;
  }

  .btn-maybe-later {
    padding: 0.75rem 1.5rem;
    font-size: 0.875rem;
  }
}
