/* ============================================================
   base.css
   Reset, tipografía global y utilidades compartidas
   ============================================================ */

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Montserrat', sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  line-height: 1.6;
}

/* ── Secciones compartidas ── */
section {
  position: relative;
  z-index: 2;
}

.sw {
  /* max-width: 1200px; */
  margin: 0 auto;
  padding: 100px 5vw;
}

/* ── Etiqueta de sección (badge superior) ── */
.stag {
  display: inline-block;
  font-family: 'Rajdhani', sans-serif;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(26, 109, 255, .08);
  border-radius: 4px;
  padding: .28rem .85rem;
  margin-bottom: .9rem;
}

/* ── Título de sección ── */
.stitle {
  font-size: clamp(1.65rem, 3vw, 2.5rem);
  font-weight: 800;
  line-height: 1.15;
  color: var(--dark);
}

.stitle span {
  background: linear-gradient(90deg, var(--accent), var(--teal));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Subtítulo de sección ── */
.ssub {
  font-size: .9rem;
  color: var(--sub);
  line-height: 1.85;
  margin-top: .7rem;
}

/* ── Línea decorativa ── */
.ruler {
  width: 38px;
  height: 3px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--accent), var(--teal));
  margin: 1.1rem 0 1.8rem;
}

.ruler.c {
  margin-left: auto;
  margin-right: auto;
}

/* ── Animación scroll reveal ── */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .65s, transform .65s;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

/* ── Keyframes globales ── */
@keyframes blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: .3; }
}

/* ── Responsive base ── */
@media (max-width: 480px) {
  .sw { padding: 70px 5vw; }
}
