﻿/* ==========================================================================
   AgerSoft 2026 — Oscuro, despejado (inspirado en la estructura de NEXORA)
   ========================================================================== */
:root {
  --bg: #061018;
  --bg-soft: #08141f;
  --card: #0b1824;
  --card-hover: #0e1e2d;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.14);

  --white: #ffffff;
  --text: #a9bccd;
  --text-dim: #6f8599;

  --lime: #8dc63f;
  --lime-soft: rgba(141, 198, 63, 0.12);
  --cyan: #0ea5e9;
  --cyan-soft: rgba(14, 165, 233, 0.12);
  --amber: #e08a1e;
  --amber-soft: rgba(224, 138, 30, 0.12);

  --wrap: 1160px;
  --nav-h: 78px;
  --radius: 18px;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; background: var(--bg); }
body {
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1, h2, h3, h4 {
  font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
  color: var(--white);
  letter-spacing: -0.03em;
  line-height: 1.1;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
.wrap { width: min(var(--wrap), calc(100% - 48px)); margin: 0 auto; }
.mono { font-family: 'JetBrains Mono', monospace; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 24px; border-radius: 10px; border: 1px solid transparent;
  font: 700 14.5px 'Inter', sans-serif; cursor: pointer; white-space: nowrap;
  transition: transform .2s ease, background-color .2s ease, border-color .2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-lime { background: var(--lime); color: #061018; }
.btn-lime:hover { background: #9dd352; }
.btn-ghost { background: transparent; color: var(--white); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--lime); color: var(--lime); }
.btn-sm { padding: 10px 18px; font-size: 13.5px; }

/* ---------- Header ---------- */
header.top {
  position: fixed; inset: 0 0 auto 0; height: var(--nav-h); z-index: 50;
  background: rgba(6, 16, 24, 0.82); backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}
.nav { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand .iso { height: 36px; width: auto; }
.brand .word { height: 22px; width: auto; }
.menu { display: flex; align-items: center; gap: 30px; list-style: none; }
.menu a { font-size: 14px; font-weight: 600; color: #b9c9d8; transition: color .2s; }
.menu a:hover { color: var(--lime); }
.hamburger {
  display: none; background: none; border: 1px solid var(--line-strong);
  color: var(--white); border-radius: 8px; padding: 8px 10px; cursor: pointer;
}
.drawer {
  display: none; position: fixed; top: var(--nav-h); left: 0; right: 0; z-index: 49;
  background: var(--bg); border-bottom: 1px solid var(--line); padding: 18px 24px 26px;
  flex-direction: column; gap: 14px;
}
.drawer.open { display: flex; }
.drawer a { font-weight: 600; color: #cbd8e4; padding: 6px 0; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  padding: calc(var(--nav-h) + 96px) 0 120px;
  min-height: 90vh; display: flex; align-items: center;
}
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background: url('./img/hero-agro-ia.png') center right / cover no-repeat;
}
.hero-bg::after {
  content: ''; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, #061018 0%, rgba(6,16,24,.94) 36%, rgba(6,16,24,.5) 68%, rgba(6,16,24,.15) 100%),
    linear-gradient(180deg, rgba(6,16,24,.4) 0%, transparent 25%, #061018 100%);
}
.hero .wrap { position: relative; z-index: 1; }
.hero-copy { max-width: 640px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 7px 14px; border-radius: 999px;
  background: var(--lime-soft); border: 1px solid rgba(141,198,63,.28);
  color: var(--lime); font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
}
.eyebrow i { width: 7px; height: 7px; border-radius: 50%; background: var(--lime); }
.hero h1 { font-size: clamp(42px, 5.4vw, 70px); line-height: 1.04; letter-spacing: -0.045em; margin: 26px 0 22px; }
.hero h1 span { color: var(--lime); display: block; }
.lead { font-size: 18px; color: #bccbd8; max-width: 540px; margin-bottom: 34px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-checks { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 34px; font-size: 13px; color: var(--text-dim); }
.hero-checks b { color: var(--lime); margin-right: 6px; }

/* ---------- Secciones ---------- */
section { padding: 120px 0; }
.alt { background: var(--bg-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.head { max-width: 680px; margin: 0 auto 56px; text-align: center; }
.kicker { font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--lime); }
.head h2 { font-size: clamp(30px, 4vw, 44px); margin: 14px 0 14px; }
.head p { font-size: 16.5px; color: var(--text); }

/* Confianza */
.facts { padding: 0; border-bottom: 1px solid var(--line); }
.facts .wrap { display: grid; grid-template-columns: repeat(4, 1fr); }
.fact { padding: 40px 28px; border-left: 1px solid var(--line); }
.fact:first-child { border-left: 0; padding-left: 0; }
.fact strong { display: block; font: 800 26px 'Plus Jakarta Sans', sans-serif; color: var(--white); letter-spacing: -.03em; }
.fact span { font-size: 13.5px; color: var(--text-dim); }

/* ---------- Soluciones (tabs + tarjetas) ---------- */
.tabs { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin-bottom: 44px; }
.tab {
  background: transparent; color: #b9c9d8; border: 1px solid var(--line-strong);
  padding: 11px 22px; border-radius: 999px; font: 700 14px 'Inter', sans-serif; cursor: pointer;
  transition: all .2s ease;
}
.tab:hover { color: var(--white); border-color: rgba(255,255,255,.3); }
.tab.active { background: var(--lime); border-color: var(--lime); color: #061018; }
.panel { display: none; flex-wrap: wrap; justify-content: center; gap: 20px; }
.panel.active { display: flex; }
.card {
  width: calc((100% - 40px) / 3); min-width: 280px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px; display: flex; flex-direction: column; gap: 14px;
  transition: border-color .25s ease, transform .25s ease, background .25s ease;
}
.card:hover { border-color: rgba(141,198,63,.4); transform: translateY(-3px); background: var(--card-hover); }
.icon {
  width: 48px; height: 48px; border-radius: 13px; display: grid; place-items: center;
  font-size: 22px; background: var(--lime-soft); color: var(--lime); margin-bottom: 6px;
}
.icon.cyan { background: var(--cyan-soft); color: var(--cyan); }
.icon.amber { background: var(--amber-soft); color: var(--amber); }
.card h3 { font-size: 20px; }
.card p { font-size: 14.5px; line-height: 1.6; flex: 1; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips span {
  font-size: 11.5px; font-weight: 700; color: #b9c9d8; padding: 5px 10px;
  border: 1px solid var(--line-strong); border-radius: 999px;
}
.card .go { font-size: 13.5px; font-weight: 700; color: var(--lime); margin-top: 4px; }
.card .go:hover { text-decoration: underline; }

/* ---------- IA & WhatsApp ---------- */
.split { display: grid; grid-template-columns: .9fr 1.1fr; gap: 72px; align-items: center; }
.split h2 { font-size: clamp(30px, 4vw, 44px); margin: 14px 0 16px; }
.split h2 span { color: var(--lime); display: block; }
.points { margin-top: 36px; display: flex; flex-direction: column; gap: 26px; }
.point { display: flex; gap: 16px; }
.point .icon { flex: none; margin: 0; width: 44px; height: 44px; font-size: 20px; }
.point h3 { font-size: 17px; margin-bottom: 4px; }
.point p { font-size: 14.5px; }

.mock {
  background: var(--card); border: 1px solid var(--line-strong); border-radius: 20px;
  overflow: hidden; box-shadow: var(--shadow);
}
.mock-top {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  padding: 14px 20px; border-bottom: 1px solid var(--line); background: rgba(0,0,0,.18);
}
.mock-top img { height: 18px; width: auto; }
.mock-tabs { display: flex; gap: 6px; }
.mt {
  background: transparent; border: 1px solid transparent; color: var(--text-dim);
  font: 600 12px 'Inter', sans-serif; padding: 6px 12px; border-radius: 7px; cursor: pointer;
}
.mt:hover { color: var(--white); }
.mt.active { background: var(--lime-soft); border-color: rgba(141,198,63,.3); color: var(--lime); }
.mock-body { padding: 26px; min-height: 380px; }
.view { display: none; }
.view.active { display: block; }
.kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 20px; }
.kpi { background: rgba(255,255,255,.03); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; }
.kpi small { display: block; font-size: 11.5px; color: var(--text-dim); margin-bottom: 4px; }
.kpi strong { font: 700 17px 'JetBrains Mono', monospace; color: var(--white); }
.kpi em { display: block; font-style: normal; font-size: 11px; color: var(--lime); margin-top: 3px; }
.tbl { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.tbl table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.tbl th { text-align: left; padding: 10px 14px; background: rgba(255,255,255,.03); color: var(--text-dim); font-size: 11px; text-transform: uppercase; letter-spacing: .06em; }
.tbl td { padding: 11px 14px; border-top: 1px solid var(--line); color: #c9d6e2; }
.ok { color: var(--lime); font: 600 11.5px 'JetBrains Mono', monospace; }
.chat { display: flex; flex-direction: column; gap: 14px; }
.msg { max-width: 88%; padding: 14px 18px; border-radius: 14px; font-size: 13.5px; line-height: 1.55; }
.msg.me { align-self: flex-end; background: #11301f; border: 1px solid rgba(141,198,63,.25); color: #eafbe9; }
.msg.bot { align-self: flex-start; background: #0f2030; border: 1px solid var(--line-strong); color: #c9d6e2; }
.msg small { display: block; font: 600 11px 'JetBrains Mono', monospace; color: var(--lime); margin-bottom: 6px; }
.ocr { display: grid; grid-template-columns: .9fr 1.1fr; gap: 16px; }
.ocr-doc { border: 1px dashed var(--line-strong); border-radius: 12px; padding: 18px; background: rgba(255,255,255,.02); }
.ocr-rows { display: flex; flex-direction: column; gap: 9px; }
.ocr-row { display: flex; justify-content: space-between; gap: 10px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 9px; background: rgba(255,255,255,.03); font-size: 12.5px; }
.ocr-row span:last-child { color: var(--white); font: 600 12px 'JetBrains Mono', monospace; }

/* ---------- Pasos ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.step { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; }
.num {
  width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center;
  font: 800 14px 'JetBrains Mono', monospace; background: var(--lime-soft); color: var(--lime); margin-bottom: 20px;
}
.step:nth-child(2) .num { background: var(--cyan-soft); color: var(--cyan); }
.step:nth-child(3) .num { background: var(--amber-soft); color: var(--amber); }
.step h3 { font-size: 19px; margin-bottom: 8px; }
.step p { font-size: 14.5px; }

/* ---------- Por qué + casos ---------- */
.why { display: grid; grid-template-columns: .95fr 1.05fr; gap: 64px; align-items: center; }
.why h2 { font-size: clamp(30px, 4vw, 44px); margin: 14px 0 16px; }
.why h2 span { color: var(--lime); display: block; }
.panel-dark {
  border-radius: 22px; padding: 14px 32px; background: linear-gradient(150deg, #0b1d2c, #0a1722);
  border: 1px solid var(--line-strong); box-shadow: var(--shadow);
}
.m { display: flex; gap: 16px; padding: 22px 0; border-top: 1px solid var(--line); }
.m:first-child { border-top: 0; }
.m .icon { flex: none; width: 42px; height: 42px; margin: 0; font-size: 19px; }
.m strong { display: block; color: var(--white); font-size: 15px; }
.m small { font-size: 13px; color: var(--text); }

.cases { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 56px; }
.case { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; }
.case small { font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--lime); }
.case h3 { font-size: 18px; margin: 12px 0 8px; }
.case p { font-size: 14.5px; }
.clients { text-align: center; padding-top: 44px; border-top: 1px solid var(--line); }
.clients p { font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--text-dim); margin-bottom: 22px; }
.clients div { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 40px; }
.clients span { font: 700 17px 'Plus Jakarta Sans', sans-serif; color: var(--text-dim); }

/* ---------- CTA ---------- */
.cta { padding: 0 0 120px; }
.cta-box {
  border-radius: 24px; padding: 56px; display: flex; align-items: center; justify-content: space-between; gap: 30px;
  background: linear-gradient(115deg, #0a2230, #0b2a22); border: 1px solid var(--line-strong);
  position: relative; overflow: hidden;
}
.cta-box::after {
  content: ''; position: absolute; right: 12%; top: -130px; width: 320px; height: 320px; border-radius: 50%;
  border: 1px solid rgba(141,198,63,.25); box-shadow: 0 0 0 36px rgba(141,198,63,.04), 0 0 0 72px rgba(141,198,63,.03);
  pointer-events: none;
}
.cta-box > * { position: relative; z-index: 1; }
.cta-box h2 { font-size: clamp(28px, 3.6vw, 40px); max-width: 600px; margin-bottom: 10px; }
.cta-box p { color: #bccbd8; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Footer ---------- */
footer { background: #040b11; border-top: 1px solid var(--line); padding: 44px 0 30px; }
.foot { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 22px; }
.foot .brand .iso { height: 32px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 24px; font-size: 13px; color: #9fb2c4; }
.foot-links a:hover { color: var(--lime); }
.foot-note { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 12px; color: var(--text-dim); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }

.wa {
  position: fixed; right: 24px; bottom: 24px; z-index: 40; width: 56px; height: 56px; border-radius: 50%;
  display: grid; place-items: center; background: #16a34a; color: #fff; box-shadow: 0 12px 28px rgba(0,0,0,.45);
  transition: transform .2s ease;
}
.wa:hover { transform: translateY(-2px); }

/* ---------- Modal contacto ---------- */
.modal { display: none; position: fixed; inset: 0; z-index: 100; background: rgba(2,8,13,.78); backdrop-filter: blur(6px); align-items: center; justify-content: center; padding: 20px; }
.modal.open { display: flex; }
.modal-card { width: min(100%, 500px); background: #0b1824; border: 1px solid var(--line-strong); border-radius: 20px; padding: 30px; box-shadow: var(--shadow); max-height: 92vh; overflow: auto; }
.modal-card h2 { font-size: 24px; margin-bottom: 6px; }
.modal-card > p { font-size: 14px; margin-bottom: 20px; }
.close { float: right; border: 0; background: rgba(255,255,255,.08); color: #fff; border-radius: 50%; width: 32px; height: 32px; font-size: 18px; cursor: pointer; }
.row { margin-bottom: 14px; }
.row label { display: block; font-size: 12px; font-weight: 700; color: #cbd8e4; margin-bottom: 6px; }
.row input, .row select, .row textarea {
  width: 100%; background: #08141f; border: 1px solid var(--line-strong); border-radius: 9px;
  padding: 12px 14px; color: var(--white); font: 14px 'Inter', sans-serif; outline: none;
}
.row input:focus, .row select:focus, .row textarea:focus { border-color: var(--lime); }
.row textarea { min-height: 84px; resize: vertical; }
.contact-line { display: flex; gap: 22px; flex-wrap: wrap; margin-bottom: 20px; font-size: 13px; color: var(--text-dim); }
.contact-line b { color: #cbd8e4; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  section { padding: 84px 0; }
  .split, .why { grid-template-columns: 1fr; gap: 44px; }
  .steps, .cases { grid-template-columns: 1fr; }
  .facts .wrap { grid-template-columns: repeat(2, 1fr); }
  .fact:nth-child(3) { border-left: 0; padding-left: 0; }
  .card { width: calc((100% - 20px) / 2); }
  .cta-box { flex-direction: column; align-items: flex-start; padding: 36px 28px; }
}
@media (max-width: 720px) {
  .menu, header.top .btn { display: none; }
  .hamburger { display: inline-flex; }
  .hero { min-height: auto; padding: calc(var(--nav-h) + 56px) 0 72px; }
  .hero-bg::after { background: linear-gradient(180deg, rgba(6,16,24,.82), rgba(6,16,24,.95)); }
  .card { width: 100%; }
  .kpis, .ocr { grid-template-columns: 1fr; }
  .brand .word { display: none; }
  .cta { padding-bottom: 80px; }
}

/* ==========================================================================
   v2 — tarjetas compactas y redondeadas + movimiento
   ========================================================================== */
:root { --radius: 30px; }

#soluciones { padding: 80px 0 68px; }
#soluciones .head { margin-bottom: 26px; }
#soluciones .head h2 { font-size: clamp(28px, 3.4vw, 38px); margin: 10px 0; }
#soluciones .head p { font-size: 15.5px; }
#soluciones .tabs { margin-bottom: 26px; }

.panel { gap: 18px; }
.panel.active { animation: panelIn .5s ease both; }
.card {
  width: calc((100% - 36px) / 3); min-width: 270px;
  background: linear-gradient(160deg, #0d1c2a, #09151f);
  border-radius: var(--radius); padding: 24px 26px 22px; gap: 10px;
  position: relative; overflow: hidden;
  transition: border-color .3s ease, transform .3s cubic-bezier(.2,.7,.2,1), box-shadow .3s ease;
}
.card::before {
  content: ''; position: absolute; right: -70px; bottom: -110px; width: 230px; height: 230px; border-radius: 50%;
  background: radial-gradient(circle, rgba(141,198,63,.18), transparent 70%); opacity: 0; transition: opacity .4s ease; pointer-events: none;
}
.card:hover { border-color: rgba(141,198,63,.45); transform: translateY(-6px); box-shadow: 0 26px 50px rgba(0,0,0,.4); background: linear-gradient(160deg, #0f2030, #0a1722); }
.card:hover::before { opacity: 1; }
.card-head { display: flex; align-items: center; gap: 14px; }
.card-head h3 { font-size: 19px; }
.card p { font-size: 14px; line-height: 1.55; }
.icon { width: 46px; height: 46px; border-radius: 16px; font-size: 21px; flex: none; margin-bottom: 0; }
.chips span { font-size: 11px; padding: 4px 10px; }
.panel.active .card { animation: cardIn .6s cubic-bezier(.2,.7,.2,1) both; }
.panel.active .card:nth-child(2) { animation-delay: .07s; }
.panel.active .card:nth-child(3) { animation-delay: .14s; }
.panel.active .card:nth-child(4) { animation-delay: .21s; }
.panel.active .card:nth-child(5) { animation-delay: .28s; }

.step, .case { transition: transform .3s ease, border-color .3s ease; padding: 34px; }
.step:hover, .case:hover { transform: translateY(-5px); border-color: rgba(141,198,63,.35); }
.panel-dark { border-radius: 32px; }
.mock { border-radius: 30px; }
.cta-box { border-radius: 36px; }
.view.active { animation: panelIn .45s ease both; }
.btn { border-radius: 14px; }

.clients .marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.clients .track { display: flex; gap: 56px; width: max-content; animation: marquee 32s linear infinite; }
.clients .marquee:hover .track { animation-play-state: paused; }
.clients span { font: 700 18px 'Plus Jakarta Sans', sans-serif; color: var(--text-dim); white-space: nowrap; }

@keyframes panelIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes cardIn { from { opacity: 0; transform: translateY(18px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(141,198,63,.55); } 70%, 100% { box-shadow: 0 0 0 10px rgba(141,198,63,0); } }
@keyframes drift { 0%, 100% { transform: translate(0, 0) scale(1); } 50% { transform: translate(50px, -30px) scale(1.12); } }
@keyframes rise { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }

.eyebrow i { animation: pulse 2s infinite; }
.hero-copy > * { animation: rise .9s cubic-bezier(.2,.7,.2,1) both; }
.hero-copy > *:nth-child(2) { animation-delay: .12s; }
.hero-copy > *:nth-child(3) { animation-delay: .24s; }
.hero-copy > *:nth-child(4) { animation-delay: .36s; }
.hero-copy > *:nth-child(5) { animation-delay: .48s; }
.hero::after {
  content: ''; position: absolute; z-index: 0; left: -120px; bottom: -160px; width: 520px; height: 520px; border-radius: 50%;
  background: radial-gradient(circle, rgba(141,198,63,.14), transparent 68%); animation: drift 14s ease-in-out infinite; pointer-events: none;
}
.hero-bg { animation: kenburns 24s ease-in-out infinite alternate; transform-origin: 70% 50%; }
@keyframes kenburns { from { transform: scale(1); } to { transform: scale(1.06); } }
.mock { animation: floaty 7s ease-in-out infinite; }
.mock:hover { animation-play-state: paused; }
.wa { animation: pulse 2.6s infinite; }

[data-reveal] { opacity: 0; transform: translateY(34px); transition: opacity .9s cubic-bezier(.2,.7,.2,1), transform .9s cubic-bezier(.2,.7,.2,1); }
[data-reveal].in { opacity: 1; transform: none; }
[data-reveal][data-delay="1"] { transition-delay: .1s; }
[data-reveal][data-delay="2"] { transition-delay: .2s; }
[data-reveal][data-delay="3"] { transition-delay: .3s; }
.steps .step:nth-child(2), .cases .case:nth-child(2) { transition-delay: .12s; }
.steps .step:nth-child(3), .cases .case:nth-child(3) { transition-delay: .24s; }

@media (max-width: 960px) {
  .card { width: calc((100% - 18px) / 2); }
  #soluciones { padding: 72px 0 60px; }
}
@media (max-width: 720px) {
  .card { width: 100%; }
}


/* ==========================================================================
   v3 — movimiento más lento y notorio
   ========================================================================== */
[data-reveal] { transform: translateY(70px); transition: opacity 1.5s cubic-bezier(.16,.84,.3,1), transform 1.5s cubic-bezier(.16,.84,.3,1); }
[data-reveal][data-delay="1"] { transition-delay: .25s; }
[data-reveal][data-delay="2"] { transition-delay: .5s; }
[data-reveal][data-delay="3"] { transition-delay: .75s; }
.steps .step:nth-child(2), .cases .case:nth-child(2) { transition-delay: .3s; }
.steps .step:nth-child(3), .cases .case:nth-child(3) { transition-delay: .6s; }

@keyframes rise { from { opacity: 0; transform: translateY(60px); } to { opacity: 1; transform: none; } }
.hero-copy > * { animation: rise 1.5s cubic-bezier(.16,.84,.3,1) both; }
.hero-copy > *:nth-child(2) { animation-delay: .3s; }
.hero-copy > *:nth-child(3) { animation-delay: .6s; }
.hero-copy > *:nth-child(4) { animation-delay: .9s; }
.hero-copy > *:nth-child(5) { animation-delay: 1.2s; }

@keyframes cardIn { from { opacity: 0; transform: translateY(50px) scale(.94); } to { opacity: 1; transform: none; } }
.panel.active { animation: panelIn .8s ease both; }
.panel.active .card { animation: cardIn 1.1s cubic-bezier(.16,.84,.3,1) both; }
.panel.active .card:nth-child(1) { animation-delay: .05s; }
.panel.active .card:nth-child(2) { animation-delay: .22s; }
.panel.active .card:nth-child(3) { animation-delay: .39s; }
.panel.active .card:nth-child(4) { animation-delay: .56s; }
.panel.active .card:nth-child(5) { animation-delay: .73s; }

.hero-bg { animation: kenburns 16s ease-in-out infinite alternate; }
@keyframes kenburns { from { transform: scale(1) translateX(0); } to { transform: scale(1.14) translateX(-24px); } }
@keyframes drift { 0%, 100% { transform: translate(0, 0) scale(1); } 50% { transform: translate(120px, -80px) scale(1.25); } }
.hero::after { animation-duration: 9s; }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-18px); } }
.mock { animation: floaty 5s ease-in-out infinite; }

.card { transition: border-color .5s ease, transform .55s cubic-bezier(.16,.84,.3,1), box-shadow .5s ease; }
.card:hover { transform: translateY(-10px) scale(1.02); }
.step, .case { transition: transform .55s cubic-bezier(.16,.84,.3,1), border-color .5s ease; }
.step:hover, .case:hover { transform: translateY(-9px); }
.clients .track { animation-duration: 40s; }
.btn { transition: transform .35s ease, background-color .35s ease, border-color .35s ease; }
.btn:hover { transform: translateY(-3px); }

/* ==========================================================================
   v4 — inicio a pantalla completa, animación repetible y pestañas estables
   ========================================================================== */
.hero { min-height: 100vh; min-height: 100svh; padding: calc(var(--nav-h) + 40px) 0 60px; }
.hero-copy { max-width: 760px; }
.hero h1 { font-size: clamp(38px, 4.7vw, 64px); }

/* las animaciones del inicio solo corren mientras .play está activa (se repiten al volver) */
.hero-copy > * { animation: none; opacity: 0; transform: translateY(60px); }
.hero.play .hero-copy > * { animation: rise 1.5s cubic-bezier(.16,.84,.3,1) both; }
.hero.play .hero-copy > *:nth-child(2) { animation-delay: .3s; }
.hero.play .hero-copy > *:nth-child(3) { animation-delay: .6s; }
.hero.play .hero-copy > *:nth-child(4) { animation-delay: .9s; }
.hero.play .hero-copy > *:nth-child(5) { animation-delay: 1.2s; }
.hero:not(.play) .hero-copy > * { opacity: 0; }

/* contadores con el mismo tamaño que el texto */
.fact strong span { font: inherit; color: inherit; letter-spacing: inherit; }

/* pestañas: la altura no cambia, así la sección siguiente no sube */
.panel { align-content: center; }
@media (min-width: 961px) {
  .panel { min-height: 470px; }
}

/* ==========================================================================
   v5 — cada sección ocupa su pantalla + muro de clientes
   ========================================================================== */
@media (min-width: 961px) {
  main > section:not(.hero):not(.facts):not(.cta) {
    min-height: 100vh; min-height: 100svh;
    display: flex; align-items: center;
    scroll-margin-top: 0;
  }
  main > section:not(.hero):not(.facts):not(.cta) > .wrap { width: min(var(--wrap), calc(100% - 48px)); }
  #soluciones { padding: 90px 0 70px; }
  #metodo, #casos, #clientes, main > section.alt { padding-top: 96px; padding-bottom: 72px; }
}

.logos { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.logo-tile {
  background: #ffffff; border-radius: 26px; height: 112px; padding: 12px 16px;
  display: grid; place-items: center; overflow: hidden;
  border: 1px solid rgba(255,255,255,.9);
  transition: transform .5s cubic-bezier(.16,.84,.3,1), box-shadow .5s ease;
}
.logo-tile img { max-height: 84px; width: auto; max-width: 100%; object-fit: contain; }
.logo-tile.text span {
  font: 800 15px/1.25 'Plus Jakarta Sans', sans-serif; color: #0b1824; text-align: center; letter-spacing: -.01em;
}
.logo-tile:hover { transform: translateY(-8px) scale(1.03); box-shadow: 0 22px 44px rgba(0,0,0,.45); }
.logos .logo-tile:nth-child(5n+2) { transition-delay: .08s; }
.logos .logo-tile:nth-child(5n+3) { transition-delay: .16s; }
.logos .logo-tile:nth-child(5n+4) { transition-delay: .24s; }
.logos .logo-tile:nth-child(5n+5) { transition-delay: .32s; }

.segments { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 40px; }
.segments span {
  padding: 9px 18px; border-radius: 999px; font-size: 13px; font-weight: 700; color: #cbd8e4;
  border: 1px solid var(--line-strong); background: rgba(255,255,255,.03);
}
.segments .more { color: var(--lime); border-color: rgba(141,198,63,.4); background: var(--lime-soft); }

@media (max-width: 960px) {
  .logos { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 560px) {
  .logos { grid-template-columns: repeat(2, 1fr); }
  .logo-tile { height: 96px; }
}

/* v6 — tarjetas de clientes sin logo con color y wordmark de Deloitte */
.logo-tile.text span { color: #fff; font-size: 16px; }
.logo-tile.c-green  { background: linear-gradient(135deg, #3f9a2c, #1f6b3a); border-color: transparent; }
.logo-tile.c-blue   { background: linear-gradient(135deg, #1b7fd0, #134a8c); border-color: transparent; }
.logo-tile.c-amber  { background: linear-gradient(135deg, #f0a21c, #c96a12); border-color: transparent; }
.logo-tile.c-violet { background: linear-gradient(135deg, #7a4fd8, #4a2f9a); border-color: transparent; }
.logo-tile.deloitte-tile { background: #000; border-color: rgba(255,255,255,.18); }
.deloitte { font: 800 28px/1 'Plus Jakarta Sans', 'Inter', sans-serif; letter-spacing: -.04em; color: #fff; }
.deloitte i { font-style: normal; color: #86bc25; }

/* ==========================================================================
   v7 — páginas de producto, preguntas frecuentes y formulario ampliado
   ========================================================================== */
.narrow { width: min(820px, calc(100% - 48px)) !important; }

/* Preguntas frecuentes */
.qas { display: flex; flex-direction: column; gap: 12px; }
.qa { background: linear-gradient(160deg, #0d1c2a, #09151f); border: 1px solid var(--line); border-radius: 24px; padding: 4px 26px; transition: border-color .3s ease, background .3s ease; }
.qa[open] { border-color: rgba(141,198,63,.4); }
.qa summary { list-style: none; cursor: pointer; padding: 20px 34px 20px 0; font: 700 16.5px 'Plus Jakarta Sans', sans-serif; color: var(--white); position: relative; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: '+'; position: absolute; right: 0; top: 50%; transform: translateY(-50%); font-size: 26px; font-weight: 400; color: var(--lime); transition: transform .35s ease; }
.qa[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.qa p { padding: 0 0 22px; font-size: 15px; animation: panelIn .5s ease both; }

/* Formulario ampliado */
.row.two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.row.two label { display: block; font-size: 12px; font-weight: 700; color: #cbd8e4; margin-bottom: 6px; }
.row.two select { width: 100%; background: #08141f; border: 1px solid var(--line-strong); border-radius: 9px; padding: 12px 14px; color: var(--white); font: 14px 'Inter', sans-serif; outline: none; }

/* Páginas de producto */
.page-hero { min-height: 0 !important; padding: calc(var(--nav-h) + 70px) 0 80px !important; }
.page-hero::after { opacity: .9; }
.page-hero .hero-copy { max-width: 820px; }
.page-hero h1 { font-size: clamp(40px, 5vw, 66px); }
.crumb { display: inline-block; font-size: 13px; font-weight: 700; color: var(--text-dim); margin-bottom: 22px; transition: color .25s; }
.crumb:hover { color: var(--lime); }
.aud { margin-top: 30px; }
.aud span { font-size: 12.5px; padding: 6px 14px; }
body.prod main > section:not(.hero):not(.facts):not(.cta) { min-height: 0; display: block; padding: 96px 0; }
body.prod .cta { padding-bottom: 110px; }
body.prod .cases { margin-bottom: 0; }

.feats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.feat { display: flex; gap: 16px; align-items: flex-start; padding: 24px 26px; border-radius: 26px; background: linear-gradient(160deg, #0d1c2a, #09151f); border: 1px solid var(--line); transition: transform .5s cubic-bezier(.16,.84,.3,1), border-color .4s ease; }
.feat:hover { transform: translateY(-6px); border-color: rgba(141,198,63,.4); }
.feat .icon { font-size: 18px; font-weight: 800; }
.feat h3 { font-size: 17px; margin-bottom: 4px; }
.feat p { font-size: 14px; }

.rels { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.rels .rel { width: auto; min-width: 0; text-decoration: none; cursor: pointer; }
.rels .rel .go { margin-top: 4px; }

.media-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.media { margin: 0; border-radius: 28px; overflow: hidden; border: 1px solid var(--line-strong); background: #000; box-shadow: var(--shadow); }
.media video, .media img { width: 100%; display: block; }

.card .go { display: inline-block; }

@media (max-width: 960px) {
  .feats, .media-grid { grid-template-columns: 1fr; }
  .rels { grid-template-columns: 1fr; }
  .row.two { grid-template-columns: 1fr; }
  body.prod main > section:not(.hero):not(.facts):not(.cta) { padding: 70px 0; }
}

/* v8 — Quiénes somos */
.about { display: grid; grid-template-columns: 1.05fr .95fr; gap: 72px; align-items: center; }
.about h2 { font-size: clamp(30px, 4vw, 44px); margin: 14px 0 20px; }
.about h2 span { color: var(--lime); display: block; }
.about p { font-size: 16px; margin-bottom: 14px; max-width: 540px; }
.founder {
  display: flex; align-items: center; gap: 18px; margin-top: 30px; padding: 18px 22px; max-width: 540px;
  border-radius: 28px; background: linear-gradient(160deg, #0d1c2a, #09151f); border: 1px solid var(--line);
}
.founder img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; object-position: top; border: 2px solid rgba(141,198,63,.5); flex: none; }
.founder strong { display: block; color: var(--white); font: 800 17px 'Plus Jakarta Sans', sans-serif; }
.founder span { display: block; font-size: 13px; color: var(--lime); font-weight: 700; margin: 2px 0 6px; }
.founder small { display: block; font-size: 12.5px; color: var(--text-dim); line-height: 1.5; }
.about-side { display: flex; flex-direction: column; gap: 26px; }
.values { display: flex; flex-direction: column; gap: 14px; }
.value {
  display: flex; gap: 16px; align-items: flex-start; padding: 20px 24px; border-radius: 26px;
  background: linear-gradient(160deg, #0d1c2a, #09151f); border: 1px solid var(--line);
  transition: transform .5s cubic-bezier(.16,.84,.3,1), border-color .4s ease;
}
.value:hover { transform: translateY(-5px); border-color: rgba(141,198,63,.4); }
.value h3 { font-size: 17px; margin-bottom: 3px; }
.value p { font-size: 14px; margin: 0; }
.timeline { list-style: none; position: relative; padding-left: 26px; display: flex; flex-direction: column; gap: 16px; }
.timeline::before { content: ''; position: absolute; left: 6px; top: 6px; bottom: 6px; width: 2px; background: linear-gradient(var(--lime), rgba(141,198,63,.1)); }
.timeline li { position: relative; font-size: 14px; }
.timeline li::before { content: ''; position: absolute; left: -26px; top: 5px; width: 14px; height: 14px; border-radius: 50%; background: var(--bg); border: 2px solid var(--lime); }
.timeline b { display: block; color: var(--white); font: 800 15px 'JetBrains Mono', monospace; }
.timeline span { color: var(--text); }
.where { font-size: 13px; color: var(--text-dim); margin: 0; }
@media (max-width: 960px) { .about { grid-template-columns: 1fr; gap: 44px; } }

/* v9 — videos y pantallas de producto */
.media-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.media-grid .media:only-child { grid-column: 1 / -1; max-width: 900px; margin: 0 auto; }
.media { margin: 0; border-radius: 28px; overflow: hidden; background: linear-gradient(160deg, #0d1c2a, #09151f); border: 1px solid var(--line-strong); box-shadow: var(--shadow); transition: transform .5s cubic-bezier(.16,.84,.3,1), border-color .4s ease; }
.media:hover { transform: translateY(-6px); border-color: rgba(141,198,63,.4); }
.media video, .media img { width: 100%; display: block; background: #000; }
.media figcaption { padding: 14px 20px 16px; font: 700 14px 'Inter', sans-serif; color: #cbd8e4; }
.sub { text-align: center; font-size: 22px; margin: 64px 0 28px; }
.shot-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.shot img { cursor: zoom-in; aspect-ratio: 16 / 10; object-fit: cover; object-position: top left; }
.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(2,8,13,.92); display: none; align-items: center; justify-content: center; padding: 28px; cursor: zoom-out; }
.lightbox.open { display: flex; animation: panelIn .35s ease both; }
.lightbox img { max-width: min(1500px, 100%); max-height: 88vh; border-radius: 18px; box-shadow: var(--shadow); }
.lightbox p { position: absolute; bottom: 22px; left: 0; right: 0; text-align: center; color: #cbd8e4; font-weight: 700; font-size: 14px; }
@media (max-width: 960px) {
  .media-grid { grid-template-columns: 1fr; }
  .shot-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) { .shot-grid { grid-template-columns: 1fr; } }

/* v10 — encabezado de producto ordenado */
.page-hero::after { display: none; }
.crumb { display: block; margin-bottom: 26px; }
.page-hero .eyebrow { display: inline-flex; margin-bottom: 4px; }
.page-hero .hero-copy > * { max-width: 100%; }

/* v11 — tarjeta destacada "en acción" */
.page-hero .has-watch { display: grid; grid-template-columns: 1fr 480px; gap: 56px; align-items: center; }
.page-hero .has-watch .hero-copy { max-width: 640px; }
.watch {
  display: block; position: relative; border-radius: 34px; padding: 14px;
  background: linear-gradient(160deg, #10263a, #0a1722); border: 1px solid rgba(141,198,63,.45);
  box-shadow: 0 30px 70px rgba(0,0,0,.5), 0 0 0 10px rgba(141,198,63,.05), 0 0 80px rgba(141,198,63,.18);
  transition: transform .55s cubic-bezier(.16,.84,.3,1), box-shadow .5s ease;
  animation: floaty 6s ease-in-out infinite;
}
.watch:hover { transform: translateY(-8px) scale(1.02); animation-play-state: paused; box-shadow: 0 36px 80px rgba(0,0,0,.55), 0 0 0 12px rgba(141,198,63,.08), 0 0 110px rgba(141,198,63,.3); }
.watch-img { position: relative; border-radius: 24px; overflow: hidden; aspect-ratio: 16 / 10; background: #000; }
.watch-img img { width: 100%; height: 100%; object-fit: cover; object-position: top left; transition: transform .8s ease; }
.watch:hover .watch-img img { transform: scale(1.06); }
.watch-img::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(6,16,24,.05) 30%, rgba(6,16,24,.65)); }
.live {
  position: absolute; top: 14px; left: 14px; z-index: 2; display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px; border-radius: 999px; background: rgba(6,16,24,.8); color: #fff;
  font: 800 11px 'Inter', sans-serif; letter-spacing: .1em; backdrop-filter: blur(6px); border: 1px solid rgba(255,255,255,.15);
}
.live i { width: 8px; height: 8px; border-radius: 50%; background: #ff4d4d; animation: pulse 1.6s infinite; }
.watch-play {
  position: absolute; z-index: 2; left: 50%; top: 50%; width: 88px; height: 88px; margin: -44px 0 0 -44px; border-radius: 50%;
  display: grid; place-items: center; background: var(--lime); color: #061018; font-size: 30px;
  box-shadow: 0 0 0 0 rgba(141,198,63,.6); animation: playpulse 2.2s infinite; transition: transform .4s ease;
}
.watch-play b { margin-left: 5px; }
.watch:hover .watch-play { transform: scale(1.12); }
@keyframes playpulse { 0% { box-shadow: 0 0 0 0 rgba(141,198,63,.55); } 70%, 100% { box-shadow: 0 0 0 28px rgba(141,198,63,0); } }
.watch-info { display: grid; gap: 2px; padding: 18px 12px 8px; position: relative; }
.watch-info strong { font: 800 20px 'Plus Jakarta Sans', sans-serif; color: var(--white); letter-spacing: -.02em; }
.watch-info small { font-size: 13.5px; color: var(--text); }
.watch-go { position: absolute; right: 12px; bottom: 10px; font: 800 13px 'Inter', sans-serif; color: var(--lime); }
@media (max-width: 1100px) {
  .page-hero .has-watch { grid-template-columns: 1fr; }
  .watch { max-width: 560px; }
}


/* v12 — retorno limpio desde la sección "en acción" a la ficha */
#demo { scroll-margin-top: var(--nav-h); }
.back-sheet {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 700; color: var(--text-dim);
  margin: 0 auto 18px; transition: color .25s ease;
}
.back-sheet:hover { color: var(--lime); }
#demo .wrap { text-align: center; }
#demo .media-grid, #demo .shot-grid { text-align: left; }
.demo-actions {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 12px; margin-top: 48px;
}

/* v13 — vitrina de videos reales en el Home (#demos) */
#demos { scroll-margin-top: var(--nav-h); }
.demo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.demo-card {
  margin: 0; border-radius: 28px; overflow: hidden;
  background: linear-gradient(160deg, #0d1c2a, #09151f);
  border: 1px solid var(--line); box-shadow: var(--shadow);
  display: flex; flex-direction: column;
  transition: transform .5s cubic-bezier(.16,.84,.3,1), border-color .4s ease;
}
.demo-card:hover { transform: translateY(-6px); border-color: rgba(141,198,63,.42); }
.demo-card video { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; display: block; background: #000; }
.demo-body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.demo-tag { font-size: 11.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--lime); }
.demo-tag.is-cyan { color: var(--cyan); }
.demo-tag.is-amber { color: var(--amber); }
.demo-body h3 { font-size: 19px; }
.demo-body p { font-size: 14px; line-height: 1.55; flex: 1; }
.demo-body .go { font-size: 13.5px; font-weight: 700; color: var(--lime); margin-top: 4px; display: inline-block; }
.demo-body .go:hover { text-decoration: underline; }
@media (max-width: 960px) { .demo-grid { grid-template-columns: 1fr; } }
