/* ==========================================================
   sections-2.css — Tipos, Proceso, CTA, FAQ, Final, Footer
   ========================================================== */

/* ============================================================
   TIPOS DE PROYECTO
   ============================================================ */
.tipos-section { overflow: hidden; }
.tipos-title { margin: 0 0 80px; }

.tipos-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.tipo-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform .3s cubic-bezier(.2,.7,.2,1), box-shadow .3s;
}
.tipo-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 30px 60px -20px rgba(14,18,48,0.18);
}
.tipo-visual {
  height: 240px;
  background: var(--paper-2);
  border-bottom: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  position: relative;
  overflow: hidden;
}
.tipo-meta { padding: 28px; }
.tipo-bar {
  display: block;
  width: 28px; height: 4px;
  border-radius: 2px;
  margin-bottom: 16px;
}
.tipo-card-title {
  margin: 0;
  font-size: clamp(22px, 1.8vw, 28px);
  font-weight: 500;
}
.tipo-meta p { margin: 8px 0 0; font-size: 14px; }

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

/* Tipo visuals — pequeñas UIs abstractas */
.tv-corp {
  width: 100%; height: 100%;
  background: white; border: 1px solid var(--line); border-radius: 8px;
  display: flex; flex-direction: column;
  overflow: hidden;
}
.tv-corp-nav {
  display: flex; gap: 8px; padding: 8px 12px;
  border-bottom: 1px solid var(--line);
}
.tv-corp-nav span { width: 30px; height: 6px; background: rgba(0,0,0,0.1); border-radius: 2px; }
.tv-corp-nav span:first-child { background: var(--z-blue); width: 16px; }
.tv-corp-hero { flex: 1; padding: 16px; display: flex; flex-direction: column; gap: 8px; justify-content: center; }
.tv-h1 { height: 14px; background: var(--ink); border-radius: 3px; width: 70%; }
.tv-h1.lg { height: 20px; width: 80%; }
.tv-h2 { height: 8px; background: rgba(0,0,0,0.4); border-radius: 3px; width: 90%; }
.tv-h3 { height: 8px; background: rgba(0,0,0,0.2); border-radius: 3px; width: 60%; }
.tv-cta { width: 80px; height: 22px; background: var(--ink); border-radius: 999px; margin-top: 6px; }
.tv-cta.lg { width: 110px; height: 28px; }
.tv-cta.sm { width: 100%; height: 18px; }
.tv-corp-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px;
  padding: 0 12px 12px;
}
.tv-corp-grid > div { aspect-ratio: 1; background: var(--paper-2); border-radius: 4px; }
.tv-corp-grid > div:first-child { background: linear-gradient(135deg, var(--z-blue), var(--z-magenta)); }

.tv-landing {
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 8px;
  width: 100%; height: 100%;
}
.tv-l-hero {
  background: white; border: 1px solid var(--line); border-radius: 8px;
  padding: 16px; display: flex; flex-direction: column; gap: 8px; justify-content: center;
}
.tv-l-form {
  background: var(--ink); border-radius: 8px;
  padding: 16px; display: flex; flex-direction: column; gap: 6px; justify-content: center;
}
.tv-l-form > div:not(.tv-cta) { height: 8px; background: rgba(255,255,255,0.18); border-radius: 3px; }
.tv-l-form .tv-cta { background: var(--z-magenta); margin-top: 4px; }

.tv-wp {
  width: 100%; height: 100%;
  display: grid; grid-template-columns: 60px 1fr; gap: 6px;
  background: white; border: 1px solid var(--line); border-radius: 8px;
  padding: 8px;
}
.tv-wp-side { display: flex; flex-direction: column; gap: 4px; }
.tv-wp-side span { height: 14px; background: rgba(0,0,0,0.06); border-radius: 3px; }
.tv-wp-side .active { background: var(--z-yellow); }
.tv-wp-canvas { background: var(--paper-2); border-radius: 4px; padding: 10px; display: flex; flex-direction: column; gap: 6px; }
.tv-block { height: 32px; background: white; border-radius: 3px; border: 1px solid var(--line); }
.tv-block.selected { border: 1px solid var(--z-yellow); box-shadow: 0 0 0 2px rgba(255,212,59,0.2); height: 60px; background: linear-gradient(135deg, rgba(255,212,59,0.1), transparent); }

.tv-shop { box-shadow: none; min-height: 0; }
.tv-shop .grid { padding: 12px; gap: 6px; }
.tv-shop .product { aspect-ratio: 1; }

.tv-mig {
  display: flex; align-items: center; gap: 12px;
  width: 100%; height: 100%;
}
.tv-mig-old, .tv-mig-new {
  flex: 1; height: 100%;
  background: white; border: 1px solid var(--line); border-radius: 8px;
  padding: 12px;
  position: relative;
  display: flex; flex-direction: column; gap: 6px;
}
.tv-mig .tag {
  position: absolute; top: -8px; left: 12px;
  font-family: 'Geist Mono', monospace; font-size: 9px;
  letter-spacing: 0.1em; text-transform: uppercase;
  padding: 3px 8px; border-radius: 4px;
}
.tv-mig .tag.old { background: var(--ink); color: white; }
.tv-mig .tag.new { background: var(--z-green); color: white; }
.tv-mig-old-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; margin-top: 14px; }
.tv-mig-old-grid span { aspect-ratio: 1; background: rgba(0,0,0,0.1); border-radius: 2px; }
.tv-mig-new-hero { height: 60px; margin-top: 14px; border-radius: 6px; background: linear-gradient(135deg, var(--z-blue), var(--z-magenta)); }
.tv-mig-new-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; margin-top: 6px; }
.tv-mig-new-grid span { aspect-ratio: 2/1; background: var(--paper-2); border-radius: 4px; }

.tv-int {
  position: relative;
  width: 100%; height: 100%;
}
.tv-int-center {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 80px; height: 80px; border-radius: 50%;
  background: var(--ink); color: white;
  display: flex; align-items: center; justify-content: center;
  font-weight: 600; letter-spacing: -0.02em;
  z-index: 2;
}
.tv-int-node {
  position: absolute;
  width: 60px; height: 60px;
  border-radius: 12px;
  background: white;
  border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Geist Mono', monospace; font-size: 10px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-weight: 500;
}
.tv-int-node.n1 { top: 0; left: 0; border-color: var(--z-blue); color: var(--z-blue); }
.tv-int-node.n2 { top: 0; right: 0; border-color: var(--z-magenta); color: var(--z-magenta); }
.tv-int-node.n3 { bottom: 0; right: 0; border-color: var(--z-yellow); color: #c79a00; }
.tv-int-node.n4 { bottom: 0; left: 0; border-color: var(--z-green); color: #128a4f; }
.tv-int-lines { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; }

/* ============================================================
   PROCESO
   ============================================================ */
.proceso-section {
  background: var(--ink-2);
  color: white;
  overflow: hidden;
}
.proceso-section .manifest-head { border-bottom-color: var(--line-dark); }
.proceso-title { margin: 0 0 32px; }
.proceso-lead { opacity: 0.7; max-width: 60ch; margin-bottom: 80px; }

.proceso-track {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.proceso-line {
  position: absolute;
  top: 24px;
  left: 5%; right: 5%;
  height: 1px;
  background: linear-gradient(to right, var(--z-blue), var(--z-magenta), var(--z-yellow), var(--z-green));
  opacity: 0.4;
}
.proceso-step {
  position: relative;
  padding: 56px 24px 32px;
  border-radius: 16px;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.08);
  display: flex; flex-direction: column; gap: 16px;
}
.proceso-num {
  position: absolute; top: -1px; left: -1px;
  background: var(--ink-2);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 16px 0 16px 0;
  padding: 12px 18px;
  display: flex; align-items: center; gap: 12px;
  font-family: 'Geist Mono', monospace;
  font-size: 14px;
  letter-spacing: 0.1em;
}
.proceso-step-title {
  margin: 12px 0 0;
  font-size: clamp(22px, 1.8vw, 28px);
  font-weight: 500;
}
.proceso-step-sub { margin: 0; opacity: 0.65; font-size: 14px; line-height: 1.55; }
.proceso-meta {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 8px;
  border-top: 1px solid rgba(255,255,255,0.06);
  padding-top: 16px;
  margin-top: 8px;
}
.proceso-meta li {
  display: flex; align-items: center; gap: 10px;
  font-size: 12px;
  font-family: 'Geist Mono', monospace;
  letter-spacing: 0.02em;
  opacity: 0.85;
}
.proceso-meta i {
  width: 6px; height: 6px; border-radius: 50%;
}

@media (max-width: 980px) {
  .proceso-track { grid-template-columns: 1fr; }
  .proceso-line { display: none; }
}

/* ============================================================
   CTA INTERMEDIO
   ============================================================ */
.cta-mid {
  text-align: center;
  overflow: hidden;
  padding: clamp(120px, 16vw, 220px) 0;
}
.cta-mid-halo {
  position: absolute; inset: 0; pointer-events: none;
  filter: blur(120px);
  opacity: 0.3;
}
.cta-mid-halo .halo-blob {
  width: 320px; height: 320px;
}
.cta-mid-halo .halo-blob:nth-child(1) { top: 10%; left: 10%; }
.cta-mid-halo .halo-blob:nth-child(2) { top: 30%; right: 15%; left: auto; }
.cta-mid-halo .halo-blob:nth-child(3) { bottom: 10%; left: 25%; }
.cta-mid-halo .halo-blob:nth-child(4) { bottom: 20%; right: 5%; left: auto; }

.cta-mid-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
}
.cta-mid-eyebrow { margin-bottom: 8px; }
.cta-mid-title { margin: 0; }
.cta-mid-actions {
  display: flex; flex-direction: column; align-items: center; gap: 16px;
  margin-top: 16px;
}
.cta-mid-btn {
  font-size: 18px;
  padding: 20px 32px;
}
.cta-mid-meta {
  font-family: 'Geist Mono', monospace;
  font-size: 12px;
  opacity: 0.5;
  letter-spacing: 0.05em;
}

/* ============================================================
   FAQ
   ============================================================ */
.faq-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 80px;
  align-items: start;
}
.faq-side h2 { margin: 0; }
.faq-list {
  display: flex; flex-direction: column;
  border-top: 1px solid var(--line);
}
.faq-item {
  display: block;
  width: 100%;
  text-align: left;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  padding: 28px 0;
  cursor: pointer;
  transition: padding .25s;
}
.faq-item:hover { padding-left: 12px; padding-right: 12px; }
.faq-q {
  display: grid;
  grid-template-columns: 60px 1fr 32px;
  gap: 20px;
  align-items: center;
}
.faq-num {
  font-family: 'Geist Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.1em;
  opacity: 0.4;
}
.faq-q-text {
  font-size: clamp(18px, 1.5vw, 22px);
  letter-spacing: -0.02em;
  font-weight: 500;
}
.faq-toggle {
  font-family: 'Geist Mono', monospace;
  font-size: 28px;
  font-weight: 300;
  text-align: center;
  opacity: 0.5;
  transition: transform .3s;
}
.faq-item.open .faq-toggle { transform: rotate(180deg); }
.faq-a-wrap {
  max-height: 0;
  overflow: hidden;
  transition: max-height .4s cubic-bezier(.2,.7,.2,1), margin .3s;
}
.faq-item.open .faq-a-wrap {
  max-height: 360px;
  margin-top: 18px;
}
.faq-a {
  margin: 0 32px 0 80px;
  font-size: 16px;
  line-height: 1.6;
  opacity: 0.7;
  max-width: 64ch;
}

@media (max-width: 980px) {
  .faq-grid { grid-template-columns: 1fr; gap: 40px; }
  .faq-q { grid-template-columns: 40px 1fr 32px; gap: 12px; }
  .faq-a { margin-left: 52px; margin-right: 0; }
}

/* ============================================================
   CTA FINAL
   ============================================================ */
.cta-final {
  overflow: hidden;
  padding: clamp(120px, 14vw, 200px) 0;
}
.cta-final-halo {
  position: absolute; inset: 0; pointer-events: none;
  filter: blur(120px);
  opacity: 0.4;
}
.halo-final-blob {
  position: absolute;
  width: 400px; height: 400px;
  border-radius: 50%;
}
.halo-final-blob.b1 { background: var(--z-blue);    top: -10%; left: -5%; }
.halo-final-blob.b2 { background: var(--z-magenta); top: 20%; right: 30%; left: auto; }
.halo-final-blob.b3 { background: var(--z-yellow);  bottom: -10%; left: 20%; opacity: 0.7; }
.halo-final-blob.b4 { background: var(--z-green);   bottom: 10%; right: -5%; left: auto; }

.cta-final-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 80px;
  align-items: start;
}
.cta-final-title { margin: 0 0 32px; }
.cta-final-lead {
  opacity: 0.7;
  max-width: 50ch;
  margin: 0 0 48px;
}
.cta-final-meta {
  display: grid;
  grid-template-columns: repeat(3, auto);
  gap: 32px;
  padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,0.1);
}
.cta-final-meta-val {
  margin-top: 6px;
  font-size: 16px;
  letter-spacing: -0.01em;
  font-weight: 500;
}

.cta-final-form {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 20px;
  padding: 36px;
  backdrop-filter: blur(10px);
}
.form-head {
  display: flex; flex-direction: column; gap: 12px;
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.form-title {
  margin: 0;
  font-size: clamp(24px, 2.4vw, 32px);
  letter-spacing: -0.025em;
  font-weight: 500;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.field {
  display: flex; flex-direction: column; gap: 6px;
}
.field.wide { grid-column: span 2; }
.field-label {
  font-family: 'Geist Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.55;
}
.field input, .field textarea, .field select {
  width: 100%;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  padding: 12px 14px;
  font-family: inherit;
  font-size: 14px;
  color: white;
  transition: border-color .2s, background .2s;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none;
  border-color: var(--accent);
  background: rgba(255,255,255,0.06);
}
.field input::placeholder, .field textarea::placeholder {
  color: rgba(255,255,255,0.3);
}
.field textarea { resize: vertical; min-height: 96px; }
.select-wrap {
  position: relative;
}
.select-wrap select { appearance: none; padding-right: 36px; cursor: pointer; }
.select-wrap svg {
  position: absolute; right: 14px; top: 50%; transform: translateY(-50%);
  pointer-events: none; opacity: 0.5;
}
.form-actions {
  display: flex; flex-direction: column; gap: 12px;
  margin-top: 24px;
}
.form-submit {
  background: white; color: var(--ink);
  width: 100%;
  justify-content: center;
  padding: 16px;
  font-size: 15px;
  font-weight: 500;
}
.form-submit:hover { background: var(--accent); color: white; }
.form-meta {
  text-align: center;
  font-family: 'Geist Mono', monospace;
  font-size: 11px;
  opacity: 0.4;
  letter-spacing: 0.05em;
}
.form-sent {
  padding: 32px 8px;
}

@media (max-width: 980px) {
  .cta-final-inner { grid-template-columns: 1fr; gap: 48px; }
  .form-grid { grid-template-columns: 1fr; }
  .field.wide { grid-column: auto; }
  .cta-final-meta { grid-template-columns: 1fr; gap: 16px; }
}

/* ============================================================
   FOOTER
   ============================================================ */
.z-footer {
  background: var(--ink);
  color: white;
  padding: 80px 0 40px;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.z-footer-top {
  display: grid;
  grid-template-columns: 1.2fr 2fr;
  gap: 80px;
  margin-bottom: 60px;
}
.z-footer-brand img { height: 36px; width: auto; }
.z-footer-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}
.z-footer-cols .eyebrow { margin-bottom: 16px; display: block; }
.z-footer-cols ul {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 10px;
  font-size: 14px;
  opacity: 0.7;
}
.z-footer-cols li:hover { opacity: 1; cursor: pointer; }
.z-footer-bot {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 32px;
  font-family: 'Geist Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.02em;
  opacity: 0.6;
  flex-wrap: wrap;
  gap: 16px;
}

@media (max-width: 980px) {
  .z-footer-top { grid-template-columns: 1fr; gap: 48px; }
  .z-footer-cols { grid-template-columns: repeat(2, 1fr); gap: 32px; }
}
