/* =========================================================================
   Tico Services — hoja de estilos única, sin dependencias externas.
   Paleta tomada del logo: navy, slate y azul celeste.
   ========================================================================= */

:root {
  --navy:        #16233f;
  --navy-deep:   #0c1526;
  --navy-soft:   #22345c;
  --sky:         #3b9ddb;
  --sky-deep:    #2377b4;
  --sky-soft:    #e8f3fb;
  --slate:       #5a6675;
  --ink:         #101828;
  --muted:       #55657a;
  --line:        #e3eaf3;
  --bg-soft:     #f5f8fc;
  --white:       #ffffff;

  --radius:      16px;
  --radius-sm:   10px;
  --shadow-sm:   0 1px 2px rgba(16, 24, 40, .05), 0 1px 3px rgba(16, 24, 40, .06);
  --shadow:      0 4px 6px -2px rgba(16, 24, 40, .05), 0 12px 24px -6px rgba(16, 24, 40, .10);
  --shadow-lg:   0 20px 48px -12px rgba(12, 21, 38, .22);

  --container:   1160px;
  --header-h:    74px;

  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3 { line-height: 1.18; letter-spacing: -.022em; color: var(--navy); margin: 0 0 .5em; }
p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }

a { color: var(--sky-deep); text-decoration: none; }
a:hover { text-decoration: underline; }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px;
}

/* ---------------------------------------------------------------- skip -- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--navy);
  color: #fff;
  padding: 12px 18px;
  border-radius: 0 0 8px 0;
  z-index: 100;
}
.skip-link:focus { left: 0; }

:focus-visible {
  outline: 3px solid var(--sky);
  outline-offset: 3px;
  border-radius: 4px;
}

/* -------------------------------------------------------------- header -- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .88);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease, box-shadow .25s ease;
}
.site-header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 1px 12px rgba(16, 24, 40, .06);
}

.header-inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand { display: inline-flex; align-items: center; flex: 0 0 auto; }
.brand img { width: 216px; height: auto; }
.brand:hover { text-decoration: none; }

.nav { display: flex; align-items: center; gap: 32px; }
.nav__list {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav__list a {
  color: var(--navy);
  font-size: 15.5px;
  font-weight: 500;
  padding: 6px 0;
  position: relative;
}
.nav__list a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: var(--sky);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .22s ease;
}
.nav__list a:hover { text-decoration: none; }
.nav__list a:hover::after { transform: scaleX(1); }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: 10px;
  cursor: pointer;
  padding: 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.nav-toggle__bar {
  display: block;
  width: 19px; height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: transform .25s ease, opacity .2s ease;
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* --------------------------------------------------------------- hero -- */
.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(56px, 8vw, 104px) 0 clamp(48px, 6vw, 80px);
  background:
    radial-gradient(900px 420px at 78% -8%, rgba(59, 157, 219, .16), transparent 62%),
    radial-gradient(700px 380px at 8% 4%, rgba(90, 102, 117, .10), transparent 60%),
    linear-gradient(180deg, #fbfdff 0%, #f3f8fd 100%);
}
.hero__glow {
  position: absolute;
  top: -160px; right: -120px;
  width: 520px; height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(59, 157, 219, .18), transparent 62%);
  pointer-events: none;
}
.hero__inner { position: relative; max-width: 860px; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 22px;
  padding: 7px 15px 7px 12px;
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: .01em;
  color: var(--navy);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
}
.badge__dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--sky);
  box-shadow: 0 0 0 3px rgba(59, 157, 219, .22);
}

.hero__title {
  font-size: clamp(34px, 5.4vw, 58px);
  font-weight: 700;
  margin-bottom: 22px;
  color: var(--navy);
}
.grad {
  background: linear-gradient(100deg, var(--sky-deep), var(--sky) 60%, #6fc0ea);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__lead {
  font-size: clamp(17px, 2vw, 19.5px);
  color: var(--muted);
  max-width: 66ch;
  margin-bottom: 30px;
}

.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 44px; }

.stack-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.stack-strip li {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .02em;
  color: #3c4a63;
  background: rgba(255, 255, 255, .9);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 6px 13px;
}

/* ------------------------------------------------------------ buttons -- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: 10px;
  border: 1px solid transparent;
  font-family: inherit;
  font-size: 15.5px;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  transition: transform .16s ease, box-shadow .2s ease, background-color .2s ease, border-color .2s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  background: var(--navy);
  color: #fff;
  box-shadow: 0 8px 20px -8px rgba(22, 35, 63, .55);
}
.btn--primary:hover { background: var(--navy-soft); color: #fff; }

.btn--ghost {
  background: var(--white);
  color: var(--navy);
  border-color: var(--line);
  box-shadow: var(--shadow-sm);
}
.btn--ghost:hover { border-color: var(--sky); color: var(--navy); }

.btn--light { background: #fff; color: var(--navy); box-shadow: var(--shadow-lg); }
.btn--light:hover { color: var(--navy); }
.btn__icon { width: 19px; height: 19px; flex: 0 0 auto; }
.btn__arrow { font-size: 17px; line-height: 1; transition: transform .2s ease; }
.btn:hover .btn__arrow { transform: translateX(3px); }

.btn--sm { padding: 9px 17px; font-size: 14.5px; }
.btn--lg { padding: 16px 30px; font-size: 16.5px; }

/* ----------------------------------------------------------- sections -- */
.section { padding: clamp(60px, 8vw, 104px) 0; }
.section--soft { background: var(--bg-soft); }

.section__head { max-width: 700px; margin-bottom: 46px; }
.eyebrow {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--sky-deep);
  margin-bottom: 12px;
}
.section__title { font-size: clamp(26px, 3.4vw, 38px); margin-bottom: 14px; }
.section__lead { font-size: 17.5px; color: var(--muted); }

/* --------------------------------------------------------------- grid -- */
.grid { display: grid; gap: 24px; }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* -------------------------------------------------------------- cards -- */
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 28px 26px;
  box-shadow: var(--shadow-sm);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.section--soft .card { box-shadow: none; }
.card:hover {
  transform: translateY(-4px);
  border-color: #cfe1f0;
  box-shadow: var(--shadow);
}
.card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px; height: 48px;
  margin-bottom: 18px;
  border-radius: 12px;
  background: var(--sky-soft);
  color: var(--sky-deep);
  transition: background-color .22s ease, color .22s ease, transform .22s ease;
}
.card:hover .card__icon { background: var(--sky); color: #fff; transform: scale(1.04); }
.card__icon svg { width: 24px; height: 24px; }
.card__title { font-size: 19.5px; margin-bottom: 10px; }
.card__text { color: var(--muted); font-size: 16px; margin-bottom: 16px; }
.card__tags {
  margin: 0;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--slate);
}

/* -------------------------------------------------------------- steps -- */
.steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 26px;
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: step;
}
/* riel continuo que une las cuatro etapas */
.steps::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--line);
  border-radius: 3px;
}
.step {
  position: relative;
  z-index: 1;
  padding-top: 22px;
}
.step::before {
  content: "";
  position: absolute;
  top: -3px; left: 0;
  width: 46px; height: 3px;
  background: var(--sky);
  border-radius: 3px;
}
.step__num {
  display: block;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .1em;
  color: var(--sky-deep);
  margin-bottom: 10px;
}
.step__title { font-size: 19px; margin-bottom: 8px; }
.step__text { color: var(--muted); font-size: 15.5px; }

/* ---------------------------------------------------------------- cta -- */
.cta {
  background:
    radial-gradient(760px 340px at 88% 10%, rgba(59, 157, 219, .30), transparent 62%),
    linear-gradient(135deg, var(--navy-deep) 0%, var(--navy) 55%, var(--navy-soft) 100%);
  color: #fff;
  padding: clamp(52px, 7vw, 86px) 0;
}
.cta__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
}
.cta__text { flex: 1 1 460px; }
.cta__title { color: #fff; font-size: clamp(25px, 3.2vw, 34px); margin-bottom: 12px; }
.cta__lead { color: rgba(255, 255, 255, .78); font-size: 17px; max-width: 58ch; }
.cta__actions { flex: 0 1 auto; text-align: center; }
.cta__note { margin-top: 12px; font-size: 13.5px; color: rgba(255, 255, 255, .62); }
.cta__phones {
  margin-top: 10px;
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}
.cta__phones a { color: #fff; }
.cta__phones a:hover { color: var(--sky); }
.cta__phones span { color: rgba(255, 255, 255, .45); }

/* ------------------------------------------------------------- footer -- */
.site-footer {
  background: var(--navy-deep);
  color: rgba(255, 255, 255, .68);
  padding: 52px 0 26px;
  font-size: 15px;
}
.footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(255, 255, 255, .10);
}
.footer__brand { display: flex; align-items: center; gap: 14px; }
.footer__tile {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px; height: 52px;
  background: #fff;
  border-radius: 12px;
  padding: 6px 7px;
  flex: 0 0 auto;
}
.footer__tile img { width: 100%; height: auto; }
.footer__name {
  margin: 0;
  font-weight: 700;
  color: #fff;
  font-size: 16.5px;
  letter-spacing: -.01em;
}
.footer__sub { margin: 0; font-size: 13.5px; color: rgba(255, 255, 255, .72); }

.footer__nav { display: flex; flex-wrap: wrap; gap: 24px; }
.footer__nav a { color: rgba(255, 255, 255, .72); font-weight: 500; }
.footer__nav a:hover { color: #fff; }

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 22px;
  font-size: 13.5px;
  color: rgba(255, 255, 255, .68);
}
.footer__bottom p { margin: 0; }

/* ------------------------------------------------------------ reveals -- */
.reveal {
  transition: opacity .6s cubic-bezier(.22, .61, .36, 1), transform .6s cubic-bezier(.22, .61, .36, 1);
  transition-delay: calc(var(--d, 0) * 90ms);
}
.js .reveal { opacity: 0; transform: translateY(18px); }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* --------------------------------------------------------- responsive -- */
@media (max-width: 980px) {
  .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  body { font-size: 16.5px; }
  .container { padding-inline: 20px; }

  .nav-toggle { display: flex; }
  .nav {
    position: absolute;
    top: var(--header-h);
    left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    padding: 8px 20px 20px;
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav__list li { border-bottom: 1px solid var(--line); }
  .nav__list a { display: block; padding: 14px 2px; font-size: 16px; }
  .nav__list a::after { display: none; }
  .nav__cta { margin-top: 16px; }

  .brand img { width: 176px; }

  .grid--3 { grid-template-columns: minmax(0, 1fr); }
  .steps { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .hero__actions .btn { flex: 1 1 100%; }
  .cta__actions .btn { width: 100%; font-size: 15.5px; padding: 15px 18px; }
  .footer__bottom { justify-content: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}
