* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-main);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }
.section { padding: 82px 0; }
.section-soft {
  background:
    radial-gradient(circle at 86% 10%, rgba(111, 214, 59, .20), transparent 25%),
    radial-gradient(circle at 8% 18%, rgba(0, 117, 216, .12), transparent 30%),
    linear-gradient(180deg, #ffffff 0%, var(--bg-soft) 100%);
}
.section-blue { background: linear-gradient(135deg, #ffffff 0%, #f2f7fb 58%, #edf8ec 100%); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .88);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(217, 230, 239, .9);
}
.navbar { min-height: 64px; height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 13px; min-width: 0; }
.brand-logo { width: 124px; height: auto; }
.brand-subline { display: none; color: var(--muted); font-size: 12px; line-height: 1.2; }
.nav-menu { display: flex; align-items: center; gap: 20px; color: #263f5e; font-size: 13px; }
.nav-menu a:not(.nav-cta):hover { color: var(--accent-dark); }
.nav-cta {
  padding: 9px 15px; border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  box-shadow: 0 15px 32px rgba(5, 37, 90, .20);
}
.nav-toggle { display: none; border: 0; background: transparent; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--text); margin: 5px 0; border-radius: 4px; }

.hero { padding: 34px 0 54px; min-height: calc(100svh - 64px); display: grid; align-items: center; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.04fr) minmax(420px, .96fr); align-items: center; gap: 42px; }
.hero-badge, .eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  color: var(--primary);
  background: rgba(231, 241, 255, .86);
  border: 1px solid rgba(9, 47, 115, .12);
  padding: 7px 12px; border-radius: 999px;
  font-size: 12px; font-weight: 600;
}
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 6px rgba(111, 214, 59, .18); }
.hero-logo { width: min(250px, 70vw); margin-bottom: 8px; }
.hero h1 {
  margin: 14px 0 14px;
  font-size: clamp(36px, 5vw, 60px);
  line-height: 1;
  letter-spacing: -.062em;
  font-weight: 700;
  color: var(--text);
}
.hero h1 .accent { color: var(--accent-dark); }
.hero-lead { max-width: 610px; font-size: 16px; color: var(--text-soft); margin: 0 0 22px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 0 18px; border-radius: 999px;
  font-size: 15px; font-weight: 600; border: 1px solid transparent;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { color: #fff; background: linear-gradient(135deg, var(--primary), var(--primary-dark)); box-shadow: 0 18px 34px rgba(5, 37, 90, .22); }
.btn-accent { color: #08234d; background: linear-gradient(135deg, #b7f54f, var(--accent)); box-shadow: 0 18px 34px rgba(56, 169, 45, .22); }
.btn-ghost { background: #fff; color: var(--primary); border-color: var(--line); }
.btn.full { width: 100%; }
.trust-line {
  display: grid; gap: 2px; color: var(--muted); font-size: 13px;
  padding-left: 14px; border-left: 3px solid var(--accent);
}
.trust-line strong { color: var(--text); font-size: 15px; font-weight: 600; }

.hero-panel { position: relative; min-height: 430px; display: grid; place-items: center; }
.mockup-card {
  width: min(100%, 440px); border-radius: 28px; background: rgba(255,255,255,.94);
  border: 1px solid rgba(217,230,239,.95); box-shadow: var(--shadow); padding: 18px;
}
.mockup-topbar { display: flex; gap: 8px; padding-bottom: 15px; }
.mockup-topbar span { width: 10px; height: 10px; border-radius: 50%; background: #d8e7f1; }
.mockup-topbar span:nth-child(1) { background: var(--accent); }
.mockup-topbar span:nth-child(2) { background: var(--cyan); }
.mockup-topbar span:nth-child(3) { background: var(--primary); }
.dashboard-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.dashboard-head small, .schedule-item span, .floating-card small, .contact-row small { display: block; color: var(--muted); font-size: 12px; }
.dashboard-head strong { font-size: 21px; letter-spacing: -.04em; font-weight: 650; }
.status-pill { color: #146b21; background: var(--accent-soft); border-radius: 999px; padding: 7px 11px; font-size: 12px; font-weight: 650; }
.schedule-list { display: grid; gap: 10px; }
.schedule-item {
  display: flex; justify-content: space-between; gap: 14px; align-items: center;
  border: 1px solid var(--line); background: #fff; border-radius: 18px; padding: 13px;
}
.schedule-item.active { background: linear-gradient(135deg, var(--primary-soft), #f2fceb); border-color: #cddded; }
.schedule-item strong { font-weight: 650; }
.schedule-item em { font-style: normal; font-size: 12px; color: var(--primary); background: #fff; border-radius: 999px; padding: 6px 10px; border: 1px solid var(--line); }
.floating-card {
  position: absolute; display: flex; align-items: center; gap: 12px;
  background: rgba(255,255,255,.95); border: 1px solid var(--line);
  border-radius: 20px; padding: 14px 16px; box-shadow: var(--shadow-soft);
}
.card-one { left: -4px; bottom: 42px; }
.card-two { right: -4px; top: 52px; }
.mini-icon { width: 36px; height: 36px; border-radius: 13px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-dark); font-weight: 700; }

.section-heading { text-align: center; margin: 0 auto 42px; }
.section-heading.narrow { max-width: 760px; }
.section-heading.left { text-align: left; margin-left: 0; max-width: 560px; }
.modules-heading { max-width: 780px; margin-bottom: 34px; }
.modules-heading h2 { max-width: 760px; margin-left: auto; margin-right: auto; }
.modules-heading p { font-size: 17px; }
.section-heading h2 { margin: 14px 0 12px; font-size: clamp(30px, 4vw, 48px); line-height: 1.07; letter-spacing: -.05em; font-weight: 700; }
.section-heading p { color: var(--muted); margin: 0; }
.benefit-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.benefit-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; box-shadow: 0 14px 40px rgba(5, 37, 90, .045);
}
.card-icon { color: var(--primary); font-size: 13px; font-weight: 700; background: var(--primary-soft); border-radius: 999px; padding: 7px 10px; }
.benefit-card h3 { margin: 20px 0 9px; font-size: 19px; letter-spacing: -.02em; font-weight: 650; }
.benefit-card p { color: var(--muted); margin: 0; font-size: 14px; }

.modules-section { max-width: 1180px; }
.modules-layout { display: block; }
.modules-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; align-items: stretch; }
.modules-grid-detailed { align-items: stretch; }
.module-card {
  position: relative;
  overflow: hidden;
  background: rgba(255, 255, 255, .94);
  border: 1px solid rgba(217, 230, 239, .95);
  border-radius: 22px;
  padding: 18px 18px 16px;
  box-shadow: 0 16px 38px rgba(5, 37, 90, .055);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.module-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: linear-gradient(180deg, var(--accent), var(--blue));
  opacity: .9;
}
.module-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 46px rgba(5, 37, 90, .09);
  border-color: rgba(9, 47, 115, .18);
}
.module-card-highlight {
  background:
    radial-gradient(circle at right top, rgba(111, 214, 59, .18), transparent 34%),
    linear-gradient(135deg, #ffffff 0%, #f6fbff 100%);
}
.module-card-head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 8px;
}
.module-dot {
  width: 11px;
  height: 11px;
  margin-top: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 7px var(--accent-soft);
  flex: 0 0 auto;
}
.module-card h3 {
  margin: 0;
  color: var(--text);
  font-size: 17px;
  line-height: 1.25;
  letter-spacing: -.025em;
  font-weight: 650;
}
.module-card p {
  margin: 0 0 13px;
  color: var(--text-soft);
  font-size: 14px;
  line-height: 1.55;
}
.module-card ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 7px;
}
.module-card li {
  position: relative;
  padding-left: 18px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}
.module-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .55em;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), var(--blue));
}

.validation-section { padding-top: 74px; }
.validation-card {
  display: grid; grid-template-columns: 1fr auto; gap: 28px; align-items: center;
  background:
    linear-gradient(135deg, rgba(255,255,255,.94), rgba(248,251,253,.96)),
    radial-gradient(circle at right top, rgba(111,214,59,.24), transparent 32%);
  border: 1px solid var(--line);
  border-radius: 34px; padding: 34px; box-shadow: var(--shadow-soft);
}
.validation-card h2 { margin: 13px 0 10px; font-size: clamp(28px, 4vw, 44px); line-height: 1.08; letter-spacing: -.05em; font-weight: 700; }
.validation-card p { color: var(--muted); margin: 0; max-width: 720px; }
.validation-badge { min-width: 276px; background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: 20px; box-shadow: 0 18px 35px rgba(5,37,90,.08); }
.validation-badge strong { display: block; color: var(--primary); font-size: 20px; font-weight: 650; }
.validation-badge span { color: var(--muted); font-size: 13px; }

.company-strip {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #fff;
  padding: 18px 0;
}
.company-inner { display: flex; justify-content: space-between; gap: 18px; align-items: center; color: var(--muted); font-size: 14px; }
.company-inner strong { color: var(--text); font-weight: 650; }
.company-inner a { color: var(--primary); font-weight: 600; }

.contact-grid { display: grid; grid-template-columns: 1fr 430px; gap: 54px; align-items: center; }
.contact-card { background: #fff; border: 1px solid var(--line); border-radius: 30px; padding: 22px; box-shadow: var(--shadow-soft); }
.contact-row { display: flex; align-items: center; gap: 14px; padding: 15px; border: 1px solid var(--line); border-radius: 20px; margin-bottom: 12px; background: #fbfdff; }
.contact-row span { width: 40px; height: 40px; border-radius: 15px; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary); font-weight: 700; }
.contact-row strong { font-size: 16px; letter-spacing: -.02em; font-weight: 650; }
.site-footer { border-top: 1px solid var(--line); padding: 28px 0; background: #fbfdff; color: var(--muted); }
.footer-inner { display: flex; justify-content: space-between; gap: 20px; align-items: center; font-size: 14px; }
.footer-inner p { margin: 0; }
.footer-inner a { color: var(--primary); font-weight: 600; }


@media (max-height: 760px) and (min-width: 900px) {
  .hero { padding-top: 22px; padding-bottom: 38px; }
  .hero h1 { font-size: clamp(34px, 4.2vw, 52px); }
  .hero-lead { font-size: 15px; margin-bottom: 16px; }
  .hero-panel { min-height: 390px; }
  .mockup-card { transform: scale(.94); }
  .floating-card { transform: scale(.92); }
}

@media (max-width: 1100px) {
  .modules-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 960px) {
  .hero-grid, .contact-grid, .validation-card { grid-template-columns: 1fr; }
  .hero-panel { min-height: 430px; }
  .benefit-grid { grid-template-columns: repeat(2, 1fr); }
  .card-one { left: 8px; bottom: 20px; }
  .card-two { right: 8px; top: 38px; }
  .company-inner { align-items: flex-start; flex-direction: column; }
}
@media (max-width: 760px) {
  .container { width: min(100% - 28px, 1140px); }
  .navbar { min-height: 58px; height: 58px; }
  .brand-logo { width: 108px; }
  .nav-toggle { display: block; }
  .nav-menu {
    position: absolute; left: 14px; right: 14px; top: 62px;
    display: none; flex-direction: column; align-items: stretch; gap: 0;
    padding: 12px; background: #fff; border: 1px solid var(--line);
    border-radius: 22px; box-shadow: var(--shadow-soft);
  }
  .nav-menu.open { display: flex; }
  .nav-menu a { padding: 12px; border-radius: 14px; }
  .nav-cta { text-align: center; margin-top: 6px; }
  .hero { padding: 22px 0 44px; min-height: auto; }
  .section { padding: 56px 0; }
  .hero h1 { font-size: clamp(32px, 10.5vw, 46px); }
  .hero-lead { font-size: 15px; }
  .hero-panel { min-height: auto; padding-top: 18px; }
  .floating-card { position: static; margin-top: 12px; width: 100%; }
  .benefit-grid, .modules-grid { grid-template-columns: 1fr; }
  .modules-heading { text-align: left; margin-left: 0; }
  .validation-card { padding: 22px; border-radius: 26px; }
  .validation-badge { min-width: 0; }
  .contact-grid { gap: 28px; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}


/* Ajuste solicitado: menos espacio entre menú y hero + enlace Inicio */
html { scroll-padding-top: 68px; }
.site-header { overflow: visible; }
.navbar {
  min-height: 58px;
  height: 58px;
}
.brand-logo {
  width: 116px;
}
.nav-menu {
  gap: 18px;
}
.hero {
  padding: 12px 0 42px;
  min-height: auto;
  display: block;
  align-items: initial;
}
.hero-grid {
  padding-top: 4px;
  gap: 34px;
}
.hero-badge {
  margin-top: 0;
}
.hero h1 {
  margin-top: 12px;
}
.hero-panel {
  min-height: 390px;
}
.mockup-card {
  width: min(100%, 420px);
}
.company-strip {
  padding: 14px 0;
}

@media (max-height: 760px) and (min-width: 900px) {
  html { scroll-padding-top: 60px; }
  .navbar { min-height: 56px; height: 56px; }
  .brand-logo { width: 108px; }
  .hero { padding-top: 8px; padding-bottom: 32px; }
  .hero-grid { gap: 28px; padding-top: 0; }
  .hero h1 { margin: 10px 0 12px; }
  .hero-actions { margin-bottom: 14px; }
  .hero-panel { min-height: 350px; }
  .mockup-card { transform: scale(.90); }
  .floating-card { transform: scale(.88); }
}

@media (max-width: 760px) {
  html { scroll-padding-top: 58px; }
  .navbar { min-height: 54px; height: 54px; }
  .brand-logo { width: 102px; }
  .nav-menu { top: 58px; }
  .hero { padding: 10px 0 34px; }
  .hero-grid { gap: 20px; padding-top: 0; }
  .hero-badge { font-size: 11px; padding: 6px 10px; }
  .hero h1 { margin: 10px 0 10px; }
  .hero-actions { margin-bottom: 14px; }
  .trust-line { font-size: 12px; }
}


/* Ajuste final: el hero ocupa la primera pantalla sin dejar espacio alto bajo el menú */
html { scroll-padding-top: 58px; }
#inicio { scroll-margin-top: 0; }
.hero {
  padding: 12px 0 48px;
  min-height: calc(100svh - 58px);
  display: block;
}
.hero-grid {
  padding-top: 0;
  align-items: center;
}
.hero-badge { margin-top: 0; }

@media (max-height: 760px) and (min-width: 900px) {
  .hero {
    padding-top: 8px;
    padding-bottom: 34px;
    min-height: calc(100svh - 56px);
  }
}

@media (max-width: 760px) {
  html { scroll-padding-top: 54px; }
  .hero {
    padding-top: 10px;
    padding-bottom: 36px;
    min-height: calc(100svh - 54px);
  }
}


/* ============================================================
   AJUSTE PROPORCIÓN HERO 2026-05-17
   - Hero ocupa y aprovecha mejor la primera pantalla de notebook
   - Contenido más grande y centrado verticalmente
   - Link Inicio funciona con ancla #inicio
   ============================================================ */
html {
  scroll-padding-top: 64px;
}
#inicio {
  scroll-margin-top: 0;
}
.container {
  width: min(1360px, calc(100% - 56px));
}
.site-header {
  min-height: 64px;
}
.navbar {
  height: 64px;
  min-height: 64px;
}
.brand-logo {
  width: 132px;
}
.nav-menu {
  gap: 21px;
  font-size: 14px;
}
.nav-cta {
  padding: 11px 20px;
}
.hero {
  min-height: calc(100svh - 64px);
  padding: 0;
  display: flex;
  align-items: center;
}
.hero-grid {
  width: 100%;
  min-height: calc(100svh - 64px);
  display: grid;
  align-items: center;
  grid-template-columns: minmax(0, 1.08fr) minmax(470px, .92fr);
  gap: clamp(42px, 5.2vw, 78px);
  padding: clamp(18px, 3.2vh, 34px) 0 clamp(22px, 4vh, 42px);
}
.hero-badge {
  font-size: 13px;
  padding: 8px 14px;
}
.hero h1 {
  margin: 18px 0 18px;
  font-size: clamp(54px, 5vw, 78px);
  line-height: .97;
  max-width: 820px;
}
.hero-lead {
  max-width: 720px;
  font-size: 18px;
  line-height: 1.55;
  margin-bottom: 24px;
}
.hero-actions {
  margin-bottom: 22px;
}
.btn {
  min-height: 50px;
  padding: 0 24px;
  font-size: 16px;
}
.trust-line {
  font-size: 14px;
  padding-left: 16px;
}
.trust-line strong {
  font-size: 16px;
}
.hero-panel {
  min-height: 500px;
}
.mockup-card {
  width: min(100%, 500px);
  padding: 22px;
  border-radius: 30px;
}
.dashboard-head strong {
  font-size: 25px;
}
.schedule-list {
  gap: 12px;
}
.schedule-item {
  padding: 17px;
  border-radius: 20px;
}
.floating-card {
  padding: 16px 18px;
}
.card-one {
  left: -22px;
  bottom: 54px;
}
.card-two {
  right: -14px;
  top: 58px;
}
.company-strip {
  padding: 16px 0;
}

@media (max-height: 820px) and (min-width: 961px) {
  .hero-grid {
    padding-top: 14px;
    padding-bottom: 18px;
    gap: 42px;
  }
  .hero h1 {
    font-size: clamp(48px, 4.6vw, 66px);
    margin: 14px 0 14px;
  }
  .hero-lead {
    font-size: 16px;
    margin-bottom: 18px;
  }
  .hero-actions {
    margin-bottom: 18px;
  }
  .btn {
    min-height: 46px;
    font-size: 15px;
  }
  .hero-panel {
    min-height: 440px;
  }
  .mockup-card {
    width: min(100%, 455px);
    padding: 18px;
  }
  .dashboard-head strong {
    font-size: 22px;
  }
  .schedule-item {
    padding: 14px;
  }
  .card-one {
    left: -10px;
    bottom: 42px;
  }
  .card-two {
    right: -6px;
    top: 46px;
  }
}

@media (max-width: 1080px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 28px;
    min-height: auto;
  }
  .hero {
    min-height: auto;
    padding: 30px 0 56px;
  }
  .hero-panel {
    min-height: 420px;
  }
}

@media (max-width: 760px) {
  html {
    scroll-padding-top: 58px;
  }
  .container {
    width: min(100% - 28px, 1140px);
  }
  .navbar {
    height: 58px;
    min-height: 58px;
  }
  .brand-logo {
    width: 112px;
  }
  .nav-menu {
    top: 62px;
  }
  .hero {
    min-height: auto;
    padding: 22px 0 46px;
  }
  .hero h1 {
    font-size: clamp(39px, 11vw, 54px);
    line-height: .98;
  }
  .hero-lead {
    font-size: 16px;
  }
  .btn {
    width: 100%;
    min-height: 48px;
  }
  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
  }
  .hero-panel {
    min-height: auto;
    padding-top: 8px;
  }
  .mockup-card {
    width: 100%;
    padding: 16px;
  }
  .floating-card {
    position: static;
    transform: none;
    width: 100%;
    margin-top: 12px;
  }
}

/* ============================================================
   AJUSTE ANCHO HERO 2026-05-17
   - Pantalla inicial menos ancha y más contenida en notebook
   - Mantiene el hero ocupando la primera pantalla
   - Link Inicio funciona con ancla #inicio
   ============================================================ */
@media (min-width: 1081px) {
  .container {
    width: min(1120px, calc(100% - 72px));
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1.02fr) minmax(400px, .86fr);
    gap: clamp(34px, 4vw, 56px);
  }

  .hero h1 {
    max-width: 680px;
    font-size: clamp(48px, 4.35vw, 64px);
  }

  .hero-lead {
    max-width: 610px;
    font-size: 17px;
  }

  .hero-panel {
    min-height: 455px;
  }

  .mockup-card {
    width: min(100%, 430px);
  }

  .card-one {
    left: -8px;
  }

  .card-two {
    right: -8px;
  }

  .modules-section {
    max-width: 1120px;
  }
}

@media (min-width: 1081px) and (max-height: 820px) {
  .container {
    width: min(1080px, calc(100% - 72px));
  }

  .hero-grid {
    gap: 36px;
  }

  .hero h1 {
    max-width: 650px;
    font-size: clamp(46px, 4.1vw, 58px);
  }

  .hero-lead {
    max-width: 580px;
  }

  .hero-panel {
    min-height: 410px;
  }

  .mockup-card {
    width: min(100%, 405px);
  }
}
