/* =====================================================================
   ESKALA — Design System
   Sober B2B enterprise. White bg, Inter, confidence blue.
   ===================================================================== */

:root {
  /* ═══════ PALETA ESKALA — extraída del logo ISOTIPO ═══════ */
  --bg:            #FFFFFF;
  --bg-soft:       #F8F9FC;     /* tinte muy sutil hacia navy */
  --bg-softer:     #F1F3F9;
  --ink:           #0A1530;     /* navy muy oscuro (texto principal) */
  --ink-2:         #4F5A78;     /* navy medio (texto secundario) */
  --ink-3:         #8B93AB;     /* navy claro (texto débil) */
  --border:        #E4E7F0;     /* borde con tinte navy */
  --border-2:      #C9D0DF;

  /* MARCA: navy del logo */
  --brand:         #002060;     /* navy principal del logo */
  --brand-dark:    #001545;     /* navy más oscuro para hover */
  --brand-soft:    #E8EDF8;     /* navy muy claro para fondos */
  --brand-soft-2:  #C7D3EC;     /* navy claro para bordes */

  /* ACENTO: morado/violeta del logo */
  --accent:        #6020E0;     /* violeta del logo */
  --accent-dark:   #4A14C0;
  --accent-soft:   #F0E8FC;
  --accent-soft-2: #D9C7F7;

  /* GRADIENTE de marca (navy → violeta) — para hero, CTAs especiales */
  --gradient: linear-gradient(135deg, #002060 0%, #6020E0 100%);
  --gradient-soft: linear-gradient(135deg, #E8EDF8 0%, #F0E8FC 100%);

  /* Estados */
  --success:       #10B981;
  --success-soft:  #ECFDF5;
  --success-dark:  #059669;
  --warn:          #F59E0B;

  /* Type */
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* Radius */
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-full: 999px;

  /* Shadow con tinte navy */
  --sh-sm: 0 1px 2px rgba(0,32,96,.06);
  --sh-md: 0 4px 12px rgba(0,32,96,.10);
  --sh-lg: 0 12px 32px rgba(0,32,96,.16);
  --sh-brand: 0 8px 24px rgba(0,32,96,.20);
  --sh-accent: 0 8px 24px rgba(96,32,224,.22);

  /* Layout */
  --maxw: 1200px;
  --gut: 24px;
  --nav-h: 68px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

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

/* ---- Typography ---- */
h1, h2, h3, h4 { margin: 0; color: var(--ink); }
h1 { font-size: clamp(36px, 5vw, 56px); font-weight: 700; letter-spacing: -.025em; line-height: 1.08; }
h2 { font-size: clamp(30px, 4vw, 42px); font-weight: 700; letter-spacing: -.02em; line-height: 1.12; }
h3 { font-size: clamp(22px, 2.5vw, 28px); font-weight: 700; letter-spacing: -.015em; line-height: 1.2; }
h4 { font-size: 20px; font-weight: 600; line-height: 1.3; }
p  { margin: 0; }

.lead { font-size: 19px; line-height: 1.55; color: var(--ink-2); }
.small { font-size: 14px; }
.eyebrow {
  font-size: 13px; font-weight: 600; letter-spacing: .08em;
  text-transform: uppercase; color: var(--brand);
}
.text-blue { color: var(--brand); }
.text-muted { color: var(--ink-2); }

/* ---- Layout helpers ---- */
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gut); }
.container-narrow { max-width: 760px; margin: 0 auto; padding: 0 var(--gut); }
section { padding: 80px 0; }
.section-soft { background: var(--bg-soft); }
.section-head { max-width: 680px; margin: 0 auto 48px; text-align: center; }
.section-head .lead { margin-top: 14px; }
.section-head.left { margin-left: 0; text-align: left; }

.grid { display: grid; gap: 24px; }
.cols-2 { grid-template-columns: repeat(2, 1fr); }
.cols-3 { grid-template-columns: repeat(3, 1fr); }
.cols-4 { grid-template-columns: repeat(4, 1fr); }

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--font); font-size: 15px; font-weight: 600; line-height: 1;
  padding: 12px 22px; border-radius: var(--r-sm); border: 1px solid transparent;
  cursor: pointer; transition: all .15s ease; white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }
.btn-lg { padding: 16px 28px; font-size: 16px; }
.btn-primary {
  background: var(--brand);
  color: #fff;
  box-shadow: var(--sh-sm);
  position: relative;
  overflow: hidden;
  z-index: 0;
}
.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient);
  opacity: 0;
  transition: opacity .2s ease;
  z-index: -1;
}
.btn-primary:hover { box-shadow: var(--sh-brand); }
.btn-primary:hover::before { opacity: 1; }
.btn-secondary { background: #fff; color: var(--ink); border-color: var(--border-2); }
.btn-secondary:hover { border-color: var(--brand); color: var(--brand); }
/* btn-success ahora es ACCENT (violeta del logo) — usado en ARIN */
.btn-success { background: var(--accent); color: #fff; }
.btn-success:hover { background: var(--accent-dark); box-shadow: var(--sh-accent); }
.btn-white { background: #fff; color: var(--brand); }
.btn-white:hover { box-shadow: var(--sh-lg); transform: translateY(-1px); }
.btn-outline-white { background: transparent; color: #fff; border-color: rgba(255,255,255,.5); }
.btn-outline-white:hover { background: rgba(255,255,255,.12); border-color: #fff; }
.btn-ghost { background: transparent; color: var(--brand); padding-left: 0; padding-right: 0; }
.btn-block { width: 100%; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--brand); font-weight: 600; font-size: 15px; transition: gap .15s ease;
}
.link-arrow svg { width: 16px; height: 16px; transition: transform .15s ease; }
.link-arrow:hover { gap: 10px; }

/* ---- Focus states ---- */
a:focus-visible, button:focus-visible, input:focus-visible,
textarea:focus-visible, select:focus-visible, .card:focus-visible {
  outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 4px;
}

.skip-link {
  position: absolute; left: -9999px; top: 8px; z-index: 200;
  background: var(--brand); color: #fff; padding: 10px 16px; border-radius: var(--r-sm);
}
.skip-link:focus { left: 16px; }

/* ---- Badges / tags ---- */
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 600; letter-spacing: .04em;
  padding: 5px 10px; border-radius: var(--r-full);
  background: var(--brand-soft); color: var(--brand);
}
.badge-success { background: var(--success-soft); color: var(--success-dark); }
.badge-accent { background: var(--accent-soft); color: var(--accent-dark); }
.tag {
  display: inline-flex; align-items: center;
  font-size: 13px; font-weight: 500; padding: 6px 12px;
  border-radius: var(--r-full); background: var(--bg-softer); color: var(--ink-2);
}

/* =====================================================================
   NAVBAR
   ===================================================================== */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.85); backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid transparent; transition: border-color .15s ease, box-shadow .15s ease;
}
.nav.scrolled { border-color: var(--border); box-shadow: var(--sh-sm); }
.nav-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gut);
  height: var(--nav-h); display: flex; align-items: center; gap: 32px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand-mark { width: 36px; height: 36px; display: block; object-fit: contain; }
.brand-name { font-size: 20px; font-weight: 700; letter-spacing: -.02em; }

.nav-links { display: flex; align-items: center; gap: 4px; margin: 0 auto; }
.nav-item { position: relative; }
.nav-link {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 15px; font-weight: 500; color: var(--ink); padding: 9px 14px;
  border-radius: var(--r-sm); cursor: pointer; transition: all .15s ease; background: none; border: none;
  font-family: var(--font);
}
.nav-link:hover { background: var(--bg-soft); color: var(--brand); }
.nav-link .chev { width: 14px; height: 14px; transition: transform .15s ease; color: var(--ink-3); }
.nav-item.open .nav-link .chev { transform: rotate(180deg); }
.nav-cta { flex-shrink: 0; }

/* Dropdown */
.dropdown {
  position: absolute; top: calc(100% + 10px); left: 50%; transform: translateX(-50%) translateY(8px);
  background: #fff; border: 1px solid var(--border); border-radius: var(--r-md);
  box-shadow: var(--sh-lg); padding: 12px; min-width: 460px;
  opacity: 0; visibility: hidden; transition: all .15s ease; z-index: 110;
}
.nav-item.open .dropdown { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.dropdown.wide { min-width: 560px; }
.dropdown-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
.dropdown-grid.single { grid-template-columns: 1fr; }
.dd-item { display: flex; gap: 12px; padding: 12px; border-radius: var(--r-sm); transition: background .15s ease; }
.dd-item:hover { background: var(--bg-soft); }
.dd-icon {
  flex-shrink: 0; width: 38px; height: 38px; border-radius: var(--r-sm);
  background: var(--brand-soft); color: var(--brand);
  display: grid; place-items: center;
}
.dd-icon svg { width: 20px; height: 20px; }
.dd-item > span:last-child { display: flex; flex-direction: column; min-width: 0; }
.dd-title { display: block; font-size: 15px; font-weight: 600; color: var(--ink); line-height: 1.25; }
.dd-desc { display: block; font-size: 13px; color: var(--ink-2); line-height: 1.45; margin-top: 4px; }

/* Mobile nav */
.nav-burger { display: none; background: none; border: none; cursor: pointer; padding: 8px; margin-left: auto; }
.nav-burger svg { width: 26px; height: 26px; color: var(--ink); }
.drawer {
  position: fixed; inset: 0; z-index: 200; visibility: hidden;
}
.drawer-scrim {
  position: absolute; inset: 0; background: rgba(17,24,39,.4); opacity: 0; transition: opacity .2s ease;
}
.drawer-panel {
  position: absolute; top: 0; right: 0; height: 100%; width: min(380px, 86vw);
  background: #fff; box-shadow: var(--sh-lg); transform: translateX(100%); transition: transform .2s ease;
  display: flex; flex-direction: column; overflow-y: auto;
}
.drawer.open { visibility: visible; }
.drawer.open .drawer-scrim { opacity: 1; }
.drawer.open .drawer-panel { transform: translateX(0); }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 18px var(--gut); border-bottom: 1px solid var(--border); }
.drawer-close { background: none; border: none; cursor: pointer; padding: 6px; }
.drawer-close svg { width: 24px; height: 24px; color: var(--ink); }
.drawer-body { padding: 12px var(--gut) 24px; }
.acc-trigger {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  background: none; border: none; font-family: var(--font); font-size: 16px; font-weight: 600;
  color: var(--ink); padding: 14px 0; cursor: pointer; border-bottom: 1px solid var(--border);
}
.acc-trigger svg { width: 18px; height: 18px; color: var(--ink-3); transition: transform .15s ease; }
.acc-trigger.open svg { transform: rotate(180deg); }
.acc-panel { display: none; padding: 6px 0 14px; }
.acc-panel.open { display: block; }
.acc-panel a { display: block; padding: 9px 0 9px 14px; color: var(--ink-2); font-size: 15px; }
.acc-panel a:hover { color: var(--brand); }
.drawer-cta { margin-top: 18px; }

/* =====================================================================
   CARDS
   ===================================================================== */
.card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--r-md);
  padding: 26px; transition: all .15s ease;
}
.card-hover:hover { border-color: var(--brand); transform: translateY(-2px); box-shadow: var(--sh-md); }
.card-icon {
  width: 46px; height: 46px; border-radius: var(--r-sm); background: var(--brand-soft);
  color: var(--brand); display: grid; place-items: center; margin-bottom: 18px;
}
.card-icon svg { width: 24px; height: 24px; }
.card h4 { margin-bottom: 8px; }
.card-desc { font-size: 15px; color: var(--ink-2); line-height: 1.5; margin-bottom: 16px; }

/* Process step */
.step-num {
  display: inline-flex; font-size: 12px; font-weight: 700; letter-spacing: .06em;
  color: var(--brand); background: var(--brand-soft); padding: 5px 11px; border-radius: var(--r-full);
  margin-bottom: 16px;
}
.step-time { font-size: 13px; font-weight: 600; color: var(--ink-3); margin-top: 14px; display: flex; align-items: center; gap: 6px; }
.step-time svg { width: 14px; height: 14px; }

/* =====================================================================
   HERO
   ===================================================================== */
.hero { padding: 80px 0; }
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.hero h1 { margin: 18px 0; }
.hero .lead { max-width: 480px; }
.hero-actions { display: flex; gap: 12px; margin: 30px 0 28px; flex-wrap: wrap; }
.trust-row { display: flex; gap: 22px; flex-wrap: wrap; }
.trust-item { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 500; color: var(--ink-2); }
.trust-item svg { width: 17px; height: 17px; color: var(--success); }

/* Compact hero (interior pages) */
.hero-compact { background: var(--bg-soft); border-bottom: 1px solid var(--border); padding: 56px 0 60px; text-align: center; }
.hero-compact .lead { max-width: 620px; margin: 16px auto 0; }
.breadcrumb { display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 13px; color: var(--ink-2); margin-bottom: 18px; }
.breadcrumb a:hover { color: var(--brand); }
.breadcrumb .sep { color: var(--ink-3); }
.breadcrumb .current { color: var(--ink); font-weight: 500; }

/* =====================================================================
   DASHBOARD MOCKUP (hero right)
   ===================================================================== */
.mock {
  background: linear-gradient(160deg, var(--brand-soft) 0%, var(--accent-soft) 100%);
  border: 1px solid var(--brand-soft-2); border-radius: var(--r-lg); padding: 18px;
  box-shadow: var(--sh-lg);
}
.mock-win { background: #fff; border: 1px solid var(--border); border-radius: var(--r-md); overflow: hidden; }
.mock-bar { display: flex; align-items: center; gap: 7px; padding: 12px 14px; border-bottom: 1px solid var(--border); }
.mock-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--border-2); }
.mock-dot.r { background: #FCA5A5; } .mock-dot.y { background: #FCD34D; } .mock-dot.g { background: #86EFAC; }
.mock-url { margin-left: 8px; font-size: 12px; color: var(--ink-3); font-family: ui-monospace, monospace; }
.mock-body { padding: 18px; }
.mock-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.mock-title { font-size: 15px; font-weight: 700; }
.mock-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 16px; }
.mock-stat { background: var(--bg-soft); border: 1px solid var(--border); border-radius: var(--r-sm); padding: 14px; }
.mock-stat .k { font-size: 12px; color: var(--ink-2); margin-bottom: 6px; }
.mock-stat .v { font-size: 24px; font-weight: 700; letter-spacing: -.02em; }
.mock-stat .v.green { color: var(--success); }
.mock-chart { display: flex; align-items: flex-end; gap: 7px; height: 72px; padding: 8px 0; }
.mock-chart span { flex: 1; background: var(--brand-soft-2); border-radius: 3px 3px 0 0; }
.mock-chart span.hi { background: var(--brand); }
.mock-feed { margin-top: 14px; border-top: 1px solid var(--border); padding-top: 14px; }
.mock-feed-item { display: flex; align-items: center; gap: 10px; padding: 7px 0; font-size: 13px; color: var(--ink-2); }
.mock-feed-item .pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--success); flex-shrink: 0; }

/* =====================================================================
   STACK STRIP
   ===================================================================== */
.stack { background: var(--bg-soft); border-block: 1px solid var(--border); padding: 36px 0; }
.stack-label { text-align: center; font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 22px; }
.stack-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px 40px; }
.stack-item { font-size: 17px; font-weight: 600; color: var(--ink-3); transition: color .15s ease; }
.stack-item:hover { color: var(--ink); }

/* =====================================================================
   PRODUCT CARDS
   ===================================================================== */
.product-card { border: 1px solid var(--border); border-radius: var(--r-lg); padding: 32px; transition: all .15s ease; }
.product-card:hover { box-shadow: var(--sh-md); }
.product-glyph { width: 56px; height: 56px; border-radius: var(--r-md); display: grid; place-items: center; font-size: 28px; font-weight: 700; color: #fff; margin-bottom: 18px; }
.product-glyph.bixo { background: var(--brand); }
.product-glyph.arin { background: var(--accent); }
.product-tag { font-size: 13px; color: var(--ink-2); margin-bottom: 18px; }
.feature-list { list-style: none; padding: 0; margin: 20px 0 24px; display: grid; gap: 11px; }
.feature-list li { display: flex; align-items: flex-start; gap: 10px; font-size: 15px; color: var(--ink); }
.feature-list li svg { width: 18px; height: 18px; color: var(--success); flex-shrink: 0; margin-top: 1px; }

/* =====================================================================
   CTA BAND
   ===================================================================== */
.cta-band { background: var(--brand); color: #fff; text-align: center; }
.cta-band h2 { color: #fff; }
.cta-band .lead { color: rgba(255,255,255,.85); max-width: 560px; margin: 16px auto 32px; }
.cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* =====================================================================
   FEATURE / INFO PANELS (service pages)
   ===================================================================== */
.split { display: grid; grid-template-columns: 1.5fr 1fr; gap: 48px; align-items: start; }
.feature-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 32px; margin: 28px 0; }
.feature-item { display: flex; gap: 12px; }
.feature-item .fi-icon { flex-shrink: 0; width: 24px; height: 24px; color: var(--brand); }
.feature-item .fi-icon svg { width: 24px; height: 24px; }
.feature-item h4 { font-size: 16px; margin-bottom: 4px; }
.feature-item p { font-size: 14px; color: var(--ink-2); line-height: 1.45; }
.info-panel { background: var(--bg-soft); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 30px; position: sticky; top: calc(var(--nav-h) + 24px); }
.info-panel .pk { font-size: 13px; font-weight: 600; color: var(--ink-2); text-transform: uppercase; letter-spacing: .05em; }
.info-panel .pv { font-size: 30px; font-weight: 700; letter-spacing: -.02em; margin: 4px 0 22px; }
.info-panel .pv.blue { color: var(--brand); }
.info-divider { height: 1px; background: var(--border); margin: 4px 0 22px; }

/* Timeline */
.timeline { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; counter-reset: tl; }
.tl-step { position: relative; padding: 0 18px; }
.tl-step::before { content: ""; position: absolute; top: 15px; left: 0; right: 0; height: 2px; background: var(--border); }
.tl-step:first-child::before { left: 50%; }
.tl-step:last-child::before { right: 50%; }
.tl-dot { position: relative; width: 32px; height: 32px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; font-size: 13px; font-weight: 700; margin: 0 auto 16px; z-index: 1; }
.tl-step h4 { font-size: 16px; text-align: center; margin-bottom: 6px; }
.tl-step p { font-size: 14px; color: var(--ink-2); text-align: center; line-height: 1.45; }

/* Use cases */
.usecase-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.usecase { display: flex; align-items: center; gap: 14px; padding: 18px 20px; background: #fff; border: 1px solid var(--border); border-radius: var(--r-md); }
.usecase svg { width: 22px; height: 22px; color: var(--brand); flex-shrink: 0; }
.usecase span { font-size: 15px; font-weight: 500; }

/* =====================================================================
   ACCORDION (FAQ)
   ===================================================================== */
.faq { max-width: 760px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-q { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  background: none; border: none; cursor: pointer; font-family: var(--font);
  font-size: 17px; font-weight: 600; color: var(--ink); text-align: left; padding: 22px 0; }
.faq-q svg { width: 20px; height: 20px; color: var(--ink-3); flex-shrink: 0; transition: transform .15s ease; }
.faq-q.open svg { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .2s ease; }
.faq-a-inner { padding-bottom: 22px; color: var(--ink-2); font-size: 16px; line-height: 1.6; }

/* =====================================================================
   PLACEHOLDER (images)
   ===================================================================== */
.ph {
  position: relative; border-radius: var(--r-md); overflow: hidden;
  background-color: var(--bg-softer);
  background-image: repeating-linear-gradient(135deg, transparent, transparent 9px, rgba(37,99,235,.05) 9px, rgba(37,99,235,.05) 18px);
  border: 1px solid var(--border);
  display: grid; place-items: center;
}
.ph span { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 12px; color: var(--ink-3); letter-spacing: .02em; }
.ph-16x9 { aspect-ratio: 16/9; }
.ph-4x3 { aspect-ratio: 4/3; }
.team-photo { position: relative; border-radius: 18px; overflow: hidden; box-shadow: 0 24px 60px -20px rgba(0,32,96,.28), 0 8px 20px -10px rgba(0,32,96,.18); aspect-ratio: 4/3; }
.team-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.team-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(135deg, rgba(0,32,96,.10) 0%, rgba(96,32,224,.10) 100%); pointer-events: none; }
.ph-1x1 { aspect-ratio: 1/1; }

/* =====================================================================
   BLOG
   ===================================================================== */
.filter-bar { position: sticky; top: var(--nav-h); z-index: 50; background: rgba(255,255,255,.9); backdrop-filter: blur(8px); border-bottom: 1px solid var(--border); padding: 16px 0; }
.filter-row { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.filter-btn { font-family: var(--font); font-size: 14px; font-weight: 500; padding: 8px 16px; border-radius: var(--r-full); border: 1px solid var(--border); background: #fff; color: var(--ink-2); cursor: pointer; transition: all .15s ease; }
.filter-btn:hover { border-color: var(--brand); color: var(--brand); }
.filter-btn.active { background: var(--brand); color: #fff; border-color: var(--brand); }

.post-feat { display: grid; grid-template-columns: 1.1fr 1fr; gap: 36px; align-items: center; border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden; transition: all .15s ease; }
.post-feat:hover { box-shadow: var(--sh-md); }
.post-feat .ph { border: none; border-radius: 0; height: 100%; min-height: 300px; }
.post-feat-body { padding: 36px 36px 36px 0; }
.post-meta { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--ink-2); margin-bottom: 14px; }

.post-card { border: 1px solid var(--border); border-radius: var(--r-md); overflow: hidden; transition: all .15s ease; display: flex; flex-direction: column; }
.post-card:hover { border-color: var(--brand); transform: translateY(-2px); box-shadow: var(--sh-md); }
.post-card .ph { border: none; border-radius: 0; }
.post-card-body { padding: 22px; display: flex; flex-direction: column; flex: 1; }
.post-card-body h5 { font-size: 18px; font-weight: 700; margin: 8px 0; line-height: 1.3; letter-spacing: -.01em; }
.post-card-body p { font-size: 14px; color: var(--ink-2); line-height: 1.5; flex: 1; }
.post-readtime { font-size: 13px; color: var(--ink-3); margin-top: 14px; }

.pagination { display: flex; gap: 6px; justify-content: center; align-items: center; margin-top: 48px; }
.page-btn { min-width: 40px; height: 40px; display: grid; place-items: center; border-radius: var(--r-sm); border: 1px solid var(--border); background: #fff; cursor: pointer; font-weight: 600; font-size: 14px; transition: all .15s ease; color: var(--ink-2); }
.page-btn:hover { border-color: var(--brand); color: var(--brand); }
.page-btn.active { background: var(--brand); color: #fff; border-color: var(--brand); }

/* Article body */
.article { max-width: 720px; margin: 0 auto; }
.article p { font-size: 18px; line-height: 1.7; color: #1F2937; margin: 0 0 24px; }
.article h2 { font-size: 28px; margin: 44px 0 18px; }
.article h3 { font-size: 22px; margin: 32px 0 14px; }
.article ul, .article ol { font-size: 18px; line-height: 1.7; color: #1F2937; padding-left: 24px; margin: 0 0 24px; }
.article li { margin-bottom: 8px; }
.article blockquote { border-left: 3px solid var(--brand); padding: 4px 0 4px 22px; margin: 0 0 24px; font-size: 20px; color: var(--ink); font-weight: 500; }
.author-box { display: flex; gap: 18px; align-items: center; padding: 26px; background: var(--bg-soft); border: 1px solid var(--border); border-radius: var(--r-md); margin-top: 40px; }
.author-avatar { width: 64px; height: 64px; border-radius: 50%; flex-shrink: 0; }

/* =====================================================================
   EVENTS
   ===================================================================== */
.event { border: 1px solid var(--border); border-radius: var(--r-md); overflow: hidden; transition: all .15s ease; margin-bottom: 16px; }
.event:hover { border-color: var(--border-2); }
.event-head { display: grid; grid-template-columns: 200px 1fr auto; gap: 28px; align-items: center; padding: 26px 28px; cursor: pointer; }
.event-date { }
.event-date .d-day { font-size: 30px; font-weight: 700; letter-spacing: -.02em; }
.event-date .d-meta { font-size: 13px; color: var(--ink-2); margin-top: 4px; line-height: 1.5; }
.event-modality { display: inline-flex; margin-top: 8px; }
.event-info h4 { font-size: 19px; margin-bottom: 6px; }
.event-info p { font-size: 15px; color: var(--ink-2); line-height: 1.5; }
.event-cta { text-align: right; min-width: 160px; }
.event-price { font-size: 26px; font-weight: 700; letter-spacing: -.02em; }
.event-price .free { color: var(--success); }
.event-cupos { font-size: 13px; color: var(--ink-2); margin: 4px 0 12px; }
.event-detail { max-height: 0; overflow: hidden; transition: max-height .25s ease; border-top: 0 solid var(--border); }
.event-detail.open { border-top-width: 1px; }
.event-detail-inner { padding: 26px 28px; }
.event-detail-inner ol { padding-left: 20px; margin: 0 0 22px; }
.event-detail-inner li { font-size: 15px; color: var(--ink); margin-bottom: 10px; line-height: 1.5; }

/* =====================================================================
   CONTACT / FORMS
   ===================================================================== */
.contact-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 48px; align-items: start; }
.reason { display: flex; gap: 14px; margin-bottom: 24px; }
.reason-icon { flex-shrink: 0; width: 42px; height: 42px; border-radius: var(--r-sm); background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; }
.reason-icon svg { width: 22px; height: 22px; }
.reason h4 { font-size: 16px; margin-bottom: 4px; }
.reason p { font-size: 14px; color: var(--ink-2); line-height: 1.45; }
.channel-card { background: var(--bg-soft); border: 1px solid var(--border); border-radius: var(--r-md); padding: 24px; margin-top: 8px; }
.channel { display: flex; align-items: center; gap: 14px; padding: 12px 0; }
.channel:not(:last-child) { border-bottom: 1px solid var(--border); }
.channel-icon { width: 42px; height: 42px; border-radius: var(--r-sm); display: grid; place-items: center; flex-shrink: 0; }
.channel-icon.mail { background: var(--brand-soft); color: var(--brand); }
.channel-icon.wa { background: var(--success-soft); color: var(--success-dark); }
.channel-icon svg { width: 22px; height: 22px; }
.channel .c-label { font-size: 13px; color: var(--ink-2); }
.channel .c-value { font-size: 16px; font-weight: 600; }

.form-card { background: #fff; border: 1px solid var(--border); border-radius: var(--r-lg); padding: 40px; box-shadow: var(--sh-sm); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 7px; }
.field input, .field textarea, .field select {
  width: 100%; font-family: var(--font); font-size: 15px; color: var(--ink);
  padding: 12px 14px; border: 1px solid var(--border-2); border-radius: var(--r-sm);
  background: #fff; transition: border-color .15s ease, box-shadow .15s ease;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft);
}
.field textarea { resize: vertical; min-height: 120px; }
.field .err { color: #DC2626; font-size: 13px; margin-top: 6px; display: none; }
.field.invalid input, .field.invalid textarea { border-color: #DC2626; }
.field.invalid .err { display: block; }
.service-pick { display: flex; flex-wrap: wrap; gap: 8px; }
.service-pick button { font-family: var(--font); font-size: 14px; font-weight: 500; padding: 9px 15px; border-radius: var(--r-full); border: 1px solid var(--border-2); background: #fff; color: var(--ink-2); cursor: pointer; transition: all .15s ease; }
.service-pick button:hover { border-color: var(--brand); color: var(--brand); }
.service-pick button.active { background: var(--brand-soft); border-color: var(--brand); color: var(--brand); }
.form-success { text-align: center; padding: 30px 0; display: none; }
.form-success.show { display: block; }
.form-success .check { width: 72px; height: 72px; border-radius: 50%; background: var(--success-soft); color: var(--success); display: grid; place-items: center; margin: 0 auto 20px; }
.form-success .check svg { width: 38px; height: 38px; }

/* =====================================================================
   FOOTER
   ===================================================================== */
.footer { background: var(--bg-soft); border-top: 1px solid var(--border); padding: 64px 0 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 48px; }
.footer-brand .brand { margin-bottom: 16px; }
.footer-brand p { font-size: 14px; color: var(--ink-2); line-height: 1.6; margin-bottom: 14px; max-width: 280px; }
.footer-tag { font-size: 12px !important; color: var(--ink-3) !important; text-transform: uppercase; letter-spacing: .08em; font-weight: 700; margin-bottom: 10px !important; }
.footer-status { display: inline-flex; align-items: center; gap: 8px; font-size: 13px !important; font-weight: 600; color: var(--success-dark) !important; background: var(--success-soft); padding: 6px 12px; border-radius: 999px; margin-bottom: 18px !important; max-width: none !important; }
.footer-status .dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; display: inline-block; animation: pulse 1.8s ease-in-out infinite; }
.footer-contact { display: grid; gap: 9px; }
.footer-contact a, .footer-contact span { display: flex; align-items: center; gap: 9px; font-size: 14px; color: var(--ink-2); }
.footer-contact svg { width: 16px; height: 16px; color: var(--ink-3); }
.footer-col h5 { font-size: 13px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--ink); margin: 0 0 16px; }
.footer-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 11px; }
.footer-col a { font-size: 14px; color: var(--ink-2); transition: color .15s ease; }
.footer-col a:hover { color: var(--brand); }
.footer-bottom { border-top: 1px solid var(--border); padding: 24px 0; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px; }
.footer-bottom p { font-size: 13px; color: var(--ink-2); }
.footer-bottom-links { display: flex; gap: 22px; }
.footer-bottom-links a { font-size: 13px; color: var(--ink-2); }
.footer-bottom-links a:hover { color: var(--brand); }

/* WhatsApp float */
.wa-float { position: fixed; right: 22px; bottom: 22px; z-index: 90; width: 56px; height: 56px; border-radius: 50%; background: #25D366; box-shadow: var(--sh-lg); display: grid; place-items: center; transition: transform .15s ease; }
.wa-float:hover { transform: scale(1.06); }
.wa-float svg { width: 30px; height: 30px; color: #fff; }

/* =====================================================================
   RESPONSIVE
   ===================================================================== */
@media (max-width: 1024px) {
  .nav-links, .nav-cta { display: none; }
  .nav-burger { display: block; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero .lead { max-width: none; }
  .split { grid-template-columns: 1fr; gap: 32px; }
  .info-panel { position: static; }
  .cols-3, .cols-4 { grid-template-columns: repeat(2, 1fr); }
  .timeline { grid-template-columns: repeat(2, 1fr); gap: 32px 0; }
  .tl-step::before { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-brand { grid-column: 1 / -1; }
  .contact-grid { grid-template-columns: 1fr; }
  .post-feat { grid-template-columns: 1fr; }
  .post-feat .ph { min-height: 240px; }
  .post-feat-body { padding: 0 36px 36px; }
  section { padding: 64px 0; }
}

@media (max-width: 640px) {
  :root { --gut: 18px; }
  .cols-2, .cols-3, .cols-4 { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: 1fr; }
  .usecase-grid { grid-template-columns: 1fr; }
  .timeline { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; }
  .event-head { grid-template-columns: 1fr; gap: 16px; }
  .event-cta { text-align: left; }
  .cta-actions { flex-direction: column; align-items: stretch; }
  section { padding: 52px 0; }
}

/* =====================================================================
   ESKALA PRO — Capa de mejoras visuales avanzadas
   Append al final del sistema base. NO modifica lo anterior.
   ===================================================================== */

/* 1. REVEAL ANIMATIONS */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s cubic-bezier(.22,1,.36,1), transform .7s cubic-bezier(.22,1,.36,1);
  will-change: opacity, transform;
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-1 { transition-delay: .08s; }
.reveal-2 { transition-delay: .16s; }
.reveal-3 { transition-delay: .24s; }
.reveal-4 { transition-delay: .32s; }
.reveal-5 { transition-delay: .40s; }
.reveal-6 { transition-delay: .48s; }

@media (max-width: 640px) {
  .reveal { transition-duration: .5s; }
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* 2. HERO PRO */
.hero-pro {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.hero-pro::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image:
    linear-gradient(to right, rgba(37,99,235,.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(37,99,235,.04) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 40%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 40%, transparent 100%);
  pointer-events: none;
}
.hero-pro::after {
  content: '';
  position: absolute;
  top: -200px; right: -100px;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(0,32,96,.10) 0%, transparent 70%);
  z-index: -1;
  pointer-events: none;
}
/* Glow secundario violeta en la esquina opuesta */
.hero-pro {
  background-image:
    radial-gradient(circle 500px at 100% 0%, rgba(96,32,224,.06) 0%, transparent 60%),
    radial-gradient(circle 500px at 0% 100%, rgba(0,32,96,.04) 0%, transparent 60%);
}

.hero-pro h1 .word {
  display: inline-block;
  opacity: 0;
  transform: translateY(20px);
  animation: heroIn .7s cubic-bezier(.22,1,.36,1) forwards;
}
@keyframes heroIn {
  to { opacity: 1; transform: translateY(0); }
}
.hero-pro h1 .word:nth-child(1) { animation-delay: .05s; }
.hero-pro h1 .word:nth-child(2) { animation-delay: .12s; }
.hero-pro h1 .word:nth-child(3) { animation-delay: .19s; }
.hero-pro h1 .word:nth-child(4) { animation-delay: .26s; }
.hero-pro h1 .word:nth-child(5) { animation-delay: .33s; }
.hero-pro h1 .word:nth-child(6) { animation-delay: .40s; }

.hero-pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: var(--r-full);
  background: var(--brand-soft); border: 1px solid var(--brand-soft-2);
  font-size: 13px; font-weight: 600; color: var(--brand);
  margin-bottom: 18px;
  animation: heroIn .5s cubic-bezier(.22,1,.36,1) forwards;
}
.hero-pill .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 0 rgba(16,185,129,.4);
  animation: pulse-dot 2s infinite;
}
@keyframes pulse-dot {
  0% { box-shadow: 0 0 0 0 rgba(16,185,129,.5); }
  70% { box-shadow: 0 0 0 8px rgba(16,185,129,0); }
  100% { box-shadow: 0 0 0 0 rgba(16,185,129,0); }
}

/* 3. CARDS PRO */
.card-pro {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 28px;
  position: relative;
  overflow: hidden;
  transition: transform .25s cubic-bezier(.22,1,.36,1), box-shadow .25s, border-color .25s;
}
.card-pro::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--gradient);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .35s cubic-bezier(.22,1,.36,1);
}
.card-pro:hover {
  transform: translateY(-4px);
  box-shadow: var(--sh-lg);
  border-color: var(--brand-soft-2);
}
.card-pro:hover::before { transform: scaleX(1); }

.card-pro .card-icon {
  background: linear-gradient(135deg, var(--brand-soft) 0%, #fff 100%);
  border: 1px solid var(--brand-soft-2);
  transition: transform .3s cubic-bezier(.22,1,.36,1);
}
.card-pro:hover .card-icon { transform: translateY(-2px) rotate(-3deg); }

/* 4. STATS COUNTER */
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: #fff;
}
.stat-cell {
  padding: 32px 28px;
  border-right: 1px solid var(--border);
  text-align: center;
}
.stat-cell:last-child { border-right: none; }
.stat-cell .stat-num {
  font-size: clamp(36px, 4vw, 52px);
  font-weight: 700;
  letter-spacing: -.03em;
  color: var(--brand);
  line-height: 1;
  margin-bottom: 8px;
  font-feature-settings: "tnum";
}
.stat-cell .stat-num.green { color: var(--success); }
.stat-cell .stat-label {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 4px;
}
.stat-cell .stat-sub {
  font-size: 12px;
  color: var(--ink-2);
}

@media (max-width: 768px) {
  .stats-row { grid-template-columns: 1fr 1fr; }
  .stat-cell { border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); }
  .stat-cell:nth-child(2n) { border-right: none; }
  .stat-cell:nth-last-child(-n+2) { border-bottom: none; }
}

/* 5. TESTIMONIALS */
.testimonial {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 32px;
  position: relative;
  transition: all .2s ease;
}
.testimonial:hover {
  border-color: var(--brand-soft-2);
  box-shadow: var(--sh-md);
}
.testimonial::before {
  content: '"';
  position: absolute;
  top: 20px; right: 28px;
  font-family: Georgia, serif;
  font-size: 80px;
  line-height: 1;
  color: var(--brand-soft-2);
  font-weight: 700;
}
.testimonial-quote {
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink);
  margin-bottom: 24px;
  position: relative;
  z-index: 1;
}
.testimonial-author {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}
.testimonial-avatar {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--gradient);
  display: grid; place-items: center;
  color: #fff; font-weight: 700; font-size: 18px;
  flex-shrink: 0;
}
.testimonial-info .name {
  font-size: 15px; font-weight: 600; color: var(--ink);
}
.testimonial-info .role {
  font-size: 13px; color: var(--ink-2); margin-top: 2px;
}

/* 6. FAQ MEJORADO */
.faq-pro .faq-item {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  margin-bottom: 12px;
  transition: border-color .15s, box-shadow .15s;
}
.faq-pro .faq-item:hover {
  border-color: var(--brand-soft-2);
}
.faq-pro .faq-item.open {
  border-color: var(--brand);
  box-shadow: var(--sh-sm);
}
.faq-pro .faq-q {
  padding: 20px 24px;
  font-size: 16px;
}
.faq-pro .faq-a-inner {
  padding: 0 24px 22px;
}

/* 7. BUTTON PRO */
.btn-pro {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.btn-pro::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  width: 0; height: 0;
  border-radius: 50%;
  background: rgba(255,255,255,.3);
  transform: translate(-50%, -50%);
  transition: width .4s, height .4s;
  pointer-events: none;
}
.btn-pro:active::after {
  width: 300px; height: 300px;
  transition: 0s;
  opacity: 0;
}

/* 8. SECTION HEADER PRO */
.eyebrow-pro {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--brand);
}
.eyebrow-pro::before {
  content: '';
  width: 24px; height: 1px;
  background: var(--brand);
}

/* 9. LOGOS GRID */
.logos-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: #fff;
  overflow: hidden;
}
.logo-cell {
  padding: 32px 24px;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  display: grid;
  place-items: center;
  font-size: 18px;
  font-weight: 700;
  color: var(--ink-3);
  letter-spacing: -.02em;
  transition: color .15s, background .15s;
}
.logo-cell:nth-child(5n) { border-right: none; }
.logo-cell:nth-last-child(-n+5) { border-bottom: none; }
.logo-cell:hover { color: var(--ink); background: var(--bg-soft); }

@media (max-width: 768px) {
  .logos-grid { grid-template-columns: repeat(2, 1fr); }
  .logo-cell { border-right: 1px solid var(--border); }
  .logo-cell:nth-child(2n) { border-right: none; }
  .logo-cell:nth-last-child(-n+2) { border-bottom: none; }
}

/* 10. CTA BAND PRO */
.cta-band-pro {
  background: var(--gradient);
  color: #fff;
  text-align: center;
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}
.cta-band-pro::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 60% 80% at 50% 50%, #000 40%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 60% 80% at 50% 50%, #000 40%, transparent 100%);
}
.cta-band-pro h2, .cta-band-pro .lead, .cta-band-pro .container { position: relative; z-index: 1; }
.cta-band-pro h2 { color: #fff; }
.cta-band-pro .lead { color: rgba(255,255,255,.85); max-width: 560px; margin: 16px auto 32px; }

/* 11. FORM PRO */
.field-pro input,
.field-pro textarea {
  transition: all .2s ease;
}
.field-pro input:focus,
.field-pro textarea:focus {
  transform: translateY(-1px);
  box-shadow: 0 0 0 3px var(--brand-soft), 0 4px 12px rgba(37,99,235,.08);
}

/* 12. UTILITIES PRO */
.gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.divider-pro {
  height: 1px;
  background: linear-gradient(to right, transparent 0%, var(--border-2) 50%, transparent 100%);
  margin: 48px 0;
}

html { scroll-padding-top: calc(var(--nav-h) + 16px); }

*:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
  border-radius: 4px;
}

