/*
Theme Name: LatamRust V6 Ultra
Theme URI: https://www.latamrust.com/
Author: OpenAI
Description: Tema WordPress ultra fiel inspirado en el index.html y tutoriales.html de LatamRust.
Version: 6.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: latamrust-v6
*/

:root {
  --rust: #D85A30;
  --rust-dark: #993C1D;
  --rust-light: #F0997B;
  --rust-glow: rgba(216,90,48,0.18);
  --gold: #EF9F27;
  --gold-dark: #BA7517;
  --bg: #0D0C0B;
  --bg2: #141310;
  --bg3: #1C1A17;
  --bg4: #242118;
  --border: rgba(216,90,48,0.18);
  --border2: rgba(216,90,48,0.35);
  --text: #F2EDE6;
  --text-muted: #9A8F83;
  --text-dim: #5A5149;
  --green: #5DCAA5;
  --green-bg: rgba(29,158,117,0.12);
  --teal: #1D9E75;
  --purple: #7F77DD;
  --purple-bg: rgba(127,119,221,0.12);
  --shadow: 0 20px 40px rgba(0,0,0,.35);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Trebuchet MS', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
  opacity: 0.5;
}
a { color: var(--rust-light); text-decoration: none; }
a:hover { color: var(--rust); }
img { max-width: 100%; height: auto; }
main, header, footer { position: relative; z-index: 1; }

.container { max-width: 1100px; margin: 0 auto; padding: 0 2rem; position: relative; z-index: 1; }
section { padding: 6rem 0; }

.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  height: 56px;
  background: rgba(13,12,11,.95);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(216,90,48,0.18);
}
.topbar { min-height: 56px; display: flex; align-items: center; gap: 0; }
.site-brand-wrap { flex-shrink: 0; display: flex; align-items: center; }
.site-brand, .site-brand * {
  font-family: Impact, Haettenschweiler, 'Arial Narrow Bold', sans-serif;
  font-size: 1.35rem;
  letter-spacing: .1em;
  color: #F0997B;
  text-decoration: none;
  text-transform: uppercase;
}
.custom-logo-link img { max-height: 42px; width: auto; display: block; }

.site-nav {
  display: flex; align-items: center; gap: 2px;
  flex: 1; overflow-x: auto;
  scrollbar-width: none;
  padding-left: 1rem;
}
.site-nav::-webkit-scrollbar { display: none; }
.site-nav ul {
  display: flex; align-items: center; gap: 2px;
  list-style: none; padding: 0; margin: 0;
}
.site-nav a {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px; border-radius: 6px;
  font-size: 11px; font-weight: 700; letter-spacing: .06em;
  color: #5A5149; text-decoration: none;
  white-space: nowrap; transition: all .18s;
  border: 1px solid transparent;
  text-transform: uppercase;
}
.site-nav a:hover,
.site-nav .current-menu-item > a,
.site-nav .current_page_item > a {
  color: #F2EDE6;
  background: rgba(216,90,48,.08);
  border-color: rgba(216,90,48,.18);
}
.nav-right { display: flex; align-items: center; gap: 6px; margin-left: auto; flex-shrink: 0; padding-left: 8px; }
.lang-fake {
  background: transparent; border: 1px solid rgba(216,90,48,.18);
  color: #5A5149; font-size: 10px; font-weight: 700; letter-spacing: .08em;
  padding: 3px 8px; border-radius: 4px; text-transform: uppercase;
}
.lang-fake.active { background: #D85A30; border-color: #D85A30; color: #fff; }

.hero {
  position: relative;
  min-height: 100vh;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center;
  padding: 4rem 2rem;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 40%, rgba(216,90,48,0.22) 0%, transparent 65%),
    radial-gradient(ellipse 50% 40% at 20% 80%, rgba(127,119,221,0.1) 0%, transparent 60%),
    linear-gradient(180deg, #0D0C0B 0%, #141108 50%, #0D0C0B 100%);
  z-index: 0;
}
.hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(216,90,48,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(216,90,48,0.06) 1px, transparent 1px);
  background-size: 60px 60px;
  z-index: 0;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 0%, transparent 70%);
}
.hero-content { position: relative; z-index: 1; max-width: 860px; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(216,90,48,0.12);
  border: 1px solid rgba(216,90,48,0.3);
  border-radius: 999px;
  padding: 6px 18px;
  font-size: 12px; font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--rust-light);
  margin-bottom: 2rem;
}
.dot { width: 6px; height: 6px; background: var(--rust); border-radius: 50%; }
.hero h1 {
  margin: 0;
  font-family: Impact, Haettenschweiler, 'Arial Narrow Bold', sans-serif;
  font-size: clamp(6rem, 18vw, 14rem);
  line-height: 0.9;
  letter-spacing: 0.02em;
  color: transparent;
  background: linear-gradient(160deg, #F2EDE6 20%, var(--rust-light) 60%, var(--rust) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  text-transform: uppercase;
}
.hero-tagline {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  color: var(--text-muted);
  margin-top: 1.5rem;
  font-weight: 400;
}
.hero-meta {
  display: flex; justify-content: center;
  gap: 2.5rem; margin-top: 3rem; flex-wrap: wrap;
}
.hero-meta-item { text-align: center; }
.hero-meta-item .val {
  font-family: Impact, Haettenschweiler, 'Arial Narrow Bold', sans-serif;
  font-size: 2rem;
  color: var(--rust-light);
  display: block;
  letter-spacing: 0.04em;
}
.hero-meta-item .lbl {
  font-size: 11px; color: var(--text-dim);
  text-transform: uppercase; letter-spacing: 0.1em; font-weight: 700;
}
.hero-cta { margin-top: 2.5rem; }
.btn-primary {
  display: inline-block;
  background: var(--rust);
  color: white;
  font-size: 14px; font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 14px 36px;
  border-radius: 4px;
  transition: background 0.2s, transform 0.2s;
}
.btn-primary:hover { background: var(--rust-dark); transform: translateY(-2px); color: white; }
.scroll-hint {
  position: absolute;
  bottom: 2rem; left: 50%;
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--text-dim);
  z-index: 1;
}
.scroll-line { width: 1px; height: 40px; background: linear-gradient(180deg, var(--rust) 0%, transparent 100%); }

.section-header { margin-bottom: 4rem; }
.section-label {
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--rust);
  margin-bottom: 0.75rem; display: flex; align-items: center; gap: 10px;
}
.section-label::before { content: ''; display: block; width: 24px; height: 1px; background: var(--rust); }
.section-title {
  font-family: Impact, Haettenschweiler, 'Arial Narrow Bold', sans-serif;
  font-size: clamp(3rem, 7vw, 5rem);
  line-height: 1;
  letter-spacing: 0.03em;
  color: var(--text);
  text-transform: uppercase;
  margin: 0;
}
.section-desc {
  margin-top: 1rem; font-size: 15px; color: var(--text-muted);
  max-width: 560px; line-height: 1.7;
}
.rust-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--rust), transparent);
  opacity: 0.3;
  margin: 0;
}

.card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.75rem;
  transition: border-color 0.25s, background 0.25s, transform .25s;
  box-shadow: var(--shadow);
}
.card:hover { border-color: var(--border2); background: var(--bg3); transform: translateY(-4px); }
.card h3 { font-size: 16px; font-weight: 700; color: var(--text); margin: 0 0 .5rem; }
.card p { font-size: 14px; color: var(--text-muted); line-height: 1.65; margin: 0; }

.mode-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin-top: 2rem; }
.mode-card {
  border-radius: 8px;
  padding: 2rem 1.75rem;
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
  transition: transform 0.25s;
  display: flex; flex-direction: column;
  box-shadow: var(--shadow);
}
.mode-card:hover { transform: translateY(-4px); }
.mode-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; }
.mode-vanilla { background: var(--bg2); }
.mode-vanilla::before { background: var(--text-dim); }
.mode-custom { background: linear-gradient(135deg, rgba(216,90,48,0.08), var(--bg2)); }
.mode-custom::before { background: var(--rust); }
.mode-vip { background: linear-gradient(135deg, rgba(239,159,39,0.08), var(--bg2)); }
.mode-vip::before { background: linear-gradient(90deg, var(--gold), var(--rust)); }
.mode-name {
  font-family: Impact, Haettenschweiler, 'Arial Narrow Bold', sans-serif;
  font-size: 2.2rem; letter-spacing: 0.06em; margin-bottom: 0.5rem; text-transform: uppercase;
}
.mode-vanilla .mode-name { color: var(--text-muted); }
.mode-custom .mode-name { color: var(--rust-light); }
.mode-vip .mode-name { color: var(--gold); }
.mode-desc { font-size: 13px; color: var(--text-muted); line-height: 1.6; margin-bottom: 1rem; }
.mode-price { font-family: monospace; font-size: 13px; color: var(--text-dim); }

.wipe-wrap { background: var(--bg2); border: 1px solid var(--border); border-radius: 8px; overflow: hidden; box-shadow: var(--shadow); }
.wipe-table { width: 100%; border-collapse: collapse; margin-top: 0; }
.wipe-table th {
  font-size: 11px; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--text-dim);
  padding: 0.75rem 1rem; text-align: left; border-bottom: 1px solid var(--border);
}
.wipe-table td {
  padding: 0.9rem 1rem; font-size: 14px; color: var(--text-muted);
  border-bottom: 1px solid rgba(255,255,255,0.03);
}
.wipe-table tr:last-child td { border-bottom: none; }
.wipe-table td.label { font-weight: 700; color: var(--text); }
.yes { color: var(--green); font-weight: 700; }
.no { color: var(--rust); font-weight: 700; }

.feature-posts { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.post-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  transition: .25s ease;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow);
}
.post-card:hover { border-color: var(--border2); transform: translateY(-4px); }
.post-card-img {
  width: 100%; height: 180px; overflow: hidden; background: var(--bg3);
  display: flex; align-items: center; justify-content: center; border-bottom: 1px solid var(--border);
}
.post-card-img img { width: 100%; height: 100%; object-fit: cover; }
.post-card-body { padding: 1rem 1rem 1.1rem; flex: 1; }
.p-meta { font-size: 11px; color: var(--text-dim); font-family: monospace; margin-bottom: .4rem; text-transform: uppercase; }
.p-name { font-size: 15px; font-weight: 700; color: var(--text); margin-bottom: .4rem; }
.p-desc { font-size: 13px; color: var(--text-muted); }

.highlight {
  background: rgba(216,90,48,0.07);
  border: 1px solid rgba(216,90,48,0.2);
  border-left: 3px solid var(--rust);
  border-radius: 0 8px 8px 0;
  padding: 1rem 1.25rem;
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.65;
  margin-top: 1rem;
}
.highlight strong { color: var(--rust-light); }

.eco-sources { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; margin-top: 1.5rem; }
.eco-source {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.25rem 1rem;
  text-align: center;
  transition: border-color 0.2s, transform 0.2s;
  box-shadow: var(--shadow);
}
.eco-source:hover { border-color: var(--border2); transform: translateY(-3px); }
.eco-source .ico { font-size: 26px; margin-bottom: 0.5rem; display: block; }
.eco-source .name { font-size: 12px; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.06em; }

.mission-steps { display: flex; flex-direction: column; gap: 1px; margin-top: 2rem; }
.mission-step {
  display: flex; align-items: flex-start; gap: 1.5rem;
  padding: 1.75rem; background: var(--bg2);
  border: 1px solid var(--border); border-radius: 8px;
  transition: border-color 0.25s; margin-bottom: 12px; box-shadow: var(--shadow);
}
.mission-step:hover { border-color: var(--border2); }
.mission-num {
  font-family: Impact, Haettenschweiler, 'Arial Narrow Bold', sans-serif;
  font-size: 3.5rem; line-height: 1; color: var(--rust);
  min-width: 70px; text-align: center; letter-spacing: 0.04em;
}
.mission-info h4 { font-size: 15px; font-weight: 700; color: var(--text); margin: 0 0 .35rem; }
.mission-info p { font-size: 13px; color: var(--text-muted); line-height: 1.6; margin: 0; }

.skills-wrap { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 1.5rem; }
.skill-pill {
  display: flex; align-items: center; gap: 8px;
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: 999px; padding: 8px 16px;
  font-size: 13px; font-weight: 600; color: var(--text-muted);
  transition: border-color 0.2s, color 0.2s;
}
.skill-pill:hover { border-color: var(--border2); color: var(--text); }
.skill-dot { width: 8px; height: 8px; border-radius: 50%; }

.cmd-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin-top: 1.5rem; }
.cmd-block {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.25rem 1rem;
  transition: border-color 0.2s;
  box-shadow: var(--shadow);
}
.cmd-block:hover { border-color: var(--border2); }
.cmd-name { font-family: monospace; font-size: 15px; color: var(--rust-light); font-weight: 500; display: block; margin-bottom: 0.35rem; }
.cmd-desc { font-size: 12px; color: var(--text-dim); }

.site-footer {
  padding: 4rem 0 3rem;
  text-align: center;
  border-top: 1px solid var(--border);
}
.footer-logo {
  font-family: Impact, Haettenschweiler, 'Arial Narrow Bold', sans-serif;
  font-size: 3.5rem; letter-spacing: 0.1em;
  background: linear-gradient(135deg, var(--rust-light), var(--rust));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  display: block; margin-bottom: 0.5rem; text-transform: uppercase;
}
.site-footer p { font-size: 13px; color: var(--text-dim); margin: 0; }

.archive-hero {
  padding: 110px 0 38px;
  background: linear-gradient(180deg, #141108 0%, #0D0C0B 100%);
  border-bottom: 1px solid var(--border);
}
.archive-hero h1 {
  margin: 0;
  font-family: Impact, Haettenschweiler, 'Arial Narrow Bold', sans-serif;
  font-size: clamp(2.8rem, 7vw, 5rem);
  text-transform: uppercase; letter-spacing: .03em;
}
.archive-hero p { max-width: 700px; color: var(--text-muted); margin-top: 12px; }
.entry-shell { padding: 2.5rem 0 4rem; }
.entry-box {
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: 8px; padding: 1.75rem; box-shadow: var(--shadow);
}
.entry-box p, .entry-box li { color: var(--text-muted); }
.single-video {
  background: #000; border: 1px solid var(--border);
  border-radius: 8px; overflow: hidden; margin-bottom: 1rem;
}
.single-video video { width: 100%; display: block; }

@media (max-width: 760px) {
  .site-header { height: auto; }
  .topbar { flex-wrap: wrap; padding: 10px 0; }
  .site-nav { width: 100%; padding-left: 0; }
  .hero h1 { font-size: 5rem; }
  .hero-meta { gap: 1.5rem; }
  .mission-step { flex-direction: column; }
  .container { padding: 0 1rem; }
  .wipe-wrap { overflow-x: auto; }
  .wipe-table { min-width: 520px; }
}
