:root {
  --ink: #152c25;
  --muted: #52635b;
  --paper: #f8f9f4;
  --line: #dce4da;
  --green: #205b43;
  --green-hover: #154532;
  --mint: #b9f2a0;
  --dark: #132b25;
  --white: #fff;
  --card-bg: #ffffff;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font: 16px/1.6 "Segoe UI", system-ui, -apple-system, sans-serif; }
h1,h2,h3,p,blockquote,dl,dd,ul,ol { margin: 0; }
h1,h2,h3 { line-height: 1.12; letter-spacing: -.035em; color: var(--ink); font-weight: 800; }
a { color: inherit; }
a:focus-visible,button:focus-visible,summary:focus-visible { outline: 3px solid #247a51; outline-offset: 4px; }
.wrap { width: min(1160px, calc(100% - 64px)); margin-inline: auto; }
.skip { position: absolute; top: -100px; padding: 8px 14px; background: white; z-index: 3; }
.skip:focus { top: 8px; }

/* Navegación */
.nav { background: var(--paper); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 100; backdrop-filter: blur(8px); }
.nav-inner { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 21px; letter-spacing: -.045em; text-decoration: none; white-space: nowrap; }
.brand-sales { color: var(--green); font-weight: 650; }
nav { display: flex; gap: 28px; }
nav a, .nav-cta { font-weight: 650; font-size: .92rem; text-decoration: none; }
nav a { color: var(--muted); transition: color .2s; }
nav a:hover, .partner a:hover { color: var(--green); text-decoration: underline; }
.nav-cta { padding: 9px 16px; border-radius: 8px; border: 1px solid #b7c7ba; white-space: nowrap; color: var(--green); transition: background .2s; }
.nav-cta:hover { background: #e9f0e6; }

/* Tipografía y bloques comunes */
.eyebrow { color: var(--green); font: 750 .75rem/1.35 system-ui,sans-serif; letter-spacing: .12em; text-transform: uppercase; }
.hero-copy .eyebrow { display: flex; align-items: center; gap: 8px; }
.hero-copy .eyebrow span { width: 19px; height: 2px; background: var(--green); }
h1 { font-size: clamp(2.4rem, 4.8vw, 4.3rem); margin-top: 16px; max-width: 17ch; text-wrap: balance; }
h1 span { color: #357853; }
.hero-lead { margin-top: 18px; color: var(--muted); max-width: 48ch; font-size: clamp(1.05rem, 1.4vw, 1.22rem); line-height: 1.55; }
.hero-lead strong { color: var(--ink); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.button { display: inline-flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 48px; padding: 11px 18px; border-radius: 8px; text-decoration: none; font-weight: 700; font-size: .92rem; transition: background .2s, transform .1s; }
.button:active { transform: translateY(1px); }
.primary { color: white; background: #18533b; }
.primary:hover { background: #113e2d; }
.quiet { border: 1px solid #c3d0c1; color: var(--ink); background: transparent; }
.quiet:hover { background: #e9f0e6; }
.footnote { margin-top: 18px; color: var(--muted); font-size: .82rem; }
.signal { display: inline-block; width: 8px; height: 8px; background: #438558; border-radius: 50%; margin-right: 5px; }

/* Hero general */
.hero { background: radial-gradient(ellipse at 84% 18%, #e5f5df 0, transparent 47%), var(--paper); border-bottom: 1px solid var(--line); }
.hero-grid { display: grid; grid-template-columns: 1.08fr 1fr; gap: clamp(30px, 5vw, 80px); align-items: center; padding-block: clamp(56px, 7vw, 96px); }

/* Suite Map (Tarjeta de portada) */
.hero-product { color: #edf6ef; background: var(--dark); padding: clamp(20px, 2.8vw, 32px); border: 1px solid #264c3d; border-radius: 20px; box-shadow: 0 16px 48px #183f2d22; }
.product-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; border-bottom: 1px solid #36544a; padding-bottom: 14px; }
.product-logo { display: flex; gap: 8px; align-items: center; font-weight: 750; }
.product-logo span, .coach-icon { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 7px; background: var(--mint); color: var(--dark); font-weight: 900; }
.badge { color: #c3decf; border: 1px solid #45675b; border-radius: 6px; padding: 4px 8px; font-size: .62rem; font-weight: 750; letter-spacing: .07em; }
.suite-map > p { margin-block: 16px 12px; color: #d2e8d9; font-size: .95rem; }
.map-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.map-grid a { display: grid; align-content: start; gap: 4px; min-height: 110px; background: #1c362d; border: 1px solid #355346; border-radius: 10px; padding: 14px; text-decoration: none; transition: background .2s, border-color .2s; }
.map-grid a:hover { background: #284c40; border-color: #557e6c; }
.map-grid small { color: #c6efb6; font-weight: 750; font-size: .68rem; letter-spacing: .08em; }
.map-grid strong { line-height: 1.25; font-size: 1.05rem; color: #fff; }
.map-grid span { color: #b7d6c5; font-size: .78rem; margin-top: 4px; }

/* Status Pills */
.status-pill { display: inline-block; padding: 3px 8px; border-radius: 5px; font-size: .72rem; font-weight: 700; }
.badge-service { background: #f2ecd8; color: #6a4f10; border: 1px solid #e3d5b0; }
.badge-pilot { background: #dff1d6; color: #1e5c2d; border: 1px solid #b8dfa8; }
.badge-planned { background: #eceff1; color: #455a64; border: 1px solid #cfd8dc; }

/* Catálogo en portada */
.section { padding-block: clamp(52px, 6.5vw, 84px); }
.section-heading h2 { font-size: clamp(2rem, 3.8vw, 3.1rem); margin-top: 8px; max-width: 22ch; }
.section-heading > p:last-child { margin-top: 12px; color: var(--muted); max-width: 62ch; font-size: 1.05rem; }
.solution-group { display: grid; grid-template-columns: minmax(180px, 1fr) minmax(0, 3.2fr); gap: 24px; padding-block: 28px; border-top: 1px solid var(--line); }
.solution-group:first-of-type { margin-top: 32px; }
.solution-group > div > h3 { font-size: 1.55rem; color: var(--ink); }
.solution-group > div > p { color: var(--muted); font-size: .92rem; margin-top: 8px; max-width: 28ch; }
.solution-group ul, .related ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.solution-card { display: grid; grid-template-columns: auto minmax(0,1fr) auto; align-items: start; gap: 14px; padding: 16px; border: 1px solid var(--line); border-radius: 12px; background: white; height: 100%; text-decoration: none; transition: border-color .2s, box-shadow .2s; }
.solution-card:hover { border-color: #8eb793; box-shadow: 0 4px 16px #1b4d320d; }
.solution-card h3 { font-size: 1.15rem; letter-spacing: -.02em; }
.solution-card p { color: var(--muted); font-size: .88rem; margin-block: 6px 10px; line-height: 1.45; }
.tile-arrow { color: var(--green); font-weight: 750; font-size: .9rem; align-self: center; }

/* Iconos de módulos */
.module-icon { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 8px; color: #1a3b2e; font-weight: 800; font-size: 1.18rem; }
.mint { background: #dff1d6; } .blue { background: #dfeaf7; } .sand { background: #f2ecd8; } .lilac { background: #ebe3f4; } .pink { background: #f4e4e7; }

/* Sección Caso Destacado */
.case-section { background: #edf2ea; border-block: 1px solid var(--line); }
.case-layout { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 5vw, 64px); align-items: start; }
.feature { background: #152d26; }
.feature h3 { font-size: clamp(1.6rem, 2.8vw, 2.3rem); margin-block: 10px 12px; color: #fff; }
.feature > p:not(.eyebrow) { color: #d2e8d9; margin-bottom: 20px; font-size: .95rem; line-height: 1.5; }
.feature .primary { color: var(--ink); background: var(--mint); }
.feature .primary:hover { background: #d0ffc1; }
.partner-block { padding-block: 48px; }
.partner { margin-top: 14px; font-size: .95rem; color: var(--muted); }
.partner a { font-weight: 750; color: var(--green); text-underline-offset: 4px; }

/* Páginas de detalle de módulo */
.detail-hero { padding-block: clamp(40px, 6vw, 76px); }
.breadcrumb-bar { margin-bottom: 16px; font-size: .88rem; color: var(--muted); }
.breadcrumb { color: var(--green); font-weight: 700; text-decoration: none; }
.breadcrumb:hover { text-decoration: underline; }
.detail-mark { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.detail-hero h1 { max-width: 22ch; font-size: clamp(2.3rem, 4.6vw, 3.8rem); }
.detail-hero .hero-lead { max-width: 58ch; font-size: 1.15rem; }

/* Tarjeta del Problema */
.detail-problem-section { padding-top: 0; }
.problem-card { background: #fff; border: 1px solid #dce4da; border-left: 4px solid #b33939; border-radius: 12px; padding: clamp(20px, 3.5vw, 32px); }
.problem-card h2 { font-size: clamp(1.4rem, 2.5vw, 1.85rem); margin-block: 6px 10px; }
.problem-card p:last-child { color: var(--muted); font-size: 1.02rem; line-height: 1.6; max-width: 75ch; }

/* Cuerpo de método y entregables */
.detail-body { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(24px, 4vw, 48px); align-items: start; }
.detail-steps { list-style: none; margin: 0; padding: 0; counter-reset: scope; }
.detail-steps li { counter-increment: scope; border-top: 1px solid var(--line); padding: 18px 0 18px 40px; position: relative; }
.detail-steps li::before { content: counter(scope, decimal-leading-zero); position: absolute; left: 0; top: 18px; color: var(--green); font-size: .85rem; font-weight: 800; background: #e9f2e7; padding: 2px 6px; border-radius: 4px; }
.detail-steps h3 { font-size: 1.28rem; margin-bottom: 6px; }
.detail-steps p { color: var(--muted); font-size: .95rem; line-height: 1.55; }
.detail-steps a { color: var(--green); font-weight: 700; }

/* Sección Métricas */
.detail-metrics-section { border-top: 1px solid var(--line); }
.metrics-list { list-style: none; margin: 24px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.metrics-list li { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 18px; display: grid; gap: 6px; }
.metrics-list strong { color: var(--green); font-size: 1.05rem; }
.metrics-list span { color: var(--muted); font-size: .9rem; line-height: 1.5; }

/* Demo interactiva en Gym Ventas */
.case-panel { background: white; border: 1px solid #d2ded0; border-radius: 15px; box-shadow: 0 4px 20px #1a422d0a; }
.selectors { display: flex; gap: 8px; flex-wrap: wrap; padding: 14px; border-bottom: 1px solid var(--line); background: #f7faf5; border-radius: 15px 15px 0 0; }
.selectors button { cursor: pointer; min-height: 42px; color: var(--ink); background: #e8eee5; border: 0; border-radius: 7px; font: 700 .86rem system-ui,sans-serif; padding: 8px 14px; transition: background .15s; }
.selectors button[aria-pressed=true] { background: var(--green); color: white; }
.case-body { padding: clamp(18px, 3.2vw, 30px); }
.case-body h3 { margin: 8px 0 14px; font-size: clamp(1.4rem, 2.6vw, 1.9rem); }
blockquote { border-left: 4px solid var(--green); background: #f3f7f1; border-radius: 0 8px 8px 0; padding: 12px 16px; font-style: italic; font-size: 1.02rem; }
dl { margin-top: 18px; display: grid; gap: 4px; font-size: .94rem; }
dt { font-weight: 750; color: var(--ink); margin-top: 8px; }
dd { color: var(--muted); margin-bottom: 6px; line-height: 1.5; }

/* Pasos Gym */
.steps { margin: 28px 0 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.steps li { border-top: 2px solid #a7c6a6; padding: 18px 14px 0 0; }
.steps li > span { color: var(--green); font: 750 .8rem system-ui,sans-serif; }
.steps h3 { margin-block: 8px 7px; font-size: 1.35rem; }
.steps p { color: var(--muted); font-size: .92rem; }

/* Chat ilustrativo en Gym */
.case-kicker { display: flex; gap: 11px; align-items: center; margin-block: 20px 16px; font-size: .91rem; }
.case-kicker small, .bubble small { display: block; }
.case-kicker small { color: #aac4b8; font-size: .72rem; }
.case-number { border: 1px solid #44665a; border-radius: 8px; padding: 6px 9px; color: #c6efb6; font-weight: 750; font-size: .75rem; }
.chat { display: grid; gap: 10px; }
.bubble { width: fit-content; max-width: 88%; padding: 10px 14px; border-radius: 10px; font-size: .92rem; background: #243f36; line-height: 1.45; }
.bubble small { font-size: .6rem; font-weight: 750; letter-spacing: .08em; color: #b7d2c3; margin-bottom: 3px; }
.seller { justify-self: end; background: #33553c; }
.coach { margin-top: 18px; background: #e6f6df; border-radius: 12px; padding: 14px 16px; color: var(--dark); }
.coach-top { display: flex; align-items: center; gap: 8px; font-size: .88rem; }
.coach-icon { width: 24px; height: 24px; }
.coach p { margin-block: 6px; font-size: .88rem; }
.coach a { color: #1e5a3d; font-size: .8rem; font-weight: 760; text-underline-offset: 3px; }

/* FAQ */
.faq { padding-block: 36px 60px; border-top: 1px solid var(--line); display: grid; grid-template-columns: .8fr 1.2fr; gap: 28px; }
details { border-bottom: 1px solid var(--line); padding-block: 14px; }
summary { cursor: pointer; font-weight: 750; font-size: 1.05rem; }
details p { color: var(--muted); padding: 8px 0 4px; font-size: .95rem; line-height: 1.55; }

/* Contacto y Cierre */
.final-section { padding-bottom: 52px; }
.final-card { background: var(--dark); color: white; padding: clamp(24px, 5vw, 56px); border-radius: 18px; display: flex; align-items: center; justify-content: space-between; gap: 32px; box-shadow: 0 16px 40px #132b2520; }
.final-card .eyebrow { color: #b9e6af; }
.final-card h2 { color: #fff; font-size: clamp(1.8rem, 3.4vw, 2.7rem); }
.final-card p:last-of-type { margin-top: 10px; max-width: 52ch; color: #cee2d6; font-size: 1rem; }
.contact-notice { margin-top: 12px; color: #9abfb0; font-size: .78rem; line-height: 1.4; max-width: 55ch; }
.final-card .primary { background: var(--mint); color: var(--ink); white-space: nowrap; font-size: .95rem; }
.final-card .primary:hover { background: #d0ffc1; }
.final-action { display: grid; gap: 8px; justify-items: start; }
.email { font-size: .9rem; color: #d3e9db; text-decoration: none; }
.email:hover { text-decoration: underline; }

/* Footer */
.footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; min-height: 84px; border-top: 1px solid var(--line); color: var(--muted); font-size: .86rem; }
.footer-left { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.footer-right { display: flex; gap: 20px; align-items: center; }
.footer a { text-decoration: none; }
.footer a:hover { text-decoration: underline; }
.footer .brand { color: var(--ink); font-size: 18px; }

/* Responsive */
@media (max-width: 900px) {
  .hero-grid, .case-layout, .faq, .detail-body { grid-template-columns: 1fr; }
  .final-card { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 768px) {
  .solution-group { grid-template-columns: 1fr; }
  .solution-group ul, .related ul { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .wrap { width: calc(100% - 32px); }
  .nav-inner { min-height: 64px; }
  .nav-inner nav { display: none; }
  .brand { font-size: 18px; }
  .brand img { width: 30px; height: 30px; }
  .nav-cta { padding: 7px 11px; font-size: .82rem; }
  .steps { grid-template-columns: 1fr; }
  .map-grid { grid-template-columns: 1fr; }
  .footer { flex-direction: column; align-items: flex-start; padding-block: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
