/* =====================================================
   THE MINING ROOM — Shared Stylesheet
   ===================================================== */

/* ========================
   PAGE LOADER
   ======================== */
#page-loader {
  position: fixed; inset: 0; z-index: 9999;
  background: #080c14;
  display: flex; align-items: center; justify-content: center;
  flex-direction: column; gap: 28px;
  transition: opacity .45s ease;
  pointer-events: none;
}
#page-loader img { height: 46px; opacity: .95; }
#page-loader .loader-bar-wrap {
  width: 140px; height: 2px;
  background: rgba(240,160,48,.18); border-radius: 2px; overflow: hidden;
}
#page-loader .loader-bar {
  height: 100%; width: 0%;
  background: #f0a030;
  border-radius: 2px;
  animation: loader-fill .85s cubic-bezier(.4,0,.2,1) forwards;
}
@keyframes loader-fill { to { width: 100%; } }

/* =====================================================
   THE MINING ROOM — Shared Stylesheet (continued)
   PHP: link this in your <head> across all templates
   ===================================================== */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:         #080c14;
  --bg2:        #0f1422;
  --bg3:        #141828;
  --bg4:        #1a2035;
  --accent:     #f0a030;
  --accent-dim: rgba(240,160,48,0.14);
  --text:       #f0f2f8;
  --text2:      #8892aa;
  --text3:      #454f6a;
  --border:     #1e2440;
  --border2:    #2a3260;
  --radius:     12px;
  --radius-lg:  20px;
  --max-w:      1180px;
  --nav-h:      72px;
}

html { scroll-behavior: smooth; }
body {
  font-family: 'Space Grotesk', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
input, textarea, button, select { font-family: inherit; }

/* ========================
   LAYOUT
   ======================== */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }
.section    { padding: 96px 0; }
.section-sm { padding: 60px 0; }

/* ========================
   NAV  (PHP: header.php)
   ======================== */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: var(--nav-h);
  display: flex; align-items: center;
  background: rgba(8,12,20,0.96);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: var(--max-w); margin: 0 auto; padding: 0 24px;
  width: 100%;
  display: flex; align-items: center; gap: 40px;
}
.nav-logo img { height: 42px; }
.nav-links {
  display: flex; align-items: center; gap: 32px;
  list-style: none; flex: 1;
}
.nav-links a {
  font-size: 15px; font-weight: 500; color: var(--text2);
  transition: color .2s; white-space: nowrap;
}
.nav-links a:hover,
.nav-links a.active { color: var(--accent); }
.nav-social {
  display: flex; align-items: center; gap: 18px; margin-left: auto;
}
.nav-social a {
  color: var(--text2); font-size: 17px;
  transition: color .2s; display: flex; align-items: center;
}
.nav-social a:hover { color: var(--accent); }
.nav-burger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 6px;
}
.nav-burger span {
  display: block; width: 22px; height: 2px;
  background: var(--text); border-radius: 2px; transition: transform .3s;
}

/* Mobile menu */
.mobile-menu {
  display: none;
  position: fixed; top: var(--nav-h); left: 0; right: 0; bottom: 0;
  background: var(--bg); z-index: 999;
  flex-direction: column; padding: 36px 28px;
  overflow-y: auto;
}
.mobile-menu.open { display: flex; }
.mobile-menu nav-link {
  font-size: 22px; font-weight: 600; padding: 18px 0;
  border-bottom: 1px solid var(--border); color: var(--text); display: block;
}
.mobile-menu a {
  font-size: 22px; font-weight: 600; padding: 18px 0;
  border-bottom: 1px solid var(--border); color: var(--text); display: block;
}
.mobile-menu a:hover { color: var(--accent); }
.mobile-menu-social {
  display: flex; gap: 20px; margin-top: 28px;
}
.mobile-menu-social a { color: var(--text2); font-size: 20px; }
.mobile-menu-social a:hover { color: var(--accent); }

@media (max-width: 860px) {
  .nav-links, .nav-social { display: none; }
  .nav-burger { display: flex; }
}

/* ========================
   PAGE HERO
   ======================== */
.page-hero {
  padding-top: calc(var(--nav-h) + 72px); padding-bottom: 72px;
  text-align: center;
  background: linear-gradient(180deg, var(--bg2) 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--border);
}
.page-hero h1 {
  font-size: clamp(36px, 5vw, 64px); font-weight: 700; letter-spacing: -1px;
}
.page-hero .breadcrumb {
  display: flex; justify-content: center; gap: 8px;
  font-size: 13px; color: var(--text2); margin-bottom: 20px;
  align-items: center;
}
.page-hero .breadcrumb a:hover { color: var(--accent); }
.page-hero p {
  color: var(--text2); font-size: 18px; margin-top: 16px;
  max-width: 560px; margin-inline: auto;
}

/* ========================
   BUTTONS
   ======================== */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 26px; border-radius: 8px;
  font-weight: 600; font-size: 15px;
  transition: all .2s; cursor: pointer; border: none;
  font-family: inherit; text-decoration: none;
}
.btn-primary { background: var(--accent); color: #000; }
.btn-primary:hover { background: #ffb840; transform: translateY(-1px); }
.btn-dark    { background: #000; color: #fff; }
.btn-dark:hover { background: #111; }
.btn-outline {
  border: 1.5px solid var(--border2); color: var(--text); background: transparent;
}
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }
.btn-sm { padding: 9px 18px; font-size: 13px; }
.btn-whatsapp {
  background: #25d366; color: #fff;
  width: 100%; justify-content: center;
}
.btn-whatsapp:hover { background: #1db954; }

/* ========================
   SECTION HEADER
   ======================== */
.section-label {
  font-size: 11px; font-weight: 700; letter-spacing: 2.5px;
  text-transform: uppercase; color: var(--accent); margin-bottom: 12px;
}
.section-title {
  font-size: clamp(28px, 3.5vw, 48px); font-weight: 700;
  letter-spacing: -0.5px; line-height: 1.15;
}
.section-sub {
  color: var(--text2); font-size: 17px; margin-top: 16px; max-width: 560px;
}

/* ========================
   GRID HELPERS
   ======================== */
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.grid-2 { display: grid; grid-template-columns: repeat(2,1fr); gap: 32px; }
.grid-4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 24px; }

@media (max-width: 1024px) { .grid-3 { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 640px)  {
  .grid-3, .grid-2, .grid-4 { grid-template-columns: 1fr; }
}
@media (max-width: 768px) { .grid-4 { grid-template-columns: repeat(2,1fr); } }

/* ========================
   CARDS
   ======================== */
.card {
  background: var(--bg3); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
  transition: border-color .2s, transform .2s;
}
.card:hover { border-color: var(--border2); transform: translateY(-3px); }

/* Service card */
.service-card {
  background: var(--bg3); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
  display: flex; flex-direction: column;
  transition: border-color .25s, transform .25s;
}
.service-card:hover { border-color: rgba(240,160,48,.4); transform: translateY(-4px); }
.service-img { width: 100%; height: 220px; object-fit: cover; }
.service-body { padding: 24px; display: flex; flex-direction: column; gap: 10px; }
.service-num  { font-size: 11px; font-weight: 700; letter-spacing: 2px; color: var(--accent); text-transform: uppercase; }
.service-title { font-size: 20px; font-weight: 700; }
.service-desc  { color: var(--text2); font-size: 15px; flex: 1; }
.read-more {
  font-size: 14px; font-weight: 600; color: var(--accent);
  display: inline-flex; align-items: center; gap: 6px; margin-top: 8px;
}
.read-more:hover { opacity: .75; }

/* Product card */
.product-card {
  background: var(--bg3); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
  display: flex; flex-direction: column;
  transition: border-color .25s, transform .25s;
}
.product-card:hover { border-color: var(--accent); transform: translateY(-4px); }
.product-img    { width: 100%; height: 200px; object-fit: cover; }
.product-body   { padding: 20px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.product-brand  { font-size: 10px; font-weight: 700; letter-spacing: 1.5px; color: var(--accent); text-transform: uppercase; }
.product-name   { font-size: 17px; font-weight: 700; line-height: 1.3; }
.product-prod   { font-size: 13px; color: var(--text2); }
.product-price  { font-size: 30px; font-weight: 700; color: var(--accent); line-height: 1; }
.product-specs  { display: flex; flex-direction: column; gap: 0; margin-top: 4px; }
.spec-row {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 13px; color: var(--text2); padding: 7px 0;
  border-bottom: 1px solid var(--border);
}
.spec-row:last-child { border-bottom: none; }
.spec-val { color: var(--text); font-weight: 600; }
.product-footer { margin-top: auto; padding-top: 12px; }

/* Team card */
.team-card {
  position: relative; overflow: hidden; border-radius: var(--radius);
  background: var(--bg3); border: 1px solid var(--border);
  transition: border-color .2s;
}
.team-card:hover { border-color: var(--border2); }
.team-img { width: 100%; aspect-ratio: 3/4; object-fit: cover; display: block; }
.team-overlay {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: linear-gradient(0deg,rgba(8,12,20,.96) 0%,transparent 100%);
  padding: 24px 20px 20px;
}
.team-name  { font-size: 18px; font-weight: 700; }
.team-role  { font-size: 13px; color: var(--text2); margin-top: 3px; }
.team-socials { display: flex; gap: 14px; margin-top: 12px; }
.team-socials a { color: var(--text2); font-size: 15px; transition: color .2s; }
.team-socials a:hover { color: var(--accent); }

/* ========================
   TABS
   ======================== */
.tabs {
  display: flex; gap: 4px;
  background: var(--bg3); border: 1px solid var(--border);
  border-radius: 10px; padding: 4px;
}
.tab-btn {
  flex: 1; padding: 10px 22px; border-radius: 8px;
  font-size: 14px; font-weight: 600; background: none; border: none;
  cursor: pointer; color: var(--text2); transition: all .2s; font-family: inherit;
}
.tab-btn.active { background: var(--accent); color: #000; }
.tab-btn:hover:not(.active) { color: var(--text); }

/* ========================
   MAYORISTA BANNER
   ======================== */
.mayorista-banner {
  background: linear-gradient(135deg,rgba(240,160,48,.12),rgba(240,160,48,.04));
  border: 1px solid rgba(240,160,48,.3);
  border-radius: var(--radius);
  padding: 20px 28px; margin-bottom: 32px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  flex-wrap: wrap;
}
.mayorista-banner h3 { font-size: 18px; font-weight: 700; }
.mayorista-banner p  { font-size: 13px; color: var(--text2); margin-top: 3px; }
.badge {
  display: inline-block; padding: 5px 14px; border-radius: 100px;
  font-size: 11px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase;
  background: var(--accent-dim); color: var(--accent);
}

/* ========================
   STATS
   ======================== */
.stats-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 32px; }
@media (max-width: 640px) { .stats-grid { grid-template-columns: repeat(2,1fr); } }
.stat { text-align: center; padding: 32px 16px; background: var(--bg3); border-radius: var(--radius); border: 1px solid var(--border); }
.stat-num   { font-size: 52px; font-weight: 700; color: var(--accent); line-height: 1; }
.stat-label { font-size: 14px; color: var(--text2); margin-top: 8px; font-weight: 500; }

/* ========================
   FAQ / ACCORDION
   ======================== */
.faq-list { border-top: 1px solid var(--border); }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-q {
  width: 100%; text-align: left; padding: 22px 0;
  font-size: 17px; font-weight: 600; color: var(--text);
  background: none; border: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center;
  gap: 16px; font-family: inherit;
}
.faq-icon { font-size: 20px; color: var(--accent); transition: transform .3s; flex-shrink: 0; }
.faq-q.open .faq-icon { transform: rotate(45deg); }
.faq-a {
  font-size: 15px; color: var(--text2); line-height: 1.7;
  max-height: 0; overflow: hidden;
  transition: max-height .35s ease, padding-bottom .35s;
}
.faq-a.open { max-height: 300px; padding-bottom: 24px; }

/* ========================
   FORM
   ======================== */
.form-group   { display: flex; flex-direction: column; gap: 6px; }
.form-label   { font-size: 13px; font-weight: 600; color: var(--text2); }
.form-input, .form-textarea {
  background: var(--bg3); border: 1.5px solid var(--border);
  border-radius: 8px; padding: 13px 16px;
  color: var(--text); font-size: 15px; outline: none;
  transition: border-color .2s; width: 100%;
}
.form-input:focus, .form-textarea:focus { border-color: var(--accent); }
.form-textarea { resize: vertical; min-height: 140px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-check { display: flex; align-items: flex-start; gap: 10px; font-size: 13px; color: var(--text2); cursor: pointer; }
.form-check input { margin-top: 2px; accent-color: var(--accent); }
@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } }

/* ========================
   CONTACT INFO
   ======================== */
.contact-item { display: flex; align-items: flex-start; gap: 16px; }
.contact-icon {
  width: 46px; height: 46px; border-radius: 10px; flex-shrink: 0;
  background: var(--accent-dim); color: var(--accent);
  display: flex; align-items: center; justify-content: center; font-size: 18px;
}
.contact-label { font-size: 11px; font-weight: 700; color: var(--text2); text-transform: uppercase; letter-spacing: 1px; }
.contact-val   { font-size: 16px; font-weight: 500; margin-top: 3px; }
.contact-val a:hover { color: var(--accent); }

/* ========================
   HERO (Home)
   ======================== */
.hero {
  min-height: 100vh;
  display: flex; flex-direction: column; justify-content: center;
  padding: 120px 0 80px;
  background:
    radial-gradient(ellipse 80% 60% at 50% -10%, rgba(240,160,48,.12) 0%, transparent 65%),
    var(--bg);
  position: relative; overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: url('https://theminingroom.club/wp-content/uploads/2021/04/Yacyreta.png') center/cover no-repeat;
  opacity: .04; pointer-events: none;
}
.hero-content  { position: relative; z-index: 1; text-align: center; }
.hero-eyebrow  {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 18px; border-radius: 100px;
  background: var(--accent-dim); color: var(--accent);
  font-size: 13px; font-weight: 600; letter-spacing: .5px; margin-bottom: 28px;
}
.hero-title {
  font-size: clamp(40px, 6vw, 80px); font-weight: 700;
  line-height: 1.06; letter-spacing: -2px;
  max-width: 900px; margin: 0 auto 24px;
}
.hero-title .accent { color: var(--accent); }
.hero-sub {
  font-size: clamp(16px, 2vw, 20px); color: var(--text2);
  max-width: 620px; margin: 0 auto 44px;
}
.hero-ctas { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ========================
   FEATURED PRODUCT (Home)
   ======================== */
.featured-split {
  display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center;
}
@media (max-width: 768px) { .featured-split { grid-template-columns: 1fr; gap: 40px; } }
.featured-img-wrap {
  border-radius: var(--radius-lg); background: var(--bg3);
  border: 1px solid var(--border); display: flex;
  align-items: center; justify-content: center; padding: 48px 40px;
}
.featured-img-wrap img { max-height: 380px; object-fit: contain; }

/* ========================
   WHY PARAGUAY
   ======================== */
.why-wrap {
  position: relative; overflow: hidden; background: var(--bg2);
}
.why-bg-img {
  position: absolute; right: 0; top: 0; bottom: 0; width: 50%;
  object-fit: cover; opacity: .2; pointer-events: none;
}
@media (max-width: 768px) { .why-bg-img { display: none; } }
.why-content { position: relative; z-index: 1; max-width: 580px; }

/* ========================
   CTA STRIP
   ======================== */
.cta-strip { background: var(--accent); padding: 72px 0; }
.cta-strip h2 { font-size: clamp(28px,4vw,48px); font-weight: 700; color: #000; letter-spacing: -.5px; }
.cta-strip p  { color: rgba(0,0,0,.6); font-size: 18px; margin-top: 12px; max-width: 480px; margin-inline: auto; }
.cta-strip-ctas { display: flex; gap: 16px; justify-content: center; margin-top: 36px; flex-wrap: wrap; }

/* ========================
   SERVICES PAGE — list items
   ======================== */
.svc-list-item {
  display: flex; gap: 24px; align-items: flex-start;
  padding: 28px 0; border-bottom: 1px solid var(--border);
}
.svc-list-item:first-child { border-top: 1px solid var(--border); }
.svc-num {
  font-size: 48px; font-weight: 700; color: var(--border2);
  line-height: 1; flex-shrink: 0; width: 60px;
}
.svc-item-title { font-size: 20px; font-weight: 700; margin-bottom: 8px; }
.svc-item-desc  { color: var(--text2); font-size: 15px; }

/* ========================
   ABOUT — gallery
   ======================== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.gallery-img {
  border-radius: var(--radius); overflow: hidden;
  aspect-ratio: 3/4;
}
.gallery-img img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 640px) { .gallery-grid { grid-template-columns: repeat(2,1fr); } }

/* ========================
   ABOUT — quote
   ======================== */
.quote-section {
  padding: 96px 0;
  background: radial-gradient(ellipse 60% 80% at 50% 50%, rgba(240,160,48,.08) 0%, transparent 70%), var(--bg2);
  text-align: center;
}
.quote-text {
  font-size: clamp(20px, 3vw, 32px); font-weight: 600; line-height: 1.5;
  letter-spacing: -.2px; max-width: 860px; margin-inline: auto;
}
.quote-author { margin-top: 24px; }
.quote-author-name { font-weight: 700; color: var(--accent); }
.quote-author-role { font-size: 14px; color: var(--text2); margin-top: 4px; }

/* ========================
   FOOTER  (PHP: footer.php)
   ======================== */
.footer {
  background: var(--bg2); border-top: 1px solid var(--border);
  padding: 64px 0 32px;
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px; margin-bottom: 52px;
}
@media (max-width: 860px)  { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px)  { .footer-grid { grid-template-columns: 1fr; } }
.footer-logo img  { height: 38px; margin-bottom: 16px; }
.footer-tagline   { color: var(--text2); font-size: 14px; line-height: 1.7; max-width: 280px; }
.footer-social    { display: flex; gap: 12px; margin-top: 20px; }
.footer-social a  {
  width: 36px; height: 36px; border-radius: 8px;
  background: var(--bg3); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  color: var(--text2); font-size: 15px; transition: all .2s;
}
.footer-social a:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-dim); }
.footer-heading   { font-size: 12px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--text2); margin-bottom: 20px; }
.footer-links     { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.footer-links a   { font-size: 15px; color: var(--text2); transition: color .2s; }
.footer-links a:hover { color: var(--accent); }
.footer-bottom    {
  border-top: 1px solid var(--border); padding-top: 24px;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 12px;
}
.footer-copy { font-size: 14px; color: var(--text3); }

/* ========================
   UTILITY
   ======================== */
.text-accent  { color: var(--accent); }
.text-muted   { color: var(--text2); }
.text-center  { text-align: center; }
.text-wrap-pretty { text-wrap: pretty; }
.bg2 { background: var(--bg2); }
.bg3 { background: var(--bg3); }
.divider { height: 1px; background: var(--border); }
.mt-8  { margin-top: 8px; }
.mt-12 { margin-top: 12px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mt-40 { margin-top: 40px; }
.mt-48 { margin-top: 48px; }
.mb-48 { margin-bottom: 48px; }
.mb-56 { margin-bottom: 56px; }
