/* =====================================================
   OPEN FI — LANDING PAGE
   Design system: OpenHands-faithful
   Palette: #f9f0d9 cream · #22150d dark · #FFFF8B yellow
   ===================================================== */

/* ---- RESET ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { border: none; background: none; cursor: pointer; font-family: inherit; }

/* ---- TOKENS ---- */
:root {
  --bg:           #f8eed6;
  --fg:           #22150d;
  --yellow:       #fffe8e;
  --teal:         #1e555d;
  --coral:        #f15151;
  --bg-dark:      #22150d;
  --fg-dark:      #f8eed6;
  --bg-mid:       #2e1e10;
  --muted:        #a08878;
  --muted-light:  #c8b89a;
  --border:       rgba(248,238,214,0.12);
  --border-cream: rgba(34,21,13,0.12);

  --serif:  'Instrument Serif', Georgia, serif;
  --sans:   'Inter', system-ui, sans-serif;

  --sp-xs:  8px;
  --sp-sm:  16px;
  --sp-md:  32px;
  --sp-lg:  64px;
  --sp-xl:  120px;
  --radius: 10px;
  --ease:   0.25s cubic-bezier(0.4,0,0.2,1);
}

html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--fg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ---- LAYOUT ---- */
.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ---- SECTION THEMES ---- */
.s-cream { background: var(--bg);     color: var(--fg); }
.s-dark  { background: var(--bg-dark); color: var(--fg-dark); }

/* ---- OVERLINE LABEL ---- */
.overline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 24px;
}
.overline::before {
  content: '';
  display: block;
  width: 20px;
  height: 1px;
  background: currentColor;
  opacity: 0.5;
}
.overline.light { color: var(--muted-light); }

/* ---- DISPLAY HEADLINE ---- */
.display {
  font-family: var(--serif);
  font-size: clamp(38px, 5.5vw, 72px);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 28px;
}
.display em { font-style: italic; }
.display.on-dark { color: var(--fg-dark); }
.display.on-dark em { color: var(--yellow); }
.display.on-cream { color: var(--fg); }
.display.on-cream em { color: var(--fg); }

/* ---- BODY TEXT ---- */
.body-copy {
  font-size: 17px;
  line-height: 1.7;
  color: var(--muted);
  max-width: 520px;
}
.body-copy.light { color: var(--muted-light); }

/* ---- BUTTONS ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 100px;
  font-size: 15px;
  font-weight: 600;
  transition: background var(--ease), color var(--ease), transform var(--ease);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }

.btn-yellow {
  background: var(--yellow);
  color: var(--fg);
}
.btn-yellow:hover { background: #ffffa0; }

.btn-dark {
  background: var(--yellow);
  color: var(--fg);
}
.btn-dark:hover { background: #ffffa0; }

.btn-cream {
  background: var(--fg-dark);
  color: var(--fg);
}
.btn-cream:hover { background: #fff5e6; }

.btn-ghost {
  background: transparent;
  color: var(--fg-dark);
  border: 1px solid rgba(249,240,217,0.25);
}
.btn-ghost:hover { background: rgba(249,240,217,0.08); }

.btn-ghost-dark {
  background: transparent;
  color: var(--fg-dark);
  border: 1px solid rgba(248,238,214,0.35);
}
.btn-ghost-dark:hover { background: rgba(248,238,214,0.1); }

.btn-xl { font-size: 17px; padding: 18px 36px; }

/* ===================================================
   NAV
   =================================================== */
.nav-wrapper {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
}
.nav-wrapper.scrolled {
  background: rgba(249,240,217,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-cream);
}
/* Nav logo + links white when transparent (over video) */
.nav-wrapper:not(.scrolled) .nav-logo { color: #fff; }
.nav-wrapper:not(.scrolled) .nav-links li a { color: #fff; }
.nav-wrapper:not(.scrolled) .nav-links .nav-cta { background: var(--yellow); color: var(--fg) !important; border: 1px solid var(--yellow); }
.nav-wrapper:not(.scrolled) .nav-toggle span { background: #fff; }
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.nav-logo {
  display: inline-flex;
  align-items: center;
}
.nav-logo-img {
  height: 32px;
  width: auto;
}
.nav-logo-white { display: none; }
.nav-wrapper:not(.scrolled) .nav-logo-dark { display: none; }
.nav-wrapper:not(.scrolled) .nav-logo-white { display: block; }
.nav-wrapper.scrolled .nav-logo-dark { display: block; }
.nav-wrapper.scrolled .nav-logo-white { display: none; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-links li a {
  font-size: 14px;
  font-weight: 500;
  color: var(--fg);
  opacity: 0.65;
  padding: 6px 12px;
  border-radius: 6px;
  transition: opacity var(--ease), background var(--ease);
}
.nav-links li a:hover { opacity: 1; background: rgba(34,21,13,0.06); }
.nav-links .nav-cta {
  opacity: 1;
  background: var(--yellow);
  color: var(--fg) !important;
  padding: 8px 18px !important;
  border-radius: 100px !important;
  font-weight: 600 !important;
  font-size: 14px !important;
}
.nav-links .nav-cta:hover { background: #ffffa0 !important; color: var(--fg) !important; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--fg);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

/* ===================================================
   HERO
   =================================================== */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-top: 64px;
  overflow: hidden;
  background: #0d0a08; /* fallback while media loads */
  color: var(--fg-dark);
}

/* ---- Video background (desktop) ---- */
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
  display: block;
}

/* ---- Image background (mobile — hidden on desktop) ---- */
.hero-img {
  display: none;
  position: absolute;
  inset: 0;
  background: url('hero.jpg') center center / cover no-repeat;
  z-index: 0;
}

/* ---- Dark gradient overlay for text readability ---- */
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(to right, rgba(10,6,3,0.72) 0%, rgba(10,6,3,0.30) 60%, rgba(10,6,3,0.10) 100%),
    linear-gradient(to top,   rgba(10,6,3,0.60) 0%, transparent 50%);
}

/* ASCII canvas layer */
.ascii-canvas {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
}
.ascii-canvas pre {
  position: absolute;
  inset: 0;
  margin: 0;
  overflow: hidden;
  color: #fff;
  background: transparent;
  opacity: 0.07;
  font: 12px/12px ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  white-space: pre;
  user-select: none;
  letter-spacing: 0.5px;
}

.hero-inner {
  position: relative;
  z-index: 3;
  padding-top: 80px;
  padding-bottom: 100px;
  display: flex;
  align-items: center;
}

.hero-left { max-width: 680px; }

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--fg-dark);
  opacity: 0.65;
  margin-bottom: 28px;
}
.tag-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--fg-dark);
  opacity: 0.5;
  flex-shrink: 0;
}

.hero-headline {
  font-family: var(--serif);
  font-size: clamp(44px, 6vw, 82px);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -0.03em;
  color: var(--fg-dark);
  margin-bottom: 28px;
}
.hero-headline em {
  font-style: italic;
  display: block;
}

.hero-sub {
  font-size: 17px;
  line-height: 1.7;
  color: var(--fg-dark);
  opacity: 0.75;
  margin-bottom: 40px;
  max-width: 480px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 56px;
}

/* Stats on right side */
.hero-right {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.hero-stat-card {
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(16px) saturate(1.5);
  -webkit-backdrop-filter: blur(16px) saturate(1.5);
  border: 1px solid rgba(255,255,255,0.18);
  color: var(--fg-dark);
  border-radius: 18px;
  padding: 28px 32px;
  position: relative;
  overflow: hidden;
}
.hero-stat-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 10%, rgba(255,255,139,0.10) 0%, transparent 60%);
  pointer-events: none;
}
.hero-stat-card-n {
  font-family: var(--serif);
  font-size: 56px;
  font-weight: 400;
  line-height: 1;
  color: var(--yellow);
  margin-bottom: 6px;
}
.hero-stat-card-l {
  font-size: 14px;
  color: rgba(249,240,217,0.75);
  font-weight: 500;
}

.hero-stat-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.hero-stat-mini {
  background: rgba(255,255,255,0.07);
  backdrop-filter: blur(12px) saturate(1.3);
  -webkit-backdrop-filter: blur(12px) saturate(1.3);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 14px;
  padding: 20px 22px;
}
.hero-stat-mini-n {
  font-family: var(--serif);
  font-size: 32px;
  font-weight: 400;
  color: #fff;
  line-height: 1;
  margin-bottom: 4px;
}
.hero-stat-mini-l {
  font-size: 13px;
  color: rgba(255,255,255,0.55);
}

/* ===================================================
   PARTNERS BAR — ticker
   =================================================== */
@keyframes ticker {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.partners {
  background: var(--fg);
  padding: 22px 0;
  overflow: hidden;
  position: relative;
}
/* Edge fade masks */
.partners::before,
.partners::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 120px;
  z-index: 2;
  pointer-events: none;
}
.partners::before {
  left: 0;
  background: linear-gradient(to right, var(--fg), transparent);
}
.partners::after {
  right: 0;
  background: linear-gradient(to left, var(--fg), transparent);
}

.partners-inner {
  display: flex;
  align-items: center;
  gap: 0;
}
.partners-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
  flex-shrink: 0;
  padding: 0 36px 0 16px;
  border-right: 1px solid var(--border);
  position: relative;
  z-index: 3;
  background: var(--fg);
}
.partners-track-wrap {
  flex: 1;
  overflow: hidden;
  min-width: 0;
}
.partners-track {
  display: flex;
  gap: 0;
  width: max-content;
  animation: ticker 18s linear infinite;
}
.partners-track:hover { animation-play-state: paused; }
.partners-track span {
  font-size: 14px;
  font-weight: 600;
  color: var(--fg-dark);
  opacity: 0.45;
  white-space: nowrap;
  padding: 0 40px;
  transition: opacity var(--ease);
  position: relative;
}
.partners-track span::after {
  content: '·';
  position: absolute;
  right: 0;
  transform: translateX(50%);
  color: var(--muted);
  opacity: 0.3;
}
.partners-track span:hover { opacity: 0.9; }

/* ===================================================
   SERVICES (Capabilities cards)
   =================================================== */
.services {
  background: var(--bg);
  padding: var(--sp-xl) 0;
}
.services-head {
  margin-bottom: 48px;
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  background: var(--border-cream);
  border-radius: var(--radius);
  overflow: hidden;
}

.cap-card {
  background: var(--bg);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: background var(--ease);
}
.cap-card:hover { background: rgba(34,21,13,0.04); }
.cap-card-icon {
  font-size: 24px;
  line-height: 1;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cap-card h3 {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 400;
  color: var(--fg);
  line-height: 1.2;
}
.cap-card p {
  font-size: 14px;
  color: var(--fg);
  opacity: 0.55;
  line-height: 1.6;
  flex: 1;
}
.cap-card-btn {
  align-self: flex-start;
  margin-top: auto;
  padding: 8px 16px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
  color: var(--fg);
  border: 1px solid var(--border-cream);
  transition: background var(--ease), border-color var(--ease);
  cursor: pointer;
}
.cap-card:hover .cap-card-btn {
  background: var(--fg);
  color: var(--fg-dark);
  border-color: var(--fg);
}

/* ===================================================
   PROBLEM SECTION (dark, shared video BG)
   =================================================== */
.problema {
  position: relative;
  background: var(--bg-dark);
  color: var(--fg-dark);
  padding: var(--sp-xl) 0;
  overflow: hidden;
}

/* Shared video/image background layer for continuity */
.section-media-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.section-media-bg video,
.section-media-bg .section-media-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
}
.section-media-bg .section-media-img {
  background: url('hero.jpg') center 40% / cover no-repeat;
}
.section-media-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(10,6,3,0.82);
}
/* On mobile, hide video bg and show image */
@media (max-width: 768px) {
  .section-media-bg video { display: none; }
  .section-media-bg .section-media-img { display: block !important; }
}
.problema-ascii {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}
.problema-ascii pre {
  position: absolute;
  inset: 0;
  margin: 0;
  overflow: hidden;
  color: var(--fg-dark);
  background: transparent;
  opacity: 0.05;
  font: 12px/12px ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  white-space: pre;
  user-select: none;
  letter-spacing: 0.5px;
}
.problema-inner {
  position: relative;
  z-index: 2;
}

.problema-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2px;
  margin-top: 48px;
  background: var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.prob-card {
  background: var(--bg-dark);
  padding: 36px 32px;
  transition: background var(--ease);
}
.prob-card:hover { background: var(--bg-mid); }
.prob-num {
  font-family: var(--serif);
  font-size: 48px;
  font-weight: 400;
  color: var(--yellow);
  opacity: 0.25;
  line-height: 1;
  margin-bottom: 16px;
}
.prob-card h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--fg-dark);
}
.prob-card p {
  font-size: 15px;
  color: var(--muted-light);
  line-height: 1.65;
}

/* ===================================================
   SOLUTION
   =================================================== */
.solucion {
  padding: var(--sp-xl) 0;
}
.solucion-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}
.solucion-left {}
.solucion-left .body-copy { margin-bottom: 32px; }

.pillar {
  display: grid;
  gap: 24px;
}
.pillar-item {
  padding: 24px 28px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: rgba(248,238,214,0.05);
}
.pillar-item-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}
.pillar-ico {
  font-size: 20px;
  line-height: 1;
}
.pillar-item h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--fg-dark);
}
.pillar-item p {
  font-size: 14px;
  color: var(--muted-light);
  line-height: 1.6;
  margin-bottom: 12px;
}
.pillar-item ul {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.pillar-item ul li {
  font-size: 13px;
  color: var(--muted-light);
  padding-left: 14px;
  position: relative;
}
.pillar-item ul li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--yellow);
  opacity: 0.5;
}

/* ===================================================
   ACOMPAÑAMIENTO
   =================================================== */
.acompanamiento {
  position: relative;
  background: var(--bg-dark);
  color: var(--fg-dark);
  padding: var(--sp-xl) 0;
  overflow: hidden;
}
.acompanamiento .section-media-bg::after { background: rgba(10,6,3,0.68); }
.acomp-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: start;
}
.acomp-motto {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: 32px;
  padding-left: 16px;
  border-left: 2px solid var(--yellow);
}
.acomp-motto span {
  font-family: var(--serif);
  font-size: 19px;
  font-style: italic;
  color: var(--fg-dark);
  opacity: 0.8;
  line-height: 1.5;
}
.acomp-pillars {
  display: flex;
  flex-direction: column;
  gap: 2px;
  background: var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 14px;
}
.acomp-pillar {
  background: rgba(20,10,5,0.55);
  backdrop-filter: blur(8px);
  padding: 22px 26px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  transition: background var(--ease);
}
.acomp-pillar:hover { background: rgba(20,10,5,0.75); }
.acomp-pillar-icon { font-size: 16px; color: var(--yellow); opacity: 0.7; flex-shrink: 0; margin-top: 2px; }
.acomp-pillar h4 { font-size: 14px; font-weight: 700; color: var(--fg-dark); margin-bottom: 4px; }
.acomp-pillar p  { font-size: 13px; color: var(--muted-light); line-height: 1.6; }
.acomp-features  { display: flex; flex-direction: column; gap: 8px; }
.acomp-feat {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 16px;
  border-radius: 8px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
}
.acomp-feat-n { color: var(--yellow); font-size: 11px; flex-shrink: 0; }
.acomp-feat span:last-child { font-size: 14px; color: var(--muted-light); }
@media (max-width: 768px) {
  .acomp-inner { grid-template-columns: 1fr; gap: 48px; }
}

/* ===================================================
   PROCESS
   =================================================== */
.proceso {
  background: var(--bg-dark);
  color: var(--fg-dark);
  padding: var(--sp-xl) 0;
}
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  margin-top: 48px;
  background: var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.step {
  background: var(--bg-dark);
  padding: 40px 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
}
.step:hover { background: var(--bg-mid); }
.step-n {
  font-family: var(--serif);
  font-size: 64px;
  font-weight: 400;
  color: var(--yellow);
  opacity: 0.18;
  line-height: 1;
  position: absolute;
  top: 24px;
  right: 24px;
}
.step h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--fg-dark);
  position: relative;
}
.step p {
  font-size: 15px;
  color: var(--muted-light);
  line-height: 1.65;
  position: relative;
}
.proceso-cta {
  margin-top: 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
}
.proceso-cta p {
  font-size: 13px;
  color: var(--muted);
}

/* ===================================================
   WHAT TO EXPECT (diferencial)
   =================================================== */
.diferencial {
  background: var(--bg);
  padding: var(--sp-xl) 0;
}
.dif-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  margin-top: 48px;
  background: var(--border-cream);
  border-radius: var(--radius);
  overflow: hidden;
}
.dif-col {
  padding: 40px 36px;
  background: var(--bg);
}
.dif-head {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-cream);
}
.dif-head--get { color: var(--fg); opacity: 0.7; }
.dif-head--not { color: var(--fg); opacity: 0.35; }
.dif-col ul { display: flex; flex-direction: column; gap: 12px; }
.dif-col li {
  font-size: 15px;
  color: var(--fg);
  padding-left: 20px;
  position: relative;
  line-height: 1.5;
}
.dif-col--get li::before {
  content: '✓';
  position: absolute; left: 0;
  color: var(--fg); opacity: 0.5;
  font-size: 12px;
}
.dif-col--not li::before {
  content: '✗';
  position: absolute; left: 0;
  color: var(--fg); opacity: 0.25;
  font-size: 12px;
}
.dif-col--not li { opacity: 0.4; }

/* ===================================================
   TESTIMONIAL
   =================================================== */
.testimonio {
  background: var(--bg-dark);
  color: var(--fg-dark);
  padding: var(--sp-xl) 0;
  position: relative;
  overflow: hidden;
}
.testi-bg {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: radial-gradient(ellipse at 50% 100%, rgba(255,255,139,0.08) 0%, transparent 60%);
  pointer-events: none;
}
.testi-inner {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}
.testi-mark {
  font-family: var(--serif);
  font-size: 120px;
  line-height: 0.5;
  color: var(--yellow);
  opacity: 0.2;
  margin-bottom: 24px;
  display: block;
}
.testi-quote {
  font-family: var(--serif);
  font-size: clamp(22px, 3.5vw, 32px);
  font-weight: 400;
  font-style: italic;
  line-height: 1.5;
  color: var(--fg-dark);
  margin-bottom: 40px;
}
.testi-author {
  display: inline-flex;
  align-items: center;
  gap: 16px;
}
.testi-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(249,240,217,0.1);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 15px;
  color: var(--yellow);
}
.testi-author-info strong {
  display: block;
  font-size: 15px;
  font-weight: 700;
  color: var(--fg-dark);
}
.testi-author-info span {
  font-size: 13px;
  color: var(--muted-light);
}

/* ===================================================
   AGENDA FINANCIERA
   =================================================== */
.agenda {
  background: var(--bg);
  padding: var(--sp-lg) 0;
}
.agenda-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  padding: 48px 52px;
  border-radius: 18px;
  border: 1px solid var(--border-cream);
  background: rgba(34,21,13,0.03);
  transition: border-color 0.4s ease, box-shadow 0.4s ease, transform 0.4s ease;
}
.agenda-inner:hover {
  border-color: var(--yellow);
  box-shadow: 0 0 40px rgba(255,254,142,0.12), 0 8px 32px rgba(34,21,13,0.06);
  transform: translateY(-2px);
}
.agenda-text h3 {
  font-family: var(--serif);
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 400;
  color: var(--fg);
  margin-bottom: 10px;
}
.agenda-text h3 em { font-style: italic; }
.agenda-text p {
  font-size: 15px;
  color: var(--fg);
  opacity: 0.6;
  line-height: 1.65;
  max-width: 520px;
}
@media (max-width: 768px) {
  .agenda-inner {
    flex-direction: column;
    text-align: center;
    padding: 36px 28px;
  }
  .agenda-text p { max-width: 100%; }
}

/* ===================================================
   TEAM
   =================================================== */
.equipo {
  background: var(--bg);
  padding: var(--sp-xl) 0;
}
.equipo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  margin-top: 48px;
  background: var(--border-cream);
  border-radius: var(--radius);
  overflow: hidden;
}
.eq-card {
  background: var(--bg);
  padding: 40px 36px;
  display: flex;
  gap: 24px;
  align-items: flex-start;
}
.eq-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
}
.eq-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.eq-info h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 3px;
}
.eq-info > span {
  font-size: 13px;
  color: var(--fg);
  opacity: 0.45;
  display: block;
  margin-bottom: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 11px;
}
.eq-info p {
  font-size: 14px;
  color: var(--fg);
  opacity: 0.6;
  line-height: 1.65;
  margin-bottom: 16px;
}
.eq-social { display: flex; gap: 8px; }
.eq-social a {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--border-cream);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  color: var(--fg);
  opacity: 0.5;
  transition: opacity var(--ease), background var(--ease);
}
.eq-social a:hover { opacity: 1; background: var(--fg); color: var(--fg-dark); }

/* ===================================================
   FAQ
   =================================================== */
.faq {
  background: var(--bg-dark);
  color: var(--fg-dark);
  padding: var(--sp-xl) 0;
}
.faq-list {
  margin-top: 48px;
  border-top: 1px solid var(--border);
}
.faq-item {
  border-bottom: 1px solid var(--border);
}
.faq-q {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 0;
  font-size: 17px;
  font-weight: 500;
  color: var(--fg-dark);
  text-align: left;
  cursor: pointer;
  gap: 16px;
  transition: color var(--ease);
}
.faq-q:hover { color: var(--yellow); }
.faq-ico {
  font-size: 22px;
  font-weight: 300;
  flex-shrink: 0;
  transition: transform 0.3s;
  color: var(--muted);
}
.faq-item.open .faq-ico { transform: rotate(45deg); color: var(--yellow); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4,0,0.2,1), padding 0.3s;
}
.faq-item.open .faq-a { max-height: 400px; padding-bottom: 24px; }
.faq-a p {
  font-size: 15px;
  color: var(--muted-light);
  line-height: 1.7;
  max-width: 640px;
}

/* ===================================================
   CTA FINAL — dithering card
   =================================================== */
.cta-final {
  background: var(--bg);
  padding: var(--sp-xl) 0;
}

/* Card shell */
.cta-card {
  position: relative;
  border-radius: 48px;
  background: var(--fg);
  min-height: 560px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(249, 240, 217, 0.08);
  cursor: default;
  transition: box-shadow 0.4s ease;
}
.cta-card:hover {
  box-shadow: 0 0 80px rgba(255, 255, 139, 0.12);
}

/* WebGL dithering mount wrapper */
.cta-dither-wrap {
  position: absolute;
  inset: 0;
  opacity: 0.28;
  mix-blend-mode: screen;
  pointer-events: none;
}
/* ShaderMount injects a canvas — make it fill the wrapper */
.cta-dither-wrap canvas {
  display: block;
  width: 100% !important;
  height: 100% !important;
}

/* Warm glow — CSS fallback / extra depth */
.cta-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(
    ellipse 60% 50% at 50% 85%,
    rgba(255, 255, 139, 0.10) 0%,
    transparent 70%
  );
}

/* Content wrapper */
.cta-card-body {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 64px 48px;
  max-width: 760px;
}

/* Pulsing badge */
.cta-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(249, 240, 217, 0.55);
  background: rgba(249, 240, 217, 0.06);
  border: 1px solid rgba(249, 240, 217, 0.12);
  border-radius: 100px;
  padding: 8px 18px;
  margin-bottom: 36px;
}
.cta-badge-dot {
  position: relative;
  width: 8px;
  height: 8px;
  flex-shrink: 0;
}
.cta-badge-dot::before,
.cta-badge-dot::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
}
.cta-badge-dot::before {
  background: var(--yellow);
}
.cta-badge-dot::after {
  background: var(--yellow);
  animation: ping 1.6s cubic-bezier(0, 0, 0.2, 1) infinite;
}
@keyframes ping {
  75%, 100% { transform: scale(2.2); opacity: 0; }
}

/* Headline */
.cta-card-h {
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 400;
  line-height: 1.15;
  color: #fff;
  margin-bottom: 24px;
}
.cta-card-h em {
  font-style: italic;
  color: var(--yellow);
}

/* Subtext */
.cta-card-sub {
  font-size: 17px;
  line-height: 1.7;
  color: rgba(248, 238, 214, 0.75);
  max-width: 560px;
  margin-bottom: 48px;
}

/* CTA button */
.cta-card-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  font-weight: 700;
  color: var(--fg);
  background: var(--yellow);
  padding: 16px 36px;
  border-radius: 100px;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 0 0 0 rgba(255, 255, 139, 0);
}
.cta-card-btn:hover {
  transform: scale(1.04);
  box-shadow: 0 0 0 6px rgba(255, 255, 139, 0.18), 0 8px 32px rgba(255, 255, 139, 0.25);
}
.cta-card-btn:hover .btn-arrow {
  transform: translateX(4px);
}
.btn-arrow {
  transition: transform 0.2s ease;
}

/* Fine print */
.cta-card-fine {
  font-size: 13px;
  color: rgba(248, 238, 214, 0.5);
  margin-bottom: 36px;
}

/* WhatsApp link */
.cta-wa {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}
.cta-wa span {
  font-size: 14px;
  color: rgba(249, 240, 217, 0.35);
}
.wa-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: #25D366;
  padding: 8px 16px;
  border: 1px solid rgba(37, 211, 102, 0.25);
  border-radius: 100px;
  text-decoration: none;
  transition: background var(--ease);
}
.wa-link:hover { background: rgba(37, 211, 102, 0.08); }

/* Mobile */
@media (max-width: 768px) {
  .cta-card { border-radius: 28px; min-height: auto; }
  .cta-card-body { padding: 48px 28px; }
  .cta-card-btn { width: 100%; justify-content: center; }
}

/* ===================================================
   FOOTER
   =================================================== */
.footer {
  background: var(--fg);
  color: var(--fg-dark);
  padding-top: 72px;
}
.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 64px;
  padding-bottom: 64px;
  border-bottom: 1px solid var(--border);
}
.footer-brand .nav-logo { margin-bottom: 16px; display: inline-block; }
.footer-brand .nav-logo-img { height: 28px; }
.footer-brand p {
  font-size: 14px;
  color: var(--muted-light);
  line-height: 1.7;
  max-width: 320px;
  margin-bottom: 24px;
}
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.footer-contact span, .footer-contact a {
  font-size: 13px;
  color: var(--muted-light);
  transition: color var(--ease);
}
.footer-contact a:hover { color: var(--fg-dark); }
.footer-col h4 {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-light);
  margin-bottom: 20px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col ul li a {
  font-size: 14px;
  color: var(--muted-light);
  opacity: 0.7;
  transition: opacity var(--ease), color var(--ease);
}
.footer-col ul li a:hover { opacity: 1; color: var(--fg-dark); }
.footer-bottom {
  padding: 20px 0;
  border-top: 1px solid var(--border);
}
.footer-bottom p {
  font-size: 12px;
  color: var(--muted);
  opacity: 0.5;
  text-align: center;
}
.footer-bottom a { color: inherit; }

/* ===================================================
   WHATSAPP FLOAT
   =================================================== */
.wa-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 52px;
  height: 52px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 200;
  box-shadow: 0 4px 16px rgba(37,211,102,0.4);
  transition: transform var(--ease), box-shadow var(--ease);
  color: #fff;
}
.wa-float:hover { transform: scale(1.08); box-shadow: 0 6px 24px rgba(37,211,102,0.5); }

/* ===================================================
   FADE-IN SCROLL ANIMATION
   =================================================== */
.fade-in {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(0.4,0,0.2,1), transform 0.7s cubic-bezier(0.4,0,0.2,1);
}
.fade-in.visible {
  opacity: 1;
  transform: none;
}
/* Hero content always visible — no fade-in delay */
.hero .fade-in {
  opacity: 1;
  transform: none;
}

/* ===================================================
   RESPONSIVE
   =================================================== */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  :root { --sp-xl: 80px; }

  .nav-links { display: none; flex-direction: column; align-items: flex-start; gap: 0; position: absolute; top: 64px; left: 0; right: 0; background: var(--bg); border-bottom: 1px solid var(--border-cream); padding: 16px 24px; }
  .nav-links.open { display: flex; }
  .nav-links li a { padding: 12px 0; opacity: 0.7; color: var(--fg) !important; }
  .nav-links .nav-cta { margin-top: 8px; color: var(--fg) !important; }
  .nav-toggle { display: flex; }

  /* Mobile: hide video, show image */
  .hero-video { display: none; }
  .hero-img   { display: block; }

  .hero-inner { grid-template-columns: 1fr; gap: 48px; padding-top: 60px; padding-bottom: 80px; }
  .hero-right { display: none; }

  .services-grid { grid-template-columns: 1fr 1fr; }
  .problema-grid { grid-template-columns: 1fr; }
  .solucion-grid { grid-template-columns: 1fr; gap: 48px; }
  .steps { grid-template-columns: 1fr; }
  .dif-grid { grid-template-columns: 1fr; }
  .equipo-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 480px) {
  .container { padding: 0 20px; }
  .services-grid { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; align-items: flex-start; }
  .hero-actions .btn { width: 100%; justify-content: center; }
}
