/* ==========================================================
   sections.css — Estilos específicos de cada sección
   ========================================================== */

/* ============================================================
   NAV
   ============================================================ */
.z-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(10, 11, 20, 0.6);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  color: white;
  transition: background .3s, border-color .3s;
}
html[data-mode="light"] .z-nav {
  background: rgba(250, 250, 247, 0.7);
  color: var(--ink);
  border-bottom: 1px solid var(--line);
}
.z-nav-inner {
  display: flex; justify-content: space-between; align-items: center;
  height: 64px;
}
.z-nav-brand {
  display: flex; align-items: center; gap: 10px;
  font-family: 'Geist Mono', ui-monospace, monospace;
  font-size: 12px;
  letter-spacing: 0.05em;
  text-transform: lowercase;
  font-weight: 500;
}
.z-nav-brand img { height: 26px; width: auto; }
.z-nav-brand i { opacity: 0.5; font-style: normal; }
.z-nav-links {
  display: flex; gap: 28px; list-style: none; padding: 0; margin: 0;
  font-size: 13px; opacity: 0.85;
}
.z-nav-links a { transition: opacity .2s; }
.z-nav-links a:hover { opacity: 0.6; }
.z-nav-cta {
  font-size: 13px;
  padding: 10px 18px;
}

/* ============================================================
   HERO
   ============================================================ */
.hero-section {
  padding-top: calc(var(--section-y) + 24px);
  padding-bottom: calc(var(--section-y) - 20px);
  overflow: hidden;
}
.hero-grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse at 50% 30%, black 30%, transparent 75%);
  pointer-events: none;
  z-index: 0;
}
.hero-halos {
  position: absolute; inset: 0; pointer-events: none; z-index: 0;
  filter: blur(80px);
}
.halo-blob {
  position: absolute;
  width: 480px; height: 480px;
  border-radius: 50%;
  opacity: 0.35;
}
.halo-blob.h1 { background: var(--z-blue);    top: 5%;  left: -8%; }
.halo-blob.h2 { background: var(--z-magenta); top: 0%;  right: -10%; left: auto; }
.halo-blob.h3 { background: var(--z-yellow);  bottom: -10%; left: 30%; opacity: 0.25; }
.halo-blob.h4 { background: var(--z-green);   bottom: 20%; right: 10%; left: auto; opacity: 0.22; }

.hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 36px;
}
.hero-title {
  margin: 8px 0 0;
}
.hero-title .line { display: block; }
.hero-title .italic-emph,
.italic-emph {
  font-style: italic;
  font-family: 'Instrument Serif', 'Geist', serif;
  font-weight: 400;
  letter-spacing: -0.02em;
}
.hero-sub {
  max-width: 60ch;
  opacity: 0.72;
}
.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
}
.hero-mockup {
  margin-top: 48px;
  display: grid;
  grid-template-columns: 1.7fr 1fr;
  gap: 20px;
  align-items: stretch;
}
.hero-mockup-side {
  display: flex; flex-direction: column; gap: 12px;
  justify-content: stretch;
}
.hero-mockup-side .perf-card {
  flex: 1;
}
@media (max-width: 980px) {
  .hero-mockup { grid-template-columns: 1fr; }
  .hero-mockup-side { flex-direction: row; flex-wrap: wrap; }
  .hero-mockup-side .perf-card { flex: 1 1 240px; }
}

/* ============================================================
   MARQUEE
   ============================================================ */
.marquee-section {
  padding: 28px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}
.marquee-item {
  font-family: 'Geist Mono', ui-monospace, monospace;
  font-size: 14px;
  letter-spacing: 0.02em;
  color: var(--ink);
  display: inline-flex; align-items: center; gap: 10px;
  text-transform: lowercase;
  white-space: nowrap;
}
.marquee-item .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--z-blue);
}
.marquee-item:nth-child(4n+1) .dot { background: var(--z-blue); }
.marquee-item:nth-child(4n+2) .dot { background: var(--z-magenta); }
.marquee-item:nth-child(4n+3) .dot { background: var(--z-yellow); }
.marquee-item:nth-child(4n+4) .dot { background: var(--z-green); }

/* ============================================================
   MANIFIESTO (storytelling A/B/C)
   ============================================================ */
.manifest-head {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 80px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}
section.dark .manifest-head,
section.ink-2 .manifest-head { border-bottom-color: var(--line-dark); }

.manifest-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  padding: 80px 0;
  align-items: start;
}
.manifest-block.reverse { direction: rtl; }
.manifest-block.reverse > * { direction: ltr; }

.manifest-text .eyebrow {
  margin-bottom: 24px;
  display: block;
}

.manifest-detail {
  padding-top: 40px;
}
.manifest-detail .lead { margin-bottom: 28px; }
.manifest-detail .lead strong { color: inherit; font-weight: 600; }

.manifest-list {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 14px;
}
.manifest-list li {
  display: flex; align-items: flex-start; gap: 14px;
  font-size: 17px;
  padding: 14px 16px;
  background: rgba(14,18,48,0.03);
  border-radius: 8px;
}
.manifest-list .x {
  color: var(--z-magenta);
  font-family: 'Geist Mono', monospace;
  font-weight: 600;
  font-size: 18px;
  line-height: 1;
}
.manifest-list .ok {
  color: var(--z-green);
  font-family: 'Geist Mono', monospace;
  font-weight: 600;
}
.manifest-list.good li { background: rgba(31, 211, 122, 0.05); }

.combo-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px;
  margin-top: 28px;
}
.combo-grid > div {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px;
  background: rgba(14,18,48,0.03);
  border-radius: 8px;
  font-weight: 500;
  font-size: 16px;
}
.combo-grid > div i {
  width: 8px; height: 8px; border-radius: 2px; display: block;
}

@media (max-width: 860px) {
  .manifest-block, .manifest-block.reverse { grid-template-columns: 1fr; gap: 40px; padding: 40px 0; direction: ltr; }
  .manifest-detail { padding-top: 0; }
}

/* ============================================================
   SHOWCASE (sección 02)
   ============================================================ */
.showcase-section { overflow: hidden; }
.showcase-title { margin: 0 0 32px; }
.showcase-lead { opacity: 0.7; margin-bottom: 80px; }

.showcase-hero {
  position: relative;
  margin: 100px 0;
  padding: 80px;
  border-radius: 24px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.showcase-hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(31, 143, 255, 0.18), transparent 60%),
    radial-gradient(ellipse at 80% 50%, rgba(255, 212, 59, 0.12), transparent 60%),
    linear-gradient(180deg, rgba(255,255,255,0.02), transparent);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 24px;
}
.mockup-corp { position: relative; z-index: 1; }
.showcase-hero-tag {
  position: relative; z-index: 1;
  display: flex; flex-direction: column; gap: 16px;
}

.pillars {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.pillar {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color .25s, transform .3s cubic-bezier(.2,.7,.2,1);
}
.pillar:hover {
  border-color: rgba(255,255,255,0.15);
  transform: translateY(-3px);
}
.pillar.wide { grid-column: span 2; }
.pillar-visual {
  height: 320px;
  position: relative;
  overflow: hidden;
  padding: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, rgba(255,255,255,0.02), transparent);
}
.pillar-meta {
  padding: 32px;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.pillar-title { margin: 0; }

.visual-card {
  width: 100%;
  height: 100%;
  display: flex; flex-direction: column;
  justify-content: center;
}

.perf-mini { padding: 8px; }
.clarity-mini { padding: 24px; background: rgba(255,255,255,0.02); border-radius: 12px; }
.code-mini { padding: 0; }
.code-mini .mock-code { width: 100%; }
.cms-mini { padding: 0; }
.cms-window {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  width: 100%;
  overflow: hidden;
}
.scale-mini {
  padding: 24px;
}
.scale-flow {
  display: flex; align-items: center; gap: 8px;
  flex-wrap: wrap;
}
.scale-node {
  flex: 1;
  min-width: 130px;
  padding: 14px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  display: flex; flex-direction: column;
}
.scale-node b { font-size: 14px; letter-spacing: -0.01em; }
.scale-node span { font-size: 11px; opacity: .55; font-family: 'Geist Mono', monospace; margin-top: 2px; }

@media (max-width: 980px) {
  .showcase-hero { grid-template-columns: 1fr; padding: 40px; }
  .pillars { grid-template-columns: 1fr; }
  .pillar.wide { grid-column: auto; }
}

/* ============================================================
   SERVICIOS
   ============================================================ */
.servicios-section { background: var(--paper-2); }
.services-title { margin: 0 0 80px; }

.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border-top: 1px solid var(--line);
}
.service-row {
  display: grid;
  grid-template-columns: 80px 4px 1fr auto;
  gap: 28px;
  align-items: center;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
  transition: padding .3s cubic-bezier(.2,.7,.2,1);
  cursor: pointer;
}
.service-row:hover {
  padding-left: 16px;
  padding-right: 16px;
}
.service-num {
  font-family: 'Geist Mono', ui-monospace, monospace;
  font-size: 13px;
  letter-spacing: 0.1em;
  opacity: 0.45;
}
.service-bar {
  width: 4px;
  height: 32px;
  border-radius: 2px;
  transition: height .3s;
}
.service-row:hover .service-bar { height: 56px; }
.service-info h3 {
  margin: 0;
  font-size: clamp(22px, 2.4vw, 36px);
  letter-spacing: -0.025em;
  font-weight: 500;
}
.service-info p {
  margin: 6px 0 0;
  font-size: 14px;
  opacity: 0.6;
}

/* ============================================================
   DIFERENCIAL
   ============================================================ */
.dif-section { overflow: hidden; }
.dif-title { margin: 0 0 100px; }

.dif-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--line-dark);
}
.dif-item {
  padding: 40px 32px;
  border-right: 1px solid var(--line-dark);
  border-bottom: 1px solid var(--line-dark);
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: background .3s;
}
.dif-item:hover { background: rgba(255,255,255,0.02); }
.dif-item:nth-child(3n) { border-right: 0; }
.dif-num {
  font-family: 'Geist Mono', ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.18em;
  opacity: 0.5;
}
.dif-item-title {
  font-size: clamp(22px, 2.2vw, 32px);
  margin: 0;
  font-weight: 500;
}

@media (max-width: 980px) {
  .dif-grid { grid-template-columns: 1fr; }
  .dif-item { border-right: 0 !important; }
}
