/* ==========================================================================
   VAESTRACK — Corporate landing stylesheet
   Material Design, mobile-first, WCAG AA. All copy in Spanish.
   Author deliverable — comments in English only.
   ========================================================================== */

/* ---------- 1. Design tokens ---------- */
:root {
  /* Brand palette (mandatory values) */
  --dark-primary: #303F9F;   /* top bar, primary button hover, header, footer */
  --primary: #3F51B5;        /* brand, primary buttons, active links */
  --light-primary: #C5CAE9;  /* soft backgrounds, chips, subtle borders */
  --accent: #FF9800;         /* ALL conversion CTAs, badges, "Get a Quote" */
  --icon: #FFFFFF;
  --text-primary: #212121;
  --text-secondary: #757575;
  --container: #BDBDBD;

  /* Accessible support tokens (keep the above brand tokens intact; these ensure WCAG AA
     for body text on tinted backgrounds and for accent-colored text on light surfaces). */
  --text-body: #5F6368;   /* long body text (AA on white and tinted) */
  --accent-ink: #9A5B00;  /* ACCENT-COLORED text on light surfaces */

  /* Neutrals */
  --white: #FFFFFF;
  --grey-50: #FAFAFA;
  --grey-100: #F5F5F5;

  /* Semantic (badges/status) */
  --ok: #66BB6A;
  --warn: #FBC02D;
  --danger: #EF5350;
  --muted: #9E9E9E;

  /* Dark mode overrides (applied via .dark-theme on body) */
  --dm-bg: #1A1A2E;
  --dm-surface: #222240;
  --dm-card: #2A2A4A;
  --dm-border: #3A3A5A;
  --dm-text: #E8E8F0;
  --dm-text-secondary: #B8B8D0;
  --dm-text-body: #A8A8C0;

  /* Typography */
  --font-body: "Roboto", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-head: "Inter", "Poppins", "Roboto", system-ui, sans-serif;

  /* Spacing scale (8px base) */
  --sp-1: 8px;
  --sp-2: 16px;
  --sp-3: 24px;
  --sp-4: 32px;
  --sp-5: 40px;
  --sp-6: 48px;
  --sp-8: 64px;
  --sp-10: 96px;

  /* Radius & elevation (Material dp) — layered shadows with indigo tone for a premium finish */
  --radius: 16px;
  --radius-sm: 10px;
  --shadow-1: 0 1px 2px rgba(23,29,74,.05), 0 2px 6px rgba(23,29,74,.07);
  --shadow-2: 0 2px 4px rgba(23,29,74,.06), 0 6px 16px rgba(23,29,74,.10);
  --shadow-4: 0 6px 14px rgba(23,29,74,.07), 0 18px 44px rgba(48,63,159,.18);

  --maxw: 1200px;
  --nav-h: 84px;
  --transition: 200ms cubic-bezier(.4,0,.2,1);
}

/* ---------- 2. Reset & base ---------- */
*,*::before,*::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 8px); -webkit-text-size-adjust: 100%; overflow-x: hidden; }
body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text-primary);
  background-color: var(--white);
  overflow-x: hidden;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--dark-primary); }
ul { list-style: none; }

h1,h2,h3,h4 { font-family: var(--font-head); line-height: 1.14; color: var(--text-primary); font-weight: 700; text-wrap: balance; }
h1 { font-size: clamp(2.15rem, 5.4vw, 3.6rem); font-weight: 800; letter-spacing: -.032em; line-height: 1.05; }
h2 { font-size: clamp(1.1rem, 2vw, 1.4rem); font-weight: 800; letter-spacing: -.024em; line-height: 1.1; }
h3 { font-size: clamp(1.3rem, 2.4vw, 1.6rem); font-weight: 700; letter-spacing: -.016em; }
h4 { font-size: clamp(1.075rem, 1.5vw, 1.2rem); font-weight: 600; letter-spacing: -.008em; line-height: 1.3; }
p  { color: var(--text-body); text-align: justify; hyphens: auto; }
/* Keep UI elements / single-line / labels centered at their natural alignment; content paragraphs remain justified. */
.stat__label, .stat__num, .sector p, .footer__bottom, .hero__badge, .app__feats li, .section-title, .navbar, .welcome-overlay *, .contact-form .btn-primary, .contact-item i, .platform-wrap > p, .section__head p { text-align: revert; }

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

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--sp-3); }
.section { padding-block: var(--sp-10); }
.section--tint { background: linear-gradient(180deg, #F0F1FA 0%, #E8EAF6 100%); }
.section--indigo { background: var(--dark-primary); color: var(--white); }
.section__head { text-align: center; max-width: 720px; margin: 0 auto var(--sp-8); }
.section__eyebrow {
  display: inline-block; font-family: var(--font-head); font-weight: 700; font-size: 1.1rem;
  letter-spacing: .1em; text-transform: uppercase; color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--accent)); padding: 12px 24px; border-radius: 999px; margin-bottom: var(--sp-2);
  border: none; box-shadow: 0 2px 8px rgba(63,81,181,.3);
  white-space: nowrap;
}
.section--indigo .section__eyebrow { color: var(--white); background: rgba(255,255,255,.16); }
.section__head p { font-size: 1.05rem; margin-top: var(--sp-1); }
.section--indigo .section__head p { color: var(--light-primary); }

/* ---------- 3. Buttons ---------- */
.btn {
  --_bg: var(--primary); --_fg: var(--white);
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-head); font-weight: 600; font-size: 1rem; line-height: 1; letter-spacing: .01em;
  padding: 14px 26px; border: none; border-radius: var(--radius-sm); cursor: pointer;
  background: var(--_bg); color: var(--_fg); box-shadow: var(--shadow-1);
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  text-align: center;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-2); color: var(--_fg); }
.btn:active { transform: translateY(0); }
.btn--primary { --_bg: var(--primary); }
.btn--primary:hover { --_bg: var(--dark-primary); box-shadow: 0 8px 22px rgba(63,81,181,.35); }
.btn--accent { --_bg: var(--accent); --_fg: #3A2600; }
.btn--accent:hover { --_bg: #FB8C00; }
.btn--ghost { --_bg: transparent; --_fg: var(--primary); box-shadow: inset 0 0 0 2px var(--primary); }
.btn--ghost:hover { --_bg: var(--primary); --_fg: var(--white); }
.btn--on-indigo { --_bg: var(--white); --_fg: var(--dark-primary); }
.btn--on-indigo:hover { --_bg: var(--light-primary); --_fg: var(--dark-primary); }
.btn--lg { padding: 17px 34px; font-size: 1.05rem; }
.btn .material-symbols-rounded { font-size: 20px; }

.material-symbols-rounded {
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
  vertical-align: middle;
}

.navbar {
  position: sticky; top: 0; z-index: 1000; height: auto; min-height: var(--nav-h);
  background: rgba(255,255,255,.86); backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid rgba(197,202,233,.55);
  transition: box-shadow var(--transition), background var(--transition);
}
.navbar.is-scrolled { box-shadow: var(--shadow-2); }
.navbar__inner {
  display: flex; align-items: center; gap: var(--sp-3); height: 100%;
  padding: 12px 0;
  padding-left: 0;
  padding-right: calc(var(--sp-3) + env(safe-area-inset-right, 0px));
}
.navbar__brand { display: flex; align-items: center; margin-left: -84px; }
.navbar__brand img { height: 88px; width: auto; filter: drop-shadow(0 2px 8px rgba(63,81,181,.25)); }
.navbar__logo-ph { /* clearly delineated bookmark frame around the logo */
  padding: 4px 6px; border-radius: 6px;
}
.navbar__links { display: flex; align-items: center; gap: var(--sp-3); margin-left: auto; }
.navbar__links a.nav-link { color: var(--text-primary); font-weight: 500; font-size: .98rem; position: relative; }
.navbar__links a.nav-link::after {
  content: ""; position: absolute; left: 0; bottom: -6px; height: 2px; width: 0; background: var(--primary);
  transition: width var(--transition);
}
.navbar__links a.nav-link:hover { color: var(--primary); }
.navbar__links a.nav-link:hover::after { width: 100%; }
.navbar__actions { display: flex; align-items: center; gap: var(--sp-2); }
.navbar__actions .btn--primary { padding-inline: 38px; }
.navbar__right { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.navbar__toggle { display: none; background: none; border: none; cursor: pointer; color: var(--dark-primary); padding: 6px; }
.navbar__toggle .material-symbols-rounded { font-size: 30px; }
.navbar__backdrop { display: none; }
/* Sidebar-only chrome (logo, icon badges, trailing chevrons) — hidden on the desktop pill nav,
   re-enabled inside the max-width:900px sidebar styles further down. */
.navbar__links-logo, .nav-link__icon, .nav-link__chevron { display: none; }
/* Persistent mobile CTA "Go to platform" (lives in the top bar, mobile-only) */
.navbar__cta-mobile { display: none; }

/* ---------- 5. Hero ---------- */
.hero { position: relative; background-color: var(--white); background-image: url('../assets/fondo2.png'); background-size: cover; background-position: center; min-height: 100vh; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background: rgba(5,10,30,.5);
}
.hero__grid {
  position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1.45fr;
  max-width: 1360px;
  gap: 12px; align-items: center; padding-top: var(--sp-6); padding-bottom: var(--sp-10);
}
.hero__badge {
  display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-head); font-weight: 700;
  font-size: 1.1rem; letter-spacing: .1em; text-transform: uppercase; color: #fff;
  text-shadow: 0 1px 3px rgba(0,0,0,.35);
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border: none; box-shadow: 0 2px 8px rgba(63,81,181,.3); backdrop-filter: blur(6px);
  padding: 12px 24px; border-radius: 999px; margin-bottom: var(--sp-3);
  white-space: nowrap;
}
.hero__badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px rgba(102,187,106,.25); }
/* Hero-only scale so the copy stays next to the widened carousel.
   Overrides the global h1 clamp only here; the hero rules for ≤900px / ≤400px still win below. */
.hero h1 { font-size: clamp(1.5rem, 3.5vw, 2.4rem); margin-bottom: var(--sp-3); color: #fff; }
.hero h1 .grad {
  background: linear-gradient(120deg, #9FA8DA 20%, #C5CAE9);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero__sub { font-size: 1.12rem; max-width: 36ch; margin-bottom: var(--sp-4); color: rgba(255,255,255,.85); }
/* Hero carousel (auto-rotating; slides stack in the same grid cell and cross-fade) */
/* max-width raised beyond the grid column so the column sizes the image, not this cap */
.hero-slider { display: grid; width: 100%; max-width: 880px; margin-inline: auto; align-items: center; padding-inline: 56px; }
.hero-slide {
  grid-area: 1 / 1; display: grid; gap: var(--sp-2); align-content: center;
  opacity: 0; visibility: hidden; transition: opacity .6s ease, visibility .6s;
}
.hero-slide.is-active { opacity: 1; visibility: visible; }
.hero-slide img {
  width: 100%; height: auto; max-height: 560px; object-fit: contain;
  filter: drop-shadow(0 24px 48px rgba(23,29,74,.25));
}
/* Polished entrance for the image on each transition (manual or automatic) */
.hero-slide.is-active img { animation: heroSlideImg .7s cubic-bezier(.2,.8,.25,1) both; }
@keyframes heroSlideImg {
  from { opacity: .35; transform: scale(1.035); }
  to { opacity: 1; transform: none; }
}
/* Headline/copy swap — same duration/easing as the image so both read as a single transition */
.hero-copy-swap { animation: heroCopySwap .7s cubic-bezier(.2,.8,.25,1) both; }
@keyframes heroCopySwap {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}
.hero-slide__caption {
  background: rgba(255,255,255,.82); backdrop-filter: blur(8px);
  border: 1px solid var(--light-primary); border-radius: var(--radius);
  padding: 14px var(--sp-2); box-shadow: var(--shadow-2); max-width: 60ch; margin-inline: auto;
}
.hero-slide__caption h3 { font-size: .95rem; margin-bottom: 3px; }
.hero-slide__caption p { font-size: .8rem; line-height: 1.5; text-align: left; hyphens: none; }
/* Prev/next arrows — same circular icon button language as the theme toggle */
.hero-slider__arrow { position: absolute; top: 50%; transform: translateY(-50%); z-index: 10;
  width: 48px; height: 48px; border: none; border-radius: 50%;
  background: rgba(255,255,255,.85); backdrop-filter: blur(6px); color: var(--dark-primary);
  display: grid; place-items: center; cursor: pointer; box-shadow: var(--shadow-2);
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
}
.hero-slider__arrow:hover { background: var(--primary); color: var(--white); box-shadow: var(--shadow-4); transform: translateY(-50%) scale(1.08); }
.hero-slider__arrow:active { transform: translateY(-50%) scale(.95); }
.hero-slider__arrow--prev { left: -48px; }
.hero-slider__arrow--next { right: -48px; }
.hero-slider__arrow .material-symbols-rounded { font-size: 26px; }
.hero-slider__dots { grid-row: 2; display: flex; justify-content: center; gap: 12px; margin-top: var(--sp-2); }
.hero-slider__dot {
  position: relative; width: 10px; height: 10px; border-radius: 999px; border: none; padding: 0;
  background: var(--light-primary); cursor: pointer;
  transition: background var(--transition), transform var(--transition);
}
.hero-slider__dot::after { content: ""; position: absolute; inset: -14px; } /* 44px touch target */
.hero-slider__dot.is-active { background: var(--primary); transform: scale(1.25); }
.hero-slider__dot:hover { background: var(--primary); }
@media (prefers-reduced-motion: reduce) {
  .hero-slide { transition: none; }
  .hero-slide.is-active img { animation: none; }
  .hero-copy-swap { animation: none; }
}

/* ---------- 6. Trust bar / stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-3); }
.stat { text-align: center; padding: var(--sp-3) var(--sp-2); }
.stat__num {
  font-family: var(--font-head); font-weight: 800; font-size: clamp(1.9rem,4vw,2.8rem);
  letter-spacing: -.02em; font-variant-numeric: tabular-nums;
  background: linear-gradient(135deg, var(--primary), var(--dark-primary));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.section--indigo .stat__num { color: var(--white); }
.stat__label { font-size: .9rem; color: var(--text-body); margin-top: 6px; font-weight: 500; letter-spacing: .01em; }
.section--indigo .stat__label { color: var(--light-primary); }
.stat__ph { font-size: .72rem; color: var(--accent-ink); font-weight: 700; }
@media (min-width: 901px) {
  .stat + .stat { border-left: 1px solid var(--light-primary); }
}

/* ---------- 7. Modules / services ---------- */
.modules { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--sp-3); }
.module-card {
  background: var(--white); border: 1px solid var(--light-primary); border-radius: var(--radius);
  padding: var(--sp-4); box-shadow: var(--shadow-1);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  display: flex; flex-direction: column;
}
.module-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-4); border-color: var(--primary); }
.module-card__icon {
  width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--primary), #5C6BC0);
  color: #fff; margin-bottom: var(--sp-2);
  box-shadow: 0 4px 12px rgba(63,81,181,.25);
  transition: transform var(--transition);
}
.module-card:hover .module-card__icon { transform: scale(1.06); }
.module-card__icon .material-symbols-rounded { font-size: 30px; }
.module-card h3 { margin-bottom: 6px; }
.module-card__tag { font-size: .72rem; color: var(--primary); font-weight: 700; text-transform: uppercase; letter-spacing: .1em; margin-bottom: var(--sp-2); }
.module-card > p { margin-bottom: var(--sp-2); }
.module-card__list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; }
.chip {
  font-size: .78rem; font-weight: 500; color: var(--dark-primary); background: var(--white);
  border: 1px solid var(--light-primary); padding: 5px 12px; border-radius: 999px;
}

/* Deep maintenance analysis (expandable areas) */
.maint { margin-top: var(--sp-8); }
.maint__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-2); }
.accordion { border: 1px solid var(--light-primary); border-radius: var(--radius-sm); overflow: hidden; background: var(--white); }
.accordion + .accordion { margin-top: var(--sp-1); }
.accordion__head {
  width: 100%; text-align: left; background: var(--white); border: none; cursor: pointer;
  padding: 18px 20px; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  font-family: var(--font-head); font-weight: 600; font-size: 1.02rem; color: var(--text-primary);
}
.accordion__head:hover { background: var(--grey-50); }
.accordion__head .material-symbols-rounded { color: var(--primary); transition: transform var(--transition); }
.accordion.is-open .accordion__head .material-symbols-rounded { transform: rotate(180deg); }
.accordion__body { max-height: 0; overflow: hidden; transition: max-height var(--transition); }
.accordion.is-open .accordion__body { max-height: 640px; }
.accordion__inner { padding: 0 20px 20px; color: var(--text-secondary); }
.accordion__inner ul { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px,1fr)); gap: 8px 18px; }
.accordion__inner li { position: relative; padding-left: 22px; font-size: .95rem; }
.accordion__inner li::before {
  content: "check_circle"; font-family: 'Material Symbols Rounded'; position: absolute; left: 0; top: 1px;
  color: var(--ok); font-size: 16px;
}

/* ---------- 8. Feature (why us) ---------- */
.features { display: grid; grid-template-columns: repeat(3,1fr); gap: var(--sp-3); }
.feature {
  background: var(--white); border: 1px solid var(--light-primary); border-radius: var(--radius);
  padding: var(--sp-3); box-shadow: var(--shadow-1);
  transition: transform var(--transition), box-shadow var(--transition);
}
.feature:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); }
.feature__icon {
  width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--accent), #FB8C00);
  color: #fff; margin-bottom: var(--sp-2);
  box-shadow: 0 4px 12px rgba(255,152,0,.25);
}
.feature h4 { margin-bottom: 6px; }
.feature p { font-size: .96rem; }

/* ---------- 9. Platform showcase ---------- */
.showcase { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-6); align-items: center; }
.showcase__visual { justify-self: center; width: 100%; max-width: 680px; }
.showcase__visual img { display: block; width: 100%; height: auto; }
.showcase__list { display: grid; gap: var(--sp-2); }
.showcase__item { display: flex; gap: var(--sp-2); align-items: flex-start; }
.showcase__item .ico {
  flex: 0 0 auto; width: 46px; height: 46px; border-radius: 13px;
  background: linear-gradient(135deg, var(--primary), #5C6BC0);
  color: #fff; display: grid; place-items: center;
  box-shadow: 0 4px 12px rgba(63,81,181,.25);
}
.showcase__item h4 { margin-bottom: 2px; }
.showcase__item p { font-size: .95rem; }

/* ---------- 10. App section ---------- */
.app { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-6); align-items: center; }
.app__phone {
  position: relative; justify-self: center; width: 260px; height: 520px; background: #1b1b1b;
  border-radius: 34px; padding: 10px;
  box-shadow: 0 12px 28px rgba(23,29,74,.16), 0 34px 80px rgba(48,63,159,.28);
}
.app__phone::before {
  content: ""; position: absolute; top: 22px; left: 50%; transform: translateX(-50%);
  width: 74px; height: 18px; border-radius: 10px; background: #1b1b1b; z-index: 2;
}
.app__phone .screen { width: 100%; height: 100%; border-radius: 26px; overflow: hidden; background: var(--white); position: relative; }
.app__phone .top { height: 92px; background: linear-gradient(135deg, var(--primary), var(--dark-primary)); display: grid; place-items: center; color: #fff; font-family: var(--font-head); font-weight: 700; }
.app__phone .body { padding: 14px; display: grid; gap: 10px; }
.app__phone .card-row { height: 46px; border-radius: 10px; background: var(--grey-100); display: flex; align-items: center; gap: 10px; padding: 0 12px; }
.app__phone .card-row .b { width: 26px; height: 26px; border-radius: 7px; background: var(--light-primary); }
.app__stores { display: flex; flex-wrap: wrap; gap: var(--sp-2); margin-top: var(--sp-3); }
.app__stores img { height: 50px; }
.app__feats { display: grid; gap: 12px; margin: var(--sp-3) 0; }
.app__feats li { position: relative; padding-left: 30px; color: var(--text-secondary); }
.app__feats .material-symbols-rounded { position: absolute; left: 0; top: 0; color: var(--primary); }

/* ---------- 11. Sectors ---------- */
.sectors { display: grid; grid-template-columns: repeat(4,1fr); gap: var(--sp-2); }
.sector { background: var(--white); border: 1px solid var(--light-primary); border-radius: var(--radius); padding: var(--sp-3) var(--sp-2); text-align: center; transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition); }
.sector:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); border-color: var(--primary); }
.sector .material-symbols-rounded {
  font-size: 28px; width: 56px; height: 56px; display: inline-grid; place-items: center;
  border-radius: 16px; background: linear-gradient(135deg, var(--primary), #5C6BC0);
  color: #fff; transition: transform var(--transition);
  box-shadow: 0 4px 12px rgba(63,81,181,.25);
}
.sector:hover .material-symbols-rounded { transform: scale(1.07); }
.sector h4 { margin-top: 8px; font-size: 1rem; }
.sector p { font-size: .85rem; }

/* ---------- 12. Testimonials & clients ---------- */
.placeholder-note {
  border: 2px dashed var(--container); border-radius: var(--radius-sm); background: var(--grey-50);
  padding: var(--sp-2) var(--sp-3); color: var(--text-body); font-size: .9rem; text-align: center;
}
.placeholder-note strong { color: var(--accent-ink); }
.testi-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: var(--sp-3); margin-bottom: var(--sp-3); }
.testi { background: var(--white); border-radius: var(--radius); padding: var(--sp-3); box-shadow: var(--shadow-1); border: 1px solid var(--light-primary); }
.testi__stars { color: var(--accent); letter-spacing: 2px; margin-bottom: 10px; }
.testi__q { color: var(--text-primary); font-style: italic; }
.testi__who { margin-top: var(--sp-2); font-size: .85rem; color: var(--text-secondary); font-weight: 600; }
.clients { display: grid; grid-template-columns: repeat(5,1fr); gap: var(--sp-2); margin-top: var(--sp-3); }
.client-logo { height: 72px; border-radius: var(--radius-sm); background: var(--grey-100); border: 1px dashed var(--container); display: grid; place-items: center; color: var(--muted); font-family: var(--font-head); font-weight: 700; }

/* ---------- 13. FAQ ---------- */
.faq { max-width: 820px; margin-inline: auto; }

/* ---------- 14. Contact ---------- */
.contact-inner { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 48px; align-items: start; }
.contact-info { display: flex; flex-direction: column; gap: 20px; }
.contact-info h3 { font-size: 1.25rem; margin-bottom: 8px; color: var(--text-primary); font-family: var(--font-head); }
.contact-item { display: flex; align-items: center; gap: 14px; }
.contact-item i {
  width: 44px; height: 44px; flex: 0 0 auto; display: grid; place-items: center;
  border-radius: 12px; background: linear-gradient(135deg, var(--accent), #FB8C00); color: #fff; font-size: 1.1rem;
  box-shadow: 0 4px 12px rgba(255,152,0,.25);
  transition: transform var(--transition);
}
.contact-item i:hover { transform: scale(1.08); }
.contact-item span { color: var(--text-body); font-size: 1rem; }
.contact-quick-link { margin-top: 8px; }
.btn--whatsapp {
  display: inline-flex; align-items: center; gap: 8px;
  background: #25D366; color: #fff; padding: 10px 20px; border-radius: var(--radius-sm);
  font-weight: 600; font-size: .95rem; text-decoration: none;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
}
.btn--whatsapp:hover { background: #128C7E; transform: translateY(-2px); box-shadow: 0 4px 12px rgba(37,211,102,.3); }
.btn--whatsapp i { font-size: 1.2rem; }

.contact-form {
  position: relative; display: flex; flex-direction: column; gap: var(--sp-3); overflow: hidden;
  padding: var(--sp-4); border: 1px solid var(--light-primary); border-radius: 20px;
  background: linear-gradient(145deg, #FFFFFF 0%, #F7F8FE 100%); box-shadow: var(--shadow-4);
}
.contact-form::before {
  content: ""; position: absolute; inset: 0 0 auto; height: 4px;
  background: linear-gradient(90deg, var(--primary), #5C6BC0 58%, var(--accent));
}
.contact-form__header { padding-bottom: var(--sp-3); border-bottom: 1px solid var(--light-primary); }
.contact-form__eyebrow {
  display: block; margin-bottom: 6px; color: var(--primary); font-family: var(--font-head);
  font-size: .72rem; font-weight: 800; letter-spacing: .1em; line-height: 1.2; text-transform: uppercase;
}
.contact-form__header h3 { margin-bottom: 8px; font-size: 1.35rem; }
.contact-form__header p { max-width: 480px; font-size: .95rem; line-height: 1.55; text-align: left; hyphens: none; }
.contact-form__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-2); }
.form-group { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.form-group--full { grid-column: 1 / -1; }
.form-label {
  font-size: .82rem; font-weight: 700; color: var(--text-primary);
  font-family: var(--font-head); letter-spacing: .035em;
}
.form-label .required { color: var(--danger); font-weight: 700; }
.form-input {
  width: 100%; font: inherit; font-size: 1rem; color: var(--text-primary);
  padding: 14px 16px; border: 1px solid #D8DCF1; border-radius: 12px;
  background: #FFFFFF; box-shadow: inset 0 1px 2px rgba(23,29,74,.03);
  transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
}
.form-input:hover { border-color: #AAB3E2; }
.form-input::placeholder { color: var(--muted); }
.form-input:focus { border-color: var(--primary); background: var(--white); box-shadow: 0 0 0 4px rgba(63,81,181,.12); outline: none; }
.form-input.form-input--error { border-color: var(--danger); box-shadow: 0 0 0 3px rgba(239,83,80,.12); }
.form-textarea { resize: vertical; min-height: 136px; line-height: 1.55; }
.form-error { display: none; font-size: .8rem; color: var(--danger); font-weight: 500; margin-top: 2px; }
.form-error.form-error--visible { display: block; }
.contact-form__hint { display: flex; align-items: center; gap: 7px; color: var(--text-secondary); font-size: .82rem; line-height: 1.35; text-align: left; }
.contact-form__hint .material-symbols-rounded { color: var(--primary); font-size: 17px; }

.btn--submit {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  background: var(--dark-primary); color: var(--white); border: none;
  width: 100%; padding: 16px 32px; font-size: 1rem; font-weight: 700; border-radius: 12px;
  cursor: pointer; font-family: var(--font-head);
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
}
.btn--submit:hover { background: var(--primary); transform: translateY(-2px); box-shadow: 0 10px 20px rgba(48,63,159,.25); }
.btn--submit:active { transform: translateY(0); }
.btn--submit:disabled { opacity: .6; cursor: not-allowed; transform: none; }
.btn-loading { display: none; }
.btn--submit.is-loading .btn-text { display: none; }
.btn--submit.is-loading .btn-icon { display: none; }
.btn--submit.is-loading .btn-loading { display: inline-flex; align-items: center; gap: 8px; }
.btn-icon { font-size: 1.1rem; }

/* Success state */
.contact-success {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 48px 24px; gap: 16px;
  background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-2);
}
.contact-success__icon {
  width: 64px; height: 64px; border-radius: 50%;
  background: linear-gradient(135deg, #66BB6A, #43A047);
  display: grid; place-items: center; color: #fff; font-size: 2rem;
  box-shadow: 0 6px 20px rgba(102,187,106,.35);
}
.contact-success h3 { font-size: 1.3rem; color: var(--text-primary); font-family: var(--font-head); }
.contact-success p { color: var(--text-body); font-size: 1rem; max-width: 360px; }

.section-title { text-align: center; margin-bottom: 48px; }
.section-title span { color: var(--accent); }
.map-pattern { background: var(--grey-50); }

@media (max-width: 768px) {
  .contact-inner { grid-template-columns: 1fr; gap: 32px; }
  .contact-info { order: -1; }
}

/* ---------- 15. Floating WhatsApp ---------- */
.wa-float {
  position: fixed; z-index: 900;
  /* Clear the home indicator safe area / rounded corners on notched phones */
  right: calc(20px + env(safe-area-inset-right, 0px));
  bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  width: 58px; height: 58px; border-radius: 50%; background: #25D366; color: #fff;
  display: grid; place-items: center; box-shadow: var(--shadow-4);
  transition: transform var(--transition);
}
.wa-float:hover { transform: scale(1.08); color: #fff; }
.wa-float svg { width: 30px; height: 30px; }
/* Attention ping on primary contact method */
.wa-float::before {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(37,211,102,.45);
  animation: waPing 2.6s cubic-bezier(.4,0,.2,1) infinite;
}
@keyframes waPing {
  70% { box-shadow: 0 0 0 14px rgba(37,211,102,0); }
  100% { box-shadow: 0 0 0 0 rgba(37,211,102,0); }
}
@media (prefers-reduced-motion: reduce) { .wa-float::before { animation: none; } }

/* ---------- 16. Footer ---------- */
.footer { background: linear-gradient(180deg, var(--dark-primary) 0%, #283593 100%); color: var(--light-primary); padding-block: var(--sp-8) var(--sp-3); }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: var(--sp-4); }
.footer__brand img {
  height: 64px; width: auto; margin-bottom: var(--sp-2);
}
.footer__brand p { color: var(--light-primary); font-size: .95rem; max-width: 32ch; }
.footer h4 { color: var(--white); font-size: 1rem; margin-bottom: var(--sp-2); }
.footer ul { display: grid; gap: 10px; }
.footer a { color: var(--light-primary); font-size: .95rem; }
.footer a:hover { color: var(--white); }
.footer__stores { display: flex; flex-wrap: wrap; gap: 10px; margin-top: var(--sp-2); }
.footer__stores img { height: 42px; }
.footer__social { display: flex; gap: 10px; margin-top: var(--sp-2); }
.footer__social a { width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,.12); display: grid; place-items: center; color: #fff; transition: background var(--transition), transform var(--transition); }
.footer__social a:hover { background: var(--accent); color: #3A2600; transform: translateY(-2px); }
.footer__bottom { border-top: 1px solid rgba(255,255,255,.16); margin-top: var(--sp-5); padding-top: var(--sp-3); display: flex; justify-content: space-between; gap: var(--sp-2); flex-wrap: wrap; font-size: .86rem; }
.footer__bottom .ph { color: #FFD8A8; }

/* ---------- 17. Platform selector page ---------- */
.platform-page { min-height: 100vh; display: flex; flex-direction: column; background: linear-gradient(160deg, #EEF0Fb, var(--white)); }
.platform-main { flex: 1; display: grid; place-items: center; padding: var(--sp-8) var(--sp-3); }
.platform-wrap { width: 100%; max-width: 940px; text-align: center; }
.platform-wrap h1 { margin-bottom: var(--sp-2); }
.platform-wrap > p { max-width: 60ch; margin: 0 auto var(--sp-6); font-size: 1.1rem; }
.platform-cards { display: grid; grid-template-columns: repeat(2,1fr); gap: var(--sp-3); text-align: left; }
.pcard {
  position: relative; background: var(--white); border-radius: var(--radius); padding: var(--sp-4);
  box-shadow: var(--shadow-2); border: 1px solid var(--light-primary); display: flex; flex-direction: column;
  transition: transform var(--transition), box-shadow var(--transition);
}
.pcard:hover { transform: translateY(-4px); box-shadow: var(--shadow-4); }
.pcard--featured { border-color: var(--primary); box-shadow: 0 10px 30px rgba(63,81,181,.16); }
.pcard__badge { position: absolute; top: -13px; left: var(--sp-4); background: var(--accent); color: #3A2600; font-family: var(--font-head); font-weight: 700; font-size: .78rem; padding: 6px 14px; border-radius: 999px; box-shadow: var(--shadow-1); }
.pcard__icon {
  width: 60px; height: 60px; border-radius: 16px; display: grid; place-items: center;
  background: linear-gradient(145deg, var(--light-primary), rgba(197,202,233,.55));
  color: var(--dark-primary); margin-bottom: var(--sp-2);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.5), 0 3px 8px rgba(48,63,159,.14);
}
.pcard--featured .pcard__icon { background: var(--primary); color: #fff; }
.pcard h2 { font-size: 1.5rem; margin-bottom: 8px; }
.pcard p { margin-bottom: var(--sp-3); flex: 1; }
.platform-back { margin-top: var(--sp-5); }
.platform-back a { font-weight: 600; }

html.no-scroll, body.no-scroll { overflow: hidden; height: 100%; }

/* ---------- 18. Scroll-reveal ---------- */
.reveal { opacity: 1; transform: none; transition: opacity .6s ease, transform .6s ease; }
.reveal.is-hidden { opacity: 0; transform: translateY(24px); }
@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- 19. Mobile navigation (responsive) ---------- */
@media (max-width: 900px) {
  .navbar__links {
    position: fixed; top: 0; right: 0; left: auto; bottom: 0;
    width: min(82vw, 320px); height: 100vh; height: 100dvh;
    flex-direction: column; justify-content: flex-start; align-items: stretch;
    background: linear-gradient(165deg, #232f9e 0%, #3844b8 45%, #6672d6 100%);
    padding: calc(var(--nav-h) + var(--sp-5)) calc(var(--sp-4) + env(safe-area-inset-right, 0px))
             calc(var(--sp-4) + env(safe-area-inset-bottom, 0px))
             var(--sp-4);
    gap: 2px; margin-left: 0;
    opacity: 1; transform: translateX(100%);
    visibility: hidden; pointer-events: none;
    transition: transform var(--transition), visibility var(--transition);
    z-index: 999; overflow-y: auto;
    box-shadow: -12px 0 32px rgba(0,0,0,.28);
  }
  .navbar__links.is-open { transform: translateX(0); visibility: visible; pointer-events: auto; }
  .navbar__brand { margin-left: 0; }
  .navbar__brand img { height: 56px; filter: drop-shadow(0 2px 6px rgba(63,81,181,.2)); }
  .navbar__inner { padding-left: var(--sp-2); }

  .navbar__links-logo { display: flex; justify-content: center; margin-bottom: var(--sp-5); }
  .navbar__links-logo img { height: 46px; width: auto; }

  .navbar__links a.nav-link {
    width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 13px 2px; color: #fff; font-family: var(--font-body); font-weight: 500; font-size: 1rem;
    border-bottom: 1px solid rgba(255,255,255,.15);
  }
  .navbar__links a.nav-link:hover { color: #fff; background: rgba(255,255,255,.06); }
  .navbar__links a.nav-link::after { content: none; }
  .nav-link__row { display: flex; align-items: center; gap: 12px; min-width: 0; }
  .nav-link__icon {
    flex: 0 0 auto; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center;
    background: rgba(255,255,255,.16); color: #fff;
  }
  .nav-link__icon .material-symbols-rounded { font-size: 18px; }
  .nav-link__text { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .nav-link__chevron { flex: 0 0 auto; color: rgba(255,255,255,.75); font-size: 20px; }

  .navbar__backdrop {
    display: block;
    position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,.4);
    opacity: 0; visibility: hidden; pointer-events: none;
    transition: opacity var(--transition), visibility var(--transition);
    z-index: 998;
  }
  .navbar__backdrop.is-open { opacity: 1; visibility: visible; pointer-events: auto; }
  .navbar__actions--top { display: none; }
  .navbar__links .navbar__actions { display: none; }
  .navbar__cta-mobile {
    display: inline-flex; padding: 10px 15px; gap: 6px;
    font-size: .9rem; border-radius: 999px; box-shadow: var(--shadow-1);
  }
  .navbar__cta-mobile .material-symbols-rounded { font-size: 18px; }
  .navbar__toggle { display: block; }
  .hero { min-height: auto; }
  .hero__grid { grid-template-columns: 1fr; text-align: left; padding-block: var(--sp-3); padding-inline: var(--sp-2); }
  .hero-slider { position: relative; padding-inline: 36px; max-width: 100%; overflow: hidden; }
  .hero-slider__arrow--prev { left: 4px; }
  .hero-slider__arrow--next { right: 4px; }
  .hero h1 { font-size: clamp(1.4rem, 6vw, 2rem); }
  .hero__sub { max-width: 100%; font-size: .95rem; }
  .modules { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .features { grid-template-columns: 1fr; }
  .showcase { grid-template-columns: 1fr; }
  .showcase .reveal { text-align: center; }
  .showcase__visual { max-width: 620px; }
  .app { grid-template-columns: 1fr; text-align: center; }
  .app__feats { text-align: left; }
  .app__stores { justify-content: center; }
  .app img { max-width: 100% !important; height: auto !important; }
  .sectors { grid-template-columns: repeat(2, 1fr); }
  .contact-inner { grid-template-columns: 1fr; gap: 28px; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .maint__grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  :root { --sp-8: 48px; --sp-10: 64px; }
  .stats { grid-template-columns: repeat(2, 1fr); gap: var(--sp-1); }
  .sectors { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr; }
  .platform-cards { grid-template-columns: 1fr; }
  .hero { min-height: auto; background-position: center 30%; padding-bottom: var(--sp-4); }
  .hero h1 { font-size: clamp(1.1rem, 6vw, 1.6rem); }
  .hero__badge { font-size: .85rem; padding: 7px 16px; }
  .section { padding-block: var(--sp-6); }
  .hero__grid { padding-inline: var(--sp-2); }
}

/* ---------- 20. Theme toggle ---------- */
/* The theme now always mirrors the device setting (see JS/script.js) — no manual override, so the toggle button is hidden instead of removed from the markup. */
.theme-toggle { display: none !important; }
.theme-toggle {
  display: flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border: none; border-radius: 50%;
  background: var(--grey-100); color: var(--dark-primary); cursor: pointer;
  transition: background var(--transition), color var(--transition), transform var(--transition);
  flex-shrink: 0;
}
.theme-toggle:hover { background: var(--light-primary); transform: scale(1.08); }
.theme-toggle .material-symbols-rounded { font-size: 22px; }

/* ---------- 21. Dark mode ---------- */
body.dark-theme {
  --dark-primary: #7C8CDB;
  --primary: #9FA8DA;
  --light-primary: #3F51B5;
  --accent: #FFB74D;
  --icon: #FFFFFF;
  --text-primary: var(--dm-text);
  --text-secondary: var(--dm-text-secondary);
  --container: var(--dm-border);
  --text-body: var(--dm-text-body);
  --accent-ink: #FFB74D;
  --white: var(--dm-bg);
  --grey-50: var(--dm-surface);
  --grey-100: var(--dm-card);
  --shadow-1: 0 1px 2px rgba(0,0,0,.35), 0 2px 6px rgba(0,0,0,.35);
  --shadow-2: 0 2px 6px rgba(0,0,0,.4), 0 8px 20px rgba(0,0,0,.4);
  --shadow-4: 0 8px 18px rgba(0,0,0,.45), 0 22px 50px rgba(0,0,0,.5);
  background-color: var(--dm-bg) !important;
  color: var(--dm-text);
}
body.dark-theme .section--tint { background: var(--dm-surface); }
body.dark-theme .theme-toggle { background: var(--dm-card); color: var(--accent); }
body.dark-theme .theme-toggle .material-symbols-rounded { color: var(--accent); }
  body.dark-theme .hero { background-color: var(--dm-bg); background-image: url('../assets/fondo2.png'); background-size: cover; background-position: center; min-height: 100vh; }
body.dark-theme .navbar { background: var(--dark-primary); border-bottom-color: var(--dm-border); }
body.dark-theme .navbar__links a.nav-link { color: #fff !important; }
body.dark-theme .navbar__links a.nav-link:hover { color: rgba(255,255,255,.75) !important; }
body.dark-theme .nav-link { color: var(--dm-text-secondary) !important; }
@media (max-width: 900px) {
  /* Sidebar links stay white on the blue gradient in both themes */
  body.dark-theme .navbar__links a.nav-link,
  body.dark-theme .navbar__links a.nav-tray__head { color: #fff !important; }
}
body.dark-theme .navbar__inner .btn--primary { background: rgba(26,26,46,.95); color: var(--dm-text); }
body.dark-theme .navbar__inner .btn--accent { background: var(--accent); color: #1A1A2E; }
body.dark-theme .navbar__links { background: transparent; }
@media (max-width: 900px) {
  /* The sidebar keeps its own blue gradient in both themes — overrides the dark-theme flat bg above */
  body.dark-theme .navbar__links {
    background: linear-gradient(165deg, #232f9e 0%, #3844b8 45%, #6672d6 100%);
  }
}
body.dark-theme .navbar__toggle { color: #fff; }
body.dark-theme .hero__badge { background: linear-gradient(135deg, var(--primary), var(--accent)); color: #fff; }
body.dark-theme .hero__badge .dot { background: #81C784; }
body.dark-theme .hero h1 { color: var(--dm-text); }
body.dark-theme .hero h1 .grad {
  background: linear-gradient(120deg, #9FA8DA, #C5CAE9);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
body.dark-theme .hero__sub { color: var(--dm-text-body); }
body.dark-theme .section__head h2 { color: var(--dm-text); }
body.dark-theme .section__head p { color: var(--dm-text-body); }
body.dark-theme .section__eyebrow { background: var(--light-primary); color: var(--dm-text); }
body.dark-theme .module-card { background: var(--dm-card); border-color: var(--dm-border); }
body.dark-theme .module-card h3 { color: var(--dm-text); }
body.dark-theme .module-card p { color: var(--dm-text-body); }
body.dark-theme .module-card__tag { color: var(--primary); }
body.dark-theme .module-card__icon { background: var(--light-primary); color: var(--dm-text); }
body.dark-theme .feature { background: var(--dm-card); border-color: var(--dm-border); }
body.dark-theme .feature h4 { color: var(--dm-text); }
body.dark-theme .feature p { color: var(--dm-text-body); }
body.dark-theme .accordion { background: var(--dm-card); border-color: var(--dm-border); }
body.dark-theme .accordion__head { background: var(--dm-card); color: var(--dm-text); }
body.dark-theme .accordion__inner { color: var(--dm-text-secondary); }
body.dark-theme .accordion__head .material-symbols-rounded { color: var(--primary); }
body.dark-theme .accordion__inner li::before { color: #81C784; }
body.dark-theme .showcase__item h4 { color: var(--dm-text); }
body.dark-theme .showcase__item p { color: var(--dm-text-body); }
body.dark-theme .showcase__item .ico { background: var(--light-primary); color: var(--dm-text); }
body.dark-theme .sector { background: var(--dm-card); border-color: var(--dm-border); }
body.dark-theme .sector h4 { color: var(--dm-text); }
body.dark-theme .sector p { color: var(--dm-text-body); }
body.dark-theme .sector .material-symbols-rounded { background: var(--light-primary); color: var(--dm-text); }
body.dark-theme .chip { background: var(--dm-surface); color: var(--dm-text-secondary); border-color: var(--dm-border); }
body.dark-theme .stats .stat__num {
  background: linear-gradient(135deg, #9FA8DA, #C5CAE9);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
body.dark-theme .stats .stat__label { color: var(--dm-text-body); }
body.dark-theme .contact-info h3 { color: var(--dm-text); }
body.dark-theme .contact-item span { color: var(--dm-text-body); }
body.dark-theme .contact-form { background: linear-gradient(145deg, var(--dm-card), #252542); border-color: var(--dm-border); box-shadow: 0 10px 30px rgba(0,0,0,.28); }
body.dark-theme .contact-form__header { border-color: var(--dm-border); }
body.dark-theme .contact-form__header h3, body.dark-theme .form-label { color: var(--dm-text); }
body.dark-theme .contact-form__header p, body.dark-theme .contact-form__hint { color: var(--dm-text-body); }
body.dark-theme .contact-form input, body.dark-theme .contact-form textarea { background: var(--dm-surface); color: var(--dm-text); border-color: var(--dm-border); }
body.dark-theme .contact-form input:hover, body.dark-theme .contact-form textarea:hover { border-color: #62649A; }
body.dark-theme .contact-form .btn--submit { background: var(--dark-primary); }
body.dark-theme .contact-form .btn--submit:hover { background: var(--primary); }
body.dark-theme .contact-success { background: var(--dm-card); }
body.dark-theme .contact-success h3 { color: var(--dm-text); }
body.dark-theme .contact-success p { color: var(--dm-text-body); }
body.dark-theme .footer { background: #12122A; }
body.dark-theme .footer h4 { color: var(--dm-text); }
body.dark-theme .footer__bottom { border-color: var(--dm-border); }
body.dark-theme .footer a { color: var(--dm-text-secondary); }
body.dark-theme .footer__brand p { color: var(--dm-text-body); }
body.dark-theme .wa-float { background: #25D366; }
body.dark-theme .reveal.is-hidden { opacity: 0; }

/* ---------- 22. Mobile responsive tweaks ---------- */
@media (max-width: 600px) {
  .map-pattern { padding: 48px 0 !important; }
  .contact-inner { grid-template-columns: 1fr; gap: 28px; }
  .contact-form { padding: var(--sp-3) var(--sp-2); }
  .contact-form__grid { grid-template-columns: 1fr; }
  .form-group--full { grid-column: auto; }
  /* Smaller + closer to the edge so it doesn't crowd content on narrow screens,
     and leaves room for the footer so its text never sits under the button. */
  .wa-float {
    width: 50px; height: 50px;
    right: calc(14px + env(safe-area-inset-right, 0px));
    bottom: calc(14px + env(safe-area-inset-bottom, 0px));
  }
  .wa-float svg { width: 26px; height: 26px; }
  .footer { padding-bottom: calc(var(--sp-6) + 50px + env(safe-area-inset-bottom, 0px)); }
  .welcome-overlay__content { padding: 28px 18px; }
  .welcome-overlay__logo { height: 80px; }
  .welcome-overlay__title { font-size: clamp(1.6rem, 8vw, 2rem); }
  .welcome-overlay__subtitle { font-size: .92rem; }
  .welcome-overlay__tagline { font-size: .95rem; }
  .hero__grid { padding-block: var(--sp-4); }
  .hero__sub { font-size: 1rem; }
  .hero-slide img { max-height: 380px; }
  .hero-slide__caption { padding: 12px var(--sp-2); }
  .hero-slide__caption h3 { font-size: .92rem; }
  .stat__num { font-size: clamp(1.3rem, 5vw, 1.6rem); }
  .stat__label { font-size: .8rem; }
  .module-card { padding: var(--sp-3); }
  .module-card__icon { width: 46px; height: 46px; }
  .module-card__icon .material-symbols-rounded { font-size: 24px; }
  .chip { font-size: .72rem; padding: 4px 8px; }
  .feature { padding: var(--sp-2); }
  .feature__icon { width: 40px; height: 40px; }
  .showcase__item .ico { width: 36px; height: 36px; }
  .showcase__item .ico .material-symbols-rounded { font-size: 18px; }
  .accordion__head { padding: 14px 16px; font-size: .95rem; }
  .accordion__inner { padding: 0 16px 16px; }
  .accordion__inner ul { grid-template-columns: 1fr; }
  .app__phone { width: 160px; height: 320px; border-radius: 22px; padding: 6px; }
  .app__phone::before { width: 52px; height: 13px; top: 14px; }
  .app__phone .body { padding: 10px; gap: 7px; }
  .app__phone .card-row { height: 38px; }
  .app__stores img { height: 42px; }
  .pcard { padding: var(--sp-3); }
  .pcard__icon { width: 50px; height: 50px; }
  .contact-info { text-align: center; }
  .contact-item { justify-content: center; }
  .navbar__links { padding: var(--sp-3); }
  .navbar__links a.nav-link { font-size: 1.05rem; padding: 10px 0; }
  .footer__grid > * { text-align: center; }
  .footer__brand p { margin-inline: auto; }
  .footer__stores { justify-content: center; }
  .footer__social { justify-content: center; }
  .footer__bottom { justify-content: center; text-align: center; }
  .sector { padding: var(--sp-2) var(--sp-1); }
  .sector .material-symbols-rounded { font-size: 24px; width: 48px; height: 48px; border-radius: 12px; }
}

@media (max-width: 400px) {
  .hero h1 { font-size: clamp(1rem, 6vw, 1.3rem); }
  .hero__badge { font-size: .9rem; padding: 6px 14px; }
  .hero__badge .dot { width: 6px; height: 6px; }
  .hero-slide img { max-height: 280px; }
  .hero-slider__arrow { width: 42px; height: 42px; }
  .hero-slider__arrow--prev { left: 4px; }
  .hero-slider__arrow--next { right: 4px; }
  .hero-slider__arrow .material-symbols-rounded { font-size: 22px; }
  .hero-slider { padding-inline: 32px; }
  .stat__num { font-size: clamp(1.1rem, 5vw, 1.4rem); }
  .stats { gap: 4px; }
  .sectors { gap: var(--sp-1); }
  .footer__grid { gap: var(--sp-3); }
  .welcome-overlay__content { padding: 20px 14px; }
  .welcome-overlay__logo { height: 64px; }
  .welcome-overlay__loader span { width: 8px; height: 8px; }
  .navbar__links a.nav-link { font-size: 1rem; }
  .contact-form input, .contact-form textarea { padding: 12px 14px; font-size: 16px; }
}

/* Collapse the mobile platform CTA to an icon-only pill on very narrow screens */
@media (max-width: 360px) {
  .navbar__cta-mobile { padding: 10px 12px; }
  .navbar__cta-mobile .navbar__cta-label { display: none; }
}

/* ---------- 22b. Landscape phones (short height, lots of width) ---------- */
@media (max-height: 480px) and (orientation: landscape) {
  .hero__grid { padding-top: var(--sp-3); padding-bottom: var(--sp-3); }
  .hero-slide img { max-height: 220px; }
  .section { padding-block: var(--sp-4); }
  .welcome-overlay__content { padding: 16px 24px; }
  .welcome-overlay__logo { height: 56px; }
  .welcome-overlay__logo-wrap { margin-bottom: 10px; }
  .welcome-overlay__subtitle, .welcome-overlay__divider { display: none; }
  .welcome-overlay__tagline { margin-bottom: 12px; font-size: .95rem; }
  .navbar__links { padding-top: var(--sp-4); }
}

/* ---------- 23. Platform access modal ---------- */
html.modal-open, body.modal-open { overflow: hidden; }
.platform-modal { position: fixed; inset: 0; z-index: 9500; display: grid; place-items: center; padding: var(--sp-3); overflow: hidden; }
.platform-modal[hidden] { display: none; }
.platform-modal__backdrop {
  position: absolute; inset: 0; background: rgba(20,24,56,.5);
  backdrop-filter: blur(14px) saturate(130%); -webkit-backdrop-filter: blur(14px) saturate(130%);
}
.platform-modal__panel {
  position: relative; width: min(1040px, 100%);
  max-height: min(88dvh, 800px); overflow-y: auto; -webkit-overflow-scrolling: touch;
  background: var(--white); border: 1px solid var(--light-primary); border-radius: var(--radius);
  box-shadow: 0 30px 90px rgba(10,14,40,.45);
  padding: clamp(20px, 5vh, 56px) var(--sp-5) clamp(16px, 3vh, var(--sp-5)); text-align: center;
  animation: modalIn 280ms cubic-bezier(.2,.8,.25,1);
}
@keyframes modalIn { from { opacity: 0; transform: translateY(16px) scale(.98); } to { opacity: 1; transform: none; } }
.platform-modal__close {
  position: absolute; top: 14px; right: 14px; width: 44px; height: 44px; border: none; border-radius: 50%;
  background: var(--grey-100); color: var(--text-primary); cursor: pointer; display: grid; place-items: center;
  transition: background var(--transition), transform var(--transition);
}
.platform-modal__close:hover { background: var(--light-primary); transform: rotate(90deg); }
.platform-modal__sub { max-width: 54ch; margin: var(--sp-1) auto clamp(12px, 3vh, var(--sp-4)); text-align: center; }
/* Auto-flowing card grid: new .pcard entries flow automatically */
.platform-modal .platform-cards { grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); margin-top: var(--sp-3); gap: clamp(10px, 2vh, var(--sp-4)); }
.platform-modal .pcard { padding: clamp(14px, 3vh, var(--sp-5)); }
.platform-modal .pcard__icon { width: clamp(38px, 7vh, 68px); height: clamp(38px, 7vh, 68px); margin-bottom: clamp(4px, 1vh, var(--sp-2)); }
.platform-modal .pcard h3 { font-size: clamp(1.05rem, 2.8vh, 1.5rem); margin-bottom: 6px; }
.platform-modal .pcard p { font-size: clamp(.85rem, 2.1vh, 1.05rem); margin-bottom: clamp(8px, 2vh, var(--sp-3)); line-height: 1.45; }
@media (prefers-reduced-motion: reduce) { .platform-modal__panel { animation: none; } }
@media (max-width: 600px) {
  .platform-modal { padding: var(--sp-2); }
  .platform-modal__panel { padding: var(--sp-5) var(--sp-2) var(--sp-3); }
}
@media (max-height: 700px) {
  .platform-modal__sub { display: none; }
  .platform-modal__panel h2 { font-size: 1.5rem; margin-bottom: 4px; }
  .platform-modal .section__eyebrow { margin-bottom: 4px; }
}
body.dark-theme .platform-modal__panel { border-color: var(--dm-border); }
body.dark-theme .platform-modal__backdrop { background: rgba(0,0,0,.55); }
body.dark-theme .platform-modal__close { background: var(--dm-card); color: var(--dm-text); }
body.dark-theme .platform-modal__close:hover { background: var(--light-primary); }
body.dark-theme .hero-slide__caption { background: rgba(34,34,64,.85); border-color: var(--dm-border); }
body.dark-theme .hero-slide__caption h3 { color: var(--dm-text); }
body.dark-theme .hero-slide__caption p { color: var(--dm-text-body); }
body.dark-theme .hero-slider__dot { background: var(--dm-border); }
body.dark-theme .hero-slider__dot.is-active, body.dark-theme .hero-slider__dot:hover { background: var(--primary); }
body.dark-theme .hero-slider__arrow { background: rgba(34,34,64,.9); border-color: var(--dm-border); color: var(--dm-text); }
body.dark-theme .hero-slider__arrow:hover { background: var(--primary); color: #1A1A2E; }
body.dark-theme .pcard { background: var(--dm-card); border-color: var(--dm-border); }
body.dark-theme .pcard--featured { border-color: var(--primary); }
body.dark-theme .pcard h2, body.dark-theme .pcard h3 { color: var(--dm-text); }
body.dark-theme .pcard p { color: var(--dm-text-body); }
body.dark-theme .pcard__icon { background: var(--light-primary); color: var(--dm-text); }
body.dark-theme .pcard--featured .pcard__icon { background: var(--primary); color: #1A1A2E; }

/* ---------- 24. App selector (VRoute / VTracker) — reusable accordion pattern ---------- */
.app-select { max-width: 980px; margin-inline: auto; display: grid; gap: var(--sp-2); }
.app-select__hint { text-align: center; color: var(--text-secondary); font-size: .95rem; margin-bottom: var(--sp-1); }
.app-select .accordion {
  border-radius: var(--radius);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
/* Hovering the section separates both selectable options */
.app-select:hover .accordion { border-color: var(--primary); }
.app-select .accordion:hover { transform: translateY(-2px); box-shadow: var(--shadow-2); }
.app-option__head { padding: 20px 24px; }
.app-option__main { display: flex; align-items: center; gap: 16px; text-align: left; }
.app-option__icon {
  width: 52px; height: 52px; flex: 0 0 auto; border-radius: 14px; display: grid; place-items: center;
  background: linear-gradient(145deg, var(--light-primary), rgba(197,202,233,.55));
  color: var(--dark-primary); box-shadow: inset 0 1px 0 rgba(255,255,255,.5);
}
.app-option__icon .material-symbols-rounded { font-size: 26px; }
.app-option__title { display: block; font-family: var(--font-head); font-size: 1.15rem; font-weight: 700; }
.app-option__tag { display: block; font-size: .82rem; color: var(--text-body); font-weight: 400; margin-top: 2px; }
/* Keep the app icon stable — only the arrow rotates on open */
.app-select .accordion.is-open .app-option__icon .material-symbols-rounded { transform: none; }
/* Taller body: app detail (mockup + features) exceeds the generic accordion cap */
.app-select .accordion.is-open .accordion__body { max-height: 1800px; overflow-y: auto; }
.app-select .accordion__inner { padding: var(--sp-2) var(--sp-3) var(--sp-4); overflow: hidden; }
.app-select .accordion__inner .app { overflow: hidden; }
/* Neutralize generic accordion list styles for the app feature lists */
.app-select .accordion__inner .app__feats { display: grid; grid-template-columns: 1fr; gap: 12px; }
.app-select .accordion__inner .app__feats li { padding-left: 30px; font-size: 1rem; }
.app-select .accordion__inner .app__feats li::before { content: none; }
body.dark-theme .app-option__icon { background: var(--light-primary); color: var(--dm-text); }
body.dark-theme .app-option__title { color: var(--dm-text); }
body.dark-theme .app-option__tag { color: var(--dm-text-body); }

/* ---------- 25. "Mobile App" nav tray — reusable accordion pattern ---------- */
/* Strips the card finish carried by .accordion: in the navbar the trigger is a plain nav-link and the panel floats. Overflow must return to visible or the absolutely-positioned body gets clipped by .accordion's own overflow:hidden. */
.nav-tray { position: relative; border: 0; border-radius: 0; overflow: visible; background: none; }
.navbar__links a.nav-tray__head {
  width: auto; padding: 0; background: none; cursor: pointer;
  display: inline-flex; align-items: center; gap: 2px;
  font-family: var(--font-body); font-weight: 500; font-size: .98rem;
}
.navbar__links a.nav-tray__head:hover { background: none; }
.nav-tray__head .material-symbols-rounded { font-size: 20px; color: var(--primary); }
/* The default .accordion__head::after underline would show beneath the floating panel */
.navbar__links a.nav-tray__head::after { content: none; }
.nav-tray .accordion__body {
  position: absolute; top: calc(100% + 16px); left: 50%; transform: translateX(-50%);
  width: min(360px, calc(100vw - 32px));
  background: var(--white); border: 1px solid var(--light-primary);
  border-radius: var(--radius); box-shadow: var(--shadow-4);
  opacity: 0; visibility: hidden;
  transition: max-height var(--transition), opacity var(--transition), visibility var(--transition);
}
.nav-tray.is-open .accordion__body { max-height: 320px; opacity: 1; visibility: visible; }
.nav-tray__inner { padding: 8px; display: grid; gap: 4px; }
.nav-tray__item {
  display: flex; align-items: center; gap: 12px; padding: 10px 12px;
  border-radius: var(--radius-sm);
  transition: background var(--transition), transform var(--transition);
}
.nav-tray__item:hover { background: var(--grey-50); transform: translateX(2px); }
.nav-tray__icon {
  flex: 0 0 auto; width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center;
  background: linear-gradient(145deg, var(--light-primary), rgba(197,202,233,.55));
  color: var(--dark-primary); box-shadow: inset 0 1px 0 rgba(255,255,255,.5);
}
.nav-tray__icon .material-symbols-rounded { font-size: 22px; color: inherit; }
.nav-tray__text { display: block; text-align: left; }
.nav-tray__title { display: block; font-family: var(--font-head); font-weight: 700; font-size: 1rem; color: var(--text-primary); }
.nav-tray__tag { display: block; font-size: .78rem; color: var(--text-body); line-height: 1.35; margin-top: 2px; }

@media (max-width: 900px) {
  /* Inside the slide-out menu the tray expands in place instead of floating, styled to
     match the sidebar's icon-row nav-links (see section 19) */
  .nav-tray { width: 100%; }
  .navbar__links a.nav-tray__head {
    width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 13px 2px; color: #fff; font-family: var(--font-body); font-weight: 500; font-size: 1rem;
    border-bottom: 1px solid rgba(255,255,255,.15);
  }
  .navbar__links a.nav-tray__head:hover { color: #fff; background: rgba(255,255,255,.06); }
  .nav-tray__head .material-symbols-rounded { color: rgba(255,255,255,.75); font-size: 20px; }
  .nav-tray .accordion__body {
    position: static; transform: none; width: 100%; margin-top: 10px;
    background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.18);
    box-shadow: none; opacity: 1; visibility: visible;
  }
  /* A closed tray must not leave its margin or border visible beneath App Móvil. */
  .nav-tray:not(.is-open) .accordion__body {
    margin-top: 0; background: transparent; border-color: transparent;
  }
  .nav-tray.is-open .accordion__body { max-height: 320px; }
  /* VRoute / VTracker rows inherit the light-theme palette — flip them for the blue sidebar */
  .navbar__links .nav-tray__item:hover { background: rgba(255,255,255,.08); }
  .navbar__links .nav-tray__icon { background: rgba(255,255,255,.16); color: #fff; box-shadow: none; }
  .navbar__links .nav-tray__title { color: #fff; }
  .navbar__links .nav-tray__tag { color: rgba(255,255,255,.72); }
}

/* body.dark-theme .accordion wins specificity over .nav-tray — restore it explicitly */
body.dark-theme .nav-tray { background: none; border: 0; }
body.dark-theme .nav-tray .accordion__body { background: var(--dm-card); border-color: var(--dm-border); }
body.dark-theme .nav-tray__item:hover { background: rgba(255,255,255,.06); }
body.dark-theme .nav-tray__icon { background: var(--light-primary); color: var(--dm-text); }
body.dark-theme .nav-tray__title { color: var(--dm-text); }
body.dark-theme .nav-tray__tag { color: var(--dm-text-body); }
@media (max-width: 900px) {
  /* Sidebar's VRoute/VTracker rows stay on the white-on-blue palette in dark theme too */
  body.dark-theme .navbar__links .nav-tray:not(.is-open) .accordion__body {
    margin-top: 0; background: transparent; border-color: transparent;
  }
  body.dark-theme .navbar__links .nav-tray__icon { background: rgba(255,255,255,.16); color: #fff; }
  body.dark-theme .navbar__links .nav-tray__title { color: #fff; }
  body.dark-theme .navbar__links .nav-tray__tag { color: rgba(255,255,255,.72); }
}

/* ---------- 26. Landing visual polish ---------- */
.skip-link {
  position: fixed; top: 12px; left: 12px; z-index: 10000; padding: 10px 14px;
  border-radius: 8px; background: var(--dark-primary); color: var(--white); font-weight: 700;
  transform: translateY(-160%); transition: transform var(--transition);
}
.skip-link:focus { transform: translateY(0); color: var(--white); }

.section__head { max-width: 760px; margin-bottom: var(--sp-8); }
.section__head h2, .section-title {
  font-size: clamp(1.85rem, 3.2vw, 2.65rem); line-height: 1.12; margin-bottom: var(--sp-2);
}
.section__head p { max-width: 66ch; margin-inline: auto; font-size: 1.03rem; line-height: 1.7; }
.hero { isolation: isolate; min-height: clamp(690px, 92vh, 860px); overflow: hidden; background-position: center; }
.hero::before {
  background: linear-gradient(104deg, rgba(5,10,30,.9) 0%, rgba(10,18,55,.8) 43%, rgba(16,24,64,.46) 100%);
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(circle at 82% 18%, rgba(92,107,192,.33), transparent 31%),
              radial-gradient(circle at 16% 88%, rgba(255,152,0,.14), transparent 26%);
}
.hero__grid { min-height: calc(100vh - var(--nav-h)); align-content: center; gap: var(--sp-4); padding-block: var(--sp-5); }
.hero__copy { max-width: 580px; padding-block: var(--sp-4); }
.hero h1 { font-size: clamp(2.1rem, 3.9vw, 3.25rem); line-height: 1.06; letter-spacing: -.035em; margin-bottom: var(--sp-3); }
.hero h1 .grad { background: linear-gradient(120deg, #FFFFFF 8%, #C5CAE9 76%, #FFCC80); -webkit-background-clip: text; background-clip: text; }
.hero__sub { max-width: 48ch; font-size: clamp(1rem, 1.25vw, 1.13rem); line-height: 1.7; margin-bottom: 0; color: rgba(255,255,255,.88); }
.hero-slider { position: relative; }
.hero-slide img { filter: drop-shadow(0 28px 58px rgba(0,0,0,.34)); }
.hero-slider__dots { margin-top: var(--sp-3); }
.hero-slider__dot { background: rgba(255,255,255,.4); }
.hero-slider__dot.is-active, .hero-slider__dot:hover { background: var(--accent); }

.modules, .features { align-items: stretch; }
.module-card, .feature { position: relative; overflow: hidden; border-color: rgba(63,81,181,.16); }
.module-card { padding: 30px; background: linear-gradient(145deg, #FFFFFF 0%, #F8F9FF 100%); }
.module-card::before {
  content: ""; position: absolute; top: 0; left: var(--sp-3); right: var(--sp-3); height: 3px;
  border-radius: 0 0 999px 999px; background: linear-gradient(90deg, var(--primary), #7986CB);
  opacity: 0; transition: opacity var(--transition);
}
.module-card:hover::before { opacity: 1; }
.module-card h3 { font-size: 1.32rem; }
.module-card > p, .feature p { line-height: 1.65; }
.chip { background: rgba(63,81,181,.055); border-color: rgba(63,81,181,.16); }
.maint {
  padding: clamp(28px, 4vw, 48px); border: 1px solid rgba(63,81,181,.14); border-radius: 24px;
  background: linear-gradient(145deg, rgba(238,240,251,.82), rgba(255,255,255,.92));
}
.maint .section__head { margin-bottom: var(--sp-4) !important; }
.feature { background: rgba(255,255,255,.9); }
.features .feature { padding: 28px; }
.feature:hover { border-color: rgba(63,81,181,.38); box-shadow: var(--shadow-4); }
.feature__icon { box-shadow: 0 6px 16px rgba(255,152,0,.24); }

.showcase { gap: clamp(32px, 6vw, 72px); }
.showcase__item {
  padding: 14px; border: 1px solid transparent; border-radius: 14px;
  transition: border-color var(--transition), background var(--transition), transform var(--transition);
}
.showcase__item:hover { border-color: rgba(63,81,181,.16); background: rgba(63,81,181,.045); transform: translateX(4px); }
.showcase__visual { filter: drop-shadow(0 22px 34px rgba(23,29,74,.13)); }

.sectors { gap: var(--sp-3); }
.sector { padding: 28px var(--sp-2); background: linear-gradient(155deg, #FFFFFF, #F8F9FF); border-color: rgba(63,81,181,.15); }
.sector h4 { margin-top: 12px; }

.map-pattern {
  background-color: #F7F8FE;
  background-image: radial-gradient(circle at 10% 10%, rgba(63,81,181,.09), transparent 27%),
                    linear-gradient(135deg, rgba(255,255,255,.78), rgba(238,240,251,.72));
}
.section-title { text-align: center; margin-bottom: var(--sp-2); }
.contact-inner { margin-top: var(--sp-6); gap: clamp(28px, 5vw, 64px); }
.contact-info {
  position: relative; overflow: hidden; padding: var(--sp-4); border: 1px solid rgba(63,81,181,.16);
  border-radius: 20px; background: rgba(255,255,255,.84); box-shadow: var(--shadow-2);
}
.contact-info::before { content: ""; position: absolute; inset: 0 0 auto; height: 4px; background: linear-gradient(90deg, var(--primary), var(--accent)); }
.contact-info h3 { margin-top: 4px; font-size: 1.42rem; }
.contact-item { padding-block: 8px; }
.contact-item + .contact-item { border-top: 1px solid rgba(63,81,181,.1); }
.contact-item a { color: var(--text-body); font-size: 1rem; font-weight: 500; }
.contact-item a:hover { color: var(--primary); }
.contact-quick-link { margin-top: var(--sp-2); }
.btn--whatsapp { min-height: 48px; box-shadow: 0 8px 16px rgba(37,211,102,.18); }
.contact-form { border-radius: 20px; }

.footer { position: relative; overflow: hidden; }
.footer::before { content: none; }
.footer .container { position: relative; }

body.dark-theme .maint { background: linear-gradient(145deg, var(--dm-surface), var(--dm-card)); border-color: var(--dm-border); }
body.dark-theme .module-card, body.dark-theme .feature, body.dark-theme .sector { background: linear-gradient(145deg, var(--dm-card), #252542); border-color: var(--dm-border); }
body.dark-theme .chip { background: var(--dm-surface); border-color: var(--dm-border); }
body.dark-theme .showcase__item:hover { background: rgba(197,202,233,.08); border-color: var(--dm-border); }
body.dark-theme .map-pattern { background-color: var(--dm-bg); background-image: radial-gradient(circle at 10% 10%, rgba(92,107,192,.22), transparent 27%); }
body.dark-theme .contact-info { background: linear-gradient(145deg, var(--dm-card), #252542); border-color: var(--dm-border); box-shadow: 0 10px 30px rgba(0,0,0,.28); }
body.dark-theme .contact-item + .contact-item { border-color: var(--dm-border); }
body.dark-theme .contact-item a { color: var(--dm-text-body); }

@media (max-width: 900px) {
  .hero { min-height: auto; }
  .hero__grid { min-height: auto; grid-template-columns: 1fr; gap: var(--sp-2); padding-block: var(--sp-6); }
  .hero__copy { max-width: 700px; margin-inline: auto; padding-block: 0; text-align: center; }
  .hero__badge { margin-inline: auto; }
  .hero__sub { margin-inline: auto; text-align: center; }
  .hero-slider { max-width: 720px; }
  .navbar__links { width: min(88vw, 360px); padding-top: calc(var(--nav-h) + var(--sp-3)); }
  .module-card, .features .feature { padding: var(--sp-3); }
  .maint { padding: var(--sp-3); }
  .showcase__item { text-align: left; }
}

@media (max-width: 600px) {
  .section__head { margin-bottom: var(--sp-6); }
  .section__head h2, .section-title { font-size: clamp(1.65rem, 8vw, 2.1rem); }
  .section__head p { font-size: .98rem; }
  .hero__grid { padding-block: var(--sp-5); }
  .hero h1 { font-size: clamp(1.95rem, 9vw, 2.45rem); }
  .hero-slider { padding-inline: 34px; }
  .hero-slider__arrow--prev { left: 0; }
  .hero-slider__arrow--next { right: 0; }
  .module-card, .features .feature, .sector { padding: var(--sp-3); }
  .maint { border-radius: 18px; padding: var(--sp-2); }
  .contact-info { padding: var(--sp-3); }
  .contact-item { justify-content: flex-start; text-align: left; }
}

/* ---------- 27. Product storytelling layer ---------- */
.workflow-section { overflow: hidden; background: linear-gradient(180deg, #F7F8FE 0%, #FFFFFF 100%); }
.workflow { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-3); margin: 0; padding: 0; list-style: none; }
.workflow::before {
  content: ""; position: absolute; top: 69px; left: 18%; right: 18%; height: 2px; z-index: 0;
  background: linear-gradient(90deg, var(--light-primary), rgba(63,81,181,.42), var(--light-primary));
}
.workflow__step {
  position: relative; z-index: 1; min-height: 252px; padding: 32px var(--sp-3) var(--sp-3);
  border: 1px solid rgba(63,81,181,.15); border-radius: 20px; background: rgba(255,255,255,.92);
  box-shadow: var(--shadow-1); transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.workflow__number { position: absolute; top: 18px; right: 20px; color: rgba(63,81,181,.28); font-family: var(--font-head); font-size: 1.15rem; font-weight: 800; }
.workflow__icon {
  width: 74px; height: 74px; display: grid; place-items: center; margin-bottom: var(--sp-2); border-radius: 22px;
  background: linear-gradient(145deg, var(--primary), #5C6BC0); color: var(--white); font-size: 33px;
  box-shadow: 0 8px 18px rgba(63,81,181,.26);
}
.workflow__step:nth-child(2) .workflow__icon { background: linear-gradient(145deg, #FB8C00, var(--accent)); box-shadow: 0 8px 18px rgba(255,152,0,.26); }
.workflow__step:nth-child(3) .workflow__icon { background: linear-gradient(145deg, #43A047, #66BB6A); box-shadow: 0 8px 18px rgba(67,160,71,.24); }
.workflow__step h3 { margin-bottom: 8px; font-size: 1.3rem; }
.workflow__step p { font-size: .96rem; line-height: 1.65; }

@media (hover: hover) {
  .workflow__step:hover { transform: translateY(-5px); border-color: rgba(63,81,181,.38); box-shadow: var(--shadow-4); }
}

body.dark-theme .workflow-section { background: linear-gradient(180deg, var(--dm-surface), var(--dm-bg)); }
body.dark-theme .workflow__step { background: linear-gradient(145deg, var(--dm-card), #252542); border-color: var(--dm-border); }
body.dark-theme .workflow__step h3 { color: var(--dm-text); }
body.dark-theme .workflow__step p { color: var(--dm-text-body); }
body.dark-theme .workflow::before { background: linear-gradient(90deg, var(--dm-border), rgba(197,202,233,.4), var(--dm-border)); }

@media (max-width: 900px) {
  .workflow { gap: var(--sp-2); }
  .workflow__step { min-height: 0; padding: 28px var(--sp-2) var(--sp-3); }
}

@media (max-width: 600px) {
  .workflow { grid-template-columns: 1fr; }
  .workflow::before { display: none; }
  .workflow__step { min-height: 0; padding: var(--sp-3); }
  .workflow__icon { width: 64px; height: 64px; border-radius: 19px; font-size: 28px; }
}

/* ---------- 28. Phone-first refinements ---------- */
@media (max-width: 600px) {
  html { scroll-padding-top: calc(var(--nav-h) + 4px); }
  body { font-size: 16px; line-height: 1.58; }
  .container { padding-inline: max(16px, env(safe-area-inset-left, 0px), env(safe-area-inset-right, 0px)); }
  .section { padding-block: 56px; }

  .navbar__inner { min-height: var(--nav-h); padding-block: 8px; gap: 8px; }
  .navbar__right { gap: 2px; }
  .navbar__cta-mobile { min-height: 44px; padding: 10px 14px; }
  .navbar__toggle { width: 44px; height: 44px; padding: 7px; display: grid; place-items: center; }
  .navbar__links { width: min(92vw, 360px); padding-inline: var(--sp-3); }
  .navbar__links a.nav-link, .navbar__links a.nav-tray__head { min-height: 48px; }

  .hero__grid { padding-inline: 0; padding-block: 48px 40px; }
  .hero__copy { text-wrap: balance; }
  .hero__sub { max-width: 34ch; }
  .hero-slider { margin-top: 6px; padding-inline: 38px; }
  .hero-slider__arrow { width: 44px; height: 44px; }
  .hero-slider__dots { gap: 14px; margin-top: var(--sp-2); }
  .hero-slider__dot::after { inset: -17px; }

  .section__head { margin-bottom: 36px; }
  .section__head p { max-width: 35ch; line-height: 1.62; }
  .module-card, .features .feature, .sector, .workflow__step { border-radius: 16px; }
  .module-card { gap: var(--sp-3); }
  .module-card__content > p, .feature p, .workflow__step p, .showcase__item p {
    text-align: left; hyphens: none;
  }
  .maint { margin-top: var(--sp-6); }

  .showcase { gap: var(--sp-4); }
  .showcase__item { gap: 12px; padding: 12px 8px; }
  .showcase__item .ico { width: 42px; height: 42px; }
  .showcase__visual { width: min(100%, 520px); }

  .sectors { gap: 12px; }
  .sector { min-height: 154px; display: flex; flex-direction: column; justify-content: center; }
  .sector h4 { font-size: .98rem; }
  .sector p { font-size: .8rem; line-height: 1.35; }

  .app-select { gap: 12px; }
  .app-option__head { padding: 16px; }
  .app-option__main { gap: 12px; }
  .app-option__icon { width: 46px; height: 46px; border-radius: 13px; }
  .app-option__title { font-size: 1.04rem; }
  .app-select .accordion__inner { padding: var(--sp-2); }
  .app-select .accordion.is-open .accordion__body { max-height: 3200px; }
  .app__stores { justify-content: center; gap: 10px; }
  .app__stores img { height: 40px; }

  .contact-inner { margin-top: var(--sp-4); }
  .contact-info, .contact-form { border-radius: 16px; }
  .contact-item { gap: 12px; }
  .contact-item i { width: 40px; height: 40px; border-radius: 11px; }
  .contact-item a, .contact-item span { overflow-wrap: anywhere; }
  .contact-form { gap: var(--sp-2); }
  .contact-form__header { padding-bottom: var(--sp-2); }
  .form-input { min-height: 48px; font-size: 16px; }
  .form-textarea { min-height: 132px; }
  .btn--submit, .btn--whatsapp { min-height: 48px; }

  .footer { padding-top: var(--sp-6); }
  .footer__grid { gap: var(--sp-4); }
  .footer ul { gap: 4px; }
  .footer a { display: inline-block; padding-block: 6px; }
  .footer__bottom { line-height: 1.45; }

  .platform-modal__panel { border-radius: 18px; }
  .platform-modal__close { width: 44px; height: 44px; }
}

@media (max-width: 380px) {
  .container { padding-inline: 14px; }
  .navbar__inner { gap: 2px; }
  .navbar__cta-mobile { padding-inline: 11px; }
  .hero h1 { font-size: clamp(1.78rem, 9vw, 2.05rem); }
  .hero__badge { font-size: .76rem; padding: 7px 12px; }
  .hero-slider { padding-inline: 32px; }
  .hero-slider__arrow { width: 40px; height: 40px; }
  .section { padding-block: 48px; }
  .module-card, .features .feature, .workflow__step, .contact-info { padding: var(--sp-2); }
  .contact-form { padding: var(--sp-2); }
  .contact-form__header h3 { font-size: 1.22rem; }
  .app__stores img { height: 36px; }
  .wa-float { width: 48px; height: 48px; }
}

@media (max-height: 500px) and (orientation: landscape) {
  .hero__grid { padding-block: var(--sp-3); }
  .hero__copy { padding-block: 0; }
  .hero__badge { margin-bottom: var(--sp-2); }
  .hero h1 { margin-bottom: var(--sp-2); }
  .hero-slider { max-width: 560px; }
  .hero-slide img { max-height: 230px; }
}

/* ---------- 29. Alternating section backgrounds ---------- */
#modulos, #como-funciona, #sectores { background: var(--white); }
#porque, #plataforma, #contacto {
  background-color: #E8EAF4;
  background-image: linear-gradient(180deg, #F0F1F8 0%, #E4E6F1 100%);
}
.workflow-section { background: var(--white); }
body.dark-theme #modulos, body.dark-theme #como-funciona, body.dark-theme #sectores { background: var(--dm-bg); }
body.dark-theme #porque, body.dark-theme #plataforma, body.dark-theme #contacto { background: var(--dm-surface); }
