/* Estilo personalizado para la réplica de GSM Theme - Asivinounlock.com */
/* Premium Dark Blue & Purple Palette (Modo Oscuro) */

:root {
  --bs-primary: #8b5cf6; --bs-primary-rgb: 139, 92, 246; --bs-primary-hover: #a78bfa; --bs-primary-glass-bg: rgba(255,255,255,0.08); --bs-primary-glass-border: rgba(255,255,255,0.15);
  --tl: #0b0f19; --ink: #f1f5f9; --sub: #94a3b8; --dim: #64748b; --rule: #1e293b; --off: #1e293b; --w: #111827; --muted: #64748b; --border: #374151; --white: #111827;
  /* Frontend theme variables (overridable via admin) */
  --site-primary: #8b5cf6; --site-primary-rgb: 139, 92, 246; --site-accent: #c084fc; --site-accent-rgb: 192, 132, 252;
  --site-bg: #0b0f19; --site-text: #f1f5f9;
  --site-btn-bg: linear-gradient(135deg, #8b5cf6, #6d28d9); --site-btn-color: #ffffff;
  --site-card-bg: rgba(20, 20, 22, 0.95); --site-border: rgba(139, 92, 246, 0.15); --site-neon: #8b5cf6;
}

body {
  font-family: 'DM Sans', sans-serif;
  background-color: var(--tl);
  color: var(--ink);
  overflow-x: hidden;
}

/* LOADER */
#gsmtheme-loader {
  background-color: var(--tl);
  z-index: 99999;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

/* HEADER STYLE - PREMIUM 16K */
.gsm-header {
  background: rgba(11, 15, 25, 0.92);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  color: white;
  border-bottom: 1px solid rgba(139, 92, 246, 0.2);
  box-shadow: 0 1px 30px rgba(0, 0, 0, 0.4), inset 0 -1px 0 rgba(255,255,255,0.05);
  height: 66px;
  position: sticky;
  top: 0;
  z-index: 1000;
}

/* LOGO 3D NEON */
.logo-3d {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex-shrink: 0;
  margin-right: 12px;
  perspective: 400px;
}

.logo-3d-icon {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, #f59e0b 0%, #ef4444 50%, #ec4899 100%);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 900;
  color: #fff;
  position: relative;
  box-shadow:
    0 0 12px rgba(245, 158, 11, 0.6),
    0 0 25px rgba(239, 68, 68, 0.4),
    0 0 40px rgba(236, 72, 153, 0.25),
    0 4px 15px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255,255,255,0.3);
  border: 2px solid rgba(245, 158, 11, 0.7);
  text-shadow: 0 0 10px rgba(255,255,255,0.8);
  animation: iconPulse 2.5s ease-in-out infinite;
}

@keyframes iconPulse {
  0%, 100% { box-shadow: 0 0 12px rgba(245,158,11,0.6), 0 0 25px rgba(239,68,68,0.4), 0 0 40px rgba(236,72,153,0.25), 0 4px 15px rgba(0,0,0,0.4); }
  50% { box-shadow: 0 0 20px rgba(245,158,11,0.8), 0 0 35px rgba(239,68,68,0.5), 0 0 55px rgba(236,72,153,0.35), 0 4px 20px rgba(0,0,0,0.5); }
}

.logo-3d-text {
  font-family: 'Outfit', 'DM Sans', sans-serif;
  font-size: 26px;
  font-weight: 900;
  letter-spacing: -0.5px;
  display: flex;
  flex-direction: column;
  line-height: 1.05;
  transform: rotateX(2deg);
  transform-style: preserve-3d;
}

.logo-3d-main {
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 20%, #ef4444 45%, #ec4899 65%, #8b5cf6 85%, #06b6d4 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 10px rgba(245, 158, 11, 0.5)) drop-shadow(0 0 20px rgba(236, 72, 153, 0.3)) drop-shadow(0 2px 4px rgba(0,0,0,0.6));
  position: relative;
  text-shadow: none;
  font-size: 28px;
}

.logo-3d-sub {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  background: linear-gradient(90deg, #fbbf24, #ec4899, #8b5cf6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  opacity: 0.7;
}

.gsm-theme-header {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  height: 100%;
  padding: 0 20px;
  gap: 16px;
}

.nav-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
  margin-right: 8px;
}

.logo {
  max-height: 36px;
  width: auto;
}

.nav-container {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  position: relative;
  height: 100%;
}

.nav-scroll-wrap {
  flex: 1;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
  height: 100%;
  display: flex;
  align-items: center;
}

.nav-scroll-wrap::-webkit-scrollbar {
  display: none;
}

.nav-links {
  display: flex;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
  height: 100%;
  gap: 2px;
}

.nav-links > li {
  position: relative;
  height: 100%;
}

.nav-links > li > a {
  display: flex;
  align-items: center;
  gap: 4px;
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.65);
  padding: 0 14px;
  height: 100%;
  border-bottom: 2px solid transparent;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
  letter-spacing: 0.2px;
}

.nav-links > li > a:hover,
.nav-links > li.active > a {
  color: #ffffff;
  border-bottom-color: var(--bs-primary);
  background: linear-gradient(180deg, rgba(139,92,246,0.08) 0%, transparent 100%);
}

/* MARQUEE ANIMATION */
@keyframes marqueeScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-33.33%); }
}

.chevron {
  width: 14px;
  height: 14px;
  transition: transform 0.2s;
}

.nav-links > li:hover .chevron {
  transform: rotate(180deg);
}

/* DROP-DOWN MENU */
.gsm-dropdown {
  position: absolute;
  top: 100%;
  background: var(--w);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  display: none;
  min-width: 200px;
  z-index: 1100;
}

.nav-links > li:hover .gsm-dropdown {
  display: block;
  animation: fadeInDown 0.2s forwards;
}

.gsm-dropdown a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  border-radius: 6px;
  transition: all 0.15s ease;
}

.gsm-dropdown a:hover {
  background-color: rgba(139, 92, 246, 0.15);
  color: var(--bs-primary-hover);
}

/* CURRENCY AND AUTH BUTTONS */
.currency-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  height: 34px;
  padding: 0 10px;
  font-weight: 500;
  font-size: 12px;
  color: rgba(255,255,255,0.7);
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08) !important;
  transition: all 0.25s cubic-bezier(0.4,0,0.2,1);
  border-radius: 8px;
}

.currency-btn:hover {
  background: rgba(255,255,255,0.12);
  color: white;
  border-color: rgba(139,92,246,0.3) !important;
}

.login-btn {
  height: 34px;
  font-size: 12px;
  font-weight: 500;
  color: rgba(255,255,255,0.7) !important;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08) !important;
  border-radius: 8px !important;
  transition: all 0.25s cubic-bezier(0.4,0,0.2,1) !important;
}

.login-btn:hover {
  background: rgba(255,255,255,0.12) !important;
  color: white !important;
  border-color: rgba(139,92,246,0.3) !important;
}

.currency-dropdown {
  background-color: var(--w) !important;
  border: 1px solid var(--border) !important;
}

.currency-dropdown .dropdown-item {
  font-weight: 500;
  color: var(--ink) !important;
  transition: all 0.15s;
}

.currency-dropdown .dropdown-item:hover {
  background-color: rgba(139, 92, 246, 0.15);
  color: var(--bs-primary-hover) !important;
}

.login-btn {
  background: var(--bs-primary-glass-bg);
  border: 1px solid var(--bs-primary-glass-border) !important;
  font-weight: 600;
  color: white !important;
  height: 40px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s;
  border-radius: 6px;
}

.login-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}

.customer-auth-btn {
  border-right: 1px solid rgba(255, 255, 255, 0.4);
  height: 14px;
  margin: 0 4px;
}

/* PROFILE DROPDOWN */
.user-profile-btn {
  background: var(--bs-primary-glass-bg);
  border: 1px solid var(--bs-primary-glass-border) !important;
  color: white;
  font-weight: 600;
  border-radius: 6px;
  padding: 6px 14px;
}

.user-profile-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  color: white;
}

.customer-auth-menu {
  background-color: var(--w) !important;
  border: 1px solid var(--border) !important;
}

.customer-auth-menu .dropdown-item {
  color: var(--ink) !important;
}

.customer-auth-menu .dropdown-item:hover {
  background-color: rgba(139, 92, 246, 0.15) !important;
  color: white !important;
}

/* CARDS */
.card {
  background-color: var(--w) !important;
  border: 1px solid var(--border) !important;
}

.heighlight-card {
  background: var(--w);
  border: 1px solid var(--border);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
  height: 100%;
}

.heighlight-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.3);
}

.heighlight-img {
  width: 100%;
  overflow: hidden;
  position: relative;
}

.heighlight-img img {
  width: 100%;
  height: auto;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.heighlight-card:hover .heighlight-img img {
  transform: scale(1.03);
}

.list-group-item {
  background-color: var(--w) !important;
  color: var(--ink) !important;
  border-color: var(--border) !important;
  transition: background-color 0.2s;
}

.list-group-item:hover {
  background-color: var(--off) !important;
}

/* BADGES */
.bg-light-primary {
  background-color: rgba(139, 92, 246, 0.15);
  color: var(--bs-primary-hover);
  font-weight: 700;
}

.bg-light-warning {
  background-color: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  font-weight: 600;
}

/* HERO SECTION / CAROUSEL */
.hero-slider {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

/* FOOTER */
.top-footer {
  background-color: #05070a;
  border-bottom: 1px solid #111827;
  padding: 30px 0;
}

.top-footer-content {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 15px;
}

.top-footer-title {
  font-size: 13px;
  letter-spacing: 0.5px;
}

.footer {
  background-color: #020305;
  color: #94a3b8;
  padding: 50px 0 20px 0;
}

.footer-main {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 15px;
}

.foot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
  margin-bottom: 40px;
}

.col-title {
  color: #ffffff;
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 20px;
  position: relative;
}

.col-title::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 30px;
  height: 2px;
  background-color: var(--bs-primary);
}

.col-link {
  color: #94a3b8;
  text-decoration: none;
  transition: all 0.2s;
  font-size: 14px;
}

.col-link:hover {
  color: #ffffff;
  padding-left: 4px;
}

.ct {
  display: flex;
  flex-direction: column;
  gap: 14px;
  font-size: 14px;
}

.ct-item {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ct-item i {
  color: var(--bs-primary);
  font-size: 16px;
}

.ct-item a {
  color: #94a3b8;
  text-decoration: none;
}

.ct-item a:hover {
  color: #ffffff;
}

.socs {
  display: flex;
  gap: 12px;
}

.sc {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  text-decoration: none;
  transition: all 0.2s;
}

.sc:hover {
  background-color: var(--bs-primary);
  transform: translateY(-2px);
}

.abt {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.abt:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
}

.foot-bar {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.foot-copy a {
  color: var(--bs-primary);
  text-decoration: none;
}

/* BALANCE CARD (GLASSMORPHISM) */
.balance-card {
  background: linear-gradient(135deg, #1e3a8a 0%, #5c21b6 100%); /* Azul a Morado Oscuro */
  position: relative;
  overflow: hidden;
  padding: 30px !important;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 24px rgba(92, 33, 182, 0.3);
}

.balance-card::after {
  content: '';
  position: absolute;
  right: -30px;
  top: -30px;
  width: 130px;
  height: 130px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  pointer-events: none;
}

.balance-card::before {
  content: '';
  position: absolute;
  left: -20px;
  bottom: -20px;
  width: 80px;
  height: 80px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 50%;
  pointer-events: none;
}

.balance-card .btn {
  background: rgba(255, 255, 255, 0.15) !important;
  border: 1px solid rgba(255, 255, 255, 0.25) !important;
  color: white !important;
  font-weight: 700 !important;
  transition: all 0.2s;
}

.balance-card .btn:hover {
  background: rgba(255, 255, 255, 0.3) !important;
  transform: translateY(-1px);
}

/* SERVICE ITEMS LIST */
.service-item-row {
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
  transition: all 0.2s ease;
  border-radius: 8px;
}

.service-item-row:hover {
  background-color: var(--off);
  padding-left: 8px;
}

.service-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 6px;
}

/* AUTH PANEL */
.auth-illus-panel {
  background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 100%); /* Azul oscuro a morado oscuro */
  display: flex;
  align-items: center;
  justify-content: center;
}

/* FORMS AND INPUTS */
.form-control, .form-select {
  background-color: var(--off) !important;
  border: 1px solid var(--border) !important;
  color: var(--ink) !important;
}

.form-control:focus, .form-select:focus {
  background-color: var(--off) !important;
  color: var(--ink) !important;
  border-color: var(--bs-primary) !important;
  box-shadow: 0 0 0 0.25rem rgba(139, 92, 246, 0.25) !important;
}

.form-control::placeholder {
  color: #64748b !important;
}

.modal-content {
  background-color: var(--w) !important;
  color: var(--ink) !important;
  border: 1px solid var(--border) !important;
}

.modal-header, .modal-footer {
  border: none !important;
}

.btn-close {
  filter: invert(1) !important;
}

.alert-secondary, .bg-light, .table-light {
  background-color: var(--off) !important;
  border-color: var(--border) !important;
  color: var(--ink) !important;
}

.table {
  color: var(--ink) !important;
}

.table th, .table td {
  border-color: var(--border) !important;
}

.table-light th {
  background-color: var(--off) !important;
  color: var(--ink) !important;
}

/* SEARCH INPUT */
#search-input {
  border-radius: 20px;
  border: 1px solid var(--border);
  background-color: var(--off);
  color: var(--ink);
  padding-left: 16px;
  transition: all 0.2s;
  min-width: 250px;
}

#search-input:focus {
  border-color: var(--bs-primary);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.2);
}

/* BREADCRUMB */
.breadcrumb-item a {
  color: var(--bs-primary-hover);
}

.breadcrumb-item.active {
  color: var(--sub);
}

/* GRID SERVICE CARDS */
.service-card {
  transition: all 0.2s ease;
  background: var(--site-card-bg, rgba(20, 20, 22, 0.95));
  border: 1px solid var(--site-border, rgba(139, 92, 246, 0.15));
}

.service-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
  border-color: var(--bs-primary);
}

.service-card .card-body {
  display: flex;
  flex-direction: column;
}

.min-width-0 {
  min-width: 0;
}

.text-truncate-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* SERVICE LIST VIEW */
.list-group-item.gsm-service-item {
  transition: all 0.15s ease;
  background: var(--site-card-bg, rgba(20, 20, 22, 0.95));
  border-color: var(--site-border, rgba(139, 92, 246, 0.15));
}

.list-group-item.gsm-service-item:hover {
  background: rgba(139, 92, 246, 0.05);
  border-color: var(--bs-primary);
}

/* TOGGLE BUTTON */
.btn-outline-secondary {
  border-color: var(--border);
  color: var(--sub);
}

.btn-outline-secondary:hover {
  background: var(--bs-primary);
  border-color: var(--bs-primary);
  color: #fff;
}

/* PAGE TOP INFO */
.page-top-info {
  background: var(--site-card-bg, rgba(20, 20, 22, 0.95)) !important;
  border: 1px solid var(--site-border, rgba(139, 92, 246, 0.15)) !important;
}

.page-top-info h4 {
  color: var(--bs-primary);
}

.page-top-info .breadcrumb {
  background: transparent;
  padding: 0;
  margin: 0;
}

.page-top-info .breadcrumb-item a {
  color: var(--bs-primary);
}

.page-top-info .breadcrumb-item.active {
  color: var(--sub);
}

.page-top-info .form-control {
  background: var(--off);
  border-color: var(--border);
  color: var(--ink);
}

.page-top-info .form-control:focus {
  border-color: var(--bs-primary);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.15);
}

/* CATEGORY BADGES */
.badge.text-uppercase {
  letter-spacing: 0.5px;
  font-weight: 600;
}

/* RESPONSIVE GRID */
@media (max-width: 575.98px) {
  .service-card .card-body {
    padding: 1rem;
  }
  .service-card img {
    width: 36px;
    height: 36px;
  }
}
