/* Videojuegos.com - Estilos secundarios (cacheados 30 días) */

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 0 14px;
}

.section-head-mt {
  margin-top: 28px;
}

.section-head h2 {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.section-head h2::before {
  content: "";
  width: 4px;
  height: 1.1em;
  border-radius: 4px;
  background: linear-gradient(180deg, #0ea5e9, #2563eb);
  display: inline-block;
}

@media (min-width: 1000px) {
  .section-head h2 {
    font-size: 1.3rem;
  }
}

/* Game Grid Cards */
ul.videojuegos {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

@media (min-width: 640px) {
  ul.videojuegos {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
  }
}

@media (min-width: 1024px) {
  ul.videojuegos {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 16px;
  }

  ul.videojuegos.grid-recent {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.game-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.22s ease, border-color 0.22s ease;
}

.game-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: #7dd3fc;
}

.juego_cover {
  position: relative;
  aspect-ratio: 4 / 3;
  background: #0f172a;
  overflow: hidden;
}

.juego_cover a {
  display: block;
  width: 100%;
  height: 100%;
}

.juego_cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.game-card:hover .juego_cover img {
  transform: scale(1.06);
}

.play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.05) 0%, rgba(15, 23, 42, 0.55) 100%);
  opacity: 0;
  transition: opacity 0.22s ease;
}

.play-overlay svg {
  width: 44px;
  height: 44px;
  padding: 10px 9px 10px 12px;
  border-radius: 999px;
  background: rgba(14, 165, 233, 0.94);
  color: #ffffff;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
  transform: scale(0.88);
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

.game-card:hover .play-overlay {
  opacity: 1;
}

.game-card:hover .play-overlay svg {
  transform: scale(1);
}

.juego_data {
  padding: 11px 12px 13px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  flex: 1;
}

.game-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.game-card:hover .game-title {
  color: var(--accent-dark);
}

.juego_data p {
  margin: 0;
  font-size: 0.78rem;
  line-height: 1.45;
  color: var(--text-muted);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.juego_data p strong {
  color: #334155;
  font-weight: 600;
}

/* Pagination */
.pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 24px;
}

.btn-page {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--accent-dark);
  background: #ffffff;
  border: 1.5px solid #bae6fd;
  box-shadow: var(--shadow-sm);
}

.btn-page:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #ffffff;
  transform: translateY(-1px);
}

.page-num {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  padding: 0 8px;
}

@media (max-width: 639px) {
  .pagination {
    gap: 8px;
  }

  .page-num {
    flex-basis: 100%;
    text-align: center;
    order: -1;
    padding: 0 0 2px;
  }

  .btn-page {
    flex: 1 1 0;
    justify-content: center;
    padding: 10px 12px;
    font-size: 0.84rem;
    white-space: nowrap;
    max-width: 220px;
  }
}

/* Game Detail Card & Actions */
.game-intro-wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 14px 14px 0;
  scroll-margin-top: 72px;
}

@media (min-width: 1000px) {
  .game-intro-wrap {
    padding: 20px 24px 0;
  }
}

.game-intro-wrap .surface-card {
  margin-bottom: 14px;
}

.game-detail-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}

.game-detail-header h1 {
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  margin: 0;
  color: var(--text);
}

@media (min-width: 1000px) {
  .game-detail-header h1 {
    font-size: 1.75rem;
  }
}

.cat-badge {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  background: var(--accent-soft);
  color: #0369a1;
}

.cat-badge:hover {
  background: var(--accent);
  color: #ffffff;
}

.game-actions-strip {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 12px 14px;
}

.game-actions-bar {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.btn-action,
.btn-share {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 15px;
  border-radius: 10px;
  font-size: 0.86rem;
  font-weight: 700;
  cursor: pointer;
  border: 1.5px solid var(--border);
  background: #ffffff;
  color: var(--text);
  font-family: inherit;
  user-select: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease, border-color 0.15s ease;
}

.btn-action:hover,
.btn-share:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

@media (max-width: 379px) {

  .btn-action,
  .btn-share {
    padding: 9px 12px;
  }
}

.btn-fs {
  background: #f8fafc;
  color: #334155;
  border-color: #cbd5e1;
}

.btn-fs:hover {
  background: #0f172a;
  color: #ffffff;
  border-color: #0f172a;
}

.btn-compartir {
  background: linear-gradient(135deg, #0ea5e9, #0284c7);
  border-color: transparent;
  color: #ffffff !important;
  box-shadow: 0 4px 12px rgba(14, 165, 233, 0.24);
}

.btn-compartir:hover {
  background: linear-gradient(135deg, #0284c7, #0369a1);
  box-shadow: 0 6px 16px rgba(14, 165, 233, 0.34);
}

/* Modal Compartir */
.modal-compartir-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  z-index: 2147483647;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.modal-compartir-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  max-width: 440px;
  width: 100%;
  padding: 22px 24px;
  box-shadow: 0 24px 54px rgba(15, 23, 42, 0.28);
  position: relative;
}

.modal-compartir-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface-soft);
  color: var(--text-muted);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.modal-compartir-close:hover {
  background: #e2e8f0;
  color: var(--text);
}

.modal-compartir-titulo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.12rem;
  font-weight: 800;
  color: var(--text);
  margin: 0 36px 4px 0;
}

.modal-compartir-titulo svg {
  color: var(--accent-dark);
}

.modal-compartir-sub {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0 0 16px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.modal-compartir-input-group {
  display: flex;
  gap: 8px;
  align-items: center;
  background: var(--surface-soft);
  border: 1.5px solid var(--border);
  border-radius: 12px;
  padding: 5px 6px 5px 12px;
  margin-bottom: 14px;
}

.modal-compartir-input-group:focus-within {
  border-color: var(--accent);
  background: #ffffff;
}

.modal-compartir-input {
  flex: 1;
  min-width: 0;
  border: none;
  background: transparent;
  font-size: 0.84rem;
  color: #334155;
  outline: none;
  font-family: inherit;
}

.btn-copiar-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #ffffff;
  color: var(--accent-dark);
  border: 1.5px solid #bae6fd;
  border-radius: 9px;
  padding: 7px 12px;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  font-family: inherit;
  transition: all 0.15s ease;
}

.btn-copiar-pill:hover {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: #0369a1;
}

.btn-copiar-pill.copiado {
  background: #f0fdf4;
  border-color: #86efac;
  color: #166534;
}

.modal-compartir-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

@media (max-width: 480px) {
  .modal-compartir-grid {
    grid-template-columns: 1fr;
  }
}

.btn-share-channel {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 11px;
  font-size: 0.86rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  font-family: inherit;
  transition: transform 0.15s ease, background-color 0.15s ease, border-color 0.15s ease;
}

.btn-share-channel svg {
  flex-shrink: 0;
}

.btn-share-channel:hover {
  transform: translateY(-1px);
}

.share-wa {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #166534;
}

.share-wa:hover {
  background: #dcfce7;
  border-color: #86efac;
  color: #14532d;
}

.share-tg {
  background: #f0f9ff;
  border: 1px solid #bae6fd;
  color: #0369a1;
}

.share-tg:hover {
  background: #e0f2fe;
  border-color: #7dd3fc;
  color: #0c4a6e;
}

.share-tw {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  color: #0f172a;
}

.share-tw:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
  color: #020617;
}

.share-fb {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: #1e40af;
}

.share-fb:hover {
  background: #dbeafe;
  border-color: #93c5fd;
  color: #1e3a8a;
}

.share-email {
  background: #faf5ff;
  border: 1px solid #e9d5ff;
  color: #6b21a8;
}

.share-email:hover {
  background: #f3e8ff;
  border-color: #d8b4fe;
  color: #581c87;
}

.share-native {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  color: #334155;
}

.share-native:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
  color: #0f172a;
}

.game-detail-body {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

@media (min-width: 640px) {
  .game-detail-body {
    flex-direction: row;
    align-items: flex-start;
    gap: 20px;
  }
}

.game-detail-cover {
  flex: 0 0 auto;
}

.game-detail-cover img {
  width: 140px;
  border-radius: 12px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
  display: block;
}

.game-detail-info {
  flex: 1;
  min-width: 0;
}

.controls-box {
  background: var(--surface-soft);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 14px;
  margin-top: 12px;
}

.controls-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--accent-dark);
  margin-bottom: 4px;
}

.controls-box p {
  margin: 0;
  font-size: 0.92rem;
  color: #334155;
}

.game-detail-desc {
  margin: 0;
  font-size: 0.94rem;
  line-height: 1.6;
  color: #334155;
}

.game-notice {
  margin: 10px 0 0;
  padding: 10px 12px;
  border-radius: 10px;
  background: #fffbeb;
  border: 1px solid #fde68a;
  color: #92400e;
  font-size: 0.85rem;
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 36px 20px;
  max-width: 480px;
  margin: 0 auto;
}

.empty-icon {
  width: 68px;
  height: 68px;
  margin: 0 auto 14px;
  border-radius: 20px;
  background: var(--accent-soft);
  color: var(--accent-dark);
  display: flex;
  align-items: center;
  justify-content: center;
}

.empty-state h2 {
  font-size: 1.2rem;
  font-weight: 800;
  margin: 0 0 8px;
}

.empty-state p {
  font-size: 0.92rem;
  color: var(--text-muted);
  margin: 0 0 18px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  border-radius: 999px;
  background: linear-gradient(135deg, #0ea5e9, #0284c7);
  color: #ffffff !important;
  font-weight: 700;
  font-size: 0.9rem;
  box-shadow: 0 6px 16px rgba(14, 165, 233, 0.28);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(14, 165, 233, 0.35);
}

/* Partner Links & Footer */
.partner-section {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (min-width: 640px) {
  .partner-section {
    grid-template-columns: 1fr 1fr;
  }
}

.partner-group h3 {
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin: 0 0 10px;
}

.partner-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.partner-chip {
  display: inline-flex;
  align-items: center;
  padding: 7px 13px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  background: var(--surface-soft);
  border: 1px solid var(--border);
  color: #334155;
}

.partner-chip:hover {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--accent-dark);
}

.site-footer {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 8px 16px 32px;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 18px;
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  color: var(--text-muted);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.site-footer a:hover {
  color: var(--accent-dark);
}

/* Centered Top-Layer Menu Modal */
dialog.user-menu {
  margin: auto;
  padding: 0;
  width: min(440px, calc(100vw - 32px));
  max-height: calc(100vh - 48px);
  max-height: calc(100dvh - 48px);
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.35);
  overflow: hidden;
  color: var(--text);
}

dialog.user-menu[open] {
  display: flex;
  flex-direction: column;
  animation: modalPop 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

dialog.user-menu::backdrop {
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
}

@keyframes modalPop {
  from {
    opacity: 0;
    transform: scale(0.95) translateY(6px);
  }

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

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px;
  border-bottom: 1px solid var(--border);
  background: var(--surface-soft);
}

.drawer-header h2 {
  font-size: 1.05rem;
  font-weight: 800;
  margin: 0;
  color: var(--text);
}

.close_user {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: #ffffff;
  color: #475569;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.close_user:hover {
  background: #f1f5f9;
  color: var(--text);
}

.menu_content {
  flex: 1;
  overflow-y: auto;
  padding: 18px;
}

.menudiv p {
  font-size: 0.9rem;
  color: #475569;
  margin: 0 0 12px;
  line-height: 1.55;
}

.drawer-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 14px 0;
}

.drawer-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 12px;
  border-radius: 10px;
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--accent-dark);
  background: var(--surface-soft);
  border: 1px solid var(--border);
  text-align: center;
}

.drawer-pill:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #ffffff;
}

.megustamenu {
  width: 100%;
  justify-content: center;
  margin-bottom: 14px;
}