/*
Theme Name: ZAK Games
Theme URI: https://zakgames.es
Author: ZAK Games
Description: Tema a medida de ZAK Games. Textos e imágenes editables en Apariencia > Personalizar > Contenido de la web.
Version: 2.8.0
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: zakgames
*/

:root {
  --bg: #0e0f12;
  --bg-2: #15171c;
  --line: #2a2d35;
  --grid: rgba(255,255,255,.035);
  --text: #eceae4;
  --muted: #9a9ca5;
  --gold: #f5c542;
  --gold-soft: rgba(245,197,66,.14);
  --pink: #ff5fd2;
  --pink-soft: rgba(255,95,210,.14);
  --radius: 10px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background-color: var(--bg);
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 32px 32px;
  color: var(--text);
  font-family: 'Inter', system-ui, sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; }
.frame img { display: block; width: 100%; height: 100%; object-fit: cover; }
a { color: inherit; }

/* ---------- nav ---------- */
.site-nav {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px clamp(16px, 5vw, 64px);
  background: rgba(14,15,18,.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.brand { font-family: 'Archivo Black', sans-serif; letter-spacing: .04em; text-decoration: none; font-size: 1.05rem; }
.brand span { color: var(--gold); }
.site-nav ul { list-style: none; display: flex; gap: clamp(12px, 3vw, 28px); font-size: .88rem; }
.site-nav ul a { text-decoration: none; color: var(--muted); transition: color .2s; }
.site-nav ul a:hover { color: var(--text); }

/* ---------- layout ---------- */
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 clamp(16px, 5vw, 64px); }
.front > section { padding: clamp(32px, 5vw, 64px) 0; border-bottom: 1px solid var(--line); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: start; }

.eyebrow {
  display: inline-block;
  font-size: .72rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
  color: var(--gold);
  padding-bottom: 10px; margin-bottom: 18px;
  border-bottom: 2px solid var(--gold);
}
h1, h2 {
  font-family: 'Archivo Black', sans-serif;
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -.01em;
}
h1 { font-size: clamp(2.6rem, 6.2vw, 5rem); }
h2 { font-size: clamp(2.2rem, 4.6vw, 3.8rem); }
.hl { color: var(--gold); }
.lead { color: var(--muted); font-size: 1.05rem; max-width: 46ch; margin-top: 22px; }

.btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.btn {
  display: inline-block; text-decoration: none; font-weight: 600; font-size: .92rem;
  padding: 12px 22px; border-radius: 999px; border: 1px solid var(--line);
  transition: transform .2s, background .2s, border-color .2s;
}
.btn:hover { transform: translateY(-2px); border-color: var(--muted); }
.btn.primary { background: var(--gold); border-color: var(--gold); color: #15130a; }
.btn.primary:hover { background: #ffd65c; }

/* ---------- image frames ---------- */
.frame {
  position: relative; overflow: hidden;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--bg-2);
  cursor: zoom-in;
}
.frame img { transition: transform .5s ease; }
.frame:hover img { transform: scale(1.04); }
.frame figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 22px 12px 8px;
  font-size: .74rem; color: #fff;
  background: linear-gradient(transparent, rgba(0,0,0,.75));
  opacity: 0; transition: opacity .25s;
}
.frame:hover figcaption { opacity: 1; }

/* hero: 2x2 grid */
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.hero-grid .frame { aspect-ratio: 1 / 1; }
.hero-grid .frame:nth-child(even) { transform: translateY(26px); }

/* big + 3 thumbs */
.gallery { display: grid; gap: 10px; }
.gallery .main { aspect-ratio: 16 / 10; }
.thumbs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.thumbs .frame { aspect-ratio: 4 / 3; }
.contain img { object-fit: contain; background: #0b0d14; }

.features { list-style: none; margin-top: 26px; display: grid; gap: 10px; }
.features li {
  display: flex; gap: 12px; align-items: baseline;
  padding: 12px 16px; border-radius: 8px;
  background: var(--bg-2); border: 1px solid var(--line);
  font-size: .95rem;
}
.features li::before { content: '▸'; color: var(--gold); }

/* ---------- RAMA / O.S. Human ---------- */
#rama .eyebrow { color: var(--pink); border-color: var(--pink); }
#rama .features li::before { color: var(--pink); }
.rama-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.rama-media { display: grid; grid-template-columns: 2.1fr 1fr; gap: 10px; }
.rama-media .cover { aspect-ratio: 635 / 905; }
.rama-media .stack { display: grid; grid-template-rows: repeat(3, 1fr); gap: 10px; }
.rama-media .stack .frame img { object-position: top; }
.rama-title { font-size: clamp(2.6rem, 6vw, 5rem); }
.rama-title .pink {
  display: block; color: var(--pink);
  text-shadow: 0 0 24px rgba(255,95,210,.45);
}
.tagline { font-style: italic; color: var(--text); margin-top: 18px; font-size: 1.05rem; }

/* ---------- contacto ---------- */
#contacto { background: rgba(21,23,28,.6); }
.contact-head { text-align: center; margin-bottom: clamp(28px, 4vw, 44px); }
.contact-head .eyebrow { border: 0; padding: 0; margin-bottom: 12px; }
.contact-head h2 { font-size: clamp(2rem, 4vw, 2.8rem); }
.contact-head .lead { margin: 14px auto 0; max-width: 60ch; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 6vw, 72px); align-items: start; }
.contact-form { display: grid; gap: 18px; }
.contact-form label {
  display: grid; gap: 8px;
  font-size: .78rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted);
}
.contact-form input, .contact-form select, .contact-form textarea {
  width: 100%; font: inherit; font-size: .98rem; text-transform: none; letter-spacing: 0;
  color: var(--text); background: var(--bg-2);
  border: 1px solid var(--line); border-radius: 6px;
  padding: 12px 16px;
  transition: border-color .2s;
}
.contact-form textarea { min-height: 120px; resize: vertical; }
.contact-form input::placeholder, .contact-form textarea::placeholder { color: #6b6e78; }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { outline: none; border-color: var(--gold); }
.contact-form button {
  font: inherit; font-weight: 600; cursor: pointer;
  padding: 13px; border: 0; border-radius: 6px;
  background: var(--gold); color: #15130a;
  transition: background .2s;
}
.contact-form button:hover { background: #ffd65c; }
.contact-info h3 { font-family: 'Archivo Black', sans-serif; font-weight: 400; font-size: 1.4rem; margin-bottom: 26px; }
.contact-info ul { list-style: none; display: grid; gap: 14px; margin-bottom: 30px; }
.contact-info li { display: flex; gap: 12px; align-items: center; color: var(--muted); }
.contact-info li a { color: var(--gold); text-decoration: none; }
.contact-info li a:hover { text-decoration: underline; }
.contact-info p { color: var(--muted); font-size: .95rem; }

/* ---------- footer ---------- */
.site-footer { padding: 48px 0 60px; text-align: center; color: var(--muted); font-size: .88rem; }
.site-footer .brand { display: inline-block; margin-bottom: 8px; font-size: 1.2rem; color: var(--text); }

/* ---------- lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 50;
  display: none; align-items: center; justify-content: center; flex-direction: column; gap: 14px;
  padding: 24px;
  background: rgba(5,6,8,.92);
  cursor: zoom-out;
}
.lightbox.open { display: flex; }
.lightbox img { width: auto; height: auto; max-width: 100%; max-height: 82vh; object-fit: contain; border-radius: 8px; }
.lightbox p { color: var(--muted); font-size: .9rem; text-align: center; }

/* ---------- reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .frame img, .btn { transition: none; }
}

/* ---------- responsive ---------- */
@media (max-width: 860px) {
  .split, .rama-grid, .contact-grid { grid-template-columns: 1fr; }
  .split > .gallery, .split > .hero-grid, .rama-media { order: 2; }
  .hero-grid .frame:nth-child(even) { transform: none; }
  .site-nav ul { display: none; }
}

/* ---------- WordPress ---------- */
.admin-bar .site-nav { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-nav { top: 46px; } }

.form-notice { grid-column: 1 / -1; padding: 14px 18px; border-radius: 6px; font-size: .95rem; margin-bottom: 8px; }
.form-notice.ok { background: var(--gold-soft); border: 1px solid var(--gold); color: var(--text); }
.form-notice.error { background: rgba(229,72,77,.12); border: 1px solid #e5484d; color: var(--text); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Páginas y entradas normales */
.page-content { max-width: 760px; padding-top: clamp(32px, 5vw, 64px); padding-bottom: clamp(32px, 5vw, 64px); }
.page-content article + article { margin-top: 48px; padding-top: 48px; border-top: 1px solid var(--line); }
.page-content h1 { font-family: 'Archivo Black', sans-serif; font-weight: 400; font-size: clamp(2rem, 4vw, 3rem); line-height: 1.1; margin-bottom: 24px; }
.page-content h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin: 32px 0 14px; }
.page-content h2 a { text-decoration: none; }
.page-content h3 { font-size: 1.25rem; margin: 26px 0 10px; }
.page-content p, .page-content ul, .page-content ol, .page-content figure, .page-content blockquote { margin-bottom: 18px; }
.page-content ul, .page-content ol { padding-left: 1.4em; }
.page-content a { color: var(--gold); }
.page-content img { border-radius: 8px; }
.page-content .meta { color: var(--muted); font-size: .88rem; margin-bottom: 12px; }
.page-content .nav-links { display: flex; gap: 12px; margin-top: 40px; }

/* ---------- Botones extra ---------- */
.btn-play { display: inline-flex; align-items: center; gap: 10px; }
.btn.small { padding: 8px 16px; font-size: .84rem; }

/* ---------- Catálogo de accesorios ---------- */
.catalog-head { padding: clamp(32px, 5vw, 64px) 0 clamp(20px, 3vw, 32px); }
.catalog-head h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); }
.catalog-list { padding-bottom: clamp(40px, 6vw, 80px); border-bottom: 1px solid var(--line); }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.chip {
  text-decoration: none; font-size: .88rem; font-weight: 500;
  padding: 8px 16px; border-radius: 999px;
  border: 1px solid var(--line); color: var(--muted);
  transition: border-color .2s, color .2s;
}
.chip:hover { color: var(--text); border-color: var(--muted); }
.chip.active { background: var(--gold); border-color: var(--gold); color: #15130a; }

.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.product-card {
  display: flex; flex-direction: column;
  background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; transition: border-color .2s, transform .2s;
}
.product-card:hover { border-color: var(--gold); transform: translateY(-3px); }
.product-media { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: #0b0d14; }
.product-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.product-card:hover .product-media img { transform: scale(1.04); }
.product-body { display: flex; flex-direction: column; gap: 10px; padding: 18px 20px 20px; flex: 1; }
.product-body h2 { font-family: 'Inter', sans-serif; font-weight: 600; font-size: 1.12rem; line-height: 1.35; letter-spacing: 0; }
.product-body h2 a { text-decoration: none; }
.product-body h2 a:hover { color: var(--gold); }
.product-excerpt { color: var(--muted); font-size: .92rem; }
.product-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.product-tags a {
  font-size: .7rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; text-decoration: none;
  color: var(--gold); background: var(--gold-soft); padding: 3px 9px; border-radius: 4px;
}
.product-note {
  font-size: .9rem; padding: 10px 14px; border-radius: 6px;
  border-left: 3px solid var(--gold); background: var(--gold-soft);
}
.product-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 8px; }
.price { font-weight: 600; }
.price.big { font-size: 1.4rem; color: var(--gold); margin: 6px 0 18px; }
.product-ph {
  width: 100%; height: 100%; min-height: 200px; display: grid; place-items: center;
  background: repeating-linear-gradient(135deg, #15171c 0 14px, #121419 14px 28px);
  font-family: 'Archivo Black', sans-serif; font-size: 1.3rem; color: #3a3d46;
}
.product-ph b { font-weight: 400; color: rgba(245,197,66,.35); }
.catalog-empty { color: var(--muted); font-size: 1.05rem; padding: 40px 0; }
.catalog-empty a { color: var(--gold); }
.catalog .nav-links, .product-single .nav-links { display: flex; gap: 10px; margin-top: 36px; }
.catalog .page-numbers { padding: 6px 12px; border: 1px solid var(--line); border-radius: 6px; text-decoration: none; }
.catalog .page-numbers.current { background: var(--gold); color: #15130a; border-color: var(--gold); }

/* ---------- Ficha de accesorio ---------- */
.product-single { padding: clamp(28px, 4vw, 48px) 0 clamp(40px, 6vw, 80px); border-bottom: 1px solid var(--line); }
.back-link { display: inline-block; color: var(--muted); text-decoration: none; font-size: .9rem; margin-bottom: 24px; }
.back-link:hover { color: var(--text); }
.product-single h1 { font-family: 'Archivo Black', sans-serif; font-weight: 400; font-size: clamp(1.9rem, 4vw, 3rem); line-height: 1.08; margin-top: 12px; }
.product-main { aspect-ratio: 4 / 3; }
.product-gallery .product-ph { aspect-ratio: 4 / 3; border-radius: var(--radius); border: 1px solid var(--line); }
.entry { color: var(--muted); margin-top: 20px; }
.entry p, .entry ul, .entry ol, .entry figure { margin-bottom: 16px; }
.entry ul, .entry ol { padding-left: 1.3em; }
.entry a { color: var(--gold); }
.entry img { border-radius: 8px; cursor: zoom-in; }
.entry .wp-block-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px; }
.entry .wp-block-gallery figure { margin: 0; }
.entry .wp-block-gallery img { width: 100%; height: 100%; aspect-ratio: 1; object-fit: cover; }
@media (max-width: 860px) {
  .product-single .split > .product-gallery { order: 0; }
}

/* ---------- Cesta de pedido ---------- */
[hidden] { display: none !important; }
button.btn { font-family: inherit; line-height: inherit; cursor: pointer; background: transparent; color: var(--text); }
.link-btn { font: inherit; font-size: .85rem; background: none; border: 0; color: var(--gold); cursor: pointer; text-decoration: underline; padding: 0; }

.site-nav ul { margin-left: auto; }
.cart-link {
  display: none; align-items: center; gap: 8px;
  font: inherit; font-size: .88rem; font-weight: 600; cursor: pointer;
  color: var(--text); background: var(--gold-soft);
  border: 1px solid var(--gold); border-radius: 999px; padding: 6px 12px;
}
.cart-link.has-items { display: inline-flex; }
.cart-count {
  min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px;
  display: inline-grid; place-items: center;
  background: var(--gold); color: #15130a; font-size: .75rem;
}

.cesta-backdrop { position: fixed; inset: 0; z-index: 60; background: rgba(5,6,8,.6); }
.cesta {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 61;
  width: min(420px, 100%);
  display: flex; flex-direction: column; gap: 14px;
  padding: 22px 20px;
  background: var(--bg); border-left: 1px solid var(--line);
  overflow-y: auto;
  transform: translateX(100%); visibility: hidden;
  transition: transform .3s ease, visibility .3s;
}
.cesta.open { transform: none; visibility: visible; }
.admin-bar .cesta { top: 32px; }
@media (max-width: 782px) { .admin-bar .cesta { top: 46px; } }
.cesta-head { display: flex; justify-content: space-between; align-items: center; }
.cesta-head h2 { font-size: 1.5rem; }
.cesta-close { font-size: 1.8rem; line-height: 1; background: none; border: 0; color: var(--muted); cursor: pointer; }
.cesta-close:hover { color: var(--text); }
.cesta-help { color: var(--muted); font-size: .9rem; }
.cesta-items { list-style: none; display: grid; gap: 12px; }
.cesta-item {
  display: grid; grid-template-columns: 64px 1fr; gap: 12px;
  padding: 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg-2);
}
.cesta-item img, .cesta-ph { width: 64px; height: 64px; object-fit: cover; border-radius: 6px; background: #1c1f26; }
.cesta-info { display: grid; gap: 6px; min-width: 0; }
.cesta-title { font-weight: 600; font-size: .95rem; text-decoration: none; line-height: 1.3; }
.cesta-title:hover { color: var(--gold); }
.cesta-price { color: var(--muted); font-size: .85rem; }
.cesta-qty { display: flex; align-items: center; gap: 8px; }
.cesta-qty button {
  width: 28px; height: 28px; border-radius: 6px; cursor: pointer;
  font: inherit; font-weight: 600; color: var(--text);
  background: transparent; border: 1px solid var(--line);
}
.cesta-qty button:hover { border-color: var(--gold); }
.cesta-qty span { min-width: 20px; text-align: center; font-weight: 600; }
.cesta-qty .cesta-del { width: auto; margin-left: auto; padding: 0 10px; font-size: .8rem; font-weight: 500; color: var(--muted); }
.cesta-note {
  width: 100%; font: inherit; font-size: .85rem; color: var(--text);
  background: var(--bg); border: 1px solid var(--line); border-radius: 6px; padding: 7px 10px;
}
.cesta-note:focus { outline: none; border-color: var(--gold); }
.cesta-empty { color: var(--muted); }
.cesta-empty a { color: var(--gold); }
.cesta-foot { display: grid; gap: 10px; margin-top: auto; padding-top: 8px; }
.cesta-foot .btn { text-align: center; }

.cesta-toast {
  position: fixed; left: 50%; bottom: 20px; z-index: 55; transform: translateX(-50%);
  display: flex; align-items: center; gap: 14px;
  width: max-content; max-width: calc(100% - 32px);
  padding: 12px 16px; border-radius: 8px;
  background: var(--bg-2); border: 1px solid var(--gold);
  box-shadow: 0 10px 30px rgba(0,0,0,.4); font-size: .9rem;
}
.cesta-toast span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cesta-toast button { font: inherit; font-weight: 600; color: var(--gold); background: none; border: 0; cursor: pointer; white-space: nowrap; }

.order-summary {
  padding: 14px 16px; border-radius: 6px;
  border: 1px solid var(--gold); background: var(--gold-soft);
  font-size: .95rem;
}
.contact-form .link-btn, .contact-form .link-btn:hover { background: none; padding: 0; border-radius: 0; font-weight: 500; color: var(--gold); }
.order-summary-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.order-summary ul { list-style: none; display: grid; gap: 4px; }
.order-summary li::before { content: '▸ '; color: var(--gold); }

/* ---------- Botones de color de la portada ---------- */
.btn.btn-app { background: #3d6ef5; border-color: #3d6ef5; color: #fff; }
.btn.btn-app:hover { background: #5a86ff; border-color: #5a86ff; }
.btn.btn-rol { background: #b43cff; border-color: #b43cff; color: #fff; box-shadow: 0 0 18px rgba(180,60,255,.45); }
.btn.btn-rol:hover { background: #c75cff; border-color: #c75cff; box-shadow: 0 0 26px rgba(199,92,255,.6); }

/* ---------- Total del pedido ---------- */
.cesta-total, .order-total { font-weight: 600; color: var(--gold); }
.cesta-total { font-size: 1.05rem; padding-bottom: 4px; border-bottom: 1px solid var(--line); }
.order-total { margin-top: 10px; padding-top: 10px; border-top: 1px solid rgba(245,197,66,.35); }

/* ---------- Política de privacidad de la app ---------- */
.legal { padding: clamp(32px, 5vw, 64px) 0 clamp(40px, 6vw, 80px); border-bottom: 1px solid var(--line); }
.legal .wrap { max-width: 860px; }
.legal h1 { font-family: "Archivo Black", sans-serif; font-weight: 400; font-size: clamp(2rem, 4.5vw, 3.2rem); line-height: 1.08; }
.legal-sub { color: var(--muted); margin-top: 8px; }
.legal-langs { margin: 24px 0 28px; }
.legal section {
  scroll-margin-top: 80px;
  background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(20px, 3vw, 32px); margin-bottom: 20px;
}
.legal h2 { font-size: 1.5rem; margin-bottom: 4px; }
.legal h3 { font-size: 1.05rem; margin: 22px 0 6px; color: var(--gold); }
.legal p, .legal li { color: #c9cbd2; }
.legal .date { color: var(--muted); font-size: .9rem; margin-bottom: 12px; }
.legal ul { padding-left: 1.3em; margin: 6px 0; }
.legal a { color: var(--gold); }
.small-link { margin-top: 14px; font-size: .88rem; }
.small-link a { color: var(--muted); }
.small-link a:hover { color: var(--text); }
.footer-links { margin-top: 10px; font-size: .82rem; }
.footer-links a { color: var(--muted); }
.footer-links a:hover { color: var(--text); }
