/* ============================================================
   ITechPro — base.css
   Reset · Variables · Tipografía · Utilidades
   ============================================================ */

/* ── RESET ── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
body {
  min-height: 100vh;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img, video, svg {
  display: block;
  max-width: 100%;
}
input, button, textarea, select {
  font: inherit;
}
p, h1, h2, h3, h4, h5, h6 {
  overflow-wrap: break-word;
}
a {
  color: inherit;
  text-decoration: none;
}
ul, ol {
  list-style: none;
}
button {
  cursor: pointer;
  border: none;
  background: none;
}

/* ── VARIABLES ── */
:root {
  /* Colores base */
  --bg:          #04080F;
  --bg2:         #080E1A;
  --bg3:         #0C1526;
  --surf:        #111C30;
  --surf2:       #162236;
  --surf3:       #1C2A42;

  /* Marca */
  --cyan:        #00AAFF;
  --cyan2:       #00CAFF;
  --cyan-dim:    rgba(0, 170, 255, 0.12);
  --navy:        #0D2654;
  --navy2:       #1A3A6E;

  /* Texto */
  --text:        #E8EEF8;
  --text2:       #8FA3C0;
  --text3:       #4A6080;

  /* Bordes */
  --border:      rgba(0, 170, 255, 0.10);
  --border2:     rgba(0, 170, 255, 0.22);
  --border3:     rgba(255, 255, 255, 0.06);

  /* Glass */
  --glass:       rgba(8, 14, 26, 0.75);
  --glass2:      rgba(11, 20, 40, 0.60);

  /* Estados */
  --success:     #22C55E;
  --success-bg:  rgba(34, 197, 94, 0.10);
  --error:       #EF4444;
  --error-bg:    rgba(239, 68, 68, 0.10);
  --warning:     #F59E0B;

  /* Radios */
  --r:           10px;
  --r2:          16px;
  --r3:          24px;

  /* Sombras */
  --shadow-sm:   0 2px 12px rgba(0, 0, 0, 0.35);
  --shadow-md:   0 8px 32px rgba(0, 0, 0, 0.45);
  --shadow-lg:   0 20px 60px rgba(0, 0, 0, 0.55);
  --shadow-cyan: 0 0 40px rgba(0, 170, 255, 0.15);

  /* Tipografía */
  --font-h:      'Syne', sans-serif;
  --font-b:      'DM Sans', sans-serif;

  /* Transiciones */
  --trans:       all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --trans-fast:  all 0.18s cubic-bezier(0.4, 0, 0.2, 1);

  /* Espaciados */
  --section-py:  100px;
  --section-py-sm: 64px;
}

/* ── TIPOGRAFÍA ── */
body {
  font-family: var(--font-b);
  font-size: 16px;
  color: var(--text);
  background: var(--bg);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-h);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text);
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2rem, 5vw, 3.25rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.6rem); }
h4 { font-size: 1.15rem; font-weight: 600; }
h5 { font-size: 1rem;    font-weight: 600; }

p {
  color: var(--text2);
  font-size: 1rem;
  line-height: 1.75;
}

/* ── UTILIDADES ── */
.text-cyan    { color: var(--cyan); }
.text-muted   { color: var(--text2); }
.text-faint   { color: var(--text3); }
.text-center  { text-align: center; }
.text-left    { text-align: left; }

.font-display { font-family: var(--font-h); }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border-width: 0;
}

/* ── CHIP / EYEBROW ── */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-b);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--cyan);
  border: 1px solid rgba(0, 170, 255, 0.28);
  padding: 5px 14px;
  border-radius: 100px;
  margin-bottom: 20px;
  text-transform: uppercase;
}
.chip::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan);
  flex-shrink: 0;
}

/* ── DIVIDER ── */
.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border2), transparent);
  margin: 60px 0;
}

/* ── BREADCRUMB ── */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--text3);
  margin-bottom: 24px;
  position: relative;
  z-index: 2;
}
.breadcrumb a {
  color: var(--text3);
  transition: color 0.2s;
}
.breadcrumb a:hover { color: var(--cyan); }
.breadcrumb span { color: var(--text2); }
.breadcrumb-sep { color: var(--text3); font-size: 0.7rem; }

/* ── TAGS TECNOLOGÍA ── */
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}
.tag {
  font-size: 0.78rem;
  color: var(--text2);
  background: var(--surf);
  border: 1px solid var(--border);
  padding: 4px 12px;
  border-radius: 6px;
  transition: var(--trans-fast);
}
.tag:hover {
  border-color: var(--border2);
  color: var(--cyan);
}

/* ── LISTA CON PUNTO ── */
.dot-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.dot-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: var(--text2);
  font-size: 0.95rem;
  line-height: 1.6;
}
.dot-list li::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan);
  flex-shrink: 0;
  margin-top: 8px;
}

/* ── SEPARADOR SECCIÓN ── */
.section-header {
  margin-bottom: 56px;
}
.section-header.center {
  text-align: center;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}
.section-header p {
  margin-top: 14px;
  font-size: 1.05rem;
}

/* ── CANVAS FONDO ── */
#bg-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* ── REVEAL ANIMATION ── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }
