/* ── Tokens ────────────────────────────────────────────────────────────── */
:root {
  --navy: #0e2a47;
  --navy-2: #1a3a5f;
  --green: #00c48c;
  --green-hover: #00a877;
  --cream: #f3f2ee;
  --cream-2: #ebe9e1;
  --white: #ffffff;
  --gray-400: #94a3b8;
  --gray-500: #64748b;
  --gray-700: #334155;
  --max: 1120px;
  --max-narrow: 780px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'DM Sans', system-ui, -apple-system, sans-serif;
  color: var(--navy);
  background: var(--cream);
  line-height: 1.55;
  font-size: 17px;
}

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

.wrap-narrow {
  max-width: var(--max-narrow);
}

.center {
  text-align: center;
}

/* ── Tipografía ────────────────────────────────────────────────────────── */
h1,
h2,
h3 {
  font-family: 'Barlow', system-ui;
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.02;
}

h1 {
  font-size: clamp(44px, 7vw, 82px);
  margin-bottom: 24px;
}

h2 {
  font-size: clamp(36px, 5vw, 56px);
  margin-bottom: 24px;
  line-height: 1.05;
}

.eyebrow {
  font-family: 'DM Sans', system-ui;
  font-weight: 700;
  font-size: 13px;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 16px;
}

.eyebrow.light {
  color: rgba(255, 255, 255, 0.65);
}

.light {
  color: var(--white);
}

.accent {
  color: var(--green);
}

em {
  font-style: normal;
  color: var(--green);
}

em.strike {
  position: relative;
  color: var(--gray-400);
  font-weight: 900;
}

em.strike::after {
  content: '';
  position: absolute;
  top: 55%;
  left: -3px;
  right: -3px;
  height: 5px;
  background: currentColor;
  transform: rotate(-2deg);
  opacity: 0.8;
}

.lead {
  font-size: clamp(19px, 2vw, 22px);
  color: var(--gray-700);
  margin-bottom: 40px;
  max-width: 480px;
  line-height: 1.5;
}

.lead-cta {
  color: rgba(255, 255, 255, 0.8);
  font-size: 18px;
  margin: 20px 0 40px;
}

/* ── Nav ───────────────────────────────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  background: rgba(243, 242, 238, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 100;
  border-bottom: 1px solid rgba(14, 42, 71, 0.06);
}

.nav-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 24px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-link {
  color: var(--navy);
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  transition: color 0.15s ease;
}

.nav-link:hover {
  color: var(--green);
}

.nav-link.active {
  color: var(--green);
}

@media (max-width: 700px) {
  .nav-links {
    gap: 14px;
  }
  .nav-link {
    display: none;
  }
}

.logo {
  font-family: 'Barlow', system-ui;
  font-weight: 900;
  font-size: 32px;
  color: var(--navy);
  text-decoration: none;
  letter-spacing: -0.03em;
}

.logo-b {
  color: var(--green);
}

/* ── Botones ───────────────────────────────────────────────────────────── */
.btn-primary,
.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-family: 'DM Sans', system-ui;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  border: none;
  cursor: pointer;
  white-space: nowrap;
}

.btn-primary {
  background: var(--navy);
  color: var(--white);
}

.btn-primary:hover {
  background: #0a2036;
  transform: translateY(-1px);
}

.section-dark .btn-primary,
.section-cta .btn-primary {
  background: var(--green);
  color: var(--navy);
  box-shadow: 0 10px 30px rgba(0, 196, 140, 0.4);
}

.section-dark .btn-primary:hover,
.section-cta .btn-primary:hover {
  background: var(--green-hover);
  box-shadow: 0 14px 40px rgba(0, 196, 140, 0.5);
}

.btn-ghost {
  background: transparent;
  color: var(--navy);
  border: 2px solid var(--navy);
}

.btn-ghost:hover {
  background: var(--navy);
  color: var(--white);
}

.btn-sm {
  padding: 10px 18px;
  font-size: 14px;
}

.btn-lg {
  padding: 15px 28px;
  font-size: 16px;
}

.btn-xl {
  padding: 22px 42px;
  font-size: 20px;
}

/* ── Hero ──────────────────────────────────────────────────────────────── */
.hero {
  padding: 80px 0 100px;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-ctas {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* Mockup celular limpio */
.hero-right {
  display: flex;
  justify-content: center;
  position: relative;
}

.phone {
  width: 300px;
  height: 600px;
  background: linear-gradient(180deg, #17324f 0%, var(--navy) 100%);
  border-radius: 44px;
  padding: 10px;
  box-shadow:
    0 60px 100px -30px rgba(14, 42, 71, 0.35),
    0 30px 60px -20px rgba(14, 42, 71, 0.25),
    inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  position: relative;
  transform: rotate(-2deg);
  animation: phoneFloat 6s ease-in-out infinite;
}

@keyframes phoneFloat {
  0%,
  100% {
    transform: rotate(-2deg) translateY(0);
  }
  50% {
    transform: rotate(-2deg) translateY(-14px);
  }
}

.phone::before {
  content: '';
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: 90px;
  height: 24px;
  background: #0a1c30;
  border-radius: 0 0 14px 14px;
  z-index: 10;
}

.phone-inner {
  background: var(--cream);
  border-radius: 34px;
  height: 100%;
  padding: 44px 18px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.mock-status {
  display: inline-block;
  background: rgba(0, 196, 140, 0.16);
  color: #00875f;
  font-size: 11px;
  font-weight: 800;
  padding: 5px 11px;
  border-radius: 999px;
  align-self: flex-start;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.mock-alert {
  background: var(--white);
  border: 2.5px solid var(--green);
  border-radius: 18px;
  padding: 20px 16px;
  text-align: center;
  box-shadow: 0 10px 26px rgba(0, 196, 140, 0.2);
  animation: mockPulse 3s ease-in-out infinite;
}

@keyframes mockPulse {
  0%,
  100% {
    transform: scale(1);
    box-shadow: 0 10px 26px rgba(0, 196, 140, 0.2);
  }
  50% {
    transform: scale(1.02);
    box-shadow: 0 14px 34px rgba(0, 196, 140, 0.3);
  }
}

.mock-alert-icon {
  font-size: 32px;
  margin-bottom: 6px;
}

.mock-alert-title {
  font-family: 'Barlow', system-ui;
  font-weight: 900;
  font-size: 20px;
  color: var(--navy);
  letter-spacing: -0.02em;
}

.mock-alert-sub {
  color: var(--gray-500);
  font-size: 13px;
  margin: 4px 0 12px;
}

.mock-timer {
  font-family: 'Barlow', system-ui;
  font-weight: 900;
  font-size: 46px;
  color: var(--green);
  line-height: 1;
  margin-bottom: 14px;
  letter-spacing: -0.03em;
}

.mock-btn {
  background: var(--green);
  color: var(--navy);
  padding: 12px;
  border-radius: 10px;
  font-weight: 800;
  font-size: 14px;
}

/* ── Strip ─────────────────────────────────────────────────────────────── */
.strip {
  background: var(--navy);
  padding: 22px 0;
}

.strip-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  color: var(--white);
}

.strip-label {
  color: rgba(255, 255, 255, 0.55);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-right: 4px;
}

.strip-item {
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
  text-decoration: line-through;
  text-decoration-color: rgba(255, 255, 255, 0.4);
  text-decoration-thickness: 1.5px;
}

.dot {
  color: rgba(255, 255, 255, 0.3);
}

/* ── Sections ──────────────────────────────────────────────────────────── */
.section {
  padding: 100px 0;
}

.section-dark {
  background: var(--navy);
}

.section-cream {
  background: var(--cream-2);
}

.section-cta {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 100%);
  padding: 120px 0;
}

/* ── Steps (cómo funciona) ─────────────────────────────────────────────── */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 60px;
}

.step {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  padding: 32px 24px;
  transition: transform 0.2s ease, background 0.2s ease;
}

.step:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-4px);
}

.step-num {
  font-family: 'Barlow', system-ui;
  font-weight: 900;
  font-size: 44px;
  color: var(--green);
  line-height: 1;
  margin-bottom: 16px;
}

.step-title {
  color: var(--white);
  font-family: 'Barlow', system-ui;
  font-weight: 800;
  font-size: 22px;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

.step-desc {
  color: rgba(255, 255, 255, 0.65);
  font-size: 15px;
  line-height: 1.45;
}

/* ── Verticals ─────────────────────────────────────────────────────────── */
.verticals {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 50px;
}

.v {
  background: var(--white);
  padding: 20px 18px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  color: var(--navy);
  font-size: 16px;
  border: 1px solid rgba(14, 42, 71, 0.06);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.v:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(14, 42, 71, 0.1);
}

.v-icon {
  font-size: 26px;
}

/* ── Feats (números grandes) ───────────────────────────────────────────── */
.feats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  text-align: center;
}

.feat-num {
  font-family: 'Barlow', system-ui;
  font-weight: 900;
  font-size: clamp(56px, 8vw, 84px);
  color: var(--green);
  line-height: 1;
  letter-spacing: -0.04em;
  margin-bottom: 12px;
}

.feat-title {
  font-family: 'Barlow', system-ui;
  font-weight: 800;
  font-size: 22px;
  color: var(--navy);
  margin-bottom: 6px;
  letter-spacing: -0.02em;
}

.feat-desc {
  color: var(--gray-500);
  font-size: 15px;
  max-width: 280px;
  margin: 0 auto;
}

/* ── Footer ────────────────────────────────────────────────────────────── */
.foot {
  background: var(--navy);
  padding: 32px 0;
  color: rgba(255, 255, 255, 0.5);
}

.foot-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
}

.foot-logo {
  font-family: 'Barlow', system-ui;
  font-weight: 900;
  font-size: 24px;
  color: var(--white);
}

.foot-tag {
  color: rgba(255, 255, 255, 0.4);
}

/* ── Page hero (páginas internas) ──────────────────────────────────────── */
.page-hero {
  padding: 80px 0 40px;
}

.page-hero h1 {
  font-size: clamp(38px, 5vw, 62px);
}

/* ── Rol section (producto) ────────────────────────────────────────────── */
.role-section {
  padding: 80px 0;
}

.role {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 60px;
  align-items: center;
}

.role-reverse {
  grid-template-columns: 1fr 1.1fr;
}

.role-reverse .role-copy {
  order: 2;
}

.role-tag {
  display: inline-block;
  background: rgba(0, 196, 140, 0.15);
  color: var(--green-hover);
  padding: 8px 16px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 18px;
}

.role h2 {
  font-size: clamp(30px, 4vw, 46px);
  margin-bottom: 24px;
}

.role-list {
  list-style: none;
  padding: 0;
}

.role-list li {
  padding: 12px 0;
  border-bottom: 1px solid rgba(14, 42, 71, 0.08);
  font-size: 16px;
  color: var(--gray-700);
}

.role-list li:last-child {
  border-bottom: none;
}

.role-list li::before {
  content: '✓ ';
  color: var(--green);
  font-weight: 900;
  margin-right: 8px;
}

.role-visual {
  display: flex;
  justify-content: center;
}

.phone-static {
  animation: none;
  transform: rotate(-1deg);
}

/* ── Tablet mockup (azafata) ───────────────────────────────────────────── */
.tablet-mock {
  background: var(--navy);
  border-radius: 20px;
  padding: 20px;
  width: 100%;
  max-width: 420px;
  box-shadow: 0 40px 80px -20px rgba(14, 42, 71, 0.3);
}

.tablet-header {
  color: var(--white);
  font-weight: 700;
  font-size: 15px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.tablet-content {
  background: var(--cream);
  border-radius: 12px;
  padding: 16px;
}

.tablet-btn {
  background: var(--green);
  color: var(--navy);
  padding: 14px;
  border-radius: 10px;
  font-weight: 800;
  text-align: center;
  margin-bottom: 16px;
}

.tablet-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.tablet-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  background: var(--white);
  border-radius: 8px;
  font-size: 14px;
  color: var(--navy);
  font-weight: 500;
}

.tablet-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.dot-green {
  background: var(--green);
}

.dot-yellow {
  background: #ffb84d;
}

.dot-red {
  background: #ef4444;
}

/* ── Dashboard mockup (gerente) ────────────────────────────────────────── */
.dash-mock {
  background: var(--white);
  border-radius: 20px;
  padding: 28px;
  box-shadow: 0 40px 80px -20px rgba(14, 42, 71, 0.15);
  max-width: 450px;
  width: 100%;
}

.dash-kpis {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 28px;
}

.dash-kpi-label {
  font-size: 11px;
  color: var(--gray-500);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 4px;
}

.dash-kpi-num {
  font-family: 'Barlow', system-ui;
  font-weight: 900;
  font-size: 36px;
  color: var(--navy);
  letter-spacing: -0.03em;
  line-height: 1;
}

.dash-kpi-num.accent {
  color: var(--green);
}

.dash-bar {
  display: flex;
  height: 14px;
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 8px;
}

.dash-labels {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--gray-500);
  font-weight: 600;
}

/* ── Admin mockup ──────────────────────────────────────────────────────── */
.admin-mock {
  background: var(--white);
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 30px 60px -20px rgba(14, 42, 71, 0.15);
  width: 100%;
  max-width: 380px;
}

.admin-header {
  font-family: 'Barlow', system-ui;
  font-weight: 800;
  font-size: 18px;
  color: var(--navy);
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--cream);
}

.admin-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.admin-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  background: var(--cream);
  border-radius: 8px;
  font-size: 14px;
  color: var(--navy);
  font-weight: 600;
}

.admin-check {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--green);
  color: var(--navy);
  font-size: 12px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ── Casos de uso ──────────────────────────────────────────────────────── */
.case {
  padding: 80px 0;
}

.case-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 60px;
  align-items: center;
}

.case-reverse {
  grid-template-columns: 1fr 1.2fr;
}

.case-reverse > div:first-child {
  order: 2;
}

.case-icon {
  font-size: 56px;
  line-height: 1;
  margin-bottom: 16px;
}

.case h2 {
  font-size: clamp(30px, 4vw, 42px);
  margin-bottom: 8px;
}

.case-sub {
  color: var(--gray-500);
  font-weight: 600;
  font-size: 15px;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.case p {
  font-size: 17px;
  line-height: 1.6;
  margin-bottom: 20px;
}

.case-plantilla {
  background: var(--cream);
  border-radius: 14px;
  padding: 20px;
  margin-top: 24px;
}

.case-plantilla-label {
  font-size: 11px;
  color: var(--gray-500);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 8px;
}

.case-plantilla-label:not(:first-child) {
  margin-top: 16px;
}

.case-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  background: var(--white);
  color: var(--navy);
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  border: 1px solid rgba(14, 42, 71, 0.08);
}

.chip-strong {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}

.chip-green {
  background: rgba(0, 196, 140, 0.15);
  color: #00875f;
  border-color: rgba(0, 196, 140, 0.3);
}

.chip-yellow {
  background: rgba(255, 184, 77, 0.2);
  color: #b45309;
  border-color: rgba(255, 184, 77, 0.4);
}

.chip-gray {
  background: rgba(100, 116, 139, 0.15);
  color: var(--gray-700);
  border-color: rgba(100, 116, 139, 0.3);
}

.case-highlight {
  background: var(--navy);
  border-radius: 20px;
  padding: 40px;
  color: var(--white);
}

.case-cream + .case .case-highlight,
.section-cream .case-highlight {
  background: var(--white);
  color: var(--navy);
  box-shadow: 0 20px 50px -10px rgba(14, 42, 71, 0.15);
}

.case-quote {
  font-family: 'Barlow', system-ui;
  font-weight: 700;
  font-size: 22px;
  line-height: 1.35;
  letter-spacing: -0.01em;
  margin-bottom: 20px;
}

.case-quote-author {
  font-size: 14px;
  opacity: 0.7;
  font-weight: 600;
}

/* ── Verticales grid en /casos-de-uso ──────────────────────────────────── */
.verticals-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 50px;
}

.v-card {
  background: var(--white);
  padding: 32px 24px;
  border-radius: 16px;
  border: 1px solid rgba(14, 42, 71, 0.08);
}

.v-card-icon {
  font-size: 44px;
  margin-bottom: 12px;
}

.v-card h3 {
  font-family: 'Barlow', system-ui;
  font-weight: 800;
  font-size: 22px;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

.v-card p {
  color: var(--gray-500);
  font-size: 15px;
  line-height: 1.5;
}

/* ── Nosotros ──────────────────────────────────────────────────────────── */
.story p {
  font-size: 18px;
  line-height: 1.7;
  color: var(--gray-700);
  margin-bottom: 20px;
}

.story p:first-of-type::first-letter {
  font-family: 'Barlow', system-ui;
  font-weight: 900;
  font-size: 3em;
  float: left;
  line-height: 0.9;
  margin-right: 12px;
  color: var(--green);
}

.principles {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  margin-top: 60px;
}

.principle {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  padding: 32px;
}

.principle-num {
  font-family: 'Barlow', system-ui;
  font-weight: 900;
  font-size: 32px;
  color: var(--green);
  letter-spacing: -0.03em;
  margin-bottom: 12px;
}

.principle h3 {
  color: var(--white);
  font-family: 'Barlow', system-ui;
  font-weight: 800;
  font-size: 20px;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

.principle p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 15px;
  line-height: 1.5;
}

/* ── Responsive ────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 50px;
  }

  .hero-right {
    order: -1;
  }

  .steps {
    grid-template-columns: repeat(2, 1fr);
  }

  .verticals {
    grid-template-columns: repeat(2, 1fr);
  }

  .feats {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .role,
  .case-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .role-reverse .role-copy,
  .case-reverse > div:first-child {
    order: 1;
  }

  .principles {
    grid-template-columns: 1fr;
  }

  .verticals-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .steps,
  .verticals {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 70px 0;
  }

  .hero {
    padding: 40px 0 60px;
  }

  .phone {
    width: 260px;
    height: 520px;
  }
}
