* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #f8f9fa;
}

.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  overflow-y: auto;
  z-index: 1000;
}

.sidebar::-webkit-scrollbar {
  width: 6px;
}

.sidebar::-webkit-scrollbar-thumb {
  background-color: rgba(255, 255, 255, 0.3);
  border-radius: 3px;
}

.nav-link {
  padding: 12px 20px;
  border-radius: 8px;
  margin-bottom: 5px;
  transition: all 0.3s ease;
}

.nav-link:hover {
  background-color: rgba(255, 255, 255, 0.1) !important;
  transform: translateX(5px);
}

.nav-link.active {
  background-color: rgba(255, 255, 255, 0.2) !important;
  font-weight: 600;
}

.card {
  border-radius: 12px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1) !important;
}

.btn {
  border-radius: 8px;
  padding: 10px 20px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.table {
  border-radius: 8px;
  overflow: hidden;
}

.table thead th {
  background-color: #f8f9fa;
  border-bottom: 2px solid #dee2e6;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.5px;
}

.badge {
  padding: 6px 12px;
  font-weight: 500;
  border-radius: 6px;
}

.alert {
  border-radius: 10px;
  border: none;
}

.form-control, .form-select {
  border-radius: 8px;
  border: 1px solid #dee2e6;
  padding: 10px 15px;
}

.form-control:focus, .form-select:focus {
  border-color: #667eea;
  box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

.bg-gradient {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* Services page purple theme enhancements */
.services-filter-card {
  background: #fff;
  padding: 18px 22px;
  border-radius: 14px;
  box-shadow: 0 12px 40px rgba(111,45,189,0.08);
  display: flex;
  gap: 18px;
  align-items: center;
}

/* Improved visuals for the filters area */
.services-filter-card {
  border: 1px solid rgba(111,45,189,0.06);
  background: linear-gradient(180deg, #ffffff, #fbf8ff);
  padding: 14px 18px;
  gap: 16px;
}
.services-filter-card .form-label.small {
  color: #6f2dbd;
  font-weight: 600;
  font-size: 0.78rem;
}
.services-filter-card .form-control,
.services-filter-card .form-select {
  min-width: 220px;
  max-width: 420px;
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid rgba(111,45,189,0.12);
}
.services-filter-card .form-control:focus,
.services-filter-card .form-select:focus {
  border-color: #49a6a6;
  box-shadow: 0 4px 14px rgba(73,166,166,0.08);
}
.services-filter-actions {
  display:flex; align-items:flex-end; gap:8px;
}
.services-filter-actions .btn {
  border-radius: 8px;
  padding: 8px 12px;
}

/* Ordenar button variant: green */
.btn-order-green {
  background: linear-gradient(90deg,#28a745 0%, #198754 100%);
  color: #fff;
  border: none;
  box-shadow: 0 8px 18px rgba(25,135,84,0.12);
}
.btn-order-green:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(25,135,84,0.14);
}

/* Small responsive tweaks for the filter area */
@media (max-width: 900px) {
  .services-filter-card { flex-direction: column; align-items: stretch; }
  .services-filter-card .form-control, .services-filter-card .form-select { width: 100% !important; }
  .services-filter-actions { justify-content: flex-end; }
}

.services-card {
  border-radius: 14px;
  overflow: visible;
}

/* Platform card styling to match reference: purple accent, rounded container */
.platform-card {
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 22px;
  border: 1px solid rgba(111,45,189,0.06);
  box-shadow: 0 14px 40px rgba(111,45,189,0.04);
}
.platform-card .platform-card-inner {
  display: block;
  padding: 12px 18px 18px 18px;
  background: linear-gradient(180deg,#fff,#fbf6ff);
}
.platform-card .platform-title {
  display: flex; align-items:center; gap:12px;
  padding: 10px 16px;
  border-left: 6px solid #6f2dbd;
  background: transparent;
  margin: 0 12px 8px 12px;
  border-radius: 10px;
}
.platform-card .platform-title h5 {
  margin: 0; color:#6f2dbd; font-weight:800; font-size:1.05rem;
}
.platform-card .table thead th {
  background: linear-gradient(180deg,#fbf0ff,#f7f2ff);
  color: #5a2d86;
  border-bottom: none;
}
.platform-card .btn-buy {
  background: linear-gradient(90deg,#7a3bd9 0%, #5a2d86 100%);
  color: #fff; border: none; padding: 6px 12px; border-radius: 8px;
}
.platform-card .btn-desc {
  background: rgba(111,45,189,0.06); color:#5a2d86; border: none; padding: 6px 10px; border-radius: 8px;
}

.services-table thead th {
  background: linear-gradient(180deg,#f6eaff,#f3ecff);
  color: #5a2d86;
  border-bottom: none;
  text-transform: uppercase;
  font-weight: 700;
}

.services-table tbody tr:hover {
  background: rgba(111,45,189,0.03);
}

.services-price {
  color: #6f2dbd;
  font-weight: 700;
}

.btn-purple {
  background: linear-gradient(90deg,#7a3bd9 0%, #5a2d86 100%);
  color: #fff;
  border: none;
  box-shadow: 0 8px 20px rgba(111,45,189,0.12);
}

.btn-purple:active, .btn-purple:focus {
  box-shadow: 0 6px 16px rgba(111,45,189,0.18);
  transform: translateY(-1px);
}

.chip-category {
  background: rgba(111,45,189,0.06);
  color: #5a2d86;
  padding: 6px 10px;
  border-radius: 8px;
  font-weight: 600;
}

.content {
  min-height: 100vh;
}

@media (max-width: 768px) {
  .sidebar {
    width: 200px !important;
  }
  
  .content {
    margin-left: 200px !important;
    width: calc(100% - 200px) !important;
  }
}

.list-group-item {
  border: none;
  border-radius: 8px !important;
  margin-bottom: 5px;
  transition: all 0.3s ease;
}

.list-group-item:hover {
  background-color: #f8f9fa;
  transform: translateX(5px);
}

.accordion-button {
  border-radius: 8px !important;
  font-weight: 500;
}

.accordion-button:not(.collapsed) {
  background-color: #667eea;
  color: white;
}

.accordion-item {
  border-radius: 8px !important;
  overflow: hidden;
}

/* Animaciones */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.card, .alert {
  animation: fadeIn 0.5s ease;
}

/* Loading spinner */
.spinner-border {
  width: 3rem;
  height: 3rem;
}
.input-group .btn {
  border-color: #ced4da;
  background-color: #f8f9fa;
}

.input-group .btn:hover {
  background-color: #e9ecef;
}

.input-group .btn i {
  color: #6c757d;
}
/* ===================================
   SELECT DE PAÍSES CON BANDERAS
   =================================== */
.custom-select-flags {
  font-size: 16px !important;
  padding: 12px 15px !important;
  height: auto !important;
  line-height: 1.5;
  background-color: #fff;
  border: 1px solid #ced4da;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.custom-select-flags:focus {
  border-color: #667eea;
  box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

.custom-select-flags option {
  padding: 12px 8px;
  font-size: 16px;
  line-height: 1.8;
  background-color: #fff;
  color: #212529;
}

/* Asegurar que los emojis funcionen en todos los navegadores */
.custom-select-flags,
.custom-select-flags option {
  font-family: 
    'Segoe UI Emoji',
    'Noto Color Emoji', 
    'Apple Color Emoji',
    -apple-system, 
    BlinkMacSystemFont, 
    'Segoe UI', 
    Roboto, 
    Arial, 
    sans-serif;
}

/* Fix para Firefox */
@-moz-document url-prefix() {
  .custom-select-flags option {
    padding: 10px 5px;
  }
}

/* Fix para Safari */
@supports (-webkit-appearance: none) {
  .custom-select-flags option {
    padding: 10px;
  }
}

/* Móviles */
@media (max-width: 768px) {
  .custom-select-flags {
    font-size: 14px !important;
  }
  
  .custom-select-flags option {
    font-size: 14px;
    padding: 10px 5px;
  }
}

/* Nueva Orden Page Enhancements */
.form-select-lg, .form-control-lg {
  border-radius: 12px;
  border: 1px solid #dee2e6;
  padding: 12px 16px;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.form-select-lg:focus, .form-control-lg:focus {
  border-color: #667eea;
  box-shadow: 0 0 0 0.3rem rgba(102, 126, 234, 0.15);
}

.rounded-3 {
  border-radius: 12px !important;
}

.rounded-2 {
  border-radius: 10px !important;
}

@media (max-width: 768px) {
  .col-lg-3, .col-lg-9 {
    flex: 0 0 100% !important;
  }
}