/* STI FACU RUIZ — Home V23 aprobada. Scope deliberado para no afectar /app ni otras páginas. */
:root {
  --sti-v23-blue: #2A4FD8;
  --sti-v23-blue-soft: #EEF3FF;
  --sti-v23-ink: #162033;
  --sti-v23-muted: #667085;
  --sti-v23-line: #E5EAF2;
  --sti-v23-card: #FFFFFF;
  --sti-v23-shadow: 0 24px 60px rgba(18, 31, 58, 0.12);
}

.sti-v23-brand {
  display: inline-flex !important;
  align-items: center !important;
  gap: 11px !important;
  text-decoration: none !important;
  min-width: max-content;
}

.sti-v23-brand > img,
.sti-v23-brand > picture {
  display: none !important;
}

.sti-v23-brand-icon {
  width: 50px;
  height: 50px;
  flex: 0 0 50px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(255,255,255,.42);
  box-shadow: 0 8px 24px rgba(0,0,0,.28), 0 0 0 3px rgba(42,79,216,.14);
}

.sti-v23-brand-logo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
}

.sti-v23-brand-copy {
  display: grid;
  gap: 1px;
  line-height: 1.12;
}

.sti-v23-brand-copy strong {
  color: #fff !important;
  font-size: 16px;
  letter-spacing: .025em;
  font-weight: 800;
  text-shadow: 0 1px 10px rgba(0,0,0,.28);
}

.sti-v23-brand-copy small {
  color: rgba(226, 233, 244, .82) !important;
  font-size: 11.5px;
  font-weight: 600;
  text-shadow: 0 1px 8px rgba(0,0,0,.24);
}

.sti-v23-hero-section {
  overflow: hidden;
}

.sti-v23-hero-section h1 {
  max-width: 760px !important;
  font-size: clamp(44px, 3.15vw, 62px) !important;
  line-height: .98 !important;
  letter-spacing: -.045em !important;
  text-wrap: balance;
}

.sti-v23-hero-layout {
  display: grid !important;
  grid-template-columns: minmax(0, 1.12fr) minmax(320px, .88fr) !important;
  gap: clamp(32px, 5vw, 72px) !important;
  align-items: center !important;
}

.sti-v23-hero-copy {
  min-width: 0;
}

.sti-v23-stats {
  margin-top: 26px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid var(--sti-v23-line);
  border-radius: 16px;
  background: rgba(255,255,255,.9);
  overflow: hidden;
  box-shadow: 0 12px 34px rgba(18,31,58,.06);
}

.sti-v23-stat {
  padding: 17px 18px 16px;
  min-width: 0;
  text-align: left;
}

.sti-v23-stat + .sti-v23-stat {
  border-left: 1px solid var(--sti-v23-line);
}

.sti-v23-stat strong {
  display: block;
  color: #2A4FD8;
  font-size: clamp(25px, 2.3vw, 34px);
  line-height: 1;
  font-weight: 800;
  letter-spacing: -.035em;
}


.sti-v23-stat--coverage strong {
  font-size: clamp(14px, 1.55vw, 20px);
  line-height: 1.12;
  letter-spacing: -.02em;
  white-space: normal;
}

.sti-v23-stat span {
  display: block;
  margin-top: 7px;
  color: var(--sti-v23-muted);
  font-size: 10px;
  line-height: 1.25;
  font-weight: 800;
  letter-spacing: .055em;
}

.sti-v23-profile-card {
  position: relative;
  padding: clamp(25px, 3vw, 34px);
  background: linear-gradient(155deg, #fff 0%, #fbfcff 74%, #f2f5ff 100%);
  border: 1px solid rgba(42,79,216,.15);
  border-radius: 24px;
  box-shadow: var(--sti-v23-shadow);
  overflow: hidden;
}

.sti-v23-profile-card::before {
  content: '';
  position: absolute;
  width: 160px;
  height: 160px;
  right: -70px;
  top: -75px;
  border-radius: 50%;
  background: rgba(42,79,216,.08);
  pointer-events: none;
}

.sti-v23-profile-head {
  display: flex;
  align-items: center;
  gap: 17px;
  position: relative;
}

.sti-v23-avatar-wrap {
  width: 94px;
  height: 94px;
  flex: 0 0 94px;
  border-radius: 50%;
  overflow: hidden;
  position: relative;
  background: #2A4FD8;
  border: 4px solid #fff;
  box-shadow: 0 8px 24px rgba(18,31,58,.16);
}

.sti-v23-avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 30%;
}

.sti-v23-avatar-fallback {
  display: none;
  width: 100%;
  height: 100%;
  place-items: center;
  color: #fff;
  font-weight: 800;
  font-size: 25px;
}

.sti-v23-kicker,
.sti-v23-milestone-label {
  display: inline-block;
  color: #2A4FD8;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .12em;
}

.sti-v23-profile-head h2 {
  margin: 4px 0 1px !important;
  color: var(--sti-v23-ink);
  font-size: 24px !important;
  line-height: 1.1 !important;
}

.sti-v23-profile-head p {
  margin: 0 !important;
  color: var(--sti-v23-muted);
  font-size: 14px;
}

.sti-v23-profile-card blockquote {
  margin: 24px 0 22px;
  padding: 0;
  border: 0;
  color: #344054;
  font-size: 16px;
  line-height: 1.55;
  font-weight: 600;
}

.sti-v23-profile-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0;
  border: 1px solid var(--sti-v23-line);
  border-radius: 16px;
  overflow: hidden;
  background: rgba(255,255,255,.78);
}

.sti-v23-profile-facts > div {
  padding: 14px 15px;
  min-width: 0;
}

.sti-v23-profile-facts > div:nth-child(even) { border-left: 1px solid var(--sti-v23-line); }
.sti-v23-profile-facts > div:nth-child(n+3) { border-top: 1px solid var(--sti-v23-line); }

.sti-v23-profile-facts dt {
  margin: 0 0 4px;
  color: var(--sti-v23-muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.sti-v23-profile-facts dd {
  margin: 0;
  color: var(--sti-v23-ink);
  font-size: 13px;
  line-height: 1.35;
  font-weight: 700;
}

.sti-v23-profile-facts a {
  color: #2A4FD8 !important;
  font-weight: 800;
  text-decoration: none;
}

.sti-v23-status-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 6px;
  border-radius: 50%;
  background: #18A957;
  box-shadow: 0 0 0 4px rgba(24,169,87,.10);
}

.sti-v23-status-line {
  display: inline-flex;
  align-items: center;
}

.sti-v23-status-open [data-sti-v23-status-text] {
  color: #067647;
}

.sti-v23-status-emergency .sti-v23-status-dot {
  background: #F79009;
  box-shadow: 0 0 0 4px rgba(247,144,9,.13);
}

.sti-v23-status-emergency [data-sti-v23-status-text] {
  color: #B54708;
}

.sti-v23-status [data-sti-v23-status-next] {
  display: block;
  margin-top: 4px;
  color: #667085;
  font-size: 10.5px;
  line-height: 1.3;
  font-weight: 650;
}

.sti-v23-emergency-cta {
  border-color: #F79009 !important;
  box-shadow: 0 0 0 3px rgba(247,144,9,.12) !important;
}

.sti-v23-history {
  padding: clamp(70px, 8vw, 112px) 0;
  background: linear-gradient(180deg, #F8FAFE 0%, #FFFFFF 100%);
  border-top: 1px solid #EDF0F5;
  border-bottom: 1px solid #EDF0F5;
}

.sti-v23-history-inner {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.sti-v23-history-intro {
  max-width: 800px;
}

.sti-v23-history-intro h2 {
  margin: 10px 0 18px !important;
  color: var(--sti-v23-ink);
  font-size: clamp(32px, 4vw, 52px) !important;
  line-height: 1.03 !important;
  letter-spacing: -.035em;
}

.sti-v23-history-intro p {
  margin: 0 0 13px;
  color: #475467;
  font-size: clamp(16px, 1.5vw, 18px);
  line-height: 1.65;
}

.sti-v23-timeline {
  position: relative;
  margin: 52px 0 0 8px;
  padding-left: 38px;
  max-width: 850px;
}

.sti-v23-timeline::before {
  content: '';
  position: absolute;
  left: 5px;
  top: 9px;
  bottom: 12px;
  width: 2px;
  background: linear-gradient(#2A4FD8, rgba(42,79,216,.14));
}

.sti-v23-milestone {
  position: relative;
  padding: 0 0 36px;
}

.sti-v23-milestone:last-child { padding-bottom: 6px; }

.sti-v23-timeline-dot {
  position: absolute;
  left: -39px;
  top: 5px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fff;
  border: 4px solid #2A4FD8;
  box-shadow: 0 0 0 5px #EEF3FF;
}

.sti-v23-milestone h3 {
  margin: 4px 0 6px !important;
  color: var(--sti-v23-ink);
  font-size: 22px !important;
  line-height: 1.2 !important;
}

.sti-v23-milestone p {
  margin: 0;
  max-width: 720px;
  color: #667085;
  font-size: 15px;
  line-height: 1.6;
}

.sti-v23-future {
  margin-top: 42px;
  max-width: 850px;
  padding: 27px 30px 29px;
  border: 2px dashed rgba(42,79,216,.28);
  border-radius: 20px;
  background: #EEF3FF;
}

.sti-v23-future h3 {
  margin: 6px 0 8px !important;
  color: var(--sti-v23-ink);
  font-size: 23px !important;
}

.sti-v23-future p {
  margin: 0;
  color: #475467;
  line-height: 1.58;
}

@media (max-width: 980px) {
  .sti-v23-hero-layout {
    grid-template-columns: minmax(0, 1fr) minmax(300px, .78fr) !important;
    gap: 28px !important;
  }
  .sti-v23-profile-card { padding: 24px; }
  .sti-v23-profile-head { gap: 13px; }
  .sti-v23-avatar-wrap { width: 72px; height: 72px; flex-basis: 72px; }
  .sti-v23-profile-facts { grid-template-columns: 1fr; }
  .sti-v23-profile-facts > div:nth-child(even) { border-left: 0; }
  .sti-v23-profile-facts > div:nth-child(n+2) { border-top: 1px solid var(--sti-v23-line); }
}

@media (max-width: 760px) {
  .sti-v23-hero-layout { grid-template-columns: 1fr !important; }
  .sti-v23-hero-section h1 { font-size: clamp(42px, 9vw, 58px) !important; max-width: 620px !important; }
  .sti-v23-profile-card { max-width: 560px; }
}

@media (max-width: 640px) {
  .sti-v23-hero-section h1 { font-size: clamp(38px, 12vw, 48px) !important; line-height: 1 !important; }
  .sti-v23-brand-icon { width: 42px; height: 42px; flex-basis: 42px; border-radius: 50%; }
  .sti-v23-brand-copy strong { font-size: 13px; }
  .sti-v23-brand-copy small { font-size: 10px; }
  .sti-v23-stats { grid-template-columns: 1fr; }
  .sti-v23-stat { display: grid; grid-template-columns: 78px 1fr; align-items: center; gap: 12px; }
  .sti-v23-stat + .sti-v23-stat { border-left: 0; border-top: 1px solid var(--sti-v23-line); }
  .sti-v23-stat span { margin-top: 0; }
  .sti-v23-profile-card { border-radius: 20px; }
  .sti-v23-history-inner { width: min(100% - 28px, 1120px); }
  .sti-v23-timeline { padding-left: 30px; margin-left: 5px; }
  .sti-v23-timeline-dot { left: -31px; }
  .sti-v23-future { padding: 22px; }
}

/* V23.5 MOBILE CORRECTIONS — safe area robusta + accesos inferiores con iconos. */
:root {
  --sti-v235-safe-top: max(48px, env(safe-area-inset-top, 0px));
}

@media (max-width: 760px) {
  .sti-v23-site-header {
    box-sizing: border-box !important;
    margin-top: var(--sti-v235-safe-top) !important;
    padding-top: 0 !important;
    min-height: 68px !important;
  }

  .sti-v23-site-header .sti-v23-brand {
    min-width: 0 !important;
    max-width: calc(100vw - 145px) !important;
  }

  .sti-v23-site-header .sti-v23-brand-copy {
    min-width: 0 !important;
  }

  .sti-v23-site-header .sti-v23-brand-copy strong,
  .sti-v23-site-header .sti-v23-brand-copy small {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .sti-v235-mobile-nav-link {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 4px !important;
    line-height: 1.05 !important;
    min-width: 0 !important;
  }

  .sti-v235-nav-icon {
    display: grid !important;
    place-items: center !important;
    width: 22px !important;
    height: 22px !important;
    color: #2A4FD8 !important;
  }

  .sti-v235-nav-icon svg {
    display: block !important;
    width: 22px !important;
    height: 22px !important;
    fill: none !important;
    stroke: currentColor !important;
    stroke-width: 1.8 !important;
    stroke-linecap: round !important;
    stroke-linejoin: round !important;
  }

  .sti-v235-nav-label {
    display: block !important;
    font-size: 10.5px !important;
    line-height: 1.05 !important;
    white-space: nowrap !important;
  }

  .sti-v23-stat--coverage {
    grid-template-columns: 1fr !important;
    gap: 3px !important;
  }

  .sti-v23-stat--coverage strong {
    font-size: 15px !important;
    line-height: 1.15 !important;
  }

  .sti-v23-stat--coverage span {
    font-size: 10px !important;
    margin-top: 3px !important;
  }
}

@media (max-width: 390px) {
  :root { --sti-v235-safe-top: max(44px, env(safe-area-inset-top, 0px)); }
  .sti-v23-brand-icon { width: 38px; height: 38px; flex-basis: 38px; }
  .sti-v23-brand-copy strong { font-size: 12px; }
  .sti-v23-brand-copy small { font-size: 9px; }
  .sti-v235-nav-label { font-size: 9.5px !important; }
}


/* V23.6 MOBILE GRADIENT DOCK — STI Gradient Pro + microinteracciones inspiradas en la referencia. */
@media (max-width: 650px) {
  .v22-services {
    background:
      radial-gradient(circle at 90% 0%, rgba(41, 211, 255, .15), transparent 34%),
      linear-gradient(180deg, #edf6ff 0%, #f8fbff 44%, #eaf4ff 100%) !important;
  }

  .v22-work {
    background:
      radial-gradient(circle at 6% 12%, rgba(10, 132, 255, .09), transparent 36%),
      linear-gradient(180deg, #f8fbff 0%, #edf5ff 100%) !important;
  }

  .v22-work-card {
    border-color: rgba(42, 111, 216, .16) !important;
    box-shadow: 0 18px 44px rgba(14, 71, 145, .10) !important;
  }

  .v22-mobile-dock.sti-v236-mobile-nav {
    --sti-v236-dock-height: 86px;
    position: fixed !important;
    left: 10px !important;
    right: 10px !important;
    bottom: calc(10px + env(safe-area-inset-bottom, 0px)) !important;
    z-index: 1200 !important;
    display: grid !important;
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
    align-items: stretch !important;
    min-height: var(--sti-v236-dock-height) !important;
    padding: 8px 7px 9px !important;
    border: 1px solid rgba(99, 183, 255, .28) !important;
    border-radius: 28px !important;
    overflow: hidden !important;
    isolation: isolate;
    background:
      radial-gradient(circle at 50% -30%, rgba(41, 211, 255, .23), transparent 48%),
      linear-gradient(145deg, rgba(5, 22, 45, .96) 0%, rgba(6, 38, 79, .94) 54%, rgba(8, 53, 105, .93) 100%) !important;
    -webkit-backdrop-filter: blur(24px) saturate(170%) !important;
    backdrop-filter: blur(24px) saturate(170%) !important;
    box-shadow:
      0 20px 55px rgba(0, 23, 55, .35),
      0 1px 0 rgba(255, 255, 255, .12) inset,
      0 -1px 0 rgba(0, 0, 0, .16) inset !important;
  }

  .v22-mobile-dock.sti-v236-mobile-nav::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: -2;
    background:
      linear-gradient(110deg, rgba(255,255,255,.06), transparent 32%, rgba(41,211,255,.05) 66%, transparent),
      radial-gradient(circle at 50% 120%, rgba(10,132,255,.18), transparent 44%);
  }

  .sti-v236-dock-indicator {
    position: absolute;
    top: 7px;
    left: 0;
    z-index: -1;
    width: 58px;
    height: 61px;
    border-radius: 20px;
    pointer-events: none;
    background: linear-gradient(135deg, #0a84ff 0%, #29d3ff 100%);
    box-shadow:
      0 12px 28px rgba(10, 132, 255, .36),
      0 0 28px rgba(41, 211, 255, .17),
      0 1px 0 rgba(255,255,255,.34) inset;
    transition:
      transform .38s cubic-bezier(.22, 1, .36, 1),
      width .38s cubic-bezier(.22, 1, .36, 1),
      opacity .22s ease;
    will-change: transform, width;
  }

  .sti-v236-dock-indicator::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -10px;
    width: 7px;
    height: 7px;
    transform: translateX(-50%);
    border-radius: 50%;
    background: #29d3ff;
    box-shadow: 0 0 14px rgba(41, 211, 255, .85);
  }

  .sti-v236-dock-indicator.is-immediate {
    transition: none !important;
  }

  .v22-mobile-dock.sti-v236-mobile-nav .sti-v235-mobile-nav-link {
    position: relative;
    z-index: 2;
    display: flex !important;
    min-width: 0 !important;
    min-height: 64px !important;
    padding: 7px 2px 4px !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 5px !important;
    border-radius: 19px !important;
    color: #a9bfdc !important;
    -webkit-tap-highlight-color: transparent;
    transition:
      transform .30s cubic-bezier(.22, 1, .36, 1),
      color .22s ease,
      opacity .22s ease !important;
  }

  .v22-mobile-dock.sti-v236-mobile-nav .sti-v235-nav-icon {
    display: grid !important;
    place-items: center !important;
    width: 25px !important;
    height: 25px !important;
    color: #9cc8ff !important;
    filter: drop-shadow(0 2px 8px rgba(10,132,255,.08));
    transition:
      transform .32s cubic-bezier(.22, 1, .36, 1),
      color .22s ease,
      filter .22s ease !important;
  }

  .v22-mobile-dock.sti-v236-mobile-nav .sti-v235-nav-icon svg {
    width: 25px !important;
    height: 25px !important;
    fill: none !important;
    stroke: currentColor !important;
    stroke-width: 1.72 !important;
    stroke-linecap: round !important;
    stroke-linejoin: round !important;
  }

  .v22-mobile-dock.sti-v236-mobile-nav .sti-v235-nav-label {
    display: block !important;
    max-width: 100%;
    color: #aebed4 !important;
    font-size: 10px !important;
    line-height: 1 !important;
    font-weight: 700 !important;
    letter-spacing: .005em;
    white-space: nowrap !important;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color .22s ease, transform .30s cubic-bezier(.22, 1, .36, 1) !important;
  }

  .v22-mobile-dock.sti-v236-mobile-nav .sti-v235-mobile-nav-link[data-sti-v236-key="Inicio"] .sti-v235-nav-icon { color: #8dbdff !important; }
  .v22-mobile-dock.sti-v236-mobile-nav .sti-v235-mobile-nav-link[data-sti-v236-key="Servicios"] .sti-v235-nav-icon { color: #52d6ff !important; }
  .v22-mobile-dock.sti-v236-mobile-nav .sti-v235-mobile-nav-link[data-sti-v236-key="Computadores"] .sti-v235-nav-icon { color: #91b5ff !important; }
  .v22-mobile-dock.sti-v236-mobile-nav .sti-v235-mobile-nav-link[data-sti-v236-key="Trabajos"] .sti-v235-nav-icon { color: #73c6ff !important; }
  .v22-mobile-dock.sti-v236-mobile-nav .sti-v235-mobile-nav-link[data-sti-v236-key="Contacto"] .sti-v235-nav-icon { color: #61dcf6 !important; }

  .v22-mobile-dock.sti-v236-mobile-nav .sti-v235-mobile-nav-link.is-active {
    color: #fff !important;
    transform: translateY(-4px) scale(1.02) !important;
  }

  .v22-mobile-dock.sti-v236-mobile-nav .sti-v235-mobile-nav-link.is-active .sti-v235-nav-icon {
    color: #fff !important;
    transform: translateY(-2px) scale(1.08) !important;
    filter: drop-shadow(0 5px 12px rgba(0, 31, 76, .24)) !important;
  }

  .v22-mobile-dock.sti-v236-mobile-nav .sti-v235-mobile-nav-link.is-active .sti-v235-nav-label {
    color: #fff !important;
    transform: translateY(-1px);
  }

  .v22-mobile-dock.sti-v236-mobile-nav .sti-v235-mobile-nav-link.is-pressing {
    transform: translateY(-2px) scale(.96) !important;
  }

  .cookie-banner {
    bottom: calc(112px + env(safe-area-inset-bottom, 0px)) !important;
  }
}

@media (max-width: 390px) {
  .v22-mobile-dock.sti-v236-mobile-nav {
    left: 7px !important;
    right: 7px !important;
    padding-left: 4px !important;
    padding-right: 4px !important;
  }

  .v22-mobile-dock.sti-v236-mobile-nav .sti-v235-nav-label {
    font-size: 9.2px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sti-v236-dock-indicator,
  .v22-mobile-dock.sti-v236-mobile-nav .sti-v235-mobile-nav-link,
  .v22-mobile-dock.sti-v236-mobile-nav .sti-v235-nav-icon,
  .v22-mobile-dock.sti-v236-mobile-nav .sti-v235-nav-label {
    transition: none !important;
  }
}
