/* ==========================================================================
   MYCLOUD.UNO — STYLESHEET BASE & TOKENS DE DISEÑO
   Arquitectura limpia y modular: tokens globales, reset y utilidades compartidas.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. VARIABLES DE DISEÑO & CONFIGURACIÓN (:root)
   -------------------------------------------------------------------------- */
:root {
  /* Paleta Cromática Base */
  --bg: #ffffff;
  --bg-alt: #f8f9fc;
  --ink: #111827;
  --ink-secondary: #374151;
  --muted: #4b5563;
  --muted-light: #9ca3af;
  --line: #e5e7eb;
  --line-strong: #d1d5db;
  
  /* Acentos de Marca */
  --accent: #4f46e5;          /* Indigo primario */
  --accent-hover: #4338ca;    /* Indigo oscuro */
  --accent-soft: #eef2ff;     /* Fondo suave indigo */
  --accent-ink: #ffffff;
  --gines-accent: #0d9488;    /* Verde Teal para Telecom */
  --gines-soft: rgba(13, 148, 136, 0.08);

  /* Estructura, Radios & Sombras */
  --radius: 16px;
  --radius-sm: 8px;
  --radius-full: 9999px;
  --container-width: 1120px;
  --transition: 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.08);

  /* Escala de Espaciado Vertical */
  --space-section: clamp(40px, 5vw, 64px);
  --space-header: clamp(20px, 3vw, 32px);
  --space-block: clamp(14px, 2vw, 24px);
}

/* --------------------------------------------------------------------------
   2. RESET & NORMALIZACIÓN BASE
   -------------------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  background-color: #12143a;
}

body {
  background-color: var(--bg);
  color: var(--ink);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Plus Jakarta Sans', -apple-system, sans-serif;
  color: var(--ink);
  font-weight: 700;
  line-height: 1.2;
}

.mono {
  font-family: 'JetBrains Mono', monospace;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition);
}

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

/* Enfoque Accesible */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

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

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

section {
  scroll-margin-top: 96px;
}

.bg-alt {
  background-color: var(--bg-alt);
}
