:root {
  --noche: #0B0B12;
  --tinta: #F4F2EE;
  --lima: #C6FF3D;
  --cian: #00E5FF;
  --magenta: #FF2E88;
  --max: 1100px;
  font-size: 16px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--noche);
  color: var(--tinta);
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Helvetica, Arial, sans-serif;
  line-height: 1.5;
  position: relative;
  overflow-x: hidden;
}

h1, h2, h3 {
  font-family: "Barlow Condensed", -apple-system, Helvetica, Arial, sans-serif;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  line-height: 1.02;
  margin: 0 0 20px;
}

h1 { font-size: clamp(2.6rem, 8vw, 5.5rem); }
h2 { font-size: clamp(2.1rem, 6vw, 3.6rem); }
h3 { font-size: 1.3rem; margin-bottom: 8px; }

p { margin: 0 0 16px; color: rgba(244, 242, 238, 0.78); }

a { color: inherit; text-decoration: none; }

.kicker {
  font-family: "JetBrains Mono", ui-monospace, Menlo, monospace;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--lima);
  margin: 0 0 14px;
}

.kicker-num {
  color: rgba(244, 242, 238, 0.35);
  margin-right: 4px;
}

.hl { color: var(--lima); }
.hl-cyan { color: var(--cian); }

/* ---- Bumper LED (intro) ---- */
.bumper {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--noche);
  transition: opacity 0.4s ease;
}

.bumper.bumper-hide { opacity: 0; pointer-events: none; }

.bumper-core {
  position: absolute;
  width: 14px;
  height: 14px;
  background: var(--lima);
  animation: bumper-pulse 1.1s ease-out 1;
}

.bumper-ring {
  position: absolute;
  width: 14px;
  height: 14px;
  border: 1.5px solid var(--cian);
  animation: bumper-ring 1.1s ease-out 1;
}

.bumper-ring-2 {
  border-color: var(--magenta);
  animation-delay: 0.18s;
}

.bumper-logo {
  position: relative;
  height: 26px;
  opacity: 0;
  animation: bumper-logo-in 0.5s ease-out 0.55s forwards;
}

@keyframes bumper-pulse {
  0% { transform: scale(1); opacity: 1; }
  40% { transform: scale(1.6); opacity: 1; }
  100% { transform: scale(0.001); opacity: 0; }
}

@keyframes bumper-ring {
  0% { transform: scale(1); opacity: 0.9; }
  100% { transform: scale(18); opacity: 0; }
}

@keyframes bumper-logo-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .bumper { display: none; }
}

/* ---- Pixel background ---- */
.pixel-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  display: grid;
  grid-template-columns: repeat(24, 1fr);
  grid-auto-rows: 1fr;
  gap: 2px;
  padding: 2px;
  z-index: 0;
  pointer-events: none;
  mask-image: linear-gradient(to bottom, black, transparent 92%);
}

.pixel-bg .px {
  background: rgba(244, 242, 238, 0.03);
  border-radius: 1px;
  opacity: 0;
  animation: px-blink 4.5s ease-in-out infinite;
}

@keyframes px-blink {
  0%, 92%, 100% { opacity: 0; }
  96% { opacity: 1; }
}

/* ---- Header ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px clamp(20px, 5vw, 60px);
  background: var(--noche);
  border-bottom: 1px solid rgba(244, 242, 238, 0.12);
}

.brand img { display: block; }

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.site-nav a { opacity: 0.85; transition: opacity 0.15s; }
.site-nav a:hover { opacity: 1; }

.nav-cta {
  background: var(--lima);
  color: var(--noche) !important;
  padding: 8px 16px;
  opacity: 1 !important;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: none;
  border: 1px solid rgba(244, 242, 238, 0.25);
  border-radius: 4px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--tinta);
  margin: 0 7px;
}

/* ---- Layout ---- */
main { position: relative; z-index: 1; }

.hero {
  position: relative;
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(60px, 14vh, 140px) clamp(20px, 5vw, 60px) 80px;
}

.hero-bleed {
  position: absolute;
  top: 50%;
  right: clamp(-60px, -4vw, -20px);
  transform: translateY(-50%);
  width: clamp(220px, 28vw, 420px);
  opacity: 0.1;
  z-index: -1;
  pointer-events: none;
}

.hero-sub { max-width: 520px; font-size: 1.1rem; }

.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 28px; }

.btn {
  display: inline-block;
  padding: 14px 26px;
  border-radius: 2px;
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  font-size: 1.05rem;
  transition: transform 0.15s ease;
}

.btn:hover { transform: translateY(-2px); }

.btn-lima { background: var(--lima); color: var(--noche); }
.btn-ghost { border: 1px solid rgba(244, 242, 238, 0.3); color: var(--tinta); }

.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 70px clamp(20px, 5vw, 60px);
  border-top: 1px solid rgba(244, 242, 238, 0.08);
}

.section-note { max-width: 540px; }

.esencia-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  margin-top: 36px;
}

.esencia-grid h3 { color: var(--cian); }

/* ---- Proceso ---- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 40px;
}

.step { position: relative; padding-top: 8px; }

.step-num {
  display: block;
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 800;
  font-size: 2.6rem;
  color: var(--magenta);
  line-height: 1;
  margin-bottom: 10px;
}

.step h3 { margin-bottom: 6px; }
.step p { margin-bottom: 0; }

/* ---- FAQ ---- */
.faq-list { margin-top: 30px; border-top: 1px solid rgba(244, 242, 238, 0.1); }

.faq-item {
  border-bottom: 1px solid rgba(244, 242, 238, 0.1);
  padding: 18px 2px;
}

.faq-item summary {
  cursor: pointer;
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 1.15rem;
  letter-spacing: 0.01em;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: "+";
  flex-shrink: 0;
  font-family: "Barlow Condensed", sans-serif;
  font-size: 1.6rem;
  color: var(--lima);
  transition: transform 0.2s ease;
}

.faq-item[open] summary::after { transform: rotate(45deg); }

.faq-item p { margin: 14px 0 0; max-width: 620px; }

/* ---- WhatsApp flotante ---- */
.whatsapp-float {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 60;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #25D366;
  color: #0B0B12;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.whatsapp-float:hover { background: #1ebe5a; }

/* ---- Cards ---- */
.cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin-top: 36px;
}

.card {
  position: relative;
  background: rgba(244, 242, 238, 0.04);
  border: 1px solid rgba(244, 242, 238, 0.1);
  padding: 28px 22px 24px;
  overflow: hidden;
}

@media (min-width: 761px) {
  .card:nth-child(even) { margin-top: 26px; }
}

.card-bar {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 6px;
}

.bar-lima { background: var(--lima); }
.bar-cyan { background: var(--cian); }
.bar-magenta { background: var(--magenta); }

.card h3 { margin-top: 6px; }
.card p { margin-bottom: 0; }

/* ---- Portfolio ---- */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 30px;
}

.portfolio-item {
  position: relative;
  aspect-ratio: 16 / 10;
  display: flex;
  align-items: flex-end;
  padding: 16px;
  overflow: hidden;
  background: #121018;
  border: 1px solid rgba(244, 242, 238, 0.1);
}

.portfolio-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10, 10, 15, 0.92), transparent 60%);
}

.tile-pixels {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  gap: 2px;
  padding: 2px;
}

.tile-pixels span {
  background: rgba(244, 242, 238, 0.04);
}

.portfolio-label {
  position: relative;
  z-index: 1;
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 1.05rem;
  line-height: 1.15;
  color: var(--tinta);
  text-shadow: 0 1px 12px rgba(11, 11, 18, 0.9);
}

/* ---- Contact ---- */
.contact-links {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: 30px;
  border-top: 1px solid rgba(244, 242, 238, 0.1);
}

.contact-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 4px;
  border-bottom: 1px solid rgba(244, 242, 238, 0.1);
  transition: padding-left 0.15s ease, color 0.15s ease;
}

.contact-link:hover {
  padding-left: 14px;
  color: var(--lima);
}

.contact-label {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.6;
}

.contact-value {
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 700;
  font-size: 1.4rem;
  text-transform: uppercase;
}

/* ---- Footer ---- */
.site-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 30px 20px 40px;
  opacity: 0.5;
  font-size: 0.82rem;
  position: relative;
  z-index: 1;
}

/* ---- Responsive ---- */
@media (max-width: 760px) {
  .esencia-grid, .cards, .portfolio-grid, .steps {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .whatsapp-float {
    width: 50px;
    height: 50px;
    right: 14px;
    bottom: 14px;
  }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: var(--noche);
    border-bottom: 1px solid rgba(244, 242, 238, 0.08);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
  }

  .site-nav.open { max-height: 300px; }

  .site-nav a {
    width: 100%;
    padding: 16px clamp(20px, 5vw, 60px);
    border-bottom: 1px solid rgba(244, 242, 238, 0.06);
  }

  .nav-cta { border-radius: 0; text-align: center; }

  .nav-toggle { display: flex; }
}
