/* =========================================================
   Polilla Studio — sitio estático
   Organización:
     1. Reset
     2. Design tokens (:root, [data-theme="light"])
     3. Base (html, body, a, img, button)
     4. Utilidades (.container, .accent, .mono-label, .display)
     5. Layout global (grid overlay)
     6. Secciones (nav, hero, marquee, branches, stats,
        ai-section, process, faq, contact, mega-logo,
        footer, whatsapp-fab, breather)
     7. Accesibilidad (prefers-reduced-motion)
   ========================================================= */


/* ── 1. Reset ── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}


/* ── 2. Design tokens ── */
:root {
  /* Palette — dark (default) */
  --bg: #0a0a0a;
  --bg-alt: #111111;
  --fg: #f2ede4;
  --muted: #8a8680;
  --line: rgba(242, 237, 228, 0.12);
  --line-strong: rgba(242, 237, 228, 0.22);
  --accent: #7c5cff;

  /* Typography */
  --f-display: "Instrument Serif", "Times New Roman", ui-serif, serif;
  --f-mono: "JetBrains Mono", ui-monospace, "SF Mono", Consolas, monospace;
  --f-sans: system-ui, -apple-system, "Helvetica Neue", sans-serif;

  /* Spacing */
  --container-max: 1400px;
  --container-px: clamp(20px, 4vw, 40px);
  --section-py: 120px;
  --grid-gap: 24px;
}

[data-theme="light"] {
  --bg: #f2ede4;
  --bg-alt: #e8e2d5;
  --fg: #0a0a0a;
  --muted: #5a564f;
  --line: rgba(10, 10, 10, 0.12);
  --line-strong: rgba(10, 10, 10, 0.22);
}


/* ── 3. Base ── */
html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--f-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--fg);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

img {
  display: block;
  max-width: 100%;
}

button {
  font: inherit;
  color: inherit;
  cursor: pointer;
  border: none;
  background: none;
}


/* ── 4. Utilidades ── */
.container {
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-px);
}

.accent {
  color: var(--accent);
}

.mono-label {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.display {
  font-family: var(--f-display);
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: -0.03em;
}


/* ── 5. Layout global ── */

/* Grid overlay decorativo — 12 columnas en desktop, 4 en móvil */
.grid-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-px);
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
}

.grid-overlay > div {
  border-left: 1px solid var(--line);
}

.grid-overlay > div:last-child {
  border-right: 1px solid var(--line);
}

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


/* ── 6. Secciones ── */

/* ============================================
   6.1 Nav (chrome)
   ============================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.nav-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-px);
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--f-display);
  font-size: 22px;
  letter-spacing: -0.02em;
}

.nav-logo-img {
  height: 28px;
  width: auto;
  object-fit: contain;
}

.nav-links {
  display: flex;
  gap: 28px;
  align-items: center;
}

.nav-links a {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  position: relative;
  padding: 4px 0;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--accent);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: var(--accent);
  color: #fff;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
  border: 1px solid var(--accent);
  transition: transform 0.2s, box-shadow 0.2s;
}

.nav-cta:hover {
  transform: translate(-2px, -2px);
  box-shadow: 4px 4px 0 var(--fg);
}

@media (max-width: 900px) {
  .nav-links {
    display: none;
  }
}


/* ============================================
   6.1b SectionHeader (patrón compartido)
   Usado inline dentro de Branches, Stats, AiSection,
   Process, FAQ, Contact.
   ============================================ */
.section-head {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px;
  margin-bottom: 72px;
  align-items: end;
}

.section-head-num {
  grid-column: 1 / 3;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.section-head-num b {
  color: var(--accent);
  font-weight: 500;
}

.section-head-title {
  grid-column: 3 / 10;
  font-family: var(--f-display);
  font-size: clamp(40px, 6vw, 88px);
  line-height: 0.95;
  letter-spacing: -0.03em;
}

.section-head-kicker {
  grid-column: 10 / 13;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: right;
  line-height: 1.6;
}

@media (max-width: 900px) {
  .section-head-num,
  .section-head-title,
  .section-head-kicker {
    grid-column: 1 / -1;
    text-align: left;
  }
}


/* ============================================
   6.1c Breather (intermezzo con imagen)
   ============================================ */
.breather {
  position: relative;
  height: 80vh;
  min-height: 520px;
  max-height: 780px;
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: flex-end;
  z-index: 2;
}

.breather-img {
  position: absolute;
  inset: -8%;
  background-image: url("https://images.unsplash.com/photo-1451187580459-43490279c0fa?auto=format&fit=crop&w=2400&q=80");
  background-size: cover;
  background-position: center;
  filter: grayscale(0.85) contrast(1.08) brightness(0.55);
  animation: breatherZoom 22s ease-in-out infinite alternate;
  transform: scale(1.05);
}

@keyframes breatherZoom {
  from { transform: scale(1.02) translate(0, 0); }
  to   { transform: scale(1.12) translate(-1%, -2%); }
}

.breather-grain {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0naHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmcnIHdpZHRoPScyMDAnIGhlaWdodD0nMjAwJz48ZmlsdGVyIGlkPSduJz48ZmVUdXJidWxlbmNlIHR5cGU9J2ZyYWN0YWxOb2lzZScgYmFzZUZyZXF1ZW5jeT0nMC45JyBudW1PY3RhdmVzPScyJyBzdGl0Y2hUaWxlcz0nc3RpdGNoJy8+PC9maWx0ZXI+PHJlY3Qgd2lkdGg9JzIwMCcgaGVpZ2h0PScyMDAnIGZpbHRlcj0ndXJsKCNuKScgb3BhY2l0eT0nMC41NScvPjwvc3ZnPg==");
  opacity: 0.14;
  mix-blend-mode: overlay;
  pointer-events: none;
  animation: breatherGrainShift 0.8s steps(6) infinite;
}

@keyframes breatherGrainShift {
  0%   { transform: translate(0, 0); }
  20%  { transform: translate(-2%, 1%); }
  40%  { transform: translate(1%, -2%); }
  60%  { transform: translate(-1%, 2%); }
  80%  { transform: translate(2%, -1%); }
  100% { transform: translate(0, 0); }
}

.breather-veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(10, 10, 10, 0.45) 0%,
    rgba(10, 10, 10, 0.15) 40%,
    rgba(10, 10, 10, 0.85) 100%
  );
}

.breather-content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding-top: 64px;
  padding-bottom: 64px;
  color: #f2ede4;
}

.breather-meta {
  display: flex;
  justify-content: space-between;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(242, 237, 228, 0.7);
  margin-bottom: 48px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(242, 237, 228, 0.2);
}

.breather-quote {
  font-family: var(--f-display);
  font-size: clamp(44px, 8vw, 132px);
  line-height: 0.92;
  letter-spacing: -0.03em;
  max-width: 16ch;
  text-wrap: balance;
}

.breather-quote i {
  font-style: italic;
}

.breather-foot {
  margin-top: 40px;
  display: flex;
  justify-content: space-between;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(242, 237, 228, 0.7);
  padding-top: 18px;
  border-top: 1px solid rgba(242, 237, 228, 0.2);
}


/* ============================================
   6.1d Branches (3 ramas)
   ============================================ */
.branches {
  padding: 120px 0;
  border-bottom: 1px solid var(--line);
  position: relative;
  z-index: 2;
}

.branches-title-italic {
  font-style: italic;
}

.branches-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line-strong);
  border-left: 1px solid var(--line-strong);
}

.branch {
  border-right: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
  padding: 40px;
  min-height: 480px;
  display: flex;
  flex-direction: column;
  position: relative;
  cursor: pointer;
  transition: background 0.4s;
  overflow: hidden;
}

.branch::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--accent);
  transform: translateY(100%);
  transition: transform 0.5s cubic-bezier(0.77, 0, 0.175, 1);
  z-index: 0;
}

.branch:hover::before {
  transform: translateY(0);
}

.branch:hover {
  color: #0a0a0a;
}

.branch > * {
  position: relative;
  z-index: 1;
}

.branch-index {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-bottom: 12px;
  display: flex;
  justify-content: space-between;
}

.branch:hover .branch-index { color: #0a0a0a; }

.branch-title {
  font-family: var(--f-display);
  font-size: clamp(32px, 3.4vw, 48px);
  line-height: 0.95;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.branch-title i {
  font-style: italic;
}

.branch-sub {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 24px;
}

.branch:hover .branch-sub { color: #0a0a0a; opacity: 0.7; }

.branch-desc {
  font-size: 15px;
  line-height: 1.55;
  color: var(--muted);
  margin-bottom: 28px;
  flex-grow: 0;
  max-width: 42ch;
}

.branch:hover .branch-desc { color: #0a0a0a; opacity: 0.85; }

.branch-list {
  list-style: none;
  margin-top: auto;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.branch:hover .branch-list { border-color: rgba(10, 10, 10, 0.18); }

.branch-list li {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 8px 0;
  display: flex;
  justify-content: space-between;
  border-bottom: 1px dashed var(--line);
}

.branch:hover .branch-list li { border-color: rgba(10, 10, 10, 0.1); }

.branch-list li::before {
  content: attr(data-i);
  color: var(--muted);
  margin-right: 12px;
}

.branch:hover .branch-list li::before { color: #0a0a0a; opacity: 0.5; }

.branch-link {
  margin-top: 20px;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.branch-link-arrow { transition: transform 0.3s; }

.branch:hover .branch-link-arrow { transform: translateX(4px); }

@media (max-width: 900px) {
  .branches-grid {
    grid-template-columns: 1fr;
  }
}


/* ============================================
   6.1e Stats (números con CountUp)
   ============================================ */
.stats {
  padding: 80px 0;
  border-bottom: 1px solid var(--line);
  position: relative;
  z-index: 2;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line-strong);
  border-left: 1px solid var(--line-strong);
}

.stat {
  border-right: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
  padding: 48px 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 240px;
}

.stat-num {
  font-family: var(--f-display);
  font-size: clamp(64px, 8vw, 120px);
  line-height: 0.9;
  letter-spacing: -0.04em;
}

.stat-num sup {
  font-size: 0.35em;
  color: var(--accent);
  vertical-align: super;
  font-family: var(--f-mono);
  letter-spacing: 0;
}

.stat-label {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 20px;
  max-width: 24ch;
  line-height: 1.5;
}

@media (max-width: 900px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}


/* ============================================
   6.1f AiSection (con Orb decorativo)
   ============================================ */
.ai {
  position: relative;
  padding: 140px 0;
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(ellipse 60% 80% at 85% 50%, color-mix(in srgb, var(--accent) 22%, transparent), transparent),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-alt) 100%);
  z-index: 2;
}

.ai-noise {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0naHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmcnIHdpZHRoPScyMDAnIGhlaWdodD0nMjAwJz48ZmlsdGVyIGlkPSduJz48ZmVUdXJidWxlbmNlIHR5cGU9J2ZyYWN0YWxOb2lzZScgYmFzZUZyZXF1ZW5jeT0nMC45JyBudW1PY3RhdmVzPScyJyBzdGl0Y2hUaWxlcz0nc3RpdGNoJy8+PC9maWx0ZXI+PHJlY3Qgd2lkdGg9JzIwMCcgaGVpZ2h0PScyMDAnIGZpbHRlcj0ndXJsKCNuKScgb3BhY2l0eT0nMC41NScvPjwvc3ZnPg==");
  opacity: 0.08;
  mix-blend-mode: overlay;
  pointer-events: none;
}

.orb {
  position: absolute;
  right: -180px;
  top: 50%;
  transform: translateY(-50%);
  width: 560px;
  height: 560px;
  pointer-events: none;
  z-index: 1;
}

.orb-ring {
  position: absolute;
  inset: 0;
  border: 1px solid color-mix(in srgb, var(--accent) 60%, transparent);
  border-radius: 50%;
  animation: orbRot 22s linear infinite;
}

.orb-ring.r1 { inset: 0; border-style: dashed; }
.orb-ring.r2 { inset: 60px; animation-duration: 30s; animation-direction: reverse; opacity: 0.7; }
.orb-ring.r3 { inset: 130px; animation-duration: 16s; opacity: 0.5; border-color: var(--fg); }

.orb-core {
  position: absolute;
  inset: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent) 0%, transparent 70%);
  filter: blur(20px);
  animation: orbCorePulse 4s ease-in-out infinite;
}

@keyframes orbRot       { to { transform: rotate(360deg); } }
@keyframes orbCorePulse { 50% { transform: scale(1.15); opacity: 0.7; } }

.ai-inner {
  position: relative;
  z-index: 2;
}

.ai-label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 48px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line-strong);
}

.ai-tag { color: var(--accent); }

.ai-status {
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 8px;
}

.ai-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  animation: aiPulse 1.4s ease-in-out infinite;
  box-shadow: 0 0 12px var(--accent);
}

@keyframes aiPulse { 50% { opacity: 0.4; } }

.ai-headline {
  font-family: var(--f-display);
  font-size: clamp(44px, 7vw, 112px);
  line-height: 0.92;
  letter-spacing: -0.03em;
  margin-bottom: 64px;
  max-width: 14ch;
  text-wrap: balance;
}

.ai-shimmer {
  font-style: italic;
  color: var(--accent);
  background: linear-gradient(
    90deg,
    var(--accent) 0%,
    var(--fg) 40%,
    var(--accent) 60%,
    var(--fg) 100%
  );
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: aiShimmer 4s linear infinite;
}

@keyframes aiShimmer { to { background-position: -200% 0; } }

.ai-grid {
  display: grid;
  grid-template-columns: 1.2fr 1.5fr;
  gap: 64px;
  align-items: start;
  margin-bottom: 64px;
}

.ai-text {
  font-size: 17px;
  line-height: 1.6;
  color: var(--muted);
  max-width: 50ch;
}

.ai-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-left: 1px solid var(--line-strong);
}

.ai-stat {
  border-right: 1px solid var(--line-strong);
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
  padding: 24px 18px;
  background: color-mix(in srgb, var(--bg) 60%, transparent);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.ai-stat-num {
  font-family: var(--f-display);
  font-size: clamp(42px, 5vw, 64px);
  line-height: 0.95;
  letter-spacing: -0.03em;
  color: var(--fg);
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.ai-stat-x {
  color: var(--accent);
  font-size: 0.55em;
}

.ai-stat-label {
  margin-top: 12px;
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  line-height: 1.5;
}

.ai-tickers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line-strong);
  padding-top: 24px;
  gap: 24px;
}

.ai-ticker {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ai-tk-label {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--accent);
}

.ai-tk-val {
  font-family: var(--f-mono);
  font-size: 13px;
  color: var(--fg);
}

@media (max-width: 900px) {
  .ai-grid    { grid-template-columns: 1fr; }
  .ai-stats   { grid-template-columns: 1fr; }
  .ai-tickers { grid-template-columns: 1fr; }
  .orb        { right: -300px; opacity: 0.5; }
}


/* ============================================
   6.1g Process (6 pasos)
   ============================================ */
.process {
  padding: 120px 0;
  border-bottom: 1px solid var(--line);
  position: relative;
  z-index: 2;
}

.process-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-top: 1px solid var(--line-strong);
}

.process-step {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 24px;
  padding: 32px 0;
  border-bottom: 1px solid var(--line);
  padding-right: 32px;
  transition: padding 0.3s;
}

.process-step:hover {
  padding-left: 16px;
}

.process-step:nth-child(even) {
  padding-left: 32px;
  padding-right: 0;
  border-left: 1px solid var(--line-strong);
}

.process-step:nth-child(even):hover {
  padding-left: 48px;
}

.process-num {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--accent);
  padding-top: 8px;
}

.process-title {
  font-family: var(--f-display);
  font-size: clamp(24px, 2.4vw, 32px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.process-title i {
  font-style: italic;
}

.process-desc {
  font-size: 14px;
  line-height: 1.55;
  color: var(--muted);
  max-width: 48ch;
}

@media (max-width: 900px) {
  .process-grid { grid-template-columns: 1fr; }
  .process-step:nth-child(even) {
    padding-left: 0;
    border-left: none;
  }
}


/* ============================================
   6.1h Contact (info + formulario)
   ============================================ */
.contact {
  padding: 100px 0;
  border-bottom: 1px solid var(--line);
  position: relative;
  z-index: 2;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px;
  padding: 80px 0;
}

.contact-left {
  grid-column: 1 / 7;
}

.contact-title {
  font-family: var(--f-display);
  font-size: clamp(48px, 7vw, 112px);
  line-height: 0.9;
  letter-spacing: -0.03em;
  margin-bottom: 32px;
}

.contact-title-accent {
  font-style: italic;
  color: var(--accent);
}

.contact-info {
  display: grid;
  gap: 24px;
}

.contact-info-block {
  border-top: 1px solid var(--line);
  padding-top: 16px;
}

.contact-info-label {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}

.contact-info-value {
  font-family: var(--f-display);
  font-size: 22px;
  letter-spacing: -0.01em;
}

.contact-form {
  grid-column: 8 / 13;
  border: 1px solid var(--line-strong);
  padding: 32px;
  align-self: start;
}

.contact-row {
  margin-bottom: 20px;
}

.contact-label {
  display: block;
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}

.contact-input,
.contact-textarea,
.contact-select {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--line-strong);
  padding: 8px 0;
  font-family: var(--f-display);
  font-size: 18px;
  color: var(--fg);
  outline: none;
  transition: border-color 0.2s;
}

.contact-input:focus,
.contact-textarea:focus,
.contact-select:focus {
  border-color: var(--accent);
}

.contact-textarea {
  resize: vertical;
  min-height: 80px;
  font-family: var(--f-sans);
  font-size: 14px;
}

.contact-select {
  cursor: pointer;
}

.contact-select option {
  background: var(--bg);
  color: var(--fg);
}

.contact-submit {
  width: 100%;
  padding: 16px;
  background: var(--accent);
  color: #fff;
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid var(--accent);
  transition: transform 0.2s, box-shadow 0.2s;
}

.contact-submit:hover {
  transform: translate(-2px, -2px);
  box-shadow: 4px 4px 0 var(--fg);
}

@media (max-width: 900px) {
  .contact-left,
  .contact-form {
    grid-column: 1 / -1;
  }
}


/* ============================================
   6.1i Marquee (animación CSS-only)
   ============================================ */
.marquee {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  padding: 18px 0;
  white-space: nowrap;
  position: relative;
  z-index: 2;
  background: var(--bg);
}

.marquee-track {
  display: inline-flex;
  gap: 48px;
  animation: marqueeScroll 40s linear infinite;
  font-family: var(--f-display);
  font-size: clamp(28px, 4vw, 56px);
  font-style: italic;
  letter-spacing: -0.02em;
}

.marquee-track span em {
  font-style: italic;
}

.marquee-dot {
  color: var(--accent);
  font-style: normal;
  font-weight: 300;
  opacity: 0.7;
  margin: 0 24px;
}

@keyframes marqueeScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}


/* ============================================
   6.1j FAQ (accordion con toggle JS)
   ============================================ */
.faq {
  padding: 120px 0;
  border-bottom: 1px solid var(--line);
  position: relative;
  z-index: 2;
}

.faq-list {
  border-top: 1px solid var(--line-strong);
}

.faq-item {
  border-bottom: 1px solid var(--line-strong);
}

.faq-question {
  display: grid;
  grid-template-columns: 80px 1fr 40px;
  gap: 24px;
  padding: 28px 0;
  align-items: center;
  width: 100%;
  text-align: left;
  cursor: pointer;
}

.faq-num {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--muted);
}

.faq-q-text {
  font-family: var(--f-display);
  font-size: clamp(20px, 2vw, 28px);
  line-height: 1.2;
}

.faq-toggle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--f-mono);
  font-size: 16px;
  justify-self: end;
  transition: all 0.3s;
}

.faq-item.open .faq-toggle {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.77, 0, 0.175, 1);
}

.faq-item.open .faq-answer {
  max-height: 400px;
}

.faq-answer-inner {
  display: grid;
  grid-template-columns: 80px 1fr 40px;
  gap: 24px;
  padding: 0 0 32px 0;
}

.faq-answer-text {
  grid-column: 2 / 3;
  font-size: 15px;
  line-height: 1.6;
  color: var(--muted);
  max-width: 65ch;
}

@media (max-width: 700px) {
  .faq-question,
  .faq-answer-inner {
    grid-template-columns: 40px 1fr 32px;
  }
}


/* ============================================
   6.1k WhatsApp FAB (flotante)
   ============================================ */
.wa-fab {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 90;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  background: var(--fg);
  color: var(--bg);
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
  border-radius: 999px;
  transition: transform 0.2s, background 0.2s;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

.wa-fab:hover {
  transform: translateY(-2px);
  background: var(--accent);
}

.wa-fab svg {
  width: 16px;
  height: 16px;
}


/* ============================================
   6.1l Hero (con ASCII bg, Terminal y Clock)
   ============================================ */
.hero {
  padding-top: 120px;
  padding-bottom: 80px;
  border-bottom: 1px solid var(--line);
  position: relative;
  overflow: hidden;
  z-index: 2;
}

.hero > *:not(.hero-ascii) {
  position: relative;
  z-index: 2;
}

.hero-ascii {
  position: absolute;
  inset: 0;
  pointer-events: none;
  font-family: var(--f-mono);
  font-size: 11px;
  line-height: 1.2;
  color: var(--fg);
  opacity: 0.09;
  white-space: pre;
  overflow: hidden;
  z-index: 0;
  user-select: none;
  padding: 80px 24px;
  mix-blend-mode: difference;
}

.hero-meta {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px;
  margin-bottom: 48px;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.hero-meta > *:nth-child(1) { grid-column: 1 / 4; }
.hero-meta > *:nth-child(2) { grid-column: 4 / 8; }
.hero-meta > *:nth-child(3) { grid-column: 8 / 11; }
.hero-meta > *:nth-child(4) { grid-column: 11 / 13; text-align: right; }

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 48px;
  align-items: start;
  margin-bottom: 48px;
}

.hero-title {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(56px, 11vw, 180px);
  line-height: 0.88;
  letter-spacing: -0.04em;
  margin-bottom: 48px;
}

.hero-title-line {
  display: block;
}

.hero-title-italic {
  font-style: italic;
}

/* Terminal */
.terminal {
  border: 1px solid var(--line-strong);
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  font-family: var(--f-mono);
  font-size: 12px;
  line-height: 1.65;
  min-height: 340px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
  position: relative;
}

.terminal::after {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    rgba(255, 255, 255, 0.025) 0 1px,
    transparent 1px 3px
  );
  pointer-events: none;
}

.term-chrome {
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  letter-spacing: 0.08em;
  color: rgba(242, 237, 228, 0.5);
}

.term-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(242, 237, 228, 0.15);
}

.term-dot:nth-child(1) { background: #ff5b4a; }
.term-dot:nth-child(2) { background: #ffbd2e; }
.term-dot:nth-child(3) { background: #28c93f; }

.term-title {
  margin-left: 12px;
  color: rgba(242, 237, 228, 0.55);
  text-transform: none;
  letter-spacing: 0;
  font-size: 11px;
}

.term-status {
  margin-left: auto;
  color: var(--accent);
  font-size: 10px;
  animation: termPulse 2s ease-in-out infinite;
}

@keyframes termPulse { 50% { opacity: 0.4; } }

.term-body {
  padding: 18px 20px 22px;
  flex: 1;
  color: rgba(242, 237, 228, 0.92);
  overflow: hidden;
}

.term-line {
  white-space: pre-wrap;
  word-break: break-word;
  min-height: 1.65em;
}

.term-prompt  { color: var(--accent); margin-right: 8px; }
.term-cmd     { color: #f2ede4; }
.term-comment { color: rgba(242, 237, 228, 0.45); }
.term-key     { color: #8dd0ff; }
.term-str     { color: #ffc98a; }
.term-ok      { color: #8effc1; }
.term-num     { color: var(--accent); }

.hero-bottom {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px;
  align-items: end;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}

.hero-lede {
  grid-column: 1 / 7;
  font-family: var(--f-display);
  font-size: clamp(20px, 2vw, 28px);
  line-height: 1.3;
  max-width: 560px;
  text-wrap: pretty;
}

.hero-lede em {
  font-style: italic;
  color: var(--accent);
}

.hero-ctas {
  grid-column: 8 / 13;
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.hero-cta-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border: 1px solid var(--line-strong);
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: all 0.2s;
}

.hero-cta-ghost:hover {
  background: var(--fg);
  color: var(--bg);
}

.hero-cta-filled {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: var(--accent);
  color: #fff;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
  border: 1px solid var(--accent);
  transition: transform 0.2s, box-shadow 0.2s;
}

.hero-cta-filled:hover {
  transform: translate(-2px, -2px);
  box-shadow: 4px 4px 0 var(--fg);
}

@media (max-width: 900px) {
  .hero-meta { display: none; }
  .hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .terminal { min-height: 280px; font-size: 11px; }
  .hero-ascii { font-size: 9px; }
  .hero-lede,
  .hero-ctas {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }
}


/* ============================================
   6.1m Privacy page
   ============================================ */
.privacy-page {
  padding-top: 120px;
  padding-bottom: 80px;
  position: relative;
  z-index: 2;
}

.privacy-header {
  margin-bottom: 64px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--line);
}

.privacy-tag {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 24px;
}

.privacy-title {
  font-family: var(--f-display);
  font-size: clamp(40px, 6vw, 88px);
  line-height: 0.95;
  letter-spacing: -0.03em;
  font-weight: 400;
  margin-bottom: 16px;
}

.privacy-title em {
  font-style: italic;
  color: var(--accent);
}

.privacy-updated {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.privacy-content {
  max-width: 720px;
}

.privacy-content section {
  margin-bottom: 48px;
}

.privacy-content h2 {
  font-family: var(--f-display);
  font-size: clamp(22px, 2.5vw, 32px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
  font-weight: 400;
}

.privacy-content h3 {
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 24px;
  margin-bottom: 12px;
  font-weight: 500;
}

.privacy-content p {
  font-size: 15px;
  line-height: 1.65;
  color: var(--muted);
  margin-bottom: 16px;
}

.privacy-content strong {
  color: var(--fg);
}

.privacy-content ul,
.privacy-content ol {
  padding-left: 20px;
  margin-bottom: 16px;
}

.privacy-content li {
  font-size: 15px;
  line-height: 1.65;
  color: var(--muted);
  margin-bottom: 6px;
}

.privacy-content a {
  color: var(--accent);
  transition: opacity 0.2s;
}

.privacy-content a:hover {
  opacity: 0.7;
}

.privacy-highlight {
  padding: 16px 20px;
  border: 1px solid var(--line-strong);
  font-family: var(--f-mono);
  font-size: 14px;
  letter-spacing: 0.02em;
}

.privacy-sign {
  padding-top: 32px;
  border-top: 1px solid var(--line);
}

.privacy-sign p {
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-bottom: 4px;
}


/* ============================================
   6.2 MegaLogo (chrome, cierre de página)
   ============================================ */
.mega {
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--line);
  isolation: isolate;
}

.mega-img {
  position: absolute;
  inset: -8%;
  background-image: url("https://images.unsplash.com/photo-1518837695005-2083093ee35b?auto=format&fit=crop&w=2400&q=80");
  background-size: cover;
  background-position: center;
  filter: grayscale(0.9) contrast(1.1) brightness(0.45);
  animation: megaBreatherZoom 28s ease-in-out infinite alternate;
  z-index: 0;
}

@keyframes megaBreatherZoom {
  from { transform: scale(1.02) translate(0, 0); }
  to   { transform: scale(1.12) translate(-1%, -2%); }
}

.mega-veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(10, 10, 10, 0.85) 0%,
    rgba(10, 10, 10, 0.5) 40%,
    rgba(10, 10, 10, 0.9) 100%
  );
  z-index: 1;
}

.mega-content {
  position: relative;
  z-index: 2;
  padding: 80px 0 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  color: #f2ede4;
}

.mega-logo-img {
  width: clamp(120px, 20vw, 260px);
  height: auto;
  object-fit: contain;
  opacity: 0.9;
}

.mega-phrase {
  font-family: var(--f-display);
  font-size: clamp(36px, 8vw, 120px);
  line-height: 0.9;
  letter-spacing: -0.03em;
  text-align: center;
  font-weight: 400;
  max-width: 14ch;
  text-wrap: balance;
}

.mega-phrase em {
  font-style: italic;
  color: var(--accent);
}


/* ============================================
   6.3 Footer (chrome)
   ============================================ */
.footer {
  padding: 64px 0 32px;
  border-top: 1px solid var(--line-strong);
  position: relative;
  z-index: 2;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--line);
}

.footer-brand {
  font-family: var(--f-display);
  font-size: 32px;
  letter-spacing: -0.02em;
}

.footer-brand-img {
  width: 140px;
  height: auto;
}

.footer-brand-sub {
  margin-top: 12px;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  max-width: 30ch;
  line-height: 1.5;
}

.footer-col h5 {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 16px;
  font-weight: 500;
}

.footer-col a {
  display: block;
  padding: 6px 0;
  font-size: 14px;
  transition: color 0.2s, padding 0.2s;
}

.footer-col a:hover {
  color: var(--accent);
  padding-left: 8px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  flex-wrap: wrap;
  gap: 16px;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.footer-legal {
  display: flex;
  gap: 24px;
}

@media (max-width: 700px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}


/* ── 7. Responsive global ── */
@media (max-width: 900px) {
  :root {
    --section-py: 80px;
  }
}


/* ── 8. Accesibilidad ── */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
