/*
 * ============================================================
 * static/brand/brand.css — VARIABLES DE MARCA DATP
 * ============================================================
 * Para cambiar la apariencia: edita las variables en :root {}
 * Para cambiar el logo: reemplaza static/brand/logo.png
 * ============================================================
 */

@import url('https://fonts.googleapis.com/css2?family=DM+Mono:wght@300;400;500&family=Outfit:wght@300;400;600;700;900&display=swap');

:root {
  /* ── Colores ──────────────────────────────────────────── */
  --bg-base:       #05080F;
  --bg-surface:    #0C1018;
  --bg-input:      #080C14;
  --border:        #1A2035;
  --border-active: #2A3A5C;

  --accent:        #00D4FF;
  --accent-dim:    rgba(0,212,255,.08);
  --accent-glow:   rgba(0,212,255,.18);
  --accent-text:   #000000;

  --accent2:       #FF6B35;
  --accent3:       #7C3AED;

  --text-primary:  #EDF0F7;
  --text-secondary:#8A96B0;
  --text-muted:    #3D4A65;

  --color-success: #00E676;
  --color-error:   #FF4D6D;
  --color-warning: #FFB347;

  /* ── Tipografías ─────────────────────────────────────── */
  --font-display: 'Outfit', sans-serif;
  --font-mono:    'DM Mono', monospace;

  /* ── Tamaños de texto ────────────────────────────────── */
  --text-xs:   11px;
  --text-sm:   13px;
  --text-base: 15px;
  --text-lg:   18px;
  --text-xl:   22px;
  --text-2xl:  28px;
  --text-3xl:  40px;

  /* ── Radios ──────────────────────────────────────────── */
  --radius-sm:  6px;
  --radius-md:  10px;
  --radius-lg:  14px;
  --radius-xl:  20px;
  --radius-pill:100px;

  /* ── Sombras ─────────────────────────────────────────── */
  --shadow-card:  0 4px 24px rgba(0,0,0,.4);
  --shadow-glow:  0 0 40px rgba(0,212,255,.12);
  --shadow-modal: 0 20px 60px rgba(0,0,0,.6);

  --transition: .18s ease;

  /* ── Layout responsive ───────────────────────────────── */
  --content-max:   680px;
  --content-pad:   20px;
  --nav-height:    64px;

  /* ── Touch targets (iOS/Android) ─────────────────────── */
  --touch-min: 44px;

  /* ── Safe area insets (iOS notch / Android gesture nav) ─ */
  --safe-top:    env(safe-area-inset-top,    0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-left:   env(safe-area-inset-left,   0px);
  --safe-right:  env(safe-area-inset-right,  0px);
}

/* ── Reset global ─────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0; padding: 0;
  -webkit-tap-highlight-color: transparent; /* Quita el flash azul en tap (iOS/Android) */
}

html {
  scroll-behavior: smooth;
  /* Evita el rebote elástico horizontal en iOS */
  overflow-x: hidden;
}

body {
  background: var(--bg-base);
  color: var(--text-primary);
  font-family: var(--font-display);
  font-size: var(--text-base);
  line-height: 1.6;
  min-height: 100vh;
  min-height: 100dvh; /* Dynamic viewport height: evita problemas con la barra del navegador móvil */
  /* Evita que el texto se redimensione automáticamente al rotar en iOS */
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  overflow-x: hidden;
}

/* Inputs: font-size >= 16px evita el zoom automático en iOS */
input, textarea, select {
  font-size: max(16px, var(--text-base));
}

/* Imágenes responsivas por defecto */
img { max-width: 100%; height: auto; display: block; }

/* ── Logo PNG ─────────────────────────────────────────── */
/* mix-blend-mode:screen hace que el fondo negro del PNG
   quede transparente sobre el fondo oscuro del sitio.
   Los elementos azules del isotipo quedan visibles. */
.logo-img {
  mix-blend-mode: screen;
  object-fit: contain;
  pointer-events: none;
  user-select: none;
}

/* ── Scrollbar elegante (webkit) ──────────────────────── */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border-active); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }
