/* Pixel Global Export — one-page site (dark) */
:root {
  --bg: #0b0d10;
  --bg-panel: #12151a;
  --bg-raised: #171b21;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);
  --text: #f2f3f5;
  --text-muted: #9aa3ad;
  --text-faint: #5f6873;
  --accent: #f26947;
  --accent-soft: rgba(242, 105, 71, 0.12);
  --font-display: 'Space Grotesk', sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;
  --max: 1140px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-display);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--text); text-decoration: none; }
a:hover { color: var(--accent); }
img { max-width: 100%; display: block; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  background: rgba(11, 13, 16, 0.82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.nav-logo img { height: 34px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a {
  font-size: 14px;
  color: var(--text-muted);
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--text); }
.nav-right { display: flex; align-items: center; gap: 16px; }
.lang-toggle {
  display: flex;
  border: 1px solid var(--line-strong);
  border-radius: 99px;
  overflow: hidden;
}
.lang-toggle button {
  background: transparent;
  border: none;
  color: var(--text-faint);
  font-family: var(--font-mono);
  font-size: 12px;
  padding: 6px 12px;
  cursor: pointer;
}
.lang-toggle button.active { background: var(--text); color: var(--bg); }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 26px;
  border-radius: 99px;
  font-size: 15px;
  font-weight: 500;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  font-family: var(--font-display);
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: #ff7a54; color: #fff; }
.btn-ghost { border-color: var(--line-strong); color: var(--text); background: transparent; }
.btn-ghost:hover { border-color: var(--text); color: var(--text); }
.btn-nav { padding: 9px 18px; font-size: 13px; }

/* ---------- Nav Menu & Toggle ---------- */
.nav-menu {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex: 1;
  margin-left: 40px;
}
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 100;
}
.nav-toggle span {
  width: 100%;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: all 0.3s ease;
}
.nav.open .nav-toggle span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
.nav.open .nav-toggle span:nth-child(2) {
  opacity: 0;
}
.nav.open .nav-toggle span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* ---------- Hero ---------- */
.hero { padding: 190px 0 90px; position: relative; overflow: hidden; }
.hero::before {
  content: '';
  position: absolute;
  top: -300px; right: -200px;
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(242,105,71,0.10) 0%, transparent 65%);
  pointer-events: none;
}
.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 22px;
}
.hero h1 {
  font-size: clamp(38px, 5.4vw, 62px);
  line-height: 1.08;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0 0 24px;
  max-width: 840px;
}
.hero .lead {
  font-size: 19px;
  color: var(--text-muted);
  max-width: 620px;
  margin: 0 0 40px;
}
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  margin-top: 80px;
}
.stat { background: var(--bg-panel); padding: 26px 24px; }
.stat b { display: block; font-size: 30px; font-weight: 600; letter-spacing: -0.02em; }
.stat span { font-size: 13px; color: var(--text-muted); }

/* ---------- Sections ---------- */
section { padding: 96px 0; border-top: 1px solid var(--line); }
.sec-head { margin-bottom: 52px; max-width: 640px; }
.sec-head h2 {
  font-size: clamp(28px, 3.4vw, 40px);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0 0 14px;
}
.sec-head p { color: var(--text-muted); margin: 0; }

/* Categorías */
.cat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.cat-card {
  background: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s;
}
.cat-card:hover { border-color: var(--line-strong); }
.cat-card image-slot { width: 100%; height: 210px; }
.cat-body { padding: 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.cat-body .tag {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}
.cat-body h3 { margin: 0; font-size: 20px; font-weight: 600; }
.cat-body p { margin: 0; font-size: 14.5px; color: var(--text-muted); flex: 1; }
.cat-body a { font-size: 14px; color: var(--text); border-bottom: 1px solid var(--line-strong); align-self: flex-start; padding-bottom: 2px; }
.cat-body a:hover { color: var(--accent); border-color: var(--accent); }

/* Proceso */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.step {
  background: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 30px 26px;
}
.step .num {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--accent);
  display: block;
  margin-bottom: 40px;
}
.step h3 { font-size: 19px; font-weight: 600; margin: 0 0 10px; }
.step p { font-size: 14.5px; color: var(--text-muted); margin: 0; }

/* Por qué PGE */
.why { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }
.why-list { display: flex; flex-direction: column; }
.why-item { padding: 22px 0; border-bottom: 1px solid var(--line); display: flex; gap: 18px; }
.why-item:last-child { border-bottom: none; }
.why-item .dot { color: var(--accent); font-family: var(--font-mono); font-size: 13px; padding-top: 3px; }
.why-item h3 { font-size: 17px; font-weight: 600; margin: 0 0 6px; }
.why-item p { font-size: 14.5px; color: var(--text-muted); margin: 0; }
.why-media image-slot { width: 100%; height: 460px; }

/* FAQ */
.faq-list { max-width: 760px; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q {
  width: 100%;
  background: none;
  border: none;
  color: var(--text);
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 500;
  text-align: left;
  padding: 22px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  cursor: pointer;
}
.faq-q .plus { font-family: var(--font-mono); color: var(--text-faint); transition: transform 0.2s; }
.faq-item.open .plus { transform: rotate(45deg); color: var(--accent); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; }
.faq-a p { color: var(--text-muted); font-size: 15px; margin: 0 0 22px; max-width: 660px; }

/* ---------- Contacto ---------- */
.contact { background: var(--bg-panel); }
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 60px; align-items: start; }
.form-tabs { display: flex; gap: 8px; margin-bottom: 28px; }
.form-tab {
  flex: 1;
  padding: 14px 18px;
  border-radius: 12px;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--text-muted);
  font-family: var(--font-display);
  font-size: 14px;
  cursor: pointer;
  text-align: left;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.form-tab.active { border-color: var(--accent); color: var(--text); background: var(--accent-soft); }
.form-tab b { display: block; font-size: 15px; font-weight: 600; margin-bottom: 2px; color: inherit; }

form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
form label { display: block; margin-bottom: 14px; }
form label span {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 7px;
}
form input, form select, form textarea {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  color: var(--text);
  font-family: var(--font-display);
  font-size: 15px;
  padding: 13px 15px;
  outline: none;
  transition: border-color 0.2s;
}
form input:focus, form select:focus, form textarea:focus { border-color: var(--accent); }
form textarea { min-height: 120px; resize: vertical; }
.form-note { font-size: 12.5px; color: var(--text-faint); margin: 6px 0 20px; }
.hp { position: absolute; left: -9999px; opacity: 0; }
.form-success {
  display: none;
  background: rgba(46, 160, 92, 0.12);
  border: 1px solid rgba(46, 160, 92, 0.4);
  border-radius: 10px;
  padding: 14px 16px;
  font-size: 14.5px;
  margin-bottom: 20px;
}
.form-success.show { display: block; }
.form-error {
  display: none;
  background: rgba(220, 70, 70, 0.1);
  border: 1px solid rgba(220, 70, 70, 0.4);
  border-radius: 10px;
  padding: 14px 16px;
  font-size: 14.5px;
  margin-bottom: 20px;
}
.form-error.show { display: block; }

/* ---------- Footer ---------- */
footer { border-top: 1px solid var(--line); padding: 56px 0 40px; }
.foot-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 40px; flex-wrap: wrap; }
.foot-top img { height: 30px; width: auto; }
.foot-links { display: flex; gap: 26px; }
.foot-links a { font-size: 14px; color: var(--text-muted); }
.foot-legal {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 12.5px;
  color: var(--text-faint);
}

@media (max-width: 920px) {
  .nav-toggle { display: flex; }
  .nav-menu {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    height: calc(100vh - 72px);
    background: rgba(11, 13, 16, 0.98);
    backdrop-filter: blur(20px);
    border-top: 1px solid var(--line);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 40px;
    padding: 40px 24px;
    margin-left: 0;
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
  }
  .nav.open .nav-menu {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .nav-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
  }
  .nav-links a {
    font-size: 20px;
    font-weight: 500;
  }
  .nav-right {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    width: 100%;
  }
  .nav-right .btn-nav {
    width: 100%;
    max-width: 280px;
    padding: 14px 28px;
    font-size: 16px;
  }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .cat-grid, .steps { grid-template-columns: 1fr; }
  .why, .contact-grid { grid-template-columns: 1fr; gap: 36px; }
  .why-media image-slot { height: 300px; }
  .hero { padding-top: 140px; }
  form .row { grid-template-columns: 1fr; gap: 0; }
}
