/*
Theme Name: MinerX
Theme URI: https://minerx.com.py
Author: MinerX
Description: Tema propio de MinerX — importación de mineradoras de cripto. Negro + dorado, catálogo con consulta por WhatsApp y portal de noticias.
Version: 0.7.4
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: minerx
WC requires at least: 7.0
WC tested up to: 11.0
*/

/* ============================================================
   MinerX — Hoja de estilos única (mockup)
   Sistema de diseño + componentes. Sin frameworks: CSS propio.
   ============================================================ */

/* ---------- Tokens ---------- */
:root {
  --gold: #f0b90b;
  --gold-2: #f6be16;
  --bg: #0d0d0d;
  --bg-elev: #141414;
  --bg-elev-2: #1a1a1a;
  --border: rgba(255, 255, 255, 0.10);
  --border-soft: rgba(255, 255, 255, 0.06);
  --text: #e5e2e1;
  --text-dim: #d3c5ac;
  --text-muted: #9b8f79;
  --white: #ffffff;
  --wa: #25d366;
  --wa-dark: #20bd5a;

  --container: 1200px;
  --header-h: 80px;
  --radius: 12px;
  --radius-sm: 8px;

  --font-body: 'Inter', system-ui, sans-serif;
  --font-head: 'Sora', 'Inter', sans-serif;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: clip;
}
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.2; margin: 0; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { margin: 0; padding: 0; list-style: none; }
iframe { border: 0; }

/* Textura "X" dorada + halo, de fondo */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  opacity: 0.04;
  background-image:
    linear-gradient(45deg, transparent 49.6%, var(--gold) 49.6%, var(--gold) 50.4%, transparent 50.4%),
    linear-gradient(-45deg, transparent 49.6%, var(--gold) 49.6%, var(--gold) 50.4%, transparent 50.4%);
  background-size: 1100px 1100px;
  background-position: center;
}
body::after {
  content: "";
  position: fixed;
  top: -220px; left: 50%;
  width: 900px; height: 900px;
  transform: translateX(-50%);
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(circle, rgba(240,185,11,.08) 0%, rgba(13,13,13,0) 68%);
}

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.section { padding: 72px 0; }
.section--tight { padding: 48px 0; }

.grid { display: grid; gap: 24px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

/* ---------- Tipografía utilitaria ---------- */
.eyebrow {
  display: inline-block;
  color: var(--gold);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
}
.section-head { text-align: center; max-width: 720px; margin: 0 auto 48px; }
.section-title { font-size: clamp(1.8rem, 4vw, 2.5rem); font-weight: 700; color: var(--white); }
.section-title--left { text-align: left; }
.lead { color: var(--text-dim); font-size: 1.05rem; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  cursor: pointer;
  border: 0;
  transition: transform .2s ease, background-color .2s ease, filter .2s ease;
  white-space: nowrap;
}
.btn--gold { background: var(--gold); color: #1a1a1a; }
.btn--gold:hover { filter: brightness(1.08); }
.btn--wa { background: var(--wa); color: var(--white); text-transform: none; letter-spacing: 0; }
.btn--wa:hover { background: var(--wa-dark); }
.btn--block { width: 100%; }
.btn .mi { font-size: 20px; }

/* Ícono Material Symbols */
.mi { font-family: 'Material Symbols Outlined'; font-weight: normal; font-style: normal; line-height: 1; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 1000;
  height: var(--header-h);
  background: rgba(13, 13, 13, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-soft);
}
.site-header__inner {
  max-width: var(--container);
  height: var(--header-h);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo { font-family: var(--font-head); font-weight: 800; font-size: 24px; letter-spacing: -0.02em; color: var(--gold); }
.nav { display: flex; gap: 32px; }
.nav__link {
  color: var(--text-dim);
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding-bottom: 4px;
  transition: color .2s ease;
}
.nav__link:hover { color: var(--gold); }
.nav__link.is-active { color: var(--gold); border-bottom: 2px solid var(--gold); }
.header-cta { padding: 12px 22px; }
.burger { display: none; background: none; border: 0; cursor: pointer; padding: 6px; color: var(--gold); line-height: 0; }

/* Menú móvil */
.mobile-menu {
  position: absolute;
  top: 100%; left: 0;
  width: 100%;
  z-index: 999;
  background: rgba(13, 13, 13, 0.98);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transform: translateY(-12px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
}
.mobile-menu.is-open { opacity: 1; transform: translateY(0); pointer-events: auto; }
.mobile-menu a {
  display: block;
  padding: 15px 24px;
  color: var(--text-dim);
  font-family: var(--font-head);
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border-bottom: 1px solid var(--border-soft);
}
.mobile-menu a:hover, .mobile-menu a.is-active { color: var(--gold); }
.mobile-menu .mobile-cta { margin: 14px 24px 18px; text-align: center; background: var(--gold); color: #1a1a1a; border-radius: var(--radius-sm); border-bottom: 0; font-weight: 700; }

/* ---------- Footer ---------- */
.site-footer { background: #0e0e0e; border-top: 1px solid var(--border-soft); padding: 56px 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; }
.footer-brand { color: var(--gold); font-family: var(--font-head); font-size: 24px; font-weight: 800; margin-bottom: 14px; }
.site-footer p { color: var(--text-dim); max-width: 360px; margin-bottom: 18px; }
.footer-copy { font-size: 13px; color: var(--text-muted); }
.site-footer h4 { color: var(--white); font-size: 18px; margin-bottom: 16px; }
.footer-list { display: flex; flex-direction: column; gap: 10px; }
.footer-list a { color: var(--text-dim); transition: color .2s ease; }
.footer-list a:hover { color: var(--white); }
.footer-list a.wa { color: var(--gold); font-weight: 700; }

/* ---------- Crédito del desarrollador ---------- */
.footer-credit {
  border-top: 1px solid var(--border-soft);
  margin-top: 24px;
  padding-top: 14px;
  text-align: center;
  font-size: 11px;
  letter-spacing: 0.01em;
  color: var(--text-muted);
  opacity: 0.75;
}
.footer-credit a { color: inherit; font-weight: 600; transition: color .2s ease; }
.footer-credit a:hover { color: var(--gold); }

/* ---------- Botón flotante WhatsApp ---------- */
.wa-fab {
  position: fixed;
  right: 24px; bottom: 24px;
  z-index: 1001;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--wa);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 20px rgba(0, 0, 0, .35);
  transition: transform .2s ease;
}
.wa-fab:hover { transform: scale(1.08); }

/* ---------- Íconos en círculo ---------- */
.icon-circle {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: rgba(240, 185, 11, 0.1);
  border: 1px solid rgba(240, 185, 11, 0.3);
  color: var(--gold);
  display: flex; align-items: center; justify-content: center;
}
.icon-circle .mi { font-size: 28px; }

/* ---------- Hero ---------- */
.hero {
  min-height: 88vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 24px;
}
.hero__title { font-size: clamp(2.4rem, 6vw, 4rem); font-weight: 700; color: var(--text); letter-spacing: -0.02em; }
.hero__accent { color: var(--gold); }
.hero__sub { color: var(--text-dim); font-size: 1.15rem; max-width: 640px; margin: 20px auto 28px; }

/* ---------- Tarjetas genéricas ---------- */
.card { background: var(--bg-elev); border: 1px solid var(--border); border-radius: var(--radius); padding: 32px; }
.card--center { text-align: center; display: flex; flex-direction: column; align-items: center; }

/* ---------- Beneficios ---------- */
.benefit { background: var(--bg-elev); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 16px; transition: transform .3s ease, border-color .3s ease; }
.benefit:hover { transform: translateY(-4px); border-color: rgba(240, 185, 11, 0.4); }
.benefit p { color: var(--text); font-size: 14px; font-weight: 500; }

/* ---------- Sección educativa ---------- */
.edu { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.edu h2 { font-size: clamp(1.6rem, 3.5vw, 2.2rem); color: var(--text); margin: 8px 0 16px; }
.edu p { color: var(--text-dim); margin-bottom: 16px; }
.edu .highlight { color: var(--gold); font-weight: 600; }
.video { position: relative; width: 100%; padding-bottom: 56.25%; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; }

/* ---------- Cómo funciona ---------- */
.step { background: rgba(26, 26, 26, 0.6); border: 1px solid var(--border-soft); border-radius: var(--radius); padding: 32px; text-align: center; display: flex; flex-direction: column; align-items: center; }
.step h3 { color: var(--text); font-size: 1.25rem; margin: 20px 0 12px; }
.step p { color: var(--text-dim); }

/* ---------- CTA ---------- */
.cta-band { text-align: center; }
.cta-band .card { max-width: 720px; margin: 0 auto; }
.cta-band h2 { color: var(--white); font-size: clamp(1.5rem, 3.5vw, 2rem); margin-bottom: 12px; }
.cta-band p { color: var(--text-dim); margin-bottom: 24px; }

/* ---------- Productos ---------- */
.section-bar { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 40px; gap: 16px; }
.link-gold { color: var(--gold); font-family: var(--font-head); font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; display: inline-flex; align-items: center; gap: 4px; }
.link-gold:hover { filter: brightness(1.1); }

.product { background: var(--bg-elev); border: 1px solid var(--border-soft); border-radius: var(--radius); padding: 20px; display: flex; flex-direction: column; transition: transform .3s ease, border-color .3s ease; }
.product:hover { transform: translateY(-6px); border-color: rgba(240, 185, 11, 0.3); }
.product__media { position: relative; aspect-ratio: 4 / 3; border-radius: var(--radius-sm); overflow: hidden; margin-bottom: 20px; background: #fff; }
.product__media img { width: 100%; height: 100%; object-fit: contain; padding: 14px; box-sizing: border-box; }
.product__name { color: var(--text); font-size: 1.25rem; margin-bottom: 16px; }
.product__specs { color: var(--text-dim); font-size: 13px; margin-bottom: 20px; flex-grow: 1; }
.spec { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--border); }
.spec strong { color: var(--text); font-weight: 500; }
.product .btn { margin-top: auto; }

/* ---------- Producto individual (detalle) ---------- */
.product-single {
  display: grid;
  grid-template-columns: minmax(0, 440px) minmax(0, 1fr);
  gap: 40px;
  align-items: start;
}
.product-single__media {
  min-width: 0;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--border);
}
.product-single__media img { width: 100%; height: 100%; object-fit: contain; padding: 24px; box-sizing: border-box; display: block; }
.product-single__info { min-width: 0; }
.product-single__specs { margin: 20px 0; color: var(--text-dim); font-size: 14px; }
.product-single__desc { color: var(--text-dim); font-size: 1.05rem; line-height: 1.75; margin: 20px 0 28px; overflow-wrap: break-word; }
.product-single__desc p { margin: 0 0 14px; }
.product-single__desc p:last-child { margin-bottom: 0; }
@media (max-width: 720px) {
  .product-single { grid-template-columns: 1fr; gap: 24px; }
}

/* ---------- Filtros / chips ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-bottom: 40px; }
.chip { display: inline-flex; align-items: center; padding: 8px 20px; border: 1px solid var(--border); border-radius: 999px; background: transparent; color: var(--text-dim); font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; cursor: pointer; transition: all .2s ease; text-decoration: none; }
.chip:hover { border-color: var(--gold); color: var(--gold); }
.chip.is-active { background: rgba(240, 185, 11, 0.12); border-color: var(--gold); color: var(--gold); }

/* ---------- Noticias ---------- */
.news-card { background: var(--bg-elev); border: 1px solid var(--border-soft); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: transform .3s ease, border-color .3s ease; }
.news-card:hover { transform: translateY(-4px); border-color: rgba(240, 185, 11, 0.3); }
.news-card__media { height: 200px; overflow: hidden; }
.news-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.news-card:hover .news-card__media img { transform: scale(1.05); }
.news-card__body { padding: 24px; display: flex; flex-direction: column; gap: 12px; flex-grow: 1; }
.news-card__body h3 { color: var(--text); font-size: 1.2rem; }
.news-card__body p { color: var(--text-dim); font-size: 15px; margin-top: auto; }
.tag { align-self: flex-start; padding: 4px 10px; border: 1px solid rgba(240, 185, 11, 0.4); border-radius: 4px; background: rgba(240, 185, 11, 0.1); color: var(--gold); font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; }
.news-meta { display: flex; justify-content: space-between; align-items: center; color: var(--text-muted); font-size: 13px; padding-top: 8px; }

/* ---------- Artículo ---------- */
.article { max-width: 820px; margin: 0 auto; }
.article__hero { text-align: center; margin-bottom: 40px; }
.article__cover { width: 100%; height: 340px; object-fit: cover; border-radius: var(--radius); margin-bottom: 24px; }
.article__title { font-size: clamp(1.8rem, 4vw, 2.6rem); color: var(--white); margin: 12px 0; }
.article__meta { color: var(--text-muted); font-size: 14px; }
.article__body { color: var(--text-dim); font-size: 1.05rem; }
.article__body h2 { color: var(--gold); font-size: 1.4rem; margin: 32px 0 12px; }
.article__body p { margin-bottom: 20px; }
.article__body img { border-radius: var(--radius); margin: 8px 0; }
.article__body figcaption { color: var(--text-muted); font-size: 13px; text-align: center; margin-top: 8px; }
.author { display: flex; gap: 16px; align-items: center; background: var(--bg-elev); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; margin: 32px 0; }
.author img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; }
.author strong { color: var(--white); font-family: var(--font-head); }
.author span { color: var(--text-dim); font-size: 14px; }

/* ---------- Contacto / Nosotros ---------- */
.page-head { text-align: center; margin-bottom: 48px; }
.page-title { font-size: clamp(2rem, 5vw, 3rem); font-weight: 700; color: var(--white); margin-top: 8px; }
.contact-card { text-align: center; display: flex; flex-direction: column; align-items: center; }
.contact-card h3 { color: var(--white); font-size: 1.25rem; }
.contact-card .role { color: var(--gold); font-size: 14px; font-weight: 500; margin-top: 4px; }
.contact-card .phone { color: var(--text-dim); display: flex; align-items: center; gap: 8px; margin: 12px 0 20px; }
.address-card { display: flex; align-items: center; gap: 24px; }
.quote { background: var(--bg-elev); border-left: 4px solid var(--gold); border-radius: 0 var(--radius) var(--radius) 0; padding: 32px; }
.quote p { font-family: var(--font-head); font-size: clamp(1.25rem, 2.5vw, 1.6rem); font-style: italic; color: var(--white); line-height: 1.4; }
.about-card h2 { color: var(--white); font-size: 1.5rem; margin: 20px 0 12px; }
.about-card p { color: var(--text-dim); }

/* ---------- FAQ ---------- */
.faq { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 16px; }
.faq details { background: var(--bg-elev); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.faq details[open] { border-color: rgba(240, 185, 11, 0.4); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 24px; display: flex; justify-content: space-between; align-items: center; gap: 16px; font-family: var(--font-head); font-weight: 600; color: var(--white); font-size: 1.05rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .mi { color: var(--gold); transition: transform .3s ease; }
.faq details[open] summary .mi { transform: rotate(180deg); }
.faq .answer { padding: 0 24px 22px; color: var(--text-dim); line-height: 1.7; }

/* ---------- Utilidades ---------- */
.text-center { text-align: center; }
.mt-auto { margin-top: auto; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 900px) {
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .edu { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}
@media (max-width: 820px) {
  .nav, .header-cta { display: none; }
  .burger { display: block; }
}
@media (max-width: 600px) {
  .grid--4, .grid--3, .grid--2 { grid-template-columns: 1fr; }
  .section { padding: 48px 0; }
  .address-card { flex-direction: column; text-align: center; }
  .section-bar { flex-direction: column; align-items: flex-start; }
}
