/* ==========================================================================
   CLOUDPERUGAMES v2 · custom.css (tema hijo de Twenty-One, WHMCS 8.7.x)
   1. Marca y variables          5. Sitio: componentes
   2. Header (barra + menú)      6. Sitio: secciones de páginas
   3. Footer                     7. Animaciones
   4. Área de clientes y carrito 8. Responsive y accesibilidad
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Sora:wght@400;500;600;700;800&family=Unbounded:wght@600;700;800&display=swap');

/* 1. Marca ---------------------------------------------------------------- */
:root {
  --cpg-bg: #0D0B1F;
  --cpg-bg-deep: #0A0919;
  --cpg-surface: #17142E;
  --cpg-surface-2: #120F28;
  --cpg-surface-3: #241D4F;
  --cpg-border: #2B2650;
  --cpg-border-2: #3A3270;
  --cpg-accent: #7C5CFF;
  --cpg-accent-btn: #6D4CF5;
  --cpg-accent-dark: #5B3FE0;
  --cpg-accent-soft: #B6A6FF;
  --cpg-red: #E11D2E;
  --cpg-green: #3DDC84;
  --cpg-text: #F4F3FA;
  --cpg-text-2: #D6D3E6;
  --cpg-muted: #B3B0C8;
  --cpg-muted-2: #9A97B0;
  --cpg-light-bg: #F3F2F8;
  --cpg-light-border: #E4E1F0;
  --cpg-ink: #1A1733;
  --cpg-radius: 22px;
  --cpg-display: 'Unbounded', 'Sora', sans-serif;
  --cpg-body: 'Sora', -apple-system, 'Segoe UI', sans-serif;
}

body.cpg-body { font-family: var(--cpg-body); background-color: var(--cpg-light-bg); color: var(--cpg-ink); }
body.cpg-marketing { background-color: var(--cpg-bg); color: var(--cpg-text); }
.cpg-body h1, .cpg-body .h1, .cpg-body h2, .cpg-body .h2 { font-family: var(--cpg-display); letter-spacing: -0.5px; }
.cpg-body a { color: var(--cpg-accent-dark); }
.cpg-body a:hover { color: var(--cpg-accent-btn); }

/* Botones (globales) */
.cpg-body .btn-primary,
.cpg-body .btn-primary:disabled,
.cpg-body .btn-primary.disabled,
.cpg-body .btn-success,
.cpg-body .btn-checkout {
  background-color: var(--cpg-accent-btn);
  border-color: var(--cpg-accent-btn);
  color: #FFFFFF;
  font-weight: 600;
  border-radius: 12px;
}
.cpg-body .btn-primary:hover, .cpg-body .btn-primary:focus,
.cpg-body .btn-primary:not(:disabled):not(.disabled):active,
.cpg-body .btn-success:hover, .cpg-body .btn-checkout:hover {
  background-color: var(--cpg-accent-dark);
  border-color: var(--cpg-accent-dark);
  color: #FFFFFF;
  box-shadow: 0 0 0 .2rem rgba(124, 92, 255, .3);
}
.cpg-body .btn-default, .cpg-body .btn-outline-primary { border-radius: 12px; }
.cpg-body .btn-outline-primary { color: var(--cpg-accent-dark); border-color: var(--cpg-accent-dark); }
.cpg-body .btn-outline-primary:hover { background: var(--cpg-accent-dark); color: #FFFFFF; }
.cpg-body .badge-primary, .cpg-body .bg-primary { background-color: var(--cpg-accent-btn) !important; }
.cpg-body .text-primary { color: var(--cpg-accent-dark) !important; }
.cpg-body .form-control, .cpg-body .custom-select { border-radius: 10px; }
.cpg-body .form-control:focus, .cpg-body .custom-select:focus { border-color: var(--cpg-accent); box-shadow: 0 0 0 .2rem rgba(124, 92, 255, .2); }
.cpg-body .custom-control-input:checked ~ .custom-control-label::before { background-color: var(--cpg-accent-btn); border-color: var(--cpg-accent-btn); }
.cpg-body .page-item.active .page-link, .cpg-body .list-group-item.active { background-color: var(--cpg-accent-btn); border-color: var(--cpg-accent-btn); }
.cpg-body .nav-tabs .nav-link.active { border-bottom-color: var(--cpg-accent-btn); color: var(--cpg-accent-dark); }

/* La capa de carga de WHMCS no debe verse antes de que cargue su JavaScript */
#fullpage-overlay.w-hidden { display: none; }

/* 2. Header ---------------------------------------------------------------- */
#header.cpg-header { background: var(--cpg-bg); border-bottom: 1px solid var(--cpg-border); position: relative; z-index: 1030; }
#header.cpg-header .topbar { background: var(--cpg-bg-deep); border-bottom: 1px solid var(--cpg-border); padding: 6px 0; font-size: 13px; color: var(--cpg-muted-2); }
#header.cpg-header .topbar a, #header.cpg-header .topbar .btn { color: #C9C5DD; font-size: 13px; text-decoration: none; }
#header.cpg-header .topbar a:hover, #header.cpg-header .topbar .btn:hover { color: #FFFFFF; }
.cpg-topbar-info { gap: 18px; }
.cpg-topbar-info a { display: inline-flex; align-items: center; gap: 6px; }
.cpg-topbar-status { display: inline-flex; align-items: center; gap: 8px; color: var(--cpg-text-2); font-weight: 600; }
.cpg-status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--cpg-green); box-shadow: 0 0 0 0 rgba(61,220,132,.6); animation: cpgDotPulse 2s infinite; }
.cpg-alert-count { background: var(--cpg-red); color: #FFFFFF; border-radius: 999px; padding: 0 6px; font-size: 11px; font-weight: 700; margin: 0 2px; }
#header.cpg-header .topbar .active-client .btn { background: var(--cpg-surface); border: 1px solid var(--cpg-border); padding: 4px 10px; }
#header.cpg-header .topbar .active-client .btn-group > .btn:first-child { border-radius: 8px 0 0 8px; }
#header.cpg-header .topbar .active-client .btn-group > .btn:last-child { border-radius: 0 8px 8px 0; }

#header.cpg-header .cpg-navbar { background: var(--cpg-bg) !important; padding: 14px 0; border: 0; }
.cpg-brand { display: inline-flex !important; align-items: center; gap: 10px; text-decoration: none !important; padding: 0; margin-right: 28px; }
.cpg-brand .logo-img { max-height: 42px; width: auto; }
.cpg-wordmark { font-family: var(--cpg-display); font-weight: 800; font-size: 17px; color: #F4F3FA; white-space: nowrap; letter-spacing: 0; }
.cpg-wordmark span { color: var(--cpg-accent); }
.cpg-navbar-tools { gap: 10px; margin-left: 16px; }
.cpg-icon-btn { position: relative; width: 44px; height: 44px; display: inline-flex !important; align-items: center; justify-content: center; border-radius: 12px; background: var(--cpg-surface); border: 1px solid var(--cpg-border); color: var(--cpg-text) !important; }
.cpg-icon-btn:hover { background: var(--cpg-surface-3); border-color: var(--cpg-border-2); }
.cpg-icon-btn .badge { position: absolute; top: -6px; right: -6px; background: var(--cpg-red); color: #FFFFFF; border-radius: 999px; font-size: 10px; min-width: 18px; }
.cpg-btn-login { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 18px; }
#header.cpg-header .cpg-btn-login, #header.cpg-header .cpg-btn-login:hover { color: #FFFFFF !important; }

#header.cpg-header #mainNavbar .navbar-nav > li > a { display: inline-flex; align-items: center; gap: 6px; color: #C9C5DD !important; font-weight: 500; font-size: 15px; padding: 10px 14px !important; border-radius: 10px; text-decoration: none; }
#header.cpg-header #mainNavbar .navbar-nav > li > a:hover,
#header.cpg-header #mainNavbar .navbar-nav > li.active > a,
#header.cpg-header #mainNavbar .navbar-nav > li.show > a { color: #FFFFFF !important; background: var(--cpg-surface); }
#header.cpg-header #mainNavbar .navbar-nav > li > a i { color: var(--cpg-accent-soft); }
#header.cpg-header .dropdown-menu { background: var(--cpg-surface); border: 1px solid var(--cpg-border-2); border-radius: 14px; padding: 8px; box-shadow: 0 24px 50px -20px rgba(0,0,0,.8); margin-top: 8px; }
#header.cpg-header li.dropdown-item { padding: 0; background: transparent; }
#header.cpg-header a.dropdown-item { display: block; color: var(--cpg-text-2) !important; border-radius: 8px; padding: 9px 12px !important; font-size: 14px; background: transparent; }
#header.cpg-header a.dropdown-item:hover, #header.cpg-header a.dropdown-item:focus { background: var(--cpg-surface-3); color: #FFFFFF !important; }
#header.cpg-header .dropdown-divider { border-color: var(--cpg-border); }

.master-breadcrumb { background: var(--cpg-surface-2); border-bottom: 1px solid var(--cpg-border); }
.master-breadcrumb .breadcrumb { background: transparent; margin: 0; padding: 12px 0; font-size: 13px; }
.master-breadcrumb .breadcrumb-item, .master-breadcrumb .breadcrumb-item.active { color: var(--cpg-muted-2); }
.master-breadcrumb .breadcrumb-item a { color: var(--cpg-text-2); }
.master-breadcrumb .breadcrumb-item + .breadcrumb-item::before { color: #4B3F99; }

.cpg-promo-bar { background: var(--cpg-surface-2); border-bottom: 1px solid var(--cpg-border); color: var(--cpg-text-2); font-size: 14px; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px; padding: 10px 16px; }
.cpg-promo-bar strong { font-family: var(--cpg-display); color: #FFFFFF; }
.cpg-promo-tag { background: var(--cpg-red); color: #FFFFFF; font-size: 11px; font-weight: 700; letter-spacing: 1.5px; padding: 4px 8px; border-radius: 6px; }

/* 3. Footer ---------------------------------------------------------------- */
#footer.cpg-footer { background: var(--cpg-bg-deep) !important; border-top: 1px solid var(--cpg-border); color: var(--cpg-muted-2); padding: 64px 0 28px; margin-top: 0; }
body.cpg-body:not(.cpg-marketing) #footer.cpg-footer { margin-top: 48px; }
.cpg-footer-grid { display: grid; grid-template-columns: 1.6fr repeat(4, 1fr); gap: 40px; }
.cpg-footer-brand p { margin: 14px 0 16px; font-size: 14px; line-height: 1.6; max-width: 300px; }
.cpg-footer-col h4 { font-family: var(--cpg-body); font-size: 14px; font-weight: 700; color: var(--cpg-text); margin-bottom: 14px; letter-spacing: 0; }
.cpg-footer-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.cpg-footer a { color: var(--cpg-muted-2) !important; font-size: 14px; text-decoration: none; }
.cpg-footer a:hover { color: #FFFFFF !important; }
.cpg-footer .cpg-libro { display: inline-flex; align-items: center; gap: 6px; }
.cpg-social { display: flex; gap: 8px; margin: 0; padding: 0; }
.cpg-social .list-inline-item { margin: 0; }
.cpg-social .btn { width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; border-radius: 12px; background: var(--cpg-surface); border: 1px solid var(--cpg-border); color: var(--cpg-text-2) !important; margin: 0 !important; }
.cpg-social .btn:hover { background: var(--cpg-surface-3); border-color: var(--cpg-border-2); }
.cpg-footer-bottom { margin-top: 48px; padding-top: 22px; border-top: 1px solid var(--cpg-border); display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 14px; font-size: 13px; }
.cpg-footer .copyright { color: var(--cpg-muted-2); }
.cpg-footer-meta { gap: 16px; }
.cpg-locale-btn { background: var(--cpg-surface); border: 1px solid var(--cpg-border); color: var(--cpg-text-2) !important; font-size: 13px; border-radius: 10px; }

/* 4. Área de clientes y carrito (contenido claro, marco oscuro) ------------- */
body.cpg-body:not(.cpg-marketing) #main-body { padding-top: 32px; padding-bottom: 16px; background: transparent; }
.cpg-body:not(.cpg-marketing) .card { border-radius: 16px; border: 1px solid var(--cpg-light-border); box-shadow: 0 10px 30px -22px rgba(26,23,51,.35); }
.cpg-body:not(.cpg-marketing) .card-header { background: #FFFFFF; border-bottom: 1px solid var(--cpg-light-border); border-radius: 16px 16px 0 0 !important; }
.cpg-body:not(.cpg-marketing) .card-title, .cpg-body:not(.cpg-marketing) .primary-content h1, .cpg-body:not(.cpg-marketing) .primary-content h2 { color: var(--cpg-ink); }
.cpg-body .sidebar .card-sidebar .card-header { background: var(--cpg-bg); color: #FFFFFF; }
.cpg-body .sidebar .card-sidebar .card-header .card-title, .cpg-body .sidebar .card-sidebar .card-header i { color: #FFFFFF; }
.cpg-body .sidebar .list-group-item { border-color: var(--cpg-light-border); font-size: 14px; }
.cpg-body .sidebar .list-group-item.active, .cpg-body .sidebar .list-group-item.active:hover { background: #EEEAFE; color: var(--cpg-accent-dark); border-color: var(--cpg-light-border); font-weight: 600; }
.cpg-body .tiles .tile { border-radius: 16px; }
.cpg-body .tiles .tile .stat { font-family: var(--cpg-display); color: var(--cpg-ink); }
.cpg-body .tiles .tile .highlight { background: var(--cpg-accent-btn) !important; }
.cpg-body .table thead th { border-bottom-color: var(--cpg-light-border); color: #5D5A78; font-size: 13px; text-transform: uppercase; letter-spacing: .4px; }
.cpg-body .label.status, .cpg-body .badge { border-radius: 999px; }
.cpg-body .alert { border-radius: 14px; }
.cpg-body .modal-content { border-radius: 18px; }
.cpg-body .modal-localisation .modal-content { background: var(--cpg-surface); }

/* Login / registro */
.cpg-body .login-form, .cpg-body .login-container { border-radius: 20px; }

/* Carrito (standard_cart) */
.cpg-body #order-standard_cart .header-lined h1, .cpg-body #order-standard_cart h1 { font-family: var(--cpg-display); color: var(--cpg-ink); }
.cpg-body #order-standard_cart .products .product { border-radius: 18px; border: 1px solid var(--cpg-light-border); box-shadow: 0 10px 30px -22px rgba(26,23,51,.35); overflow: hidden; }
.cpg-body #order-standard_cart .products .product header { background: var(--cpg-bg); color: #FFFFFF; }
.cpg-body #order-standard_cart .products .product header span { color: #FFFFFF; }
.cpg-body #order-standard_cart .products .product div.product-pricing span.price { color: var(--cpg-accent-dark); font-family: var(--cpg-display); }
.cpg-body #order-standard_cart .order-summary { border-radius: 18px; overflow: hidden; background: var(--cpg-bg); border: 0; }
.cpg-body #order-standard_cart .order-summary h2 { background: var(--cpg-bg); color: #FFFFFF; font-size: 18px; }
.cpg-body #order-standard_cart .summary-container { background: var(--cpg-surface); color: var(--cpg-text-2); }
.cpg-body #order-standard_cart .summary-container .total-due-today .amt { color: #FFFFFF; font-family: var(--cpg-display); }
.cpg-body #order-standard_cart .field-container, .cpg-body #order-standard_cart .sub-heading span { border-radius: 12px; }
.cpg-body #order-standard_cart .sub-heading span { background: var(--cpg-light-bg); color: var(--cpg-ink); }
.cpg-body #order-standard_cart .panel-addon-selected, .cpg-body #order-standard_cart .card-addon-selected { border-color: var(--cpg-accent); }
.cpg-body #order-standard_cart .btn-checkout { padding: 14px 24px; font-size: 16px; }

/* 5. Sitio: componentes ------------------------------------------------------ */
.cpg-site { background: var(--cpg-bg); color: var(--cpg-text); font-family: var(--cpg-body); line-height: 1.5; overflow-x: hidden; }
.cpg-site *, .cpg-site *::before, .cpg-site *::after { box-sizing: border-box; }
.cpg-site h1, .cpg-site h2, .cpg-site h3, .cpg-site p { color: inherit; }
.cpg-site a { color: var(--cpg-accent-soft); text-decoration: none; }
.cpg-site a:hover { color: #D8CFFF; text-decoration: none; }
.cpg-site svg { display: inline-block; vertical-align: middle; flex-shrink: 0; }

.cpg-section { max-width: 1240px; margin: 0 auto; padding: 90px 24px 0; }
.cpg-site > .cpg-section:last-child { padding-bottom: 100px; }
.cpg-narrow { max-width: 880px; }
.cpg-section-head { display: flex; flex-direction: column; gap: 14px; max-width: 760px; margin-bottom: 40px; }
.cpg-section-head.cpg-center { margin-left: auto; margin-right: auto; align-items: center; text-align: center; }
.cpg-section-head.cpg-split { max-width: none; flex-direction: row; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px; }
.cpg-section-head.cpg-split > div { display: flex; flex-direction: column; gap: 14px; max-width: 640px; }
.cpg-center { text-align: center; }
.cpg-mt { margin-top: 28px; }
.cpg-eyebrow { font-size: 13px; font-weight: 700; letter-spacing: 3px; color: var(--cpg-accent); }
.cpg-site .cpg-h1 { margin: 0; font-family: var(--cpg-display); font-weight: 800; font-size: clamp(40px, 5.6vw, 76px); line-height: 1.02; letter-spacing: -2px; color: var(--cpg-text); }
.cpg-site .cpg-h1-page { font-size: clamp(34px, 4.6vw, 60px); letter-spacing: -1.5px; }
.cpg-site .cpg-h2 { margin: 0; font-family: var(--cpg-display); font-size: clamp(30px, 3.8vw, 48px); font-weight: 800; letter-spacing: -1px; line-height: 1.1; color: var(--cpg-text); }
.cpg-accent { color: var(--cpg-accent); }
.cpg-green { color: var(--cpg-green) !important; }
.cpg-display { font-family: var(--cpg-display); }
.cpg-nowrap { white-space: nowrap; }
.cpg-site .cpg-lead { margin: 0; font-size: 19px; line-height: 1.65; color: var(--cpg-muted); max-width: 560px; }
.cpg-site .cpg-lead-sm { margin: 0; font-size: 17px; line-height: 1.6; color: var(--cpg-muted); }
.cpg-actions { display: flex; flex-wrap: wrap; gap: 14px; }

.cpg-site .btn-primary.cpg-btn, .cpg-site .cpg-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; border-radius: 14px; font-weight: 700; }
.cpg-btn-lg { font-size: 16px !important; padding: 17px 28px !important; }
.cpg-btn-ghost { display: inline-flex; align-items: center; justify-content: center; gap: 10px; background: rgba(23,20,46,.8); border: 1px solid var(--cpg-border); color: var(--cpg-text) !important; font-size: 15px; font-weight: 600; padding: 14px 20px; border-radius: 14px; transition: background .2s ease, border-color .2s ease; }
.cpg-btn-ghost:hover { background: #221D45; border-color: #4B3F99; color: #FFFFFF !important; }
.cpg-link-arrow { font-weight: 600; }

.cpg-pill { align-self: flex-start; display: inline-flex; align-items: center; gap: 10px; background: rgba(23,20,46,.8); border: 1px solid var(--cpg-border); border-radius: 999px; padding: 8px 16px 8px 12px; font-size: 13px; font-weight: 600; color: var(--cpg-text-2); }
.cpg-dot { position: relative; width: 10px; height: 10px; display: inline-block; }
.cpg-dot::before, .cpg-dot span { content: ''; position: absolute; inset: 0; border-radius: 50%; background: var(--cpg-green); }
.cpg-dot::before { animation: cpgPulse 2s ease-out infinite; }
.cpg-chips { display: flex; flex-wrap: wrap; gap: 12px; padding-top: 6px; }
.cpg-chip { display: inline-flex; align-items: center; gap: 10px; background: rgba(23,20,46,.65); border: 1px solid var(--cpg-border); border-radius: 14px; padding: 11px 16px; font-size: 14px; font-weight: 600; color: var(--cpg-text); }

.cpg-badge { position: absolute; top: 12px; left: 12px; z-index: 2; background: var(--cpg-surface-3); color: var(--cpg-text-2); font-size: 11px; font-weight: 700; letter-spacing: 1px; padding: 5px 9px; border-radius: 8px; }
.cpg-badge-red { background: var(--cpg-red); color: #FFFFFF; }
.cpg-badge-static { position: static; display: inline-block; margin-bottom: 10px; }

.cpg-glow { position: absolute; width: 520px; height: 520px; border-radius: 50%; filter: blur(120px); pointer-events: none; }
.cpg-glow-violet { background: var(--cpg-accent-btn); opacity: .28; }
.cpg-glow-green { width: 420px; height: 420px; background: var(--cpg-green); opacity: .1; filter: blur(100px); }
.cpg-grid-bg { background-image: linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px); background-size: 56px 56px; }
.cpg-bg-red { background: #3A1520 !important; }
.cpg-bg-green { background: #12301F !important; }

.cpg-lift { transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease; }
.cpg-lift:hover { transform: translateY(-6px); border-color: var(--cpg-accent) !important; box-shadow: 0 24px 50px -24px rgba(124,92,255,.75); }
.cpg-btn { transition: transform .2s ease, box-shadow .2s ease, background .2s ease; }
.cpg-btn:hover { transform: translateY(-2px); box-shadow: 0 0 0 4px rgba(124,92,255,.22), 0 14px 34px -10px rgba(124,92,255,.9); }

/* Tarjeta de juego */
.cpg-games-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 20px; }
.cpg-game-card { display: flex; flex-direction: column; background: var(--cpg-surface); border: 1px solid var(--cpg-border); border-radius: var(--cpg-radius); overflow: hidden; color: var(--cpg-text) !important; }
.cpg-game-card-cover { position: relative; height: 168px; overflow: hidden; }
.cpg-game-card-img { position: absolute; inset: 0; background-size: cover; background-position: center; transition: transform .6s ease; }
.cpg-game-card:hover .cpg-game-card-img { transform: scale(1.08); }
.cpg-game-card-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(13,11,31,.15) 0%, rgba(13,11,31,.35) 45%, rgba(23,20,46,1) 100%); }
.cpg-game-card-icon { position: absolute; left: 18px; bottom: 14px; z-index: 2; filter: drop-shadow(0 10px 18px rgba(0,0,0,.55)); }
.cpg-game-card-body { padding: 14px 20px 20px; display: flex; flex-direction: column; gap: 6px; }
.cpg-game-card-name { font-weight: 700; font-size: 18px; }
.cpg-game-card-meta { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 13.5px; color: var(--cpg-muted-2); }
.cpg-game-card-meta > span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.cpg-game-card-meta strong { color: var(--cpg-text); }
.cpg-game-card-more { align-items: center; justify-content: center; text-align: center; gap: 12px; padding: 28px; min-height: 250px; background: rgba(23,20,46,.4); border: 1px dashed #4B3F99; }
.cpg-game-card-more strong { font-size: 18px; }
.cpg-game-card-more span:last-child { font-size: 14px; color: var(--cpg-muted-2); max-width: 220px; }
.cpg-more-icon { width: 64px; height: 64px; border-radius: 18px; background: var(--cpg-surface-3); display: flex; align-items: center; justify-content: center; }

/* Planes */
.cpg-plans-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 22px; align-items: stretch; }
.cpg-plan { position: relative; display: flex; flex-direction: column; gap: 20px; background: var(--cpg-surface); border: 1px solid var(--cpg-border); border-radius: 26px; padding: 32px; }
.cpg-plan-featured { background: linear-gradient(180deg, #2A2163, #17142E); border-color: var(--cpg-accent); box-shadow: 0 30px 70px -30px rgba(124,92,255,.8); }
.cpg-plan-ribbon { position: absolute; top: -13px; left: 32px; background: var(--cpg-red); color: #FFFFFF; font-size: 11px; font-weight: 700; letter-spacing: 1.5px; padding: 7px 12px; border-radius: 8px; }
.cpg-plan-name { font-family: var(--cpg-display); font-size: 21px; font-weight: 800; }
.cpg-plan-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px; }
.cpg-plan-amount { font-family: var(--cpg-display); font-size: 38px; font-weight: 800; line-height: 1.1; }
.cpg-plan-amount-sm { font-size: 30px; }
.cpg-plan-cycle { color: var(--cpg-muted-2); }
.cpg-plan-divider { height: 1px; background: var(--cpg-border); }
.cpg-plan-features { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; flex-grow: 1; }
.cpg-plan-features li { display: flex; align-items: center; gap: 10px; font-size: 15px; color: var(--cpg-text-2); }
.cpg-plan-btn { width: 100%; padding: 15px !important; font-size: 15px; border-radius: 14px !important; }
.cpg-site .cpg-btn-ghost.cpg-plan-btn { background: var(--cpg-surface-3); border-color: var(--cpg-border-2); }
.cpg-empty { text-align: center; background: var(--cpg-surface); border: 1px dashed #4B3F99; border-radius: 26px; padding: 48px 24px; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.cpg-empty h3 { margin: 0; font-size: 22px; font-weight: 700; }
.cpg-empty p { margin: 0; color: var(--cpg-muted); }

/* Mosaico y características */
.cpg-bento { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.cpg-tile { position: relative; overflow: hidden; min-height: 240px; background: var(--cpg-surface); border: 1px solid var(--cpg-border); border-radius: 26px; padding: 30px; display: flex; flex-direction: column; justify-content: space-between; gap: 18px; }
.cpg-tile-lg { grid-column: span 2; grid-row: span 1; min-height: 290px; background: linear-gradient(140deg, #221B52, #17142E 60%); justify-content: flex-end; }
.cpg-tile-photo { position: absolute; right: -40px; top: -30px; width: 58%; max-width: 440px; opacity: .9; pointer-events: none; -webkit-mask-image: linear-gradient(to left, #000 55%, transparent); mask-image: linear-gradient(to left, #000 55%, transparent); }
.cpg-tile-art { position: absolute; top: 24px; left: 24px; }
.cpg-tile:has(.cpg-tile-art) { justify-content: flex-end; }
.cpg-tile-copy { position: relative; display: flex; flex-direction: column; gap: 8px; max-width: 440px; }
.cpg-tile h3, .cpg-feature h3 { margin: 0; font-size: 20px; font-weight: 700; }
.cpg-tile-lg h3 { font-size: 24px; }
.cpg-tile p, .cpg-feature p { margin: 0; color: var(--cpg-muted); font-size: 15px; line-height: 1.6; }
.cpg-tile-icon { width: 52px; height: 52px; border-radius: 14px; background: var(--cpg-surface-3); display: inline-flex; align-items: center; justify-content: center; }
.cpg-feature-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 20px; }
.cpg-feature { background: var(--cpg-surface); border: 1px solid var(--cpg-border); border-radius: 22px; padding: 28px; display: flex; flex-direction: column; gap: 12px; }
.cpg-included { margin-top: 20px; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.cpg-included div { display: flex; align-items: center; gap: 10px; background: var(--cpg-surface-2); border: 1px solid var(--cpg-border); border-radius: 14px; padding: 14px 16px; font-size: 15px; font-weight: 600; }

/* 6. Secciones de páginas ------------------------------------------------- */
/* Portada */
.cpg-hero { position: relative; overflow: hidden; }
.cpg-hero-photo { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: .35; }
.cpg-hero-overlay { position: absolute; inset: 0; background-color: rgba(13,11,31,.78); }
.cpg-hero::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 180px; background: linear-gradient(transparent, var(--cpg-bg)); pointer-events: none; }
.cpg-hero-inner { position: relative; z-index: 1; max-width: 1240px; margin: 0 auto; padding: 84px 24px 110px; display: flex; flex-wrap: wrap; align-items: center; gap: 56px; }
.cpg-hero-copy { flex: 1 1 500px; min-width: 0; display: flex; flex-direction: column; gap: 26px; }
.cpg-hero-visual { flex: 1 1 440px; min-width: 0; position: relative; min-height: 520px; display: flex; align-items: center; justify-content: center; }
.cpg-rack { width: 300px; background: linear-gradient(180deg, #1D1940, #120F28); border: 1px solid var(--cpg-border-2); border-radius: 22px; padding: 16px; display: flex; flex-direction: column; gap: 10px; box-shadow: 0 40px 80px -30px rgba(109,76,245,.7), inset 0 1px 0 rgba(255,255,255,.08); transform: perspective(1200px) rotateY(-14deg) rotateX(6deg); }
.cpg-rack-head { display: flex; justify-content: space-between; padding: 2px 4px 6px; font-size: 11px; font-weight: 700; letter-spacing: 2px; color: var(--cpg-muted-2); }
.cpg-rack-unit { height: 44px; background: var(--cpg-bg-deep); border: 1px solid var(--cpg-border); border-radius: 10px; display: flex; align-items: center; gap: 10px; padding: 0 12px; }
.cpg-rack-vents { display: flex; gap: 3px; }
.cpg-rack-vents i { width: 3px; height: 20px; background: var(--cpg-border); border-radius: 2px; }
.cpg-rack-name { flex-grow: 1; font-size: 11px; font-weight: 600; color: #8A87A3; letter-spacing: 1px; }
.cpg-rack-led { width: 7px; height: 7px; border-radius: 4px; }
.cpg-floating { position: absolute; display: flex; align-items: center; gap: 12px; background: rgba(23,20,46,.92); border: 1px solid var(--cpg-border-2); border-radius: 16px; padding: 14px 16px; box-shadow: 0 20px 40px -20px rgba(0,0,0,.8); }
.cpg-floating > div { display: flex; flex-direction: column; gap: 2px; }
.cpg-floating strong { font-size: 14px; }
.cpg-floating small { font-size: 12px; color: var(--cpg-muted-2); }
.cpg-floating-icon { width: 40px; height: 40px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; }
.cpg-floating-accent { background: var(--cpg-accent-btn); border-color: var(--cpg-accent-btn); box-shadow: 0 20px 40px -16px rgba(109,76,245,.9); }
.cpg-floating-accent small { color: #E4DDFF; }
.cpg-floating-accent strong { font-size: 18px; color: #FFFFFF; }
.cpg-floating.f1 { top: 30px; left: 0; }
.cpg-floating.f2 { bottom: 70px; left: 10px; }
.cpg-floating.f3 { top: 150px; right: 0; }
.cpg-floating.f4 { bottom: 20px; right: 20px; }
.cpg-mini-bars { display: flex; align-items: flex-end; gap: 4px; height: 34px; margin-top: 6px; }
.cpg-mini-bars i { width: 8px; height: 34px; background: var(--cpg-accent-btn); border-radius: 3px; }
.cpg-mini-bars i:nth-child(3) { background: var(--cpg-accent); }
.cpg-mini-bars i:nth-child(5) { background: var(--cpg-accent-soft); }

.cpg-marquee-wrap { border-top: 1px solid var(--cpg-border); border-bottom: 1px solid var(--cpg-border); background: var(--cpg-bg-deep); overflow: hidden; padding: 18px 0; }
.cpg-marquee { display: flex; gap: 48px; width: max-content; font-family: var(--cpg-display); font-size: 18px; font-weight: 700; color: #4F4A78; white-space: nowrap; }
.cpg-marquee span { display: inline-flex; align-items: center; gap: 48px; }
.cpg-marquee i { color: var(--cpg-accent); font-style: normal; }

.cpg-red-box { position: relative; overflow: hidden; background: var(--cpg-surface-2); border: 1px solid var(--cpg-border); border-radius: 32px; padding: 48px; display: flex; flex-wrap: wrap; gap: 48px; align-items: center; }
.cpg-red-copy { position: relative; flex: 1 1 380px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.cpg-red-map { position: relative; flex: 1 1 420px; min-width: 0; display: flex; justify-content: center; }
.cpg-red-map svg { max-width: 460px; }
.cpg-cities { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; padding-top: 6px; }
.cpg-city { display: flex; justify-content: space-between; align-items: center; background: var(--cpg-surface); border: 1px solid var(--cpg-border); border-radius: 12px; padding: 12px 14px; font-size: 14px; font-weight: 600; }
.cpg-city small { color: var(--cpg-green); font-weight: 700; font-size: 12px; }

.cpg-window-wrap { position: relative; }
.cpg-window-glow { left: 10%; right: 10%; top: 10%; width: auto; height: 80%; border-radius: 50%; opacity: .25; filter: blur(90px); }
.cpg-window { position: relative; background: var(--cpg-surface-2); border: 1px solid var(--cpg-border-2); border-radius: 24px; overflow: hidden; box-shadow: 0 50px 100px -40px rgba(0,0,0,.9); }
.cpg-window-bar { display: flex; align-items: center; gap: 8px; padding: 14px 18px; border-bottom: 1px solid var(--cpg-border); background: #0F0C24; }
.cpg-window-bar i { width: 12px; height: 12px; border-radius: 6px; }
.cpg-window-bar span { margin-left: 14px; font-size: 13px; color: var(--cpg-muted-2); }
.cpg-window-body { display: flex; flex-wrap: wrap; }
.cpg-window-menu { flex: 0 1 220px; border-right: 1px solid var(--cpg-border); padding: 18px; display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
.cpg-window-menu div { display: flex; align-items: center; gap: 10px; padding: 11px 12px; border-radius: 10px; color: var(--cpg-muted-2); font-weight: 600; }
.cpg-window-menu div i { width: 8px; height: 8px; border-radius: 2px; background: #4B3F99; }
.cpg-window-menu div.active { background: var(--cpg-surface-3); color: #FFFFFF; }
.cpg-window-menu div.active i { background: var(--cpg-accent); }
.cpg-window-main { flex: 1 1 520px; min-width: 0; padding: 22px; display: flex; flex-direction: column; gap: 16px; }
.cpg-window-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; }
.cpg-window-top > div:first-child { display: flex; flex-direction: column; gap: 4px; }
.cpg-window-top strong { font-size: 18px; }
.cpg-window-top small { font-size: 13px; color: var(--cpg-muted-2); }
.cpg-window-actions { display: flex; gap: 8px; }
.cpg-window-actions span { background: var(--cpg-surface-3); color: var(--cpg-text-2); font-size: 13px; font-weight: 600; padding: 9px 14px; border-radius: 10px; }
.cpg-window-actions .ok { background: #12301F; color: var(--cpg-green); font-weight: 700; }
.cpg-window-actions .stop { background: #3A1520; color: #FF8A94; }
.cpg-stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.cpg-stats > div { background: var(--cpg-surface); border: 1px solid var(--cpg-border); border-radius: 14px; padding: 16px; display: flex; flex-direction: column; gap: 6px; }
.cpg-stats small { font-size: 12px; color: var(--cpg-muted-2); }
.cpg-stats strong { font-family: var(--cpg-display); font-size: 22px; font-weight: 700; }
.cpg-stats em { display: block; height: 4px; background: var(--cpg-border); border-radius: 2px; }
.cpg-stats em b { display: block; height: 4px; background: var(--cpg-accent); border-radius: 2px; }
.cpg-console { background: #08071A; border: 1px solid var(--cpg-border); border-radius: 14px; padding: 18px; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 13px; line-height: 1.9; color: var(--cpg-muted); overflow-x: auto; }
.cpg-console .t { color: #6D6A85; } .cpg-console .i { color: var(--cpg-green); } .cpg-console .j { color: var(--cpg-accent-soft); } .cpg-console .p { color: var(--cpg-text); }

.cpg-faq { display: flex; flex-direction: column; gap: 12px; }
.cpg-faq-item { background: var(--cpg-surface); border: 1px solid var(--cpg-border); border-radius: 18px; transition: background .2s ease, border-color .2s ease; }
.cpg-faq-item[open] { background: #1B1838; border-color: #4B3F99; }
.cpg-faq-item summary { list-style: none; cursor: pointer; color: var(--cpg-text); font-size: 17px; font-weight: 600; padding: 22px 24px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.cpg-faq-item summary::-webkit-details-marker { display: none; }
.cpg-faq-item summary:focus-visible { outline: 2px solid var(--cpg-accent); outline-offset: 2px; border-radius: 18px; }
.cpg-faq-icon { flex-shrink: 0; width: 32px; height: 32px; border-radius: 10px; background: var(--cpg-surface-3); color: var(--cpg-accent-soft); display: flex; align-items: center; justify-content: center; font-size: 20px; line-height: 1; }
.cpg-faq-icon::before { content: '+'; }
.cpg-faq-item[open] .cpg-faq-icon::before { content: '\2212'; }
.cpg-faq-item p { margin: 0; padding: 0 24px 22px; color: var(--cpg-muted); font-size: 15px; line-height: 1.7; }

.cpg-cta { position: relative; overflow: hidden; background-color: var(--cpg-accent-dark); border-radius: 32px; padding: 64px 40px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 20px; }
.cpg-cta-glow { position: absolute; top: -120px; left: 50%; width: 500px; height: 300px; margin-left: -250px; border-radius: 50%; background: var(--cpg-accent-soft); opacity: .35; filter: blur(80px); pointer-events: none; }
.cpg-cta > *:not(.cpg-cta-glow) { position: relative; }
.cpg-site .cpg-cta h2 { margin: 0; font-family: var(--cpg-display); font-size: clamp(28px, 4vw, 52px); font-weight: 800; letter-spacing: -1px; color: #FFFFFF; max-width: 780px; line-height: 1.1; }
.cpg-site .cpg-cta p { margin: 0; color: #ECE7FF; font-size: 17px; }
.cpg-site .cpg-cta-btn { background: #FFFFFF; color: #2A1C80 !important; font-size: 16px; font-weight: 700; padding: 18px 30px; border-radius: 14px; }

/* Páginas de juego y secundarias */
.cpg-page-hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--cpg-border); }
.cpg-page-hero-photo { position: absolute; inset: 0; background-size: cover; background-position: center; }
.cpg-page-hero-overlay { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(13,11,31,.96) 0%, rgba(13,11,31,.86) 45%, rgba(13,11,31,.55) 100%); }
.cpg-page-hero::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 120px; background: linear-gradient(transparent, var(--cpg-bg)); pointer-events: none; }
.cpg-page-hero-inner { position: relative; z-index: 1; max-width: 1240px; margin: 0 auto; padding: 56px 24px 90px; display: flex; flex-direction: column; gap: 24px; }
.cpg-page-hero-sm .cpg-page-hero-inner { padding: 56px 24px 76px; }
.cpg-page-hero-sm .cpg-page-hero-overlay { background: rgba(13,11,31,.82); }
.cpg-center-block { align-items: center; text-align: center; }
.cpg-center-block .cpg-lead { margin: 0 auto; }
.cpg-crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 13px; color: var(--cpg-muted-2); }
.cpg-crumbs a { color: var(--cpg-text-2) !important; }
.cpg-crumbs span[aria-current] { color: var(--cpg-muted-2); }
.cpg-page-hero-title { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.cpg-page-hero-icon { filter: drop-shadow(0 18px 30px rgba(0,0,0,.6)); }
.cpg-empty-icon { margin-bottom: 4px; }

.cpg-about { display: flex; flex-wrap: wrap; gap: 48px; align-items: center; }
.cpg-about-copy { flex: 1 1 440px; display: flex; flex-direction: column; gap: 18px; }
.cpg-about-copy p { margin: 0; color: var(--cpg-muted); font-size: 16px; line-height: 1.75; }
.cpg-about-photo { flex: 1 1 380px; display: flex; justify-content: center; }
.cpg-about-photo img { max-width: 100%; height: auto; -webkit-mask-image: radial-gradient(circle at center, #000 55%, transparent 75%); mask-image: radial-gradient(circle at center, #000 55%, transparent 75%); }

.cpg-legal-tabs { display: inline-flex; gap: 6px; background: var(--cpg-surface); border: 1px solid var(--cpg-border); border-radius: 999px; padding: 6px; }
.cpg-legal-tabs a { padding: 9px 18px; border-radius: 999px; color: var(--cpg-text-2) !important; font-weight: 600; font-size: 14px; }
.cpg-legal-tabs a.active { background: var(--cpg-accent-btn); color: #FFFFFF !important; }
.cpg-legal { background: var(--cpg-surface); border: 1px solid var(--cpg-border); border-radius: 26px; padding: 44px; }
.cpg-site .cpg-legal h2 { font-family: var(--cpg-body); font-size: 19px; font-weight: 700; margin: 30px 0 10px; letter-spacing: 0; color: var(--cpg-text); }
.cpg-legal p { color: var(--cpg-muted); font-size: 15px; line-height: 1.75; margin: 0; }
.cpg-site .cpg-legal-intro { font-size: 17px; color: var(--cpg-text-2); }
.cpg-site .cpg-legal-updated { margin-top: 32px; font-size: 13px; color: var(--cpg-muted-2); }

/* 7. Animaciones ------------------------------------------------------------ */
@keyframes cpgBlink { 0%, 100% { opacity: 1; } 50% { opacity: .2; } }
@keyframes cpgPulse { 0% { transform: scale(.5); opacity: .9; } 100% { transform: scale(2.6); opacity: 0; } }
@keyframes cpgDotPulse { 0% { box-shadow: 0 0 0 0 rgba(61,220,132,.6); } 70% { box-shadow: 0 0 0 8px rgba(61,220,132,0); } 100% { box-shadow: 0 0 0 0 rgba(61,220,132,0); } }
@keyframes cpgFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes cpgMarquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes cpgCaret { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }
@keyframes cpgDash { to { stroke-dashoffset: -24; } }
@keyframes cpgBar { 0%, 100% { transform: scaleY(.55); } 50% { transform: scaleY(1); } }

.cpg-led { animation: cpgBlink 1.3s steps(2) infinite; }
.cpg-led.d2 { animation-delay: .4s; } .cpg-led.d3 { animation-delay: .9s; } .cpg-led.d4 { animation-duration: 2.1s; }
.cpg-ring { transform-box: fill-box; transform-origin: center; animation: cpgPulse 2.4s ease-out infinite; }
.cpg-ring.d2 { animation-delay: 1.2s; }
.cpg-float { animation: cpgFloat 6s ease-in-out infinite; }
.cpg-float.d2 { animation-delay: -2s; } .cpg-float.d3 { animation-delay: -4s; }
.cpg-marquee { animation: cpgMarquee 38s linear infinite; }
.cpg-caret { animation: cpgCaret 1s steps(2) infinite; }
.cpg-flow { stroke-dasharray: 4 8; animation: cpgDash 1.2s linear infinite; }
.cpg-bar { transform-origin: bottom; animation: cpgBar 2.4s ease-in-out infinite; }
.cpg-bar.d2 { animation-delay: -.6s; } .cpg-bar.d3 { animation-delay: -1.2s; } .cpg-bar.d4 { animation-delay: -1.8s; }

/* 8. Responsive y accesibilidad -------------------------------------------- */
@media (max-width: 1199.98px) {
  #header.cpg-header #mainNavbar { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--cpg-border); }
  .cpg-navbar-tools { margin-left: auto; }
}
@media (max-width: 991.98px) {
  .cpg-footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cpg-footer-brand { grid-column: 1 / -1; }
  .cpg-bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cpg-tile-lg { grid-column: 1 / -1; }
}
@media (max-width: 720px) {
  .cpg-section { padding-top: 70px; }
  .cpg-bento { grid-template-columns: minmax(0, 1fr); }
  .cpg-hero-inner { padding: 56px 20px 80px; }
  .cpg-hero-visual { min-height: 470px; }
  .cpg-rack { transform: none; width: 270px; }
  .cpg-red-box, .cpg-legal { padding: 28px 22px; }
  .cpg-cta { padding: 48px 22px; }
  .cpg-tile-photo { width: 80%; opacity: .45; }
  .cpg-cities { grid-template-columns: minmax(0, 1fr); }
  .cpg-topbar-status { font-size: 12px; }
}
@media (max-width: 480px) {
  .cpg-footer-grid { grid-template-columns: minmax(0, 1fr); }
  .cpg-floating.f3 { top: 120px; }
  .cpg-btn-login { display: none !important; }
}
@media (prefers-reduced-motion: reduce) {
  .cpg-body *, .cpg-body *::before, .cpg-body *::after { animation: none !important; transition: none !important; }
}
