/* ============================================================
   GAME ZENTRAL THEME
   Dark gaming portal: bg #020316, accent #23CEE6 (cyan)
   ============================================================ */

@font-face {
  font-family: "Lato";
  src: url("/fonts/gamezentral/Lato-Regular.ttf") format("truetype");
  font-display: swap;
  font-style: normal;
  font-weight: 400;
}

@font-face {
  font-family: "Lato";
  src: url("/fonts/gamezentral/Lato-Bold.ttf") format("truetype");
  font-display: swap;
  font-style: normal;
  font-weight: 700;
}

:root {
  /* --- Color tokens --- */
  --color-bg-base: #020316;
  --color-bg-card: #0d1230;
  --color-bg-elevated: #111428;
  --color-text-base: #ffffff;
  --color-text-muted: rgba(255, 255, 255, 0.6);
  --color-text-inverse: #020316;

  /* Brand primary: cyan */
  --color-primary: #23CEE6;
  --color-primary-hover: #1ab8cf;
  --color-on-accent: #020316;
  --primary-500: #23CEE6;

  /* Gradients */
  --gradient-primary: linear-gradient(135deg, #23CEE6 0%, #1590a6 100%);
  --gradient-hero: linear-gradient(180deg, rgba(2, 3, 22, 0) 0%, rgba(2, 3, 22, 0.8) 60%, #020316 100%);

  /* Borders */
  --color-border: rgba(35, 206, 230, 0.2);
  --color-input-bg: rgba(255, 255, 255, 0.07);
  --color-input-border: rgba(35, 206, 230, 0.3);

  /* Feedback */
  --color-error: #ff4d6a;
  --color-success: #23CEE6;

  /* Radii */
  --radius-card: 12px;
  --radius-input: 8px;
  --radius-pill: 999px;
  --radius-sm: 6px;
  --radius-lg: 16px;

  /* Fonts */
  --font-family-base: 'Lato', Arial, sans-serif;
  --font-family-display: 'Lato', Arial, sans-serif;
}

/* Override template dark body defaults */
body,
.theme-gamezentral,
.theme-gamezentral body {
  background-color: var(--color-bg-base) !important;
  color: var(--color-text-base) !important;
  font-family: var(--font-family-base);
}

/* ------------ BUTTONS ------------ */
.theme-gamezentral .btn-primary,
.theme-gamezentral button[data-primary],
.theme-gamezentral [data-variant="primary"] {
  background: var(--gradient-primary);
  color: var(--color-on-accent);
  border: none;
}

/* Ensure Lato is used for all button class variants (overrides globals.css) */
.theme-gamezentral .btn,
.theme-gamezentral .btn-sm,
.theme-gamezentral .btn-lg {
  font-family: var(--font-family-display);
}

/* ------------ CARDS ------------ */
.theme-gamezentral .card,
.theme-gamezentral [data-card] {
  background-color: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
}

/* ------------ MEDIA PLAYER ------------ */
.theme-gamezentral [data-portal-media-player][data-media-type="video"]
  [data-slot="media-player"] {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  background: #000;
}

.theme-gamezentral [data-portal-media-player] [data-slot="media-player-video"] {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.theme-gamezentral
  [data-portal-media-player]
  [data-slot="media-player-controls-overlay"] {
  background: linear-gradient(to top, rgb(5 12 22 / 0.72), transparent 30%);
}

.theme-gamezentral [data-portal-media-player] [data-slot="media-player-controls"] {
  position: absolute;
  inset: auto 0 0;
  min-height: 48px;
  padding: 8px 12px;
  background: rgb(5 12 22 / 0.9);
  border-top: 1px solid rgb(255 255 255 / 0.1);
  gap: 8px;
}

.theme-gamezentral
  [data-portal-media-player]
  [data-slot="media-player-play-button"] {
  border: 1px solid rgb(255 255 255 / 0.65);
  border-radius: 5px;
}

.theme-gamezentral [data-portal-media-player] [data-slot="media-player-seek"] {
  --primary: #23cee6;
}

.theme-gamezentral [data-portal-media-player] [data-slot="media-player-time"] {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* ------------ HEADER ------------ */
.theme-gamezentral header {
  background: linear-gradient(45deg, #1c2128 0%, #014a6b 100%);
  backdrop-filter: none;
  border-bottom: 0;
}

.theme-gamezentral header [data-portal-mobile-menu] {
  position: relative;
  width: 36px;
  height: 36px;
  justify-content: flex-start;
  padding-left: 1.328px;
  color: #fff;
}

.theme-gamezentral header [data-portal-mobile-item],
.theme-gamezentral header [data-portal-account],
.theme-gamezentral header [data-portal-search] {
  color: #fff;
}

.theme-gamezentral header [data-portal-nav-list] {
  flex-wrap: wrap;
  justify-content: flex-start;
  column-gap: 4px;
  row-gap: 0;
  margin-left: -18px;
}

@media (min-width: 992px) {
  .theme-gamezentral header nav[data-slot="navigation-menu"] {
    min-height: 48px;
    height: auto;
    justify-content: flex-start;
  }

  .theme-gamezentral header [data-portal-auth-actions] {
    right: 0;
  }

  .theme-gamezentral header [data-portal-auth] {
    width: 94px;
  }

  .theme-gamezentral header [data-portal-search] {
    display: inline-flex;
    width: 36px;
    height: 36px;
  }
}

.theme-gamezentral header [data-portal-nav-trigger] {
  height: 48px;
  flex-shrink: 0;
  padding: 0 34.328px 0 30px;
  background: transparent !important;
  color: #fff;
  font-family: var(--font-family-base);
  font-size: 18px;
  font-weight: 400;
  line-height: 24px;
}

.theme-gamezentral header [data-portal-nav-trigger]::after {
  display: inline-block;
  margin-left: 8px;
  font-size: 12px;
  content: "▾";
  transition: transform 120ms ease-out;
}

.theme-gamezentral header [data-portal-nav-trigger][data-state="open"]::after {
  transform: rotate(180deg);
}

.theme-gamezentral header [data-portal-nav-trigger]:hover,
.theme-gamezentral header [data-portal-nav-trigger]:focus,
.theme-gamezentral header [data-portal-nav-trigger][data-state="open"] {
  background: transparent !important;
  color: #ccc !important;
  font-weight: 400;
}

.theme-gamezentral header [data-portal-nav-content] {
  min-width: 220px;
  padding: 8px;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  background: var(--color-bg-elevated);
  box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.25);
  transform-origin: top left;
}

/* Replace generic horizontal carousel motion with a restrained menu reveal. */
.theme-gamezentral header [data-portal-nav-content][data-motion^="from-"] {
  animation: gamezentral-nav-dropdown-in 120ms cubic-bezier(0.2, 0.8, 0.2, 1)
    both !important;
}

.theme-gamezentral header [data-portal-nav-content][data-motion^="to-"] {
  pointer-events: none;
  animation: gamezentral-nav-dropdown-out 80ms ease-in both !important;
}

@keyframes gamezentral-nav-dropdown-in {
  from {
    opacity: 0;
    transform: translateY(-4px) scale(0.99);
  }

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

@keyframes gamezentral-nav-dropdown-out {
  from {
    opacity: 1;
    transform: translateY(0) scale(1);
  }

  to {
    opacity: 0;
    transform: translateY(-2px) scale(0.995);
  }
}

@media (prefers-reduced-motion: reduce) {
  .theme-gamezentral header [data-portal-nav-content][data-motion],
  .theme-gamezentral header [data-portal-nav-trigger]::after {
    transition: none;
    animation: none !important;
  }

  .theme-gamezentral [data-content-card] [data-content-card-media] img,
  .theme-gamezentral [data-zona-pro-card] {
    transition: none !important;
    transform: none !important;
  }
}

.theme-gamezentral header [data-portal-auth] {
  height: 48px;
  padding-inline: 0;
  color: #fff;
  font-family: var(--font-family-base);
  font-size: 16px;
  font-weight: 400;
}

.theme-gamezentral header [data-portal-auth]:hover {
  background: transparent;
  color: #ccc;
}

.theme-gamezentral header [data-portal-search]:hover {
  background: transparent;
  color: #fff;
}

.theme-gamezentral header [data-portal-search-form] {
  font-family: var(--font-family-base);
  transform-origin: top right;
  animation: gamezentral-search-panel-in 180ms cubic-bezier(0.2, 0.8, 0.2, 1)
    both;
}

.theme-gamezentral header [data-portal-search-backdrop] {
  border: 0;
  background: rgb(2 3 22 / 0.58);
  backdrop-filter: blur(4px);
  animation: gamezentral-search-backdrop-in 160ms ease-out both;
}

.theme-gamezentral header [data-portal-search-input] {
  height: 44px;
  border: 0;
  border-radius: 8px;
  background: #1a1a2e;
  box-shadow: 0 12px 30px rgb(0 0 0 / 0.3);
  color: #fff;
}

.theme-gamezentral header [data-results-open] [data-portal-search-input] {
  border-radius: 8px 8px 0 0;
}

.theme-gamezentral header [data-portal-search-input]:focus-within {
  border: 0;
  box-shadow: 0 0 0 2px rgb(255 255 255 / 0.5),
    0 12px 30px rgb(0 0 0 / 0.3);
}

.theme-gamezentral header [data-portal-search-input] [data-slot="input-group-addon"] {
  margin-inline: 14px 2px;
  color: #fff;
}

.theme-gamezentral header [data-portal-search-input] [data-slot="input-group-addon"] svg {
  width: 18px;
  height: 18px;
}

.theme-gamezentral header [data-portal-search-input] input {
  color: #fff;
  font-size: 15px;
}

.theme-gamezentral header [data-portal-search-input] input::placeholder {
  color: rgb(255 255 255 / 0.58);
}

.theme-gamezentral header [data-portal-search-input] input::-webkit-search-cancel-button {
  appearance: none;
}

.theme-gamezentral header [data-portal-search-input] [data-slot="input-group-addon"]:last-child {
  margin-inline: 2px 10px;
}

.theme-gamezentral header [data-portal-search-clear] {
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: #fff;
  color: #1a1a2e;
  font-size: 20px;
  line-height: 1;
}

.theme-gamezentral header [data-portal-search-clear]:hover {
  background: #ececf1;
  color: #1a1a2e;
}

.theme-gamezentral header [data-portal-search-results] {
  min-height: 56px;
  border-radius: 0 0 8px 8px;
  background: #fff;
  box-shadow: 0 16px 30px rgb(0 0 0 / 0.3);
  color: #8a8a8f;
  font-size: 15px;
  line-height: 1.4;
  transform-origin: top;
  animation: gamezentral-search-results-in 180ms cubic-bezier(0.2, 0.8, 0.2, 1)
    both;
}

.theme-gamezentral header [data-portal-search-loading] [data-slot="skeleton"] {
  background: #dedee5;
}

.theme-gamezentral header [data-portal-search-result] {
  border-bottom: 1px solid #ececf1;
  color: #252532;
  opacity: 0;
  animation: gamezentral-search-result-in 160ms ease-out forwards;
}

.theme-gamezentral header [data-portal-search-result]:last-child {
  border-bottom: 0;
}

.theme-gamezentral header [data-portal-search-result]:hover,
.theme-gamezentral header [data-portal-search-result]:focus-visible {
  background: #f2f2f5;
  color: #10101a;
  box-shadow: inset 3px 0 0 var(--color-primary);
}

@keyframes gamezentral-search-backdrop-in {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes gamezentral-search-panel-in {
  from {
    opacity: 0;
    transform: translateY(-10px) scale(0.985);
  }

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

@keyframes gamezentral-search-results-in {
  from {
    opacity: 0;
    transform: translateY(-8px) scaleY(0.96);
  }

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

@keyframes gamezentral-search-result-in {
  from {
    opacity: 0;
    transform: translateX(8px);
  }

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

@media (prefers-reduced-motion: reduce) {
  .theme-gamezentral header [data-portal-search-backdrop],
  .theme-gamezentral header [data-portal-search-form],
  .theme-gamezentral header [data-portal-search-results],
  .theme-gamezentral header [data-portal-search-result] {
    opacity: 1;
    transform: none;
    animation: none;
  }
}

.theme-gamezentral header [data-nav-label] {
  color: #fff;
}

.theme-gamezentral header [data-nav-label]:hover,
.theme-gamezentral header button:hover [data-nav-label],
.theme-gamezentral header button:focus [data-nav-label],
.theme-gamezentral header button[data-state="open"] [data-nav-label] {
  color: #ccc !important;
}

/* ------------ FOOTER ------------ */
.theme-gamezentral footer[data-portal-footer] {
  min-height: 145.015625px;
  padding: 0;
  border-top: 0;
  background: linear-gradient(45deg, #1c2128 0%, #014a6b 100%);
  position: relative;
}

.theme-gamezentral footer[data-portal-footer] [data-portal-footer-inner] {
  width: 100%;
  max-width: none;
  padding: 0;
  margin: 0;
}

.theme-gamezentral footer[data-portal-footer] [data-portal-footer-layout] {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
}

.theme-gamezentral footer[data-portal-footer] [data-portal-footer-logo] {
  display: flex;
  width: 100%;
  height: 78.015625px;
  align-items: center;
  justify-content: center;
  gap: 0;
}

.theme-gamezentral footer[data-portal-footer] [data-portal-footer-logo] img {
  width: auto;
  height: 48.015625px;
}

.theme-gamezentral footer[data-portal-footer] [data-portal-footer-nav] {
  display: flex;
  width: 100%;
  height: 67px;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 0 50px;
  border-top: 1px solid rgba(245, 245, 245, 0.15);
}

.theme-gamezentral footer[data-portal-footer] [data-portal-footer-nav] > * {
  width: auto;
  height: auto;
  padding: 0 8px;
  border-radius: 0;
  color: #fff;
  font-family: var(--font-family-base);
  font-size: 12px;
  font-weight: 400;
  line-height: 26px;
  text-decoration: none;
}

@media (max-width: 991px) {
  .theme-gamezentral footer[data-portal-footer],
  .theme-gamezentral footer[data-portal-footer] [data-portal-footer-inner],
  .theme-gamezentral footer[data-portal-footer] [data-portal-footer-layout] {
    width: 100%;
  }

  .theme-gamezentral footer[data-portal-footer] {
    min-height: 199.015625px;
  }

  .theme-gamezentral footer[data-portal-footer] [data-portal-footer-nav] {
    height: 121px;
    align-content: flex-start;
    column-gap: 0;
    row-gap: 0;
    padding: 31px 22px 36px;
  }
}

@media (max-width: 499px) {
  .theme-gamezentral footer[data-portal-footer] {
    min-height: 225.015625px;
  }

  .theme-gamezentral footer[data-portal-footer] [data-portal-footer-nav] {
    height: 147px;
  }
}

/* Mobile tagline */
.theme-gamezentral header [data-portal-mobile-tagline] {
  flex: 1;
  text-align: right;
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Mobile auth icon */
.theme-gamezentral header [data-portal-mobile-auth] {
  display: inline-flex;
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
}


.theme-gamezentral {
  --background: #020316;
  --foreground: #ffffff;
  --card: #0d1230;
  --card-foreground: #ffffff;
  --popover: #111428;
  --popover-foreground: #ffffff;
  --primary: #23cee6;
  --primary-foreground: #020316;
  --secondary: #111428;
  --secondary-foreground: #ffffff;
  --muted: #111428;
  --muted-foreground: #b8bbc7;
  --accent: #23cee6;
  --accent-foreground: #020316;
  --border: rgb(35 206 230 / 20%);
  --input: rgb(35 206 230 / 30%);
  --ring: #23cee6;
  --primary-400: #23cee6;
  --gradient-primary-secondary: var(--gradient-primary);
  --radius: 4px;
}

.theme-gamezentral .signup-container .btn-tertiary {
  color: var(--color-on-accent);
  border-radius: var(--radius-sm);
}

.theme-gamezentral .signup-container .btn-tertiary:not(:disabled) {
  background: var(--gradient-primary);
}

.theme-gamezentral button[data-variant="default"] {
  min-height: 42px;
  border: 0;
  border-radius: 4px;
  background: var(--gradient-primary);
  color: var(--color-on-accent);
  font-family: var(--font-family-display);
  font-weight: 700;
}

.theme-gamezentral button[data-variant="outline"] {
  border-color: var(--color-primary);
  border-radius: 4px;
  background: transparent;
  color: var(--color-primary);
}

.theme-gamezentral :is(
  [data-slot="input"],
  [data-slot="textarea"],
  [data-slot="select-trigger"]
) {
  min-height: 42px;
  border: 1px solid var(--color-input-border);
  border-radius: 4px;
  background: var(--color-input-bg);
  color: var(--color-text-base);
  font-family: var(--font-family-base);
}

.theme-gamezentral :is(
  [data-slot="input"],
  [data-slot="textarea"],
  [data-slot="select-trigger"]
):focus-visible {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 2px rgb(35 206 230 / 20%);
}

.theme-gamezentral :is(
  [data-slot="dialog-content"],
  [data-slot="dropdown-menu-content"],
  [data-slot="popover-content"]
) {
  border-color: var(--color-border);
  border-radius: 4px;
  background: var(--color-bg-elevated);
  color: var(--color-text-base);
}

.theme-gamezentral [data-slot="badge"] {
  border-color: var(--color-border);
  border-radius: 999px;
  background: rgb(35 206 230 / 12%);
  color: var(--color-primary);
}

.theme-gamezentral [data-slot="tabs-list"] {
  border-radius: 4px;
  background: var(--color-bg-elevated);
}

.theme-gamezentral [data-slot="tabs-trigger"][data-state="active"] {
  background: var(--color-primary);
  color: var(--color-on-accent);
}

.theme-gamezentral [data-slot="card"] {
  border-color: var(--color-border);
  border-radius: 4px;
  background: var(--color-bg-card);
  color: var(--color-text-base);
}

.theme-gamezentral [data-page="home"] {
  min-height: 100vh;
  background: var(--color-bg-base);
}

.theme-gamezentral [data-home-hero] {
  width: 100%;
  height: 60vh;
  overflow: hidden;
}

.theme-gamezentral [data-home-hero] picture,
.theme-gamezentral [data-home-hero] img {
  display: block;
  width: 100%;
  height: 100%;
}

.theme-gamezentral [data-home-hero] img {
  object-fit: cover;
  object-position: center;
}

.theme-gamezentral [data-section-hero] {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.theme-gamezentral [data-section-hero] picture,
.theme-gamezentral [data-section-hero] img {
  display: block;
  width: 100%;
}

.theme-gamezentral [data-section-hero] img {
  min-height: 210px;
  max-height: 560px;
  object-fit: cover;
  object-position: center;
}

.theme-gamezentral [data-template="juegos-hub"] > [data-section-hero],
.theme-gamezentral [data-template="zona-pro-hub"] > [data-section-hero],
.theme-gamezentral [data-template="esports-hub"] > [data-section-hero] {
  height: 60vh;
}

.theme-gamezentral [data-template="juegos-hub"] > [data-section-hero] picture,
.theme-gamezentral [data-template="juegos-hub"] > [data-section-hero] img,
.theme-gamezentral [data-template="zona-pro-hub"] > [data-section-hero] picture,
.theme-gamezentral [data-template="zona-pro-hub"] > [data-section-hero] img,
.theme-gamezentral [data-template="esports-hub"] > [data-section-hero] picture,
.theme-gamezentral [data-template="esports-hub"] > [data-section-hero] img {
  height: 100%;
}

.theme-gamezentral [data-template="juegos-hub"] > [data-section-hero] img,
.theme-gamezentral [data-template="zona-pro-hub"] > [data-section-hero] img,
.theme-gamezentral [data-template="esports-hub"] > [data-section-hero] img {
  max-height: none;
}

.theme-gamezentral [data-section-hero-copy] {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
  color: #fff;
  text-align: center;
}

.theme-gamezentral [data-section-hero-copy] h1 {
  margin: 0;
  color: #fff;
  font-size: 48px;
  font-weight: 700;
  line-height: 1.15;
}

.theme-gamezentral [data-section-hero-copy] p {
  margin: 58px 0 0;
  color: #fff;
  font-size: 20px;
  line-height: 1.3;
}

.theme-gamezentral [data-page="wallpapers"] > [data-section-hero] {
  height: 396px;
}

.theme-gamezentral [data-page="wallpapers"] > [data-section-hero] picture,
.theme-gamezentral [data-page="wallpapers"] > [data-section-hero] img {
  height: 100%;
}

.theme-gamezentral [data-page="wallpapers"] > [data-section-hero] img {
  max-height: none;
}

.theme-gamezentral [data-section-hero-cta] {
  position: absolute;
  right: 8%;
  bottom: 18%;
  display: inline-flex;
  min-width: 150px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 10px 24px;
  border-radius: 2px;
  background: var(--color-primary);
  color: var(--color-on-accent) !important;
  font-size: 14px;
  font-weight: 700;
}

.theme-gamezentral [data-home-welcome] {
  width: 100%;
  min-height: 223px;
  padding: 60px;
  background: var(--color-primary);
  color: var(--color-on-accent);
  text-align: center;
}

.theme-gamezentral [data-home-welcome] h1 {
  margin: 0 0 24px;
  color: #ffffff;
  font-family: var(--font-family-display);
  font-size: 29px;
  font-weight: 700;
  line-height: 37.7px;
}

.theme-gamezentral [data-home-welcome] p {
  max-width: 1160px;
  margin: 0 auto;
  color: #ffffff;
  font-size: 16px;
  line-height: 20.8px;
}

.theme-gamezentral [data-theme-section],
.theme-gamezentral .theme-page-container {
  width: 100%;
  max-width: 1342px;
  margin-inline: auto;
  padding: 36px 22px 60px;
  background: var(--color-bg-base) !important;
}

.theme-gamezentral [data-template$="-detail"] {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding: 36px 31px 60px;
  background: var(--color-bg-base) !important;
}

.theme-gamezentral [data-template$="-listing"] {
  width: 100%;
  max-width: 1342px;
  margin-inline: auto;
  padding: 36px 0 60px;
  background: var(--color-bg-base) !important;
}

.theme-gamezentral [data-template="game-listing"] {
  max-width: none;
  margin: 0;
  padding: 0;
}

.theme-gamezentral [data-template="game-listing"] > [data-listing-content] {
  width: 100%;
  max-width: 1342px;
  margin-inline: auto;
  padding: 36px 0 60px;
}

/* Listados con hero a ancho completo (Zona Pro, Especiales, eSports) */
.theme-gamezentral [data-template$="-listing"][data-has-hero] {
  max-width: none;
  margin: 0;
  padding: 0;
}

.theme-gamezentral [data-template$="-listing"][data-has-hero] > [data-listing-content] {
  width: 100%;
  max-width: 1342px;
  margin-inline: auto;
  padding: 36px 0 60px;
}

.theme-gamezentral [data-template$="-listing"][data-has-hero] > [data-listing-content] > [data-section-header] {
  margin-inline: 0;
}

.theme-gamezentral [data-section-header] {
  position: relative;
  min-height: 53px;
  margin-right: -22px;
  margin-bottom: 30px;
  margin-left: -22px;
  padding: 0 18px;
}

.theme-gamezentral [data-template$="-listing"] > [data-section-header] {
  margin-inline: 0;
}

.theme-gamezentral [data-section-header]::after {
  position: absolute;
  top: 52px;
  right: 18px;
  left: 18px;
  height: 1px;
  background: #8f97a3;
  content: "";
}

.theme-gamezentral [data-section-title],
.theme-gamezentral .theme-page-container > h1 {
  margin: 0;
  color: #fff !important;
  font-family: var(--font-family-display);
  font-size: 32px;
  font-weight: 700;
  line-height: 40px;
}

.theme-gamezentral [data-section-cta] {
  color: var(--color-primary) !important;
  font-family: var(--font-family-base);
  font-size: 16px;
  font-weight: 400;
}

.theme-gamezentral [data-content-grid] {
  gap: 18px;
}

.theme-gamezentral [data-content-carousel] {
  position: relative;
}

.theme-gamezentral [data-content-carousel-viewport] {
  overflow: hidden;
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: var(--color-primary) transparent;
  scroll-snap-type: x mandatory;
}

.theme-gamezentral [data-content-carousel-track] {
  display: flex;
  gap: 18px;
}

.theme-gamezentral [data-content-carousel-item] {
  flex: 0 0 calc((100% - 36px) / 3);
  min-width: 0;
  scroll-snap-align: start;
}

.theme-gamezentral [data-content-card] {
  color: #e5e5e5;
}

.theme-gamezentral [data-content-card-media] {
  border-radius: 4px;
  background: transparent;
}

.theme-gamezentral [data-content-card-info] {
  min-height: 49.59375px;
  margin-top: 18px;
}

.theme-gamezentral [data-content-card-category],
.theme-gamezentral [data-content-card-platform] {
  margin: 0;
  color: var(--color-primary);
  font-family: var(--font-family-display);
  font-size: 12px;
  line-height: 18px;
  text-transform: uppercase;
}

.theme-gamezentral [data-content-card-platform] {
  display: flex;
  align-items: center;
  gap: 5px;
  color: #f39a39;
}

.theme-gamezentral [data-content-card-title] {
  margin: 0;
  color: #e5e5e5;
  font-family: var(--font-family-display);
  font-size: 18px;
  font-weight: 700;
  line-height: 24.3px;
}

/* Card hover — zoom image on hover matching legacy */
.theme-gamezentral [data-content-card] [data-content-card-media] img {
  transition: transform 300ms ease;
}

.theme-gamezentral [data-content-card]:hover [data-content-card-media] img {
  transform: scale(1.06);
}

.theme-gamezentral [data-content-card-category] + [data-content-card-title],
.theme-gamezentral [data-content-card-platform] + [data-content-card-title] {
  margin-top: 12px;
}

.theme-gamezentral [data-content-carousel-previous],
.theme-gamezentral [data-content-carousel-next] {
  position: absolute;
  top: 42%;
  z-index: 10;
  display: grid;
  width: 38px;
  height: 38px;
  transform: translateY(-50%);
  place-items: center;
  border: 1px solid rgb(255 255 255 / 25%);
  border-radius: 50%;
  background: rgb(2 3 22 / 88%);
  color: #fff;
  font-size: 30px;
  line-height: 1;
}

.theme-gamezentral [data-content-carousel-previous] {
  left: -12px;
}

.theme-gamezentral [data-content-carousel-next] {
  right: -12px;
}

/* Lightbox de la galería del detalle (el overlay del SDK no admite clases) */
[data-slot="dialog-overlay"]:has(+ [data-detail-gallery-lightbox]) {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: rgb(255 255 255 / 75%);
}

[data-slot="dialog-content"][data-detail-gallery-lightbox] {
  max-width: min(1100px, calc(100% - 2rem));
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

[data-detail-gallery-close] {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 10;
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 50%;
  background: rgb(0 0 0 / 60%);
  color: #fff;
  font-size: 28px;
  line-height: 1;
}

[data-detail-gallery-close]:hover {
  background: rgb(0 0 0 / 80%);
}

.theme-gamezentral [data-zona-pro-grid] {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin-inline: -22px;
}

.theme-gamezentral [data-zona-pro-card] {
  display: block;
  overflow: hidden;
  border: 1px solid rgb(255 255 255 / 20%);
  border-radius: 2px;
  color: #fff;
}

@media (min-width: 768px) {
  .theme-gamezentral [data-zona-pro-card] {
    margin: 18px;
  }
}

.theme-gamezentral [data-zona-pro-card] img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.theme-gamezentral [data-zona-pro-card] span {
  display: flex;
  min-height: 111px;
  align-items: center;
  justify-content: flex-start;
  padding: 0 18px;
  background: transparent;
  font-family: var(--font-family-display);
  font-size: 18px;
  font-weight: 700;
  line-height: 20.7px;
  text-align: left;
}

.theme-gamezentral [data-home-partner-banner] {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.theme-gamezentral [data-home-partner-banner] img {
  display: block;
  width: 100%;
  height: auto;
}

.theme-gamezentral [data-home-contact] {
  min-height: 678px;
  margin: 0 0 -60px;
  padding: 120px 10px 0;
  border: 0;
  background: linear-gradient(
    to bottom,
    transparent 0,
    transparent 60px,
    rgb(255 255 255 / 25%) 60px,
    rgb(255 255 255 / 25%) 100%
  );
  text-align: center;
}

.theme-gamezentral [data-home-contact] h2 {
  margin: 0 0 24px;
  font-family: var(--font-family-display);
  font-size: 36px;
  font-weight: 700;
  line-height: 46.8px;
}

.theme-gamezentral [data-home-contact] p {
  max-width: none;
  margin: 0 auto 46px;
  color: #fff;
  font-size: 16px;
  line-height: 19px;
}

.theme-gamezentral [data-contact-avatar] {
  display: block;
  width: 200px;
  height: 200px;
  margin: 0 auto;
  object-fit: contain;
}

.theme-gamezentral [data-contact-links] {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.theme-gamezentral [data-contact-links] > a:first-child {
  display: flex;
  width: 300px;
  height: 24px;
  align-items: center;
  justify-content: center;
  margin: 48px 0;
  color: var(--color-primary);
  font-size: 16px;
  line-height: 24px;
}

.theme-gamezentral [data-contact-links] > a:nth-child(2) {
  display: flex;
  width: 468px;
  height: 54px;
  align-items: center;
  justify-content: flex-start;
  padding: 0 0 0 6px;
  border-radius: 0;
  background: #fff url("https://cdn.smarthubtech.net/Espa%C3%B1a/Servicio%20y%20llamada.png") no-repeat right center / contain !important;
  color: var(--color-primary) !important;
  font-size: 42px;
  line-height: 48px;
  font-weight: 700;
  font-family: var(--font-family-display);
}

.theme-gamezentral [data-template$="-listing"],
.theme-gamezentral [data-template$="-detail"],
.theme-gamezentral .theme-page-container {
  min-height: 100vh;
}

.theme-gamezentral [data-template$="-detail"] > h1 {
  color: #f2f2f0 !important;
  font-family: var(--font-family-display);
  font-size: 32px;
  line-height: 40px;
}

.theme-gamezentral [data-template$="-detail"] img {
  border-radius: 4px;
}

.theme-gamezentral [data-template$="-detail"] :is(.prose, [class*="SafeHtml"]) {
  color: rgb(255 255 255 / 78%) !important;
  font-size: 16px;
  line-height: 1.55;
}

.theme-gamezentral [data-template$="-detail"] > div[class*="rounded"] {
  border: 1px solid var(--color-border);
  border-radius: 4px;
  background: var(--color-bg-elevated) !important;
}

.theme-gamezentral .signup-desktop-overlay {
  background: rgb(2 3 22 / 88%);
  backdrop-filter: blur(6px);
}

.theme-gamezentral .signup-container {
  background: var(--color-bg-base);
}

.theme-gamezentral .signup-container [data-slot="card"] {
  border: 1px solid var(--color-border);
  border-radius: 4px;
  background: var(--color-bg-card);
  box-shadow: 0 20px 50px rgb(0 0 0 / 35%);
}

.theme-gamezentral .signup-container h1 {
  color: var(--color-text-base);
  font-family: var(--font-family-display);
}

@media (max-width: 991px) {
  .theme-gamezentral [data-page="home"] {
    padding-top: 60px;
  }

  .theme-gamezentral [data-zona-pro-grid] {
    margin-inline: 0;
  }

  .theme-gamezentral [data-home-welcome] {
    padding: 48px;
  }

  .theme-gamezentral [data-theme-section],
  .theme-gamezentral .theme-page-container,
  .theme-gamezentral [data-template$="-detail"] {
    padding: 24px 18px 48px;
  }

  .theme-gamezentral [data-template$="-listing"] {
    padding: 24px 0 48px;
  }

  .theme-gamezentral [data-template$="-listing"][data-has-hero] {
    padding: 0;
  }

  .theme-gamezentral [data-template$="-listing"][data-has-hero] > [data-listing-content] {
    padding: 24px 0 48px;
  }

  .theme-gamezentral [data-template$="-listing"][data-has-hero] > [data-listing-content] > [data-section-header] {
    margin-inline: 0;
  }

  .theme-gamezentral [data-section-header] {
    display: grid;
    grid-template-columns: 1fr;
    min-height: 73px;
    margin-right: -18px;
    margin-bottom: 30px;
    margin-left: -18px;
    padding: 0 12px;
  }

  /* Cabecera sin "Ver más": el título no debe quedar centrado sobre la línea */
  .theme-gamezentral [data-section-header]:not(:has(a)) {
    align-content: start;
    padding-top: 6.6px;
  }

  .theme-gamezentral [data-template$="-listing"] > [data-section-header] {
    margin-inline: 0;
  }

  .theme-gamezentral [data-section-title] {
    font-size: 23px;
    line-height: 28.75px;
  }

  .theme-gamezentral [data-section-header]::after {
    top: 40.75px;
    right: 12px;
    left: 12px;
  }

  .theme-gamezentral [data-section-cta] {
    justify-self: end;
    align-self: end;
    font-size: 12px;
  }
}

@media (max-width: 767px) {
  .theme-gamezentral [data-home-welcome] h1 {
    margin-bottom: 18px;
    font-size: 18px;
    line-height: 23.4px;
  }

  .theme-gamezentral [data-home-welcome] p {
    font-size: 14px;
    line-height: 18.2px;
  }

  .theme-gamezentral .theme-page-container > h1 {
    font-size: 26px;
    line-height: 34px;
  }

  .theme-gamezentral [data-content-grid] {
    grid-template-columns: 1fr;
  }

  .theme-gamezentral [data-content-grid][data-columns="4"] {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  /* Mobile: sin flechas → scroll táctil horizontal y la siguiente card asomando
     (paridad legacy) */
  .theme-gamezentral [data-content-carousel-viewport] {
    overflow-x: auto;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
  }

  .theme-gamezentral [data-content-carousel-item] {
    flex-basis: 66%;
  }

  .theme-gamezentral [data-zona-pro-grid] {
    grid-template-columns: 1fr;
    gap: 18px;
    margin-inline: 0;
  }

  /* Mobile Zona PRO card: horizontal thumbnail-left + title-right layout */
  .theme-gamezentral [data-zona-pro-card] {
    display: flex;
    flex-direction: row;
    align-items: center;
  }

  .theme-gamezentral [data-zona-pro-card] img {
    width: 80px;
    height: 60px;
    flex-shrink: 0;
    aspect-ratio: unset;
    object-fit: cover;
  }

  .theme-gamezentral [data-zona-pro-card] span {
    min-height: unset;
    padding: 12px 18px;
    font-size: 16px;
  }

  .theme-gamezentral [data-home-contact] {
    min-height: 622.296875px;
  }

  .theme-gamezentral [data-home-contact] h2 {
    margin-bottom: 18px;
    font-size: 26px;
    line-height: 33.8px;
  }

  .theme-gamezentral [data-home-contact] p {
    min-height: 73px;
    margin-bottom: 24px;
    font-size: 16px;
    line-height: 18.25px;
  }

  .theme-gamezentral [data-contact-links] > a:first-child {
    width: 245.1875px;
    height: 21.5px;
    margin: 30px 0;
  }

  .theme-gamezentral [data-contact-links] > a:nth-child(2) {
    width: 100%;
    height: 42px;
    font-size: 24px;
    line-height: 28px;
  }
}

/* ------------ PasswordReset overrides (.pr-*) ------------ */
.pr-page {
  background-color: var(--color-bg-base, #020316);
  color: var(--color-text-base, #ffffff);
}
.pr-card {
  background-color: var(--color-bg-card, #0d1230);
  border-color: var(--color-border, rgba(35,206,230,0.2));
  border-radius: var(--radius-card, 12px);
}
.pr-title { color: var(--color-text-base, #ffffff); font-weight: 700; }
.pr-subtitle { color: var(--color-text-muted, rgba(255,255,255,0.6)); }
.pr-label { color: var(--color-text-base, #ffffff); }
.pr-input {
  background-color: var(--color-input-bg, rgba(255,255,255,0.07));
  border-color: var(--color-input-border, rgba(35,206,230,0.3));
  color: var(--color-text-base, #ffffff);
  border-radius: var(--radius-input, 8px);
}
.pr-input:focus { border-color: var(--color-primary, #23CEE6); outline: none; }
.pr-button {
  background: var(--gradient-primary);
  color: var(--color-on-accent, #020316);
  border-radius: var(--radius, 4px);
}
.pr-link { color: var(--color-primary, #23CEE6); }

/* ------------ Created wallpapers ------------ */
.theme-gamezentral [data-template="wallpapers-created"] [data-created-wallpapers-grid] > div {
  min-height: 0 !important;
  background: transparent !important;
  font-family: var(--font-family-base) !important;
}

.theme-gamezentral [data-template="wallpapers-created"] [data-created-wallpapers-grid] > div > section:first-child {
  display: none !important;
}

.theme-gamezentral [data-template="wallpapers-created"] [data-created-wallpapers-grid] > div > section:nth-child(2) {
  max-width: 1342px;
  margin-inline: auto;
  padding: 0 24px 112px !important;
}

@media (max-width: 767px) {
  .theme-gamezentral [data-template="wallpapers-created"] [data-created-wallpapers-grid] > div > section:nth-child(2) {
    padding-inline: 16px !important;
  }
}

/* ------------ Legal pages ------------ */
.legal-page {
  background: var(--color-bg-base);
  color: var(--color-text-base);
  font-family: var(--font-family-base);
}

/* ------------ Unsubscribe page ------------ */
.unsubscribe-card {
  background-color: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
}

/* ------------ Navigation accent links ------------ */
a:hover, nav a:hover { color: var(--color-primary); }

/* ------------ Section titles ------------ */
.section-title { color: var(--color-text-base); font-weight: 700; }

/* ------------ Category badges / chips ------------ */
.badge, .chip {
  background-color: color-mix(in srgb, var(--color-primary) 12%, transparent);
  color: var(--color-primary);
  border-radius: var(--radius-pill);
  width: fit-content;
  align-self: flex-start;
}

/* Override Tailwind's --background and --foreground to match portal theme */
.theme-gamezentral {
  --background: #020316;
  --foreground: #ffffff;
}

@media (max-width: 767px) {
  .theme-gamezentral [data-section-hero-copy] h1 {
    font-size: 32px;
  }

  .theme-gamezentral [data-section-hero-copy] p {
    margin-top: 24px;
    font-size: 17px;
  }

  .theme-gamezentral [data-page="wallpapers"] > [data-section-hero] {
    height: 280px;
  }

  .theme-gamezentral [data-section-hero-cta] {
    right: 50%;
    bottom: 10%;
    transform: translateX(50%);
  }

  .theme-gamezentral [data-content-carousel-previous],
  .theme-gamezentral [data-content-carousel-next] {
    display: none;
  }
}

.theme-gamezentral .cc-description .cc-config-link {
  display: inline;
  padding: 0;
  border: 0;
  background: transparent;
  font: inherit;
  text-decoration: underline;
  cursor: pointer;
}

/* ===================================================================
   GAME DETAIL — Android product card + HTML5 player
   Uses data attributes only; does not touch Tailwind palette.
   =================================================================== */

/* Back link */
.theme-gamezentral [data-detail-back] {
  display: inline-block;
  margin-bottom: 20px;
  color: var(--color-primary, #23CEE6);
  font-family: var(--font-family-base);
  font-size: 14px;
  text-decoration: none;
  transition: opacity 150ms ease;
}

.theme-gamezentral [data-detail-back]:hover {
  opacity: 0.75;
}

/* ------------ Android horizontal product card ------------ */
/*
 * Layout parity with legacy Andromeda product_card_basic (priority-1..4):
 *   ≥992  : image 150×150 | content padding-left 60px | h1 36px/42.12px | CTA pt-18
 *   ≤991  : image 114×114 | content padding-left 18px | h1 18px/21.06px
 * Image and content are ALWAYS side-by-side (no stacking at mobile).
 * Rating/downloads live in the left image column (below cover).
 * Category, classification, size, min-android, CTA live in the right content column.
 */
.theme-gamezentral [data-android-card] {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  margin-bottom: 24px;
}

/* ── Left image column (mobile-first: 114 px) ─────────────────────── */
.theme-gamezentral [data-android-card-image] {
  flex: 0 0 114px;
  width: 114px;
}

.theme-gamezentral [data-android-card-image] img {
  display: block;
  width: 114px;
  height: 114px;
  border-radius: var(--radius-sm, 6px);
  object-fit: cover;
}

/* Rating + downloads below the square cover (left column) */
.theme-gamezentral [data-android-card-image-meta] {
  width: 114px;
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  color: var(--color-text-muted, rgba(255, 255, 255, 0.6));
  font-size: 12px;
  line-height: 16px;
  text-align: center;
}

.theme-gamezentral [data-android-card-image-meta] p {
  margin: 0;
}

/* ── Right content column (mobile-first: pl-18, title 18px) ───────── */
.theme-gamezentral [data-android-card-info] {
  flex: 1 1 auto;
  min-width: 0;
  width: calc(100% - 114px);
  padding-left: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.theme-gamezentral [data-android-card-info] h1 {
  margin: 0;
  color: #f2f2f0;
  font-family: var(--font-family-display);
  font-size: 18px;
  font-weight: 700;
  line-height: 21.06px;
  word-break: break-word;
}

.theme-gamezentral [data-android-card-category] {
  margin: 0;
  color: var(--color-primary, #23CEE6);
  font-family: var(--font-family-display);
  font-size: 12px;
  font-weight: 400;
  line-height: 16px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Remaining right-column metadata: classification, size, min-android */
.theme-gamezentral [data-android-card-meta] {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
  color: var(--color-text-muted, rgba(255, 255, 255, 0.6));
  font-size: 13px;
  line-height: 16.38px;
}

/* CTA wrapper — no extra top margin on mobile */
.theme-gamezentral [data-android-card-cta] {
  margin-top: 0;
}

/* ── Desktop overrides at ≥ 992 px ────────────────────────────────── */
@media (min-width: 992px) {
  .theme-gamezentral [data-android-card-image] {
    flex: 0 0 150px;
    width: 150px;
  }

  .theme-gamezentral [data-android-card-image] img {
    width: 150px;
    height: 150px;
  }

  .theme-gamezentral [data-android-card-image-meta] {
    width: 150px;
  }

  .theme-gamezentral [data-android-card-info] {
    width: calc(100% - 150px);
    padding-left: 60px;
  }

  .theme-gamezentral [data-android-card-info] h1 {
    font-size: 36px;
    line-height: 42.12px;
  }

  /* CTA padding-top matches legacy padding-top: 18px on .link-product-card */
  .theme-gamezentral [data-android-card-cta] {
    padding-top: 18px;
  }
}

.theme-gamezentral [data-install-warning] {
  margin: 22px 0 30px;
  padding: 16px 18px;
  border-left: 4px solid #f6b73c;
  background: rgb(246 183 60 / 12%);
  color: #f5f5f5;
  font-size: 14px;
  line-height: 1.6;
}

.theme-gamezentral [data-install-warning] span {
  display: block;
  color: #f6c768;
  font-weight: 700;
}

/* ------------ HTML5 player: centred, max-width 960 px ------------ */
.theme-gamezentral [data-html5-player] {
  max-width: 960px;
  margin-inline: auto;
  margin-bottom: 24px;
}

/* Compact fullscreen/exit overlay */
.theme-gamezentral [data-html5-controls] button {
  display: flex;
  align-items: center;
  justify-content: center;
}
