/* XT Negocio — Consultoría y Capacitación
   Marca (logo): negro #111827, azul marino #16244A / #22335F,
   azul acero #3E5C9A (texto/botones) y #8FA8DC (acentos sobre oscuro).
   Motivo: barras cruzadas de la "X". */

:root {
  --navy: #16244A;
  --navy-2: #22335F;
  --navy-3: #2B4377;
  --steel: #3E5C9A;
  --steel-light: #8FA8DC;
  --ink: #111827;
  --muted: #4B5563;
  --on-dark: #C9D3E8;
  --soft: #F5F7FB;
  --soft-2: #EEF2FA;
  --line: #E5E7EB;
  --field: #D1D5DB;
  --whatsapp: #25D366;
  --radius: 20px;
  --max: 1240px;
  --font: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; font-family: var(--font); color: var(--ink); background: #fff; line-height: 1.5; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--steel); }
a:hover { color: var(--navy-2); }
h1, h2, h3, p { margin: 0; }
button, input, select, textarea { font: inherit; }
:focus-visible { outline: 3px solid var(--steel-light); outline-offset: 2px; }

.container { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.eyebrow { font-weight: 800; font-size: 14px; letter-spacing: 1.5px; color: var(--steel); text-transform: uppercase; margin-bottom: 10px; }
.h2 { font-weight: 800; font-size: clamp(30px, 3.4vw, 44px); line-height: 1.1; letter-spacing: -1px; }
.lead { font-size: 17px; line-height: 1.6; color: var(--muted); }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--steel-light); color: var(--navy); padding: 10px 16px; border-radius: 10px; z-index: 100; font-weight: 800; }
.skip-link:focus { left: 8px; }
.icon { width: 20px; height: 20px; flex: none; }

/* Botones */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 22px; border-radius: 10px; font-weight: 700; text-decoration: none; border: 0; cursor: pointer; white-space: nowrap; transition: transform .15s ease, background .15s ease; }
.btn:hover { transform: translateY(-1px); }
.btn-steel { background: var(--steel); color: #fff; }
.btn-steel:hover { background: var(--navy-2); color: #fff; }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-2); color: #fff; }
.btn-white { background: #fff; color: var(--navy); font-weight: 800; }
.btn-white:hover { color: var(--navy); }
.btn-ghost-light { border: 1.5px solid rgba(255,255,255,.45); color: #fff; }
.btn-ghost-light:hover { color: #fff; background: rgba(255,255,255,.06); }
.btn-soft { background: #F3F4F6; color: var(--navy); }
.btn-soft:hover { background: var(--soft-2); color: var(--navy); }
.btn-lg { min-height: 56px; padding: 0 28px; font-size: 17px; border-radius: 12px; }

/* Encabezado */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.95); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; }
.brand img { height: 46px; width: auto; }
.main-nav { display: flex; gap: 28px; font-weight: 600; font-size: 15px; }
.main-nav a { color: var(--ink); text-decoration: none; }
.main-nav a:hover { color: var(--steel); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.menu-toggle { display: none; width: 46px; height: 46px; border-radius: 10px; border: 1.5px solid var(--line); background: #fff; color: var(--ink); align-items: center; justify-content: center; cursor: pointer; }
@media (max-width: 980px) {
  .main-nav { position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; gap: 0; background: #fff; border-bottom: 1px solid var(--line); padding: 8px 24px 16px; display: none; }
  .main-nav.is-open { display: flex; }
  .main-nav a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .menu-toggle { display: inline-flex; }
}
@media (max-width: 640px) { .header-actions .btn-steel { display: none; } .brand img { height: 40px; } }

/* Barras cruzadas */
.bar { position: absolute; pointer-events: none; }
.bar-a { right: -120px; top: -160px; width: 180px; height: 1100px; background: var(--navy-2); transform: rotate(32deg); }
.bar-b { right: 120px; top: -160px; width: 110px; height: 1100px; background: var(--navy-3); transform: rotate(-32deg); }

/* Hero */
.hero { background: var(--navy); color: #fff; position: relative; overflow: hidden; }
.hero-inner { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 56px; padding: 96px 24px 104px; }
.hero-copy { flex: 1 1 540px; min-width: 0; display: flex; flex-direction: column; gap: 26px; }
.partner { align-self: flex-start; display: inline-flex; align-items: center; gap: 10px; padding: 8px 14px 8px 8px; border-radius: 999px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); font-weight: 600; font-size: 14px; }
.partner b { padding: 4px 10px; border-radius: 999px; background: var(--steel-light); color: var(--navy); font-weight: 800; font-size: 12px; letter-spacing: .5px; }
.hero h1 { font-weight: 800; font-size: clamp(44px, 5.6vw, 76px); line-height: 1.02; letter-spacing: -2px; }
.hero h1 span { color: var(--steel-light); }
.hero-lead { font-size: 20px; line-height: 1.6; color: var(--on-dark); max-width: 560px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-points { display: flex; flex-wrap: wrap; gap: 24px; list-style: none; margin: 0; padding: 8px 0 0; font-size: 15px; font-weight: 600; color: var(--on-dark); }
.hero-points li { display: inline-flex; align-items: center; gap: 8px; }
.hero-points svg { color: var(--steel-light); }
.hero-card { flex: 1 1 380px; min-width: 0; display: flex; justify-content: center; }
.badge-card { width: 100%; max-width: 380px; padding: 28px; border-radius: 22px; background: #fff; color: var(--ink); box-shadow: 0 24px 50px rgba(0,0,0,.35); display: flex; flex-direction: column; gap: 18px; }
.badge-head { display: flex; align-items: center; gap: 14px; }
.badge-icon { flex: none; width: 60px; height: 60px; border-radius: 16px; background: var(--navy); color: var(--steel-light); display: flex; align-items: center; justify-content: center; }
.badge-head small { display: block; font-size: 12px; font-weight: 800; color: var(--steel); letter-spacing: .5px; }
.badge-head strong { font-size: 19px; font-weight: 800; }
.badge-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; border-top: 1px solid var(--line); padding-top: 16px; font-size: 15px; }
.badge-list li { display: flex; justify-content: space-between; gap: 12px; }
.badge-list span { color: var(--muted); }
.badge-list b { color: #15803D; }
@media (max-width: 640px) {
  .hero-inner { padding: 56px 20px 64px; gap: 40px; }
  .hero h1 { letter-spacing: -1.5px; }
  .hero-lead { font-size: 17px; }
  .hero-ctas .btn { width: 100%; white-space: normal; text-align: center; }
  .bar-a { right: -160px; } .bar-b { display: none; }
}

/* Secciones */
.section { padding: 96px 0; }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 36px; }
.section-head .lead { max-width: 420px; }
@media (max-width: 640px) { .section { padding: 64px 0; } }

/* Caminos */
.paths { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 22px; }
@media (max-width: 340px) { .paths { grid-template-columns: 1fr; } }
.path { display: flex; flex-direction: column; gap: 14px; padding: 30px; border-radius: var(--radius); border: 1.5px solid var(--line); background: #fff; color: var(--ink); text-decoration: none; transition: border-color .15s ease, transform .15s ease; }
.path:hover { border-color: var(--steel-light); transform: translateY(-2px); color: var(--ink); }
.path-icon { width: 52px; height: 52px; border-radius: 14px; background: var(--soft-2); color: var(--navy-2); display: flex; align-items: center; justify-content: center; }
.path h3 { font-size: 22px; font-weight: 800; }
.path p { font-size: 16px; line-height: 1.6; color: var(--muted); flex: 1; }
.path .more { font-weight: 700; color: var(--steel); }
.path.dark { background: var(--navy); border-color: var(--navy); color: #fff; }
.path.dark:hover { color: #fff; }
.path.dark .path-icon { background: var(--navy-2); color: var(--steel-light); }
.path.dark p { color: var(--on-dark); }
.path.dark .more { color: var(--steel-light); }

/* Áreas de certificación */
.areas { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.area { display: flex; flex-direction: column; gap: 12px; padding: 26px; border-radius: 18px; border: 1.5px solid var(--line); background: #fff; }
.area-icon { width: 48px; height: 48px; border-radius: 12px; background: var(--soft-2); color: var(--navy-2); display: flex; align-items: center; justify-content: center; }
.area h3 { font-size: 20px; font-weight: 800; }
.area p { font-size: 15px; line-height: 1.55; color: var(--muted); flex: 1; }
.catalog-cta { margin-top: 24px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 26px; border-radius: 18px; background: var(--soft); }
.catalog-cta p { font-size: 16px; color: var(--ink); font-weight: 600; }
.catalog-cta div { display: flex; flex-wrap: wrap; gap: 10px; }

/* Proceso */
.process-section { background: var(--soft); }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; list-style: none; margin: 0; padding: 0; }
.step { padding: 26px; border-radius: 18px; background: #fff; display: flex; flex-direction: column; gap: 10px; }
.step-num { font-size: 44px; font-weight: 800; color: #C3CFE8; line-height: 1; }
.step h3 { font-size: 19px; font-weight: 800; }
.step p { font-size: 15px; line-height: 1.55; color: var(--muted); }
.step.last { background: var(--navy); color: #fff; }
.step.last .step-num { color: #5574B0; }
.step.last p { color: var(--on-dark); }

/* Ventajas */
.why-wrap { display: flex; flex-wrap: wrap; gap: 56px; }
.why-intro { flex: 1 1 340px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.why-intro blockquote { margin: 0; padding: 20px 22px; border-radius: 16px; background: var(--soft); font-size: 16px; line-height: 1.6; color: var(--ink); font-style: italic; }
.why-grid { flex: 2 1 600px; min-width: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }
.why-item { padding: 24px; border-radius: 18px; border: 1.5px solid var(--line); }
.why-item h3 { font-size: 18px; font-weight: 800; margin-bottom: 8px; }
.why-item p { font-size: 15px; line-height: 1.55; color: var(--muted); }
.why-item.wide { grid-column: 1 / -1; background: var(--soft-2); border-color: var(--soft-2); display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; }
.why-item.wide h3 { margin-bottom: 6px; }

/* Empresas */
.business { position: relative; overflow: hidden; border-radius: 28px; background: var(--ink); color: #fff; padding: 56px 48px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 32px; }
.business .bar-a { right: 60px; top: -80px; width: 90px; height: 500px; }
.business-copy { position: relative; flex: 1 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.business-copy .eyebrow { color: var(--steel-light); margin: 0; }
.business-copy h2 { font-size: clamp(26px, 3vw, 40px); font-weight: 800; line-height: 1.15; letter-spacing: -1px; }
.business-copy p { font-size: 17px; line-height: 1.6; color: var(--on-dark); }
.business .btn { position: relative; }
@media (max-width: 640px) { .business { padding: 36px 24px; border-radius: 22px; } .business .btn { width: 100%; } }

/* Inclusión digital */
.inclusion { background: var(--soft-2); }
.inclusion-inner { display: flex; flex-wrap: wrap; gap: 48px; align-items: center; }
.inclusion-visual { flex: 1 1 380px; min-width: 0; border-radius: 24px; background: var(--navy); color: #fff; padding: 36px; display: flex; flex-direction: column; gap: 20px; position: relative; overflow: hidden; }
.inclusion-visual .bar-a { right: -40px; top: -100px; width: 70px; height: 500px; }
.inclusion-visual strong { position: relative; font-size: 72px; font-weight: 800; line-height: 1; letter-spacing: -2px; }
.inclusion-visual span { position: relative; font-size: 18px; color: var(--on-dark); }
.inclusion-visual ul { position: relative; list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.inclusion-visual li { display: flex; gap: 10px; align-items: center; font-weight: 600; }
.inclusion-visual li svg { color: var(--steel-light); }
.inclusion-copy { flex: 1 1 480px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.inclusion-copy .lead { color: #374151; font-size: 18px; }
.checks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; font-size: 16px; line-height: 1.5; }
.checks svg { color: var(--navy-2); flex: none; margin-top: 1px; }
.inclusion-copy .btn { align-self: flex-start; }
@media (max-width: 640px) { .inclusion-copy .btn { width: 100%; white-space: normal; text-align: center; } .inclusion-visual strong { font-size: 56px; } }

/* Contacto */
.contact { padding: 96px 0; }
.contact-card { border-radius: 28px; background: var(--navy); color: #fff; display: flex; flex-wrap: wrap; overflow: hidden; }
.contact-copy { flex: 1 1 400px; min-width: 0; padding: 56px 48px; display: flex; flex-direction: column; gap: 22px; }
.contact-copy .lead { color: var(--on-dark); font-size: 18px; }
.contact-list { display: flex; flex-direction: column; gap: 16px; list-style: none; margin: 0; padding: 0; font-weight: 600; }
.contact-list li, .contact-list a { display: flex; align-items: center; gap: 14px; color: #fff; text-decoration: none; }
.contact-list a:hover { color: var(--steel-light); }
.contact-icon { flex: none; width: 46px; height: 46px; border-radius: 12px; background: var(--navy-2); color: var(--steel-light); display: flex; align-items: center; justify-content: center; }
.form { flex: 1 1 460px; min-width: 0; margin: 16px; border-radius: 22px; background: #fff; color: var(--ink); padding: 36px; display: flex; flex-direction: column; gap: 16px; }
.form-fields { display: flex; flex-direction: column; gap: 16px; }
.form-fields[hidden] { display: none; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field > label, .field > span { font-weight: 700; font-size: 14px; }
.field small { font-weight: 500; color: var(--muted); font-size: 14px; }
.field input, .field textarea { min-height: 48px; padding: 0 14px; border-radius: 10px; border: 1.5px solid var(--field); font-size: 16px; color: var(--ink); background: #fff; }
.field textarea { padding: 12px 14px; min-height: 90px; resize: vertical; }
.field input:focus, .field textarea:focus { border-color: var(--steel); outline: none; box-shadow: 0 0 0 3px rgba(62,92,154,.2); }
.field input[aria-invalid="true"] { border-color: #B42318; }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { min-height: 44px; padding: 0 14px; border-radius: 10px; border: 1.5px solid var(--field); background: #fff; color: #374151; font-weight: 700; font-size: 14px; cursor: pointer; }
.chip[aria-checked="true"] { background: var(--soft-2); border-color: var(--steel); color: var(--navy); }
.form .btn-navy { width: 100%; min-height: 54px; font-size: 17px; font-weight: 800; border-radius: 12px; }
.form-note { font-size: 13px; color: var(--muted); text-align: center; }
.form-error { font-size: 14px; color: #B42318; font-weight: 700; }
.form-success { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 14px; padding: 56px 0; flex: 1; }
.form-success[hidden] { display: none; }
.success-icon { width: 72px; height: 72px; border-radius: 50%; background: var(--soft-2); display: flex; align-items: center; justify-content: center; color: var(--navy-2); }
.form-success h3 { font-size: 24px; font-weight: 800; }
@media (max-width: 640px) {
  .contact { padding: 64px 0; }
  .contact-copy { padding: 36px 24px; }
  .form { padding: 24px; margin: 0 12px 12px; }
  .contact-card { border-radius: 22px; }
  .contact-list { font-size: 15px; }
}
@media (max-width: 420px) { .field-row { grid-template-columns: 1fr; } }

/* Pie */
.site-footer { border-top: 1px solid var(--line); }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 32px; padding: 48px 24px; }
.footer-brand { flex: 1 1 300px; display: flex; flex-direction: column; gap: 14px; }
.footer-brand img { height: 44px; width: auto; align-self: flex-start; }
.footer-brand p { font-size: 15px; line-height: 1.6; color: var(--muted); max-width: 380px; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 56px; font-size: 15px; }
.footer-nav div { display: flex; flex-direction: column; gap: 10px; }
.footer-nav a { color: var(--muted); text-decoration: none; }
.footer-nav a:hover { color: var(--steel); }
.footer-bottom { border-top: 1px solid var(--line); padding: 20px 24px 32px; font-size: 14px; color: var(--muted); }

/* WhatsApp flotante y barra móvil */
.wa-float { position: fixed; right: 24px; bottom: 24px; z-index: 60; width: 62px; height: 62px; border-radius: 50%; background: var(--whatsapp); color: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 10px 28px rgba(0,0,0,.28); }
.wa-float:hover { color: #fff; transform: scale(1.05); }
.mobile-bar { display: none; }
@media (max-width: 640px) {
  .wa-float { display: none; }
  .mobile-bar { display: flex; gap: 10px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; padding: 10px 16px calc(12px + env(safe-area-inset-bottom)); background: rgba(255,255,255,.96); border-top: 1px solid var(--line); }
  .mobile-bar a { min-height: 52px; border-radius: 12px; display: flex; align-items: center; justify-content: center; gap: 8px; font-weight: 800; text-decoration: none; }
  .mobile-bar .mb-wa { flex: 1; background: var(--whatsapp); color: var(--ink); }
  .mobile-bar .mb-cta { flex: 1.3; background: var(--navy); color: #fff; }
  body { padding-bottom: 78px; }
}

/* Página Empresas (empresas.html) */
.main-nav a[aria-current="page"] { color: var(--steel); }
.hero-sub .hero-inner { padding: 80px 24px 88px; }
.hero-sub h1 { font-size: clamp(38px, 4.6vw, 62px); }
.biz-areas { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.biz-areas li { padding: 24px; border-radius: 18px; background: #fff; display: flex; flex-direction: column; gap: 8px; }
.biz-areas strong { font-size: 19px; font-weight: 800; color: var(--navy); }
.biz-areas span { font-size: 15px; line-height: 1.55; color: var(--muted); }
.field select { min-height: 48px; padding: 0 14px; border-radius: 10px; border: 1.5px solid var(--field); font-size: 16px; color: var(--ink); background: #fff; }
.field select:focus { border-color: var(--steel); outline: none; box-shadow: 0 0 0 3px rgba(62,92,154,.2); }
.business-actions { position: relative; display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 640px) {
  .hero-sub .hero-inner { padding: 56px 20px 64px; }
  .business-actions { width: 100%; }
  .business-actions .btn { white-space: normal; text-align: center; }
}
