/* Quique Marduk · Magia & Humor */
:root {
  --bg: #0b0f1a;
  --bg-2: #111827;
  --bg-3: #172036;
  --ink: #eef0f5;
  --ink-2: #b7bdcc;
  --ink-3: #8790a5;
  --gold: #d6b25e;
  --gold-2: #f0d48f;
  --line: rgba(255, 255, 255, .09);
  --wa: #25d366;
  --radius: 14px;
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.1; margin: 0 0 .5em; letter-spacing: .005em; }
h1 { font-size: clamp(2.3rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1em; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--gold); color: #000; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--gold-2); outline-offset: 3px; border-radius: 6px; }

.wrap { width: min(1180px, 100% - 32px); margin-inline: auto; }
main > section { margin-block: clamp(56px, 8vw, 104px); }
main > section.hero, main > section.band { margin-block: 0; }
main > section.band + section, main > section + section.band { margin-top: clamp(56px, 8vw, 104px); }

.eyebrow { font-size: .78rem; letter-spacing: .22em; text-transform: uppercase; color: var(--gold); font-weight: 600; margin-bottom: .9em; }
.lead { font-size: 1.15rem; color: var(--ink-2); max-width: 62ch; }
.link { color: var(--gold-2); text-decoration: none; font-weight: 500; white-space: nowrap; }
.link:hover { text-decoration: underline; text-underline-offset: 4px; }

/* botones */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  padding: .85em 1.4em; border-radius: 999px; border: 1px solid transparent;
  font: 600 .98rem/1 var(--sans); text-decoration: none; cursor: pointer;
  transition: transform .15s, background .15s, border-color .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn svg { width: 1.25em; height: 1.25em; flex: none; }
.btn-wa { background: var(--wa); color: #06210f; }
.btn-wa:hover { background: #3be07a; }
.btn-ghost { border-color: rgba(255,255,255,.35); color: var(--ink); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold-2); }
.btn-gold { background: var(--gold); color: #1a1405; }
.btn-gold:hover { background: var(--gold-2); }
.btn.big { font-size: 1.1rem; padding: 1em 1.6em; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 15, 26, .82); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 72px; }
.brand img { width: 170px; height: auto; }
.nav { display: flex; align-items: center; gap: 22px; }
.nav ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav ul a { display: block; padding: 8px 12px; border-radius: 8px; text-decoration: none; color: var(--ink-2); font-size: .95rem; font-weight: 500; }
.nav ul a:hover { color: var(--ink); background: rgba(255,255,255,.05); }
.nav ul a[aria-current="page"] { color: var(--gold-2); }
.lang { border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; text-decoration: none; font-size: .82rem; font-weight: 600; letter-spacing: .08em; color: var(--ink-2); }
.lang:hover { border-color: var(--gold); color: var(--gold-2); }
.menu-toggle { display: none; }

@media (max-width: 900px) {
  .menu-toggle {
    display: grid; gap: 5px; place-content: center; width: 44px; height: 44px;
    background: none; border: 1px solid var(--line); border-radius: 10px; cursor: pointer;
  }
  .menu-toggle span:not(.sr) { display: block; width: 20px; height: 2px; background: var(--ink); transition: transform .2s, opacity .2s; }
  .menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .nav {
    position: absolute; inset: 72px 0 auto; flex-direction: column; align-items: stretch; gap: 12px;
    padding: 12px 16px 20px; background: var(--bg); border-bottom: 1px solid var(--line);
    display: none;
  }
  .nav.open { display: flex; }
  .nav ul { flex-direction: column; }
  .nav ul a { padding: 12px; font-size: 1.05rem; }
  .lang { align-self: flex-start; }
  .brand img { width: 140px; }
}

/* hero */
.hero { position: relative; overflow: hidden; min-height: min(86vh, 760px); display: grid; align-items: center; isolation: isolate; }
.hero-bg {
  position: absolute; inset: 0; z-index: -1;
  background-size: cover; background-position: 75% 20%;
}
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, var(--bg) 0%, rgba(11,15,26,.92) 32%, rgba(11,15,26,.35) 65%, rgba(11,15,26,.1) 100%),
    linear-gradient(0deg, var(--bg) 0%, transparent 30%);
}
.hero-inner { padding-block: 72px; }
.hero h1 { margin: 0 0 18px; }
.hero h1 img { width: min(520px, 100%); filter: drop-shadow(0 8px 30px rgba(0,0,0,.6)); }
.hero .lead { max-width: 44ch; margin-bottom: 1.8em; }
@media (max-width: 700px) {
  .hero { min-height: 0; align-items: end; }
  .hero-bg { background-position: 70% 0; }
  .hero-bg::after { background: linear-gradient(0deg, var(--bg) 18%, rgba(11,15,26,.75) 55%, rgba(11,15,26,.25) 100%); }
  .hero-inner { padding-top: 280px; padding-bottom: 40px; }
}

/* bloques en dos columnas */
.split { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(28px, 6vw, 80px); align-items: center; }
.split-text p { color: var(--ink-2); }
.split-img { width: 100%; border-radius: var(--radius); box-shadow: 0 30px 60px -30px rgba(0,0,0,.8); }
.split-img.portrait { max-height: 720px; object-fit: contain; box-shadow: none; }
.page-split { align-items: start; }
.page-split .split-text .btn { margin-top: .6em; }
.highlight { border-left: 3px solid var(--gold); padding: .3em 0 .3em 1em; color: var(--ink) !important; font-weight: 500; }
@media (max-width: 820px) {
  .split { grid-template-columns: 1fr; }
  .split-img { max-width: 520px; }
}

/* banda de color */
.band { background: linear-gradient(180deg, var(--bg-2), var(--bg-3)); border-block: 1px solid var(--line); padding-block: clamp(56px, 8vw, 96px); }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.cta h2 { max-width: 24ch; margin: 0; }

.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 28px; }
.section-head h2 { margin: 0; }
.page-head { margin-bottom: 32px !important; }
.page-head h1 { margin-bottom: .3em; }

/* videos */
.video-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.yt { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: #000; }
.yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.yt-btn { all: unset; position: absolute; inset: 0; cursor: pointer; }
.yt-btn img { width: 100%; height: 100%; object-fit: cover; opacity: .85; transition: opacity .2s, transform .4s; }
.yt-btn:hover img { opacity: 1; transform: scale(1.03); }
.yt-btn:focus-visible { outline: 2px solid var(--gold-2); outline-offset: -4px; }
.yt-play { position: absolute; inset: 0; display: grid; place-items: center; }
.yt-play svg { width: 68px; height: 48px; filter: drop-shadow(0 4px 12px rgba(0,0,0,.5)); }

/* tarjetas del catálogo */
.cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 20px; }
.card a {
  display: flex; flex-direction: column; height: 100%; text-decoration: none;
  background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  transition: transform .2s, border-color .2s, box-shadow .2s;
}
.card a:hover { transform: translateY(-3px); border-color: rgba(214,178,94,.5); box-shadow: 0 20px 40px -24px rgba(0,0,0,.9); }
.card-img { aspect-ratio: 1; background: #fff; overflow: hidden; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.card a:hover .card-img img { transform: scale(1.04); }
.noimg { display: block; width: 100%; height: 100%; background: var(--bg-3); }
.card-body { padding: 14px 16px 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card h3 { font-size: 1.25rem; margin: 0; }
.card-price { color: var(--gold-2); font-weight: 600; font-size: .95rem; margin-top: auto; }
@media (max-width: 520px) {
  .cards { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .card h3 { font-size: 1.05rem; }
  .card-body { padding: 10px 12px 14px; }
}

.search { position: relative; display: block; max-width: 460px; margin-top: 24px; }
.search svg { position: absolute; left: 16px; top: 50%; translate: 0 -50%; width: 18px; height: 18px; color: var(--ink-3); pointer-events: none; }
.search input {
  width: 100%; padding: 14px 18px 14px 46px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--bg-2); color: var(--ink); font: inherit;
}
.search input:focus { outline: none; border-color: var(--gold); }
.empty { color: var(--ink-3); padding: 40px 0; }

/* galería */
.gallery { list-style: none; margin: 0; padding: 0; columns: 3 260px; column-gap: 16px; }
.gallery li { break-inside: avoid; margin-bottom: 16px; }
.gallery-strip { columns: auto; display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.gallery-strip li { margin: 0; aspect-ratio: 1; }
.gallery-strip img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 820px) { .gallery-strip { grid-template-columns: repeat(3, 1fr); } }
.zoom { all: unset; display: block; cursor: zoom-in; border-radius: 10px; overflow: hidden; width: 100%; height: 100%; }
.zoom img { transition: transform .4s, opacity .2s; }
.zoom:hover img { transform: scale(1.03); }

.lightbox { padding: 0; border: 0; background: transparent; max-width: 94vw; max-height: 92vh; overflow: visible; }
.lightbox::backdrop { background: rgba(3, 5, 10, .9); }
.lightbox img { max-width: 94vw; max-height: 92vh; border-radius: 8px; }
.lb-close { position: fixed; top: 14px; right: 18px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255,255,255,.12); color: #fff; font-size: 28px; line-height: 1; cursor: pointer; }

/* ficha de truco */
.trick .back { display: inline-block; color: var(--ink-3); text-decoration: none; margin-bottom: 24px; font-size: .95rem; }
.trick .back:hover { color: var(--gold-2); }
.trick-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
.trick-media { position: sticky; top: 96px; }
.main-img { background: #fff; border-radius: var(--radius); }
.main-img img { width: 100%; }
.thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(90px, 1fr)); gap: 10px; margin-top: 12px; }
.thumbs .zoom { aspect-ratio: 1; background: #fff; }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.trick-info h1 { margin-bottom: .45em; }
.prose { color: var(--ink-2); }
.prose strong { color: var(--ink); }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: .35em; }
.prose li::marker { color: var(--gold); }
.buy { margin-top: 28px; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-2); }
.price { list-style: none; margin: 0 0 12px; padding: 0; font-family: var(--serif); font-size: 1.9rem; font-weight: 700; color: var(--gold-2); line-height: 1.2; }
.price li + li { font-size: 1.3rem; }
.note { font-size: .88rem; letter-spacing: .06em; text-transform: uppercase; color: var(--gold); font-weight: 600; }
.ship { margin: 12px 0 0; font-size: .9rem; color: var(--ink-3); }
.trick-videos { margin-top: 56px; }
.pager { display: flex; justify-content: space-between; gap: 16px; margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line); }
.pager a { color: var(--ink-2); text-decoration: none; max-width: 45%; }
.pager a:last-child { text-align: right; }
.pager a:hover { color: var(--gold-2); }
@media (max-width: 820px) {
  .trick-grid { grid-template-columns: 1fr; }
  .trick-media { position: static; max-width: 560px; }
}

/* contacto */
.wa-form { display: grid; gap: 16px; margin-top: 36px; max-width: 520px; }
.wa-form label { display: grid; gap: 6px; font-size: .9rem; color: var(--ink-2); font-weight: 500; }
.wa-form input, .wa-form textarea {
  padding: 12px 14px; border-radius: 10px; border: 1px solid var(--line);
  background: var(--bg-2); color: var(--ink); font: inherit; resize: vertical;
}
.wa-form input:focus, .wa-form textarea:focus { outline: none; border-color: var(--gold); }
.wa-form .btn { justify-self: start; }

/* footer */
.site-footer { border-top: 1px solid var(--line); background: #070a12; padding-top: 56px; margin-top: clamp(56px, 8vw, 104px); }
.footer-inner { display: grid; grid-template-columns: 1.2fr 1fr auto; gap: 40px; align-items: start; }
.footer-inner img { width: 180px; margin-bottom: 14px; }
.footer-inner p { color: var(--ink-3); max-width: 34ch; }
.footer-mail { margin: 12px 0 0; }
.footer-mail a { color: var(--ink-2); }
.footer-mail a:hover { color: var(--gold-2); }
.footer-nav { list-style: none; margin: 0; padding: 0; columns: 2; }
.footer-nav a { display: inline-block; padding: 4px 0; color: var(--ink-2); text-decoration: none; }
.footer-nav a:hover { color: var(--gold-2); }
.copy { color: var(--ink-3); font-size: .85rem; padding: 32px 0; margin: 32px auto 0; border-top: 1px solid var(--line); }
@media (max-width: 820px) { .footer-inner { grid-template-columns: 1fr; } }

.wa-float {
  position: fixed; right: 18px; bottom: 18px; z-index: 40; width: 56px; height: 56px; border-radius: 50%;
  display: grid; place-items: center; background: var(--wa); color: #fff; box-shadow: 0 10px 30px rgba(0,0,0,.45);
  transition: transform .15s;
}
.wa-float:hover { transform: scale(1.07); }
.wa-float svg { width: 30px; height: 30px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}
