/* ===== COUNTRIES MODAL COMPONENT ===== */
/* Modal súper estiloso con efectos PRO para países */

/* Modal Overlay */
.countries-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(15px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

.countries-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
  background: radial-gradient(circle at center,
      rgba(0, 0, 161, 0.1) 0%,
      rgba(42, 208, 208, 0.05) 30%,
      rgba(0, 0, 0, 0.8) 100%);
}

/* Modal Content */
.countries-modal-content {
  position: relative;
  width: 95%;
  max-width: 1200px;
  max-height: 95vh;
  background: linear-gradient(145deg,
      rgba(0, 0, 161, 0.15),
      rgba(42, 208, 208, 0.08),
      rgba(19, 95, 148, 0.12));
  border: 3px solid;
  border-image: linear-gradient(45deg,
      #2AD0D0 0%,
      #0000A1 50%,
      #135F94 100%) 1;
  border-radius: 25px;
  overflow: hidden;
  backdrop-filter: blur(25px);
  box-shadow:
    0 30px 60px rgba(0, 0, 161, 0.4),
    0 15px 30px rgba(42, 208, 208, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transform: scale(0.8) translateY(50px);
  transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.countries-modal.active .countries-modal-content {
  transform: scale(1) translateY(0);
}

/* Modal Header */
.countries-modal-header {
  padding: 30px 40px 25px;
  background: linear-gradient(135deg,
      rgba(0, 0, 161, 0.2),
      rgba(42, 208, 208, 0.1));
  border-bottom: 2px solid rgba(42, 208, 208, 0.2);
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}

.countries-modal-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg,
      transparent 0%,
      #2AD0D0 50%,
      transparent 100%);
}

.countries-title {
  font-family: 'Orbitron', monospace;
  font-size: 28px;
  font-weight: 900;
  color: #2AD0D0;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 15px;
  text-transform: uppercase;
  letter-spacing: 2px;
  text-shadow: 0 0 20px rgba(42, 208, 208, 0.6);
}

.globe-icon {
  font-size: 35px;
  animation: globeRotate 4s linear infinite;
  filter: drop-shadow(0 0 15px rgba(42, 208, 208, 0.8));
}

@keyframes globeRotate {
  0% {
    transform: rotateY(0deg);
  }

  100% {
    transform: rotateY(360deg);
  }
}

.countries-subtitle {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 400;
  font-family: 'Rajdhani', sans-serif;
  margin-left: 10px;
  display: block;
  margin-top: 5px;
}

.countries-close-btn {
  background: linear-gradient(145deg, #0000A1, #135F94);
  border: 2px solid rgba(42, 208, 208, 0.3);
  color: #2AD0D0;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(0, 0, 161, 0.4);
}

.countries-close-btn:hover {
  background: linear-gradient(145deg, #135F94, #2AD0D0);
  color: #000;
  transform: rotate(180deg) scale(1.1);
  box-shadow: 0 8px 25px rgba(42, 208, 208, 0.6);
}

/* Countries Grid */
.countries-grid {
  padding: 40px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
  align-items: stretch;
}

/* Country Cards */
.country-card {
  position: relative;
  background: linear-gradient(145deg,
      rgba(0, 0, 161, 0.1),
      rgba(42, 208, 208, 0.05));
  border: 2px solid rgba(42, 208, 208, 0.2);
  border-radius: 20px;
  padding: 30px 25px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  backdrop-filter: blur(10px);
  transform: translateY(20px);
  opacity: 0;
}

.countries-modal.active .country-card {
  animation: countrySlideUp 0.8s ease-out forwards;
}

.countries-modal.active .country-card:nth-child(1) {
  animation-delay: 0.1s;
}

.countries-modal.active .country-card:nth-child(2) {
  animation-delay: 0.2s;
}

.countries-modal.active .country-card:nth-child(3) {
  animation-delay: 0.3s;
}

@keyframes countrySlideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.country-card:hover {
  transform: translateY(-10px);
  border-color: rgba(42, 208, 208, 0.5);
  box-shadow:
    0 20px 40px rgba(0, 0, 161, 0.3),
    0 10px 20px rgba(42, 208, 208, 0.2);
}

.country-glow {
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle,
      rgba(42, 208, 208, 0.1) 0%,
      transparent 70%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.country-card:hover .country-glow {
  opacity: 1;
}

/* Country Flags */
.country-flag {
  width: 80px;
  height: 55px;
  margin: 0 auto 20px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  position: relative;
}

.flag-mexico {
  height: 100%;
  display: flex;
}

.flag-mexico .flag-stripe {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.flag-mexico .green {
  background: #006847;
}

.flag-mexico .white {
  background: #FFFFFF;
}

.flag-mexico .red {
  background: #CE1126;
}

.flag-emblem {
  font-size: 18px;
}

.flag-guatemala {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.flag-guatemala .flag-stripe {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.flag-guatemala .blue {
  background: #4997D0;
}

.flag-guatemala .white {
  background: #FFFFFF;
}

.flag-colombia {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.flag-colombia .yellow {
  flex: 2;
  background: #FDE047;
}

.flag-colombia .blue {
  flex: 1;
  background: #3B82F6;
}

.flag-colombia .red {
  flex: 1;
  background: #DC2626;
}

/* Country Info */
.country-info {
  text-align: center;
}

.country-name {
  font-family: 'Orbitron', monospace;
  font-size: 22px;
  font-weight: 700;
  color: #2AD0D0;
  margin: 0 0 15px;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-shadow: 0 0 10px rgba(42, 208, 208, 0.5);
}

.country-description {
  color: rgba(255, 255, 255, 0.8);
  font-size: 14px;
  line-height: 1.5;
  margin: 0 0 20px;
  font-family: 'Rajdhani', sans-serif;
}

/* Country Stats */
.country-stats {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 20px 0;
}

.country-stat {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 15px;
  background: rgba(0, 0, 161, 0.1);
  border-radius: 25px;
  border: 1px solid rgba(42, 208, 208, 0.2);
  transition: all 0.3s ease;
}

.country-stat:hover {
  background: rgba(42, 208, 208, 0.1);
  border-color: rgba(42, 208, 208, 0.4);
  transform: translateX(10px);
}

.stat-icon {
  font-size: 16px;
  width: 20px;
  text-align: center;
}

.stat-text {
  color: rgba(255, 255, 255, 0.9);
  font-size: 13px;
  font-weight: 500;
  font-family: 'Rajdhani', sans-serif;
}

/* Country Specialties */
.country-specialties {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-top: 20px;
}

.specialty-badge {
  background: linear-gradient(135deg, #0000A1, #135F94);
  color: #2AD0D0;
  padding: 6px 12px;
  border-radius: 15px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border: 1px solid rgba(42, 208, 208, 0.3);
  transition: all 0.3s ease;
  font-family: 'Rajdhani', sans-serif;
}

.specialty-badge:hover {
  background: linear-gradient(135deg, #2AD0D0, #135F94);
  color: #000;
  transform: scale(1.05);
}

/* Countries Footer */
.countries-footer {
  padding: 30px 40px;
  background: linear-gradient(135deg,
      rgba(0, 0, 161, 0.15),
      rgba(42, 208, 208, 0.08));
  border-top: 2px solid rgba(42, 208, 208, 0.2);
}

.global-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  max-width: 800px;
  margin: 0 auto;
}

.global-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 20px;
  background: rgba(0, 0, 161, 0.1);
  border-radius: 15px;
  border: 1px solid rgba(42, 208, 208, 0.2);
  transition: all 0.3s ease;
  cursor: pointer;
}

.global-stat:hover {
  background: rgba(42, 208, 208, 0.1);
  border-color: rgba(42, 208, 208, 0.4);
  transform: translateY(-5px);
}

.global-stat-icon {
  font-size: 24px;
  margin-bottom: 5px;
}

.global-stat-number {
  font-family: 'Orbitron', monospace;
  font-size: 24px;
  font-weight: 900;
  color: #2AD0D0;
  text-shadow: 0 0 10px rgba(42, 208, 208, 0.5);
}

.global-stat-label {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.7);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 600;
}

/* Responsive Design */
@media (max-width: 768px) {
  .countries-modal-content {
    width: 95%;
    max-height: 95vh;
  }

  .countries-modal-header {
    padding: 20px 25px;
  }

  .countries-title {
    font-size: 22px;
  }

  .countries-grid {
    padding: 25px;
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .country-card {
    padding: 25px 20px;
  }

  .global-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }
}

@media (max-width: 480px) {
  .countries-modal-header {
    padding: 15px 20px;
    flex-direction: column;
    gap: 15px;
    text-align: center;
  }

  .countries-title {
    font-size: 18px;
    flex-direction: column;
    gap: 5px;
  }

  .countries-grid {
    padding: 20px;
  }

  .global-stats {
    grid-template-columns: 1fr;
  }
}

/* Efectos especiales */
@keyframes pulseGlow {

  0%,
  100% {
    box-shadow: 0 0 20px rgba(42, 208, 208, 0.3);
  }

  50% {
    box-shadow: 0 0 40px rgba(42, 208, 208, 0.6);
  }
}

.country-card:nth-child(1) {
  animation: pulseGlow 3s ease-in-out infinite;
}

.country-card:nth-child(2) {
  animation: pulseGlow 3s ease-in-out infinite;
  animation-delay: 1s;
}

.country-card:nth-child(3) {
  animation: pulseGlow 3s ease-in-out infinite;
  animation-delay: 2s;
}

/* ===== NOTIFICACIONES DE PAÍSES ===== */
.country-notification {
  position: fixed;
  top: 20px;
  right: 20px;
  background: linear-gradient(145deg,
      rgba(0, 0, 161, 0.95),
      rgba(42, 208, 208, 0.1),
      rgba(19, 95, 148, 0.9));
  border: 2px solid rgba(42, 208, 208, 0.4);
  border-radius: 15px;
  padding: 0;
  min-width: 350px;
  max-width: 400px;
  box-shadow:
    0 15px 35px rgba(0, 0, 161, 0.4),
    0 5px 15px rgba(42, 208, 208, 0.3);
  z-index: 10003;
  backdrop-filter: blur(15px);
  overflow: hidden;
}

.notification-header {
  background: linear-gradient(135deg, #0000A1, #135F94);
  padding: 15px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(42, 208, 208, 0.3);
}

.notification-header h3 {
  color: #2AD0D0;
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  font-family: 'Orbitron', monospace;
  text-shadow: 0 0 10px rgba(42, 208, 208, 0.5);
}

.notification-close {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(42, 208, 208, 0.3);
  color: #2AD0D0;
  width: 25px;
  height: 25px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.notification-close:hover {
  background: rgba(42, 208, 208, 0.2);
  transform: rotate(90deg);
}

.notification-body {
  padding: 20px;
  color: rgba(255, 255, 255, 0.9);
  font-family: 'Rajdhani', sans-serif;
}

.notification-body p {
  margin: 0 0 12px 0;
  font-size: 14px;
  line-height: 1.4;
}

.notification-body strong {
  color: #2AD0D0;
}

.tech-stack {
  margin-top: 15px;
  padding-top: 15px;
  border-top: 1px solid rgba(42, 208, 208, 0.2);
}

.tech-badge {
  display: inline-block;
  background: linear-gradient(135deg, #135F94, #2AD0D0);
  color: #000;
  padding: 4px 8px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 600;
  margin: 2px 4px 2px 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Efectos especiales para sparkles */
.sparkle-effect {
  animation: sparkleFloat 1s ease-out forwards;
}

@keyframes sparkleFloat {
  0% {
    opacity: 0;
    transform: scale(0.5) rotate(0deg);
  }

  50% {
    opacity: 1;
    transform: scale(1.5) rotate(180deg);
  }

  100% {
    opacity: 0;
    transform: scale(0.5) rotate(360deg) translateY(-50px);
  }
}

/* ===== RESPONSIVE DESIGN FOR MOBILE ===== */
@media (max-width: 600px) {
  .countries-modal-content {
    width: 100vw;
    max-width: 100vw;
    min-width: 0;
    max-height: 100vh;
    border-radius: 0;
    padding: 0 0;
    box-shadow: none;
    overflow-y: auto;
  }

  .countries-modal-header {
    padding: 18px 16px 14px;
    flex-direction: column;
    gap: 8px;
  }

  .countries-title {
    font-size: 18px;
    gap: 8px;
    letter-spacing: 1px;
    text-shadow: none;
  }

  .globe-icon {
    font-size: 22px;
  }

  .countries-close-btn {
    width: 32px;
    height: 32px;
    font-size: 18px;
    box-shadow: none;
  }

  .countries-grid {
    padding: 16px;
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .country-card {
    padding: 16px 10px;
    border-radius: 12px;
    font-size: 14px;
  }

  .country-card:hover {
    transform: none;
    box-shadow: none;
    border-color: rgba(42, 208, 208, 0.3);
  }

  .country-glow {
    display: none;
  }

  .countries-subtitle {
    font-size: 12px;
    margin-left: 0;
    margin-top: 2px;
  }
}