/* =============================================================
   EASYNET — styles.css
   1. Tokens
   2. Reset & base
   3. Utilities
   4. Typography helpers
   5. Buttons
   6. Header / nav
   7. Hero + dashboard mockup
   8. Sections & cards
   9. Footer
   10. WhatsApp float
   11. Reveal / effects
   12. Responsive
   13. Reduced motion
   ============================================================= */

/* 1. TOKENS ---------------------------------------------------- */
:root {
  --brand:        #3a28db;
  --brand-600:    #4c3ae6;
  --brand-700:    #2a1cb0;
  --brand-soft:   #eee9ff;
  --brand-tint:   #f5f2ff;

  --accent:       #17b55c;
  --accent-600:   #12a151;
  --accent-soft:  #e2f6ea;

  --ink:          #0f0a37;   /* deep violet — dark sections */
  --ink-2:        #17114d;

  --text:         #191a2e;
  --muted:        #5b5d78;
  --muted-light:  rgba(255,255,255,.72);

  --bg:           #ffffff;
  --surface:      #f6f7fb;
  --line:         #e7e8f2;
  --line-strong:  #d7d9e8;

  --container:    1200px;
  --radius:       18px;
  --radius-sm:    12px;

  --shadow-sm:    0 1px 2px rgba(20,16,58,.04), 0 6px 16px -10px rgba(20,16,58,.18);
  --shadow-md:    0 24px 50px -30px rgba(20,16,58,.34);
  --shadow-brand: 0 16px 40px -16px rgba(58,40,219,.5);

  --ease-out:     cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft:    cubic-bezier(0.25, 0.46, 0.45, 0.94);

  --sans:    "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --display: "Space Grotesk", "Inter", system-ui, sans-serif;
}

/* 2. RESET & BASE ------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; margin: 0; }

html {
  -webkit-text-size-adjust: 100%;
  tab-size: 2;
  overflow-x: clip;
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  overscroll-behavior-y: none;
}

img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; padding: 0; }
p { text-wrap: pretty; }

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.02em;
  text-wrap: balance;
  color: var(--text);
}

::selection { background: var(--brand); color: #fff; }

:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip-link {
  position: fixed; top: -100px; left: 1rem;
  padding: .7rem 1.1rem; background: var(--brand); color: #fff;
  z-index: 2000; border-radius: 10px; font-weight: 600;
  transition: top .2s var(--ease-out);
}
.skip-link:focus { top: 1rem; }

/* 3. UTILITIES ------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(1.15rem, 4vw, 2.5rem);
}

.section {
  position: relative;
  padding-block: clamp(4rem, 9vw, 7.5rem);
}
.section-surface { background: var(--surface); }

.section-dark {
  background: var(--ink);
  color: #fff;
  overflow: clip;
}
.section-dark h1, .section-dark h2, .section-dark h3, .section-dark h4 { color: #fff; }
.section-dark .section-lead { color: var(--muted-light); }

.dark-glow {
  position: absolute;
  inset: -40% -10% auto -10%;
  height: 70%;
  background:
    radial-gradient(38% 60% at 78% 20%, rgba(76,58,230,.38), transparent 70%),
    radial-gradient(32% 50% at 12% 8%, rgba(23,181,92,.20), transparent 72%);
  filter: blur(30px);
  pointer-events: none;
}

.ic {
  width: 24px; height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}
.ic-16 { width: 16px; height: 16px; }

/* 4. TYPOGRAPHY HELPERS -------------------------------------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  font-family: var(--sans);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 1.1rem;
}
.eyebrow-line {
  width: 30px; height: 2px;
  background: var(--brand);
  border-radius: 2px;
}
.eyebrow-light { color: #fff; }
.eyebrow-light .eyebrow-line { background: var(--accent); }

.section-head {
  max-width: 760px;
  margin-bottom: clamp(2.5rem, 5vw, 3.75rem);
}
.section-head h2 {
  font-size: clamp(1.85rem, 4vw, 2.9rem);
}
.section-lead {
  margin-top: 1.1rem;
  font-size: clamp(1rem, 1.4vw, 1.12rem);
  color: var(--muted);
}
.section-lead + .section-lead { margin-top: .85rem; }

.section-cta {
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  text-align: center;
}

/* 5. BUTTONS ------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  padding: .95rem 1.6rem;
  border-radius: 999px;
  font-family: var(--sans);
  font-weight: 600;
  font-size: .98rem;
  line-height: 1;
  letter-spacing: -0.01em;
  transition: transform .25s var(--ease-out), box-shadow .25s var(--ease-out),
              background-color .25s var(--ease-out), color .25s var(--ease-out),
              border-color .25s var(--ease-out);
  will-change: transform;
}
.btn-sm { padding: .72rem 1.2rem; font-size: .9rem; }
.btn-lg { padding: 1.15rem 2.1rem; font-size: 1.05rem; }

.btn-primary {
  background: var(--brand);
  color: #fff;
  box-shadow: var(--shadow-brand);
}
.btn-primary:hover { background: var(--brand-700); transform: translateY(-2px); box-shadow: 0 22px 48px -18px rgba(58,40,219,.62); }
.btn-primary:active { transform: translateY(0); }

.btn-ghost {
  background: #fff;
  color: var(--text);
  border: 1px solid var(--line-strong);
}
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.btn-ghost .ic { transition: transform .25s var(--ease-out); }
.btn-ghost:hover .ic { transform: translateX(3px); }

.btn-on-dark {
  background: #fff;
  color: var(--ink);
}
.btn-on-dark:hover { background: var(--accent); color: #fff; transform: translateY(-2px); box-shadow: 0 22px 44px -20px rgba(23,181,92,.6); }

/* 6. HEADER / NAV ----------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255,255,255,.82);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease-out), box-shadow .3s var(--ease-out), background-color .3s var(--ease-out);
}
.site-header.is-stuck {
  border-color: var(--line);
  box-shadow: 0 8px 30px -22px rgba(20,16,58,.4);
}
@supports not (backdrop-filter: blur(10px)) {
  .site-header { background: #fff; }
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  height: 82px;
}
.brand { display: flex; align-items: center; flex: none; }
.brand-logo {
  height: 52px;
  width: auto;
  transition: height .3s var(--ease-out);
}
.site-header.is-stuck .brand-logo { height: 46px; }

.nav { margin-left: auto; }
.nav-list { display: flex; align-items: center; gap: .35rem; }
.nav-link {
  position: relative;
  display: inline-block;
  padding: .55rem .85rem;
  font-weight: 500;
  font-size: .95rem;
  color: var(--muted);
  border-radius: 8px;
  transition: color .2s var(--ease-out);
}
.nav-link::after {
  content: "";
  position: absolute;
  left: .85rem; right: .85rem;
  bottom: .35rem;
  height: 2px;
  background: var(--brand);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s var(--ease-out);
}
.nav-link:hover { color: var(--text); }
.nav-link:hover::after,
.nav-link.is-active::after { transform: scaleX(1); }
.nav-link.is-active { color: var(--brand); }

.header-cta { flex: none; }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  border-radius: 10px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  margin-left: auto;
}
.nav-toggle span {
  width: 22px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform .3s var(--ease-out), opacity .2s var(--ease-out);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  border-top: 1px solid var(--line);
  background: #fff;
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: max-height .4s var(--ease-out), opacity .3s var(--ease-out);
}
.mobile-menu.is-open { max-height: 460px; opacity: 1; }
.mobile-menu[hidden] { display: none; }
.mobile-menu nav {
  display: flex;
  flex-direction: column;
  padding: 1rem clamp(1.15rem, 4vw, 2.5rem) 1.75rem;
  gap: .25rem;
}
.mobile-link {
  padding: .95rem .25rem;
  font-weight: 500;
  font-size: 1.05rem;
  color: var(--text);
  border-bottom: 1px solid var(--line);
}
.mobile-cta { margin-top: 1.1rem; }

/* 7. HERO ------------------------------------------------------ */
.hero {
  position: relative;
  padding-top: clamp(3rem, 7vw, 5.5rem);
  padding-bottom: clamp(4rem, 9vw, 7rem);
  overflow: clip;
}
.hero-bg {
  position: absolute;
  inset: -20% -10% auto -10%;
  height: 120%;
  background:
    radial-gradient(40% 46% at 82% 12%, rgba(58,40,219,.10), transparent 70%),
    radial-gradient(34% 40% at 8% 4%, rgba(23,181,92,.09), transparent 72%);
  pointer-events: none;
  z-index: 0;
}
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(20,16,58,.05) 1px, transparent 1px);
  background-size: 34px 34px;
  -webkit-mask-image: linear-gradient(180deg, #000, transparent 78%);
  mask-image: linear-gradient(180deg, #000, transparent 78%);
  opacity: .5;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2.5rem, 6vw, 4rem);
  align-items: center;
}

.hero-title {
  font-size: clamp(2.3rem, 5.6vw, 4rem);
  line-height: 1.04;
  max-width: 15ch;
}
.hero-sub {
  margin-top: 1.4rem;
  font-size: clamp(1.05rem, 1.7vw, 1.22rem);
  color: var(--muted);
  max-width: 46ch;
}
.hero-actions {
  margin-top: 2.1rem;
  display: flex;
  flex-wrap: wrap;
  gap: .9rem;
}
.hero-note {
  margin-top: 2.4rem;
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
}
.hero-tags {
  margin-top: .9rem;
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}
.hero-tags li {
  padding: .4rem .85rem;
  font-size: .8rem;
  font-weight: 600;
  color: var(--brand-700);
  background: var(--brand-soft);
  border-radius: 999px;
}

/* ---- Dashboard mockup ---- */
.hero-visual {
  position: relative;
  perspective: 1600px;
}
.dash {
  position: relative;
  border-radius: 20px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 40px 80px -40px rgba(20,16,58,.4), 0 8px 24px -16px rgba(20,16,58,.2);
  overflow: hidden;
  transform: rotateY(-9deg) rotateX(3deg);
  transform-style: preserve-3d;
}
.dash-chrome {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .8rem 1rem;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
.dash-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--line-strong); }
.dash-dot:nth-child(1) { background: #ff5f57; }
.dash-dot:nth-child(2) { background: #febc2e; }
.dash-dot:nth-child(3) { background: #28c840; }
.dash-title {
  margin-left: .6rem;
  font-size: .8rem;
  font-weight: 600;
  color: var(--muted);
}
.dash-illus {
  margin-left: auto;
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--muted);
  background: #fff;
  border: 1px solid var(--line);
  padding: .28rem .55rem;
  border-radius: 999px;
}

.dash-body { display: flex; }
.dash-side {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.4rem;
  padding: 1.4rem .85rem;
  background: var(--brand);
  color: #fff;
}
.dash-side .ic { width: 20px; height: 20px; opacity: .82; }
.dash-side .ic:first-of-type { opacity: 1; }
.dash-side-mark {
  width: 26px; height: 26px;
  border-radius: 8px;
  background: linear-gradient(140deg, #fff, rgba(255,255,255,.55));
  margin-bottom: .4rem;
}

.dash-main {
  flex: 1;
  min-width: 0;
  padding: 1.2rem;
  display: grid;
  gap: 1rem;
  background:
    linear-gradient(180deg, #fdfdff, #f8f9ff);
}

.dash-kpis {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: .7rem;
}
.kpi {
  padding: .85rem .9rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
}
.kpi-label { display: block; font-size: .72rem; color: var(--muted); font-weight: 500; }
.kpi-value {
  display: block;
  margin-top: .3rem;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  color: var(--text);
}
.kpi-delta {
  display: inline-block;
  margin-top: .35rem;
  font-size: .7rem;
  font-weight: 600;
  padding: .12rem .4rem;
  border-radius: 6px;
}
.kpi-delta.up { color: var(--accent-600); background: var(--accent-soft); }
.kpi-delta.flat { color: var(--muted); background: var(--surface); }

.dash-row {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: .7rem;
}
.dash-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: .85rem .9rem;
}
.dash-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: .74rem;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: .7rem;
}
.dash-chip {
  font-size: .64rem;
  font-weight: 600;
  color: var(--brand-700);
  background: var(--brand-soft);
  border-radius: 999px;
  padding: .16rem .5rem;
  text-transform: none;
  letter-spacing: 0;
}
.dash-chip.up { color: var(--accent-600); background: var(--accent-soft); }

.bars {
  display: flex;
  align-items: flex-end;
  gap: .4rem;
  height: 92px;
}
.bars span {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .35rem;
  height: 100%;
  justify-content: flex-end;
}
.bars i {
  display: block;
  width: 100%;
  max-width: 16px;
  height: var(--h);
  border-radius: 5px 5px 3px 3px;
  background: linear-gradient(180deg, var(--brand-600), var(--brand));
  transform: scaleY(0);
  transform-origin: bottom;
}
.bars span:last-child i { background: linear-gradient(180deg, #2ecb74, var(--accent)); }
.bars b { font-size: .6rem; font-weight: 600; color: var(--muted); }
.is-visible .bars i { animation: barGrow .9s var(--ease-out) forwards; }
.bars span:nth-child(1) i { animation-delay: .05s; }
.bars span:nth-child(2) i { animation-delay: .11s; }
.bars span:nth-child(3) i { animation-delay: .17s; }
.bars span:nth-child(4) i { animation-delay: .23s; }
.bars span:nth-child(5) i { animation-delay: .29s; }
.bars span:nth-child(6) i { animation-delay: .35s; }
.bars span:nth-child(7) i { animation-delay: .41s; }
@keyframes barGrow { to { transform: scaleY(1); } }

.area-svg { width: 100%; height: 92px; }
.area-line {
  stroke-dasharray: 640;
  stroke-dashoffset: 640;
}
.area-fill { opacity: 0; }
.is-visible .area-line { animation: draw 1.5s var(--ease-out) .2s forwards; }
.is-visible .area-fill { animation: fadeIn .8s ease .9s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fadeIn { to { opacity: 1; } }

.dash-stock ul { display: grid; gap: .55rem; }
.dash-stock li {
  display: grid;
  grid-template-columns: 1fr 64px auto;
  align-items: center;
  gap: .6rem;
  font-size: .74rem;
  color: var(--text);
}
.dash-stock i {
  height: 6px;
  border-radius: 999px;
  background: var(--line);
  position: relative;
  overflow: hidden;
}
.dash-stock i::after {
  content: "";
  position: absolute;
  inset: 0;
  width: var(--s);
  background: var(--brand);
  border-radius: 999px;
}
.dash-stock i.low::after { background: #f0a020; }
.dash-stock b { font-weight: 700; font-family: var(--display); font-size: .78rem; }

.dash-float {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .6rem .85rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow-md);
  font-size: .78rem;
  font-weight: 600;
  color: var(--text);
  z-index: 2;
}
.dash-float .ic { color: var(--brand); }
.float-a { top: 12%; left: -6%; }
.float-b { bottom: 12%; right: -5%; }
.float-b .ic { color: var(--accent-600); }
.is-visible .float-a { animation: floatBob 5s ease-in-out infinite; }
.is-visible .float-b { animation: floatBob 5.6s ease-in-out .4s infinite; }
@keyframes floatBob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-9px); }
}

/* 8. SECTIONS & CARDS ---------------------------------------- */
.grid { display: grid; gap: clamp(1rem, 2.2vw, 1.5rem); }
.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
.grid-4 { grid-template-columns: 1fr; }

.card {
  padding: clamp(1.4rem, 2.6vw, 1.9rem);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform .3s var(--ease-out), box-shadow .3s var(--ease-out), border-color .3s var(--ease-out);
}
.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: var(--line-strong);
}
.card h3 {
  font-size: 1.12rem;
  margin-bottom: .5rem;
}
.card p { color: var(--muted); font-size: .96rem; }

.card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px; height: 48px;
  border-radius: 14px;
  background: var(--brand-soft);
  color: var(--brand);
  margin-bottom: 1.1rem;
  transition: transform .3s var(--ease-out), background-color .3s var(--ease-out);
}
.card:hover .card-icon { transform: scale(1.06) rotate(-3deg); }
.solution-card:nth-child(3n+2) .card-icon,
.value-card:nth-child(4n+2) .card-icon,
.benefit-card:nth-child(3n+2) .card-icon {
  background: var(--accent-soft);
  color: var(--accent-600);
}

.solution-card { position: relative; overflow: hidden; }
.solution-card::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--brand), var(--accent));
  transform: scaleY(0);
  transform-origin: top;
  transition: transform .35s var(--ease-out);
}
.solution-card:hover::before { transform: scaleY(1); }

/* featured service: Desarrollo de software */
.solution-featured {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  padding: clamp(1.6rem, 3.4vw, 2.4rem);
  margin-bottom: clamp(1rem, 2.2vw, 1.5rem);
  border-radius: var(--radius);
  background: linear-gradient(150deg, var(--brand-tint), #fff 62%);
  border: 1px solid var(--brand-soft);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform .3s var(--ease-out), box-shadow .3s var(--ease-out);
}
.solution-featured::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, var(--brand), var(--accent));
}
.solution-featured:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.solution-featured .card-icon {
  width: 58px; height: 58px;
  margin-bottom: 0;
  background: var(--brand);
  color: #fff;
}
.solution-featured:hover .card-icon { transform: scale(1.06) rotate(-3deg); }
.featured-kicker {
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: .4rem;
}
.solution-featured h3 { font-size: clamp(1.3rem, 2.4vw, 1.6rem); margin-bottom: .5rem; }
.solution-featured .solution-featured-body p { color: var(--muted); font-size: 1rem; max-width: 56ch; }

@media (min-width: 720px) {
  .solution-featured { flex-direction: row; align-items: center; gap: 1.6rem; }
  .solution-featured .card-icon { flex: none; width: 64px; height: 64px; }
}

/* dark cards (Hiopos) */
.card-dark {
  background: rgba(255,255,255,.04);
  border-color: rgba(255,255,255,.12);
}
.card-dark:hover {
  background: rgba(255,255,255,.07);
  border-color: rgba(255,255,255,.22);
  box-shadow: 0 30px 60px -34px rgba(0,0,0,.6);
}
.card-dark p { color: var(--muted-light); }
.icon-ghost {
  background: rgba(255,255,255,.1);
  color: #fff;
}
.card-dark:hover .icon-ghost { background: var(--accent); }

.highlight-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  margin-top: clamp(2rem, 4vw, 3rem);
  padding-top: clamp(1.75rem, 3.5vw, 2.5rem);
  border-top: 1px solid rgba(255,255,255,.14);
}
.highlight-row li {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-weight: 600;
  font-size: .96rem;
}
.highlight-row .ic { color: var(--accent); }

/* split layout */
.split {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: start;
}
.split-copy .btn { margin-top: 1.75rem; }
.split-list { display: grid; gap: 1rem; }
.split-list li,
.contact-list li {
  display: flex;
  gap: 1rem;
  padding: 1.35rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform .3s var(--ease-out), box-shadow .3s var(--ease-out);
}
.split-list li:hover,
.contact-list li:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.split-list h3,
.contact-list h3 { font-size: 1.05rem; margin-bottom: .25rem; }
.split-list p,
.contact-list p { color: var(--muted); font-size: .95rem; }
.split-list .card-icon,
.contact-list .card-icon { margin-bottom: 0; }
.contact-list a:hover { color: var(--brand); }

.about-location {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  margin-top: 1.75rem;
  font-weight: 600;
  color: var(--text);
}
.about-location .ic { color: var(--brand); }

.about-panel {
  padding: clamp(1.5rem, 3vw, 2.25rem);
  border-radius: var(--radius);
  background: linear-gradient(160deg, var(--brand-tint), #fff);
  border: 1px solid var(--line);
}
.about-panel ul { display: grid; gap: .35rem; }
.about-panel li {
  display: flex;
  align-items: center;
  gap: .85rem;
  padding: .85rem .5rem;
  font-weight: 600;
  font-size: .98rem;
  border-bottom: 1px solid var(--line);
}
.about-panel li:last-child { border-bottom: 0; }
.about-panel .ic { color: var(--brand); width: 22px; height: 22px; }

/* sector cards */
.sector-card {
  padding: clamp(1.8rem, 4vw, 2.75rem);
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid var(--line);
  transition: transform .3s var(--ease-out), box-shadow .3s var(--ease-out);
}
.sector-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.sector-card h3 { font-size: 1.3rem; margin-bottom: .55rem; }
.sector-card p { color: var(--muted); }
.sector-card .card-icon { width: 54px; height: 54px; }
.sector-card:nth-child(2) .card-icon { background: var(--accent-soft); color: var(--accent-600); }

/* partners */
.partners {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  max-width: 720px;
}
.partner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  padding: 2.4rem 1.5rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform .3s var(--ease-out), box-shadow .3s var(--ease-out);
}
.partner:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.partner-name {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.65rem;
  letter-spacing: .14em;
  color: var(--brand);
}
.partner:nth-child(2) .partner-name { color: var(--accent-600); }
.partner-role {
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
}

/* CTA final */
.cta-final { text-align: center; }
.cta-final-inner {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin-inline: auto;
}
.cta-final h2 { font-size: clamp(2rem, 4.6vw, 3.15rem); }
.cta-final p {
  margin: 1.1rem auto 2.2rem;
  color: var(--muted-light);
  font-size: 1.1rem;
  max-width: 44ch;
}

/* 9. FOOTER (compact) --------------------------------------- */
.site-footer {
  background: var(--ink);
  color: var(--muted-light);
}
.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.4rem;
  padding-block: clamp(2rem, 4vw, 2.75rem);
}
.footer-brand { display: flex; flex-direction: column; align-items: center; gap: .55rem; }
.footer-brand img { height: 38px; width: auto; }
.footer-tagline { font-size: .88rem; max-width: 34ch; }

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .4rem 1.4rem;
}
.footer-links a { font-size: .92rem; transition: color .2s var(--ease-out); }

.footer-social { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem 1.5rem; }
.footer-social a {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  font-size: .9rem;
  transition: color .2s var(--ease-out);
}
.footer-links a:hover, .footer-social a:hover { color: #fff; }
.footer-social .ic { color: var(--accent); }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .2rem 1rem;
  padding-block: 1rem;
  border-top: 1px solid rgba(255,255,255,.1);
}
.footer-bottom p { font-size: .8rem; }

@media (min-width: 860px) {
  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
  .footer-brand { align-items: flex-start; }
}

/* 10. WHATSAPP FLOAT ---------------------------------------- */
.wa-float {
  position: fixed;
  right: max(1.1rem, env(safe-area-inset-right));
  bottom: max(1.1rem, env(safe-area-inset-bottom));
  z-index: 900;
  width: 56px; height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  box-shadow: 0 14px 34px -10px rgba(37,211,102,.6);
  transform: translateY(20px) scale(.7);
  opacity: 0;
  pointer-events: none;
  transition: transform .35s var(--ease-out), opacity .35s var(--ease-out), box-shadow .25s var(--ease-out);
}
.wa-float.is-shown { transform: none; opacity: 1; pointer-events: auto; }
.wa-float:hover { transform: scale(1.07); box-shadow: 0 18px 40px -8px rgba(37,211,102,.7); }
.wa-float .ic { width: 30px; height: 30px; fill: currentColor; stroke: none; }

/* 11. REVEAL / EFFECTS ------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .7s var(--ease-out), transform .7s var(--ease-out);
}
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-split] { opacity: 1; transform: none; }
/* No-JS / JS-failure safety: only hide reveals when scripting is confirmed */
html:not(.js) .reveal { opacity: 1 !important; transform: none !important; }
html:not(.js) .wa-float { transform: none; opacity: 1; pointer-events: auto; }

.grid .reveal.is-visible { transition-delay: calc(var(--i, 0) * 70ms); }
.split-list .reveal.is-visible,
.contact-list .reveal.is-visible { transition-delay: calc(var(--i, 0) * 80ms); }

.is-ready .hero .reveal { }

/* =============================================================
   11b. STAGE-2 COMPONENTS  (feature split, media rows,
        partners, companies, advisor CTA)
   ============================================================= */

/* ---- Feature split: texto + media ---- */
.feature-split {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1.75rem, 4vw, 3.25rem);
  align-items: center;
}
.section-head + .feature-split { margin-top: clamp(1.5rem, 3vw, 2.25rem); }

.feature-media {
  position: relative;
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
  background: var(--surface);
}
.feature-media img { width: 100%; height: auto; display: block; }
.section-dark .feature-media { border-color: rgba(255,255,255,.14); }

.media-tag {
  position: absolute;
  left: .8rem;
  bottom: .8rem;
  display: inline-block;
  padding: .4rem .75rem;
  font-size: .74rem;
  font-weight: 600;
  color: var(--text);
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-radius: 999px;
}

.feature-intro {
  font-size: clamp(1rem, 1.5vw, 1.1rem);
  color: var(--muted);
  margin-bottom: 1.5rem;
}
.section-dark .feature-intro { color: var(--muted-light); }

.check-list { display: grid; gap: .9rem; margin-bottom: 1.6rem; }
.check-list li {
  display: flex;
  gap: .75rem;
  align-items: flex-start;
  font-size: .96rem;
  color: var(--muted);
}
.check-list .ic { color: var(--brand); margin-top: .2rem; }
.check-list strong { color: var(--text); font-weight: 600; }
.section-dark .check-list li { color: var(--muted-light); }
.section-dark .check-list .ic { color: var(--accent); }
.section-dark .check-list strong { color: #fff; }

.chip-row { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip-row li {
  padding: .42rem .9rem;
  font-size: .8rem;
  font-weight: 600;
  color: var(--brand-700);
  background: var(--brand-soft);
  border-radius: 999px;
}
.section-dark .chip-row li {
  color: #fff;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.16);
}

.feature-foot {
  display: flex;
  align-items: center;
  gap: .8rem;
  margin-top: 1.6rem;
  font-size: .9rem;
  color: var(--muted);
}
.partner-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px; height: 52px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid var(--line);
  flex: none;
  overflow: hidden;
}
.partner-badge img { width: 44px; height: 44px; object-fit: contain; }

/* ---- Media row (galería pequeña dentro de HIOPOS) ---- */
.media-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(.9rem, 2vw, 1.4rem);
  margin-top: clamp(2rem, 4vw, 3rem);
}
.media-row figure {
  margin: 0;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.03);
}
.media-row img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}
.media-row figcaption {
  padding: .7rem .85rem;
  font-size: .82rem;
  font-weight: 600;
  color: var(--muted-light);
  text-align: center;
}

/* ---- Advisor CTA ---- */
.advisor-section { padding-block: clamp(2.5rem, 5vw, 4rem); }
.advisor-panel {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.5rem;
  padding: clamp(1.75rem, 4vw, 2.75rem);
  border-radius: var(--radius);
  background: linear-gradient(150deg, var(--brand-tint), #fff);
  border: 1px solid var(--line);
}
.advisor-panel h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
.advisor-panel p { margin-top: .6rem; color: var(--muted); max-width: 52ch; }
.advisor-panel .btn { flex: none; }

/* ---- Empresas que usan las soluciones ---- */
.company-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1rem, 2.2vw, 1.5rem);
}
.company-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .35rem;
  padding: clamp(1.4rem, 2.6vw, 1.8rem);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform .3s var(--ease-out), box-shadow .3s var(--ease-out), border-color .3s var(--ease-out);
}
.company-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--line-strong);
}
.company-name {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
  color: var(--text);
}
.company-type { font-size: .9rem; color: var(--muted); }
.company-tag {
  margin-top: .7rem;
  padding: .28rem .7rem;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .04em;
  border-radius: 999px;
  color: var(--brand-700);
  background: var(--brand-soft);
}
.company-tag.tag-alt { color: var(--accent-600); background: var(--accent-soft); }
.company-note {
  margin-top: clamp(1.5rem, 3vw, 2.25rem);
  font-size: .9rem;
  color: var(--muted);
  text-align: center;
}

/* ---- Aliados: logos reales ---- */
.partner-logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(1rem, 2.5vw, 1.75rem);
  margin-bottom: clamp(1.75rem, 3.5vw, 2.5rem);
}
.partner-logo {
  flex: 1 1 240px;
  max-width: 340px;
  min-height: 132px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem 2rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.partner-logo img { width: auto; object-fit: contain; }
.partner-logo:nth-child(1) img { max-height: 46px; }
.partner-logo:nth-child(2) img { max-height: 104px; }

.partner-card-name {
  display: block;
  margin-bottom: .5rem;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.3rem;
  letter-spacing: .06em;
  color: var(--brand);
}
.partner-card:nth-child(2) .partner-card-name { color: var(--accent-600); }
.partner-card p { color: var(--muted); }

/* 12. RESPONSIVE ------------------------------------------- */
@media (min-width: 620px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .dash-float { font-size: .8rem; }
}

@media (min-width: 760px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .partners { grid-template-columns: repeat(2, 1fr); }
  .split-list { grid-template-columns: 1fr; }
  .media-row { grid-template-columns: repeat(3, 1fr); }
  .company-grid { grid-template-columns: repeat(2, 1fr); }
  .advisor-panel {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

@media (min-width: 900px) {
  .feature-split { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 980px) {
  .hero-grid { grid-template-columns: 1.02fr .98fr; }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
  .benefits-grid { grid-template-columns: repeat(3, 1fr); }
  .company-grid { grid-template-columns: repeat(4, 1fr); }
  .split { grid-template-columns: 1fr 1fr; gap: clamp(3rem, 6vw, 5rem); }
  #nosotros .split,
  #nube .split { grid-template-columns: 1.05fr .95fr; }
}

@media (max-width: 899px) {
  .feature-split { display: flex; flex-direction: column; }
  .feature-split-reverse .feature-media { order: -1; }
}

@media (min-width: 1180px) {
  .hero-title { font-size: 4rem; }
}

/* mobile nav switch */
@media (max-width: 940px) {
  .nav, .header-cta { display: none; }
  .nav-toggle { display: flex; }
  .header-inner { gap: 1rem; }
}

@media (max-width: 520px) {
  .hero-visual { margin-inline: -.25rem; }
  .dash { transform: none; }
  .dash-side { flex-direction: row; padding: .8rem; gap: 1rem; }
  .dash-side-mark { margin-bottom: 0; }
  .dash-body { flex-direction: column; }
  .dash-kpis { grid-template-columns: repeat(2, 1fr); }
  .dash-row { grid-template-columns: 1fr; }
  .float-a { left: 0; top: 6%; }
  .float-b { right: 0; bottom: 6%; }
  .dash-float { font-size: .72rem; padding: .5rem .7rem; }
  .btn { width: 100%; }
  .hero-actions .btn { width: 100%; }
  .section-cta .btn { width: 100%; }
  .advisor-panel .btn { width: 100%; }
}

/* 13. REDUCED MOTION ------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .is-visible .float-a,
  .is-visible .float-b { animation: none; }
  .reveal { transition-duration: .3s; }
}
