/*
Theme Name: ZAK Games
Theme URI: https://zakgames.es
Author: ZAK Games
Description: Tema a medida de ZAK Games: apps, accesorios y rol para jugadores de verdad.
Version: 1.0.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; }
  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; }
