/* ============================================================
   RIT Enterprise — Base (reset + tipografía + utilidades)
   ============================================================ */
* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--cloud);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  color: var(--cloud);
}

img { max-width: 100%; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--red); }

ul, ol { list-style: none; }

::selection { background: var(--red); color: #fff; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }

/* Scrollbar custom */
.rit-scroll { scrollbar-width: thin; }
.rit-scroll::-webkit-scrollbar { height: 6px; }
.rit-scroll::-webkit-scrollbar-track { background: rgba(255, 255, 255, 0.06); }
.rit-scroll::-webkit-scrollbar-thumb {
  background: linear-gradient(90deg, var(--red), var(--blue));
  border-radius: 99px;
}

/* Contenedor */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* Badges de sección (etiqueta mono) */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border-radius: var(--r-pill);
  padding: 8px 18px;
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.badge--dark {
  color: var(--blue-soft);
}
.badge--red {
  background: var(--red-soft);
  color: var(--red);
}
.badge--bar {
  border: 0;
  padding: 0;
  gap: 14px;
  font-weight: 100;
  font-size: 15px;
  letter-spacing: 0.16em;
  text-transform: capitalize;
  color: var(--navy-800);
}
.badge--bar::before {
  content: "";
  width: 4px;
  height: 34px;
  background: var(--red);
  flex: none;
}

/* Títulos */
.h-display {
  font-weight: 100;
  line-height: 1.06;
  letter-spacing: -0.02em;
  text-transform: capitalize;
  text-wrap: balance;
}
.h-display--xl {
  font-size: clamp(38px, 5.4vw, 72px);
  line-height: 1.03;
  letter-spacing: -0.03em;
}
.h-display--lg { font-size: clamp(30px, 3.4vw, 46px); }
.h-display--navy { color: var(--navy-800); }
.h-display--white { color: #fff; }

/* Texto con gradiente (solo palabras clave) */
.grad-text {
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 700;
}
.grad-text--hero {
  background: var(--grad-hero-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 700;
}

/* Body copy */
.lead {
  font-size: 17px;
  line-height: 1.65;
  color: var(--gray);
  text-wrap: pretty;
}
.lead strong { color: var(--navy-800); }

/* Secciones */
.section { padding: 100px 48px; }
/* position: relative para que las decoraciones absolutas de cada sección
   (puntos, glows… inset: 0) no se escapen y tapen toda la página ✗ */
.section--light { background: var(--cloud); position: relative; overflow: hidden; }
.section--white { background: #fff; position: relative; }
.section--dark { background: var(--navy-800); position: relative; overflow: hidden; }
.section--deep { background: var(--cloud); position: relative; overflow: hidden; }

/* Botones */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  background: var(--grad-btn);
  background-size: 200% 100%;
  background-position: 0% 50%;
  color: #fff;
  font-family: var(--font);
  font-size: 16px;
  font-weight: 600;
  padding: 14px 28px;
  border: 0;
  border-radius: var(--r-pill);
  cursor: pointer;
  text-decoration: none;
  transition: background-position 0.25s var(--ease), box-shadow 0.25s var(--ease),
    transform 0.15s var(--ease);
}
.btn:hover {
  background-position: 100% 50%;
  box-shadow: 0 8px 24px rgba(227, 6, 19, 0.35);
  color: #fff;
}
.btn:active { transform: scale(0.98); }

.btn--pill-icon {
  padding: 8px 8px 8px 26px;
}
.btn--pill-icon .btn-ico {
  width: 40px;
  height: 40px;
  border-radius: 99px;
  background: var(--grad-btn);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  flex: none;
  color: white;
}

.btn--ghost {
  background: transparent;
  border: 1.5px solid rgba(255, 255, 255, 0.7);
  color: #fff;
}
.btn--ghost:hover {
  background: #fff;
  color: var(--navy-800);
  box-shadow: none;
}

.btn--white {
  background: #fff;
  color: var(--navy-800);
}
.btn--white:hover { background: var(--red); color: #fff; box-shadow: 0 8px 24px rgba(227, 6, 19, 0.35); }

/* Iconos circulares (flechas) */
.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 99px;
  cursor: pointer;
  transition: all 0.25s ease;
}
.icon-btn--light {
  width: 52px;
  height: 52px;
  background: #fff;
  color: var(--navy-800);
  border: 0;
  font-size: 18px;
}
.icon-btn--light:hover { background: var(--red); color: #fff; }
.icon-btn--ghost {
  width: 44px;
  height: 44px;
  border: 1px solid var(--blue);
  background: transparent;
  color: var(--blue-soft);
  font-size: 17px;
}
.icon-btn--ghost:hover { border-color: var(--red); color: var(--red); }
