/* =========================================================================
   VIAS3D · Design Tokens · v1.6
   Ruta en servidor: /public_html/assets/v3d/css/v3d-tokens.css
   URL pública:      https://dmd.com.mx/assets/v3d/css/v3d-tokens.css

   Solo define fuentes y variables (--v3d-*). No pinta nada por sí mismo,
   así que es seguro cargarlo en todo el sitio sin afectar al tema actual.
   ========================================================================= */

/* ---------- Fuentes --------------------------------------------------------
   Montserrat (OFL, autoalojada, variable). Se limita al rango 400–800:
   el peso 900 (Black) queda excluido a propósito.                          */
@font-face {
  font-family: "V3D Montserrat";
  src: url("../fonts/montserrat/montserrat-latin-wght-normal.woff2") format("woff2-variations"),
       url("../fonts/montserrat/montserrat-latin-wght-normal.woff2") format("woff2");
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "V3D Montserrat";
  src: url("../fonts/montserrat/montserrat-latin-wght-italic.woff2") format("woff2-variations"),
       url("../fonts/montserrat/montserrat-latin-wght-italic.woff2") format("woff2");
  font-weight: 400 800;
  font-style: italic;
  font-display: swap;
}

/* Material Symbols Rounded (Apache 2.0, autoalojada, estática peso 400). */
@font-face {
  font-family: "V3D Symbols Rounded";
  src: url("../fonts/material-symbols/material-symbols-rounded-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: block;
}

/* ---------- Variables ---------------------------------------------------- */
:root {
  /* === Brand Signal · 5–9 % del área ===================================
     Logo, acción primaria, momentos de conversión, iconos clave.        */
  --v3d-orange:        #ED8020;
  --v3d-orange-600:    #D46F14;   /* hover / presionado */
  --v3d-orange-300:    #F8B455;
  --v3d-orange-200:    #F9CD7F;
  --v3d-orange-100:    #FAD89D;
  --v3d-orange-50:     #FDF0E3;

  /* === Structural Foundation =========================================== */
  --v3d-charcoal:      #1F2123;   /* 32–40 % · texto, utilidad, estructura */
  --v3d-charcoal-800:  #292A2B;
  --v3d-charcoal-700:  #383837;
  --v3d-navy:          #04243C;   /* 9–15 %  · hero, jerarquía, navegación */
  --v3d-navy-700:      #0A3352;
  --v3d-navy-900:      #021726;
  --v3d-gray-300:      #D5D5D5;
  --v3d-gray-200:      #E3E3E3;
  --v3d-surface:       #F2F2F2;   /* 32–40 % · lectura, contenido, tarjetas */
  --v3d-white:         #FFFFFF;

  /* === Accent Colors =================================================== */
  --v3d-yellow:        #F6B436;   /* 2–3 % · highlights, etiquetas, divisores */
  --v3d-yellow-100:    #FDEBC4;
  --v3d-purple:        #6607C4;   /* 1–2 % · iconos tecnológicos, divisores */
  --v3d-purple-400:    #A162DA;
  --v3d-purple-100:    #DFC9F3;

  /* === Gradient Signature · 2–4 % ====================================== */
  --v3d-grad-signature:  linear-gradient(90deg, #6607C4 0%, #ED8020 100%);
  --v3d-grad-signature-v: linear-gradient(180deg, #ED8020 0%, #6607C4 100%);
  --v3d-grad-warm:       linear-gradient(90deg, #ED8020 0%, #F8B455 100%);
  --v3d-grad-tech:       linear-gradient(90deg, #6607C4 0%, #DFC9F3 100%);
  --v3d-grad-soft:       linear-gradient(90deg, #F8B455 0%, #6607C4 100%);
  --v3d-grad-hero:       linear-gradient(115deg, #021726 0%, #04243C 45%, #0A3352 100%);

  /* === Product Support Colors ==========================================
     Opcionales; normalmente uno solo por pieza. Úsalos como acento
     (punto, borde, línea), no como fondo de texto: el amarillo y el
     lima no tienen contraste suficiente para texto sobre blanco.       */
  --v3d-support-cyan:   #009CDE;
  --v3d-support-yellow: #FFCD00;
  --v3d-support-blue:   #001871;
  --v3d-support-lime:   #CBD300;
  --v3d-support-orange: #E87220;
  --v3d-support-red:    #DA291C;

  /* Dassault Systèmes / DraftSight (tomados de la landing dmd.com.mx/draftsight/) */
  --v3d-3ds-blue:       #005386;
  --v3d-3ds-blue-2:     #009ADA;
  --v3d-3ds-navy:       #03192B;
  --v3d-ds-green:       #78BE20;
  --v3d-ds-green-dark:  #4D8F12;

  /* === Colores por producto / marca ====================================
     Un solo lugar para asignar el color de cada marca. Cambia aquí
     y se actualiza en todo el sitio (chips, bordes, iconos).
     SOLIDWORKS = rojo #DA291C · DraftSight = verde #78BE20.
     El resto queda en gris neutro hasta que confirmes su color oficial. */
  --v3d-prod-solidworks:   var(--v3d-support-red);
  --v3d-prod-draftsight:   var(--v3d-ds-green);
  --v3d-prod-simulia:      var(--v3d-charcoal-700); /* POR ASIGNAR */
  --v3d-prod-3dexperience: var(--v3d-charcoal-700); /* POR ASIGNAR */
  --v3d-prod-catia:        var(--v3d-charcoal-700); /* POR ASIGNAR */
  --v3d-prod-delmia:       var(--v3d-charcoal-700); /* POR ASIGNAR */
  --v3d-prod-enovia:       var(--v3d-charcoal-700); /* POR ASIGNAR */
  --v3d-prod-camworks:     var(--v3d-charcoal-700); /* POR ASIGNAR */
  --v3d-prod-swood:        var(--v3d-charcoal-700); /* POR ASIGNAR */

  /* === Semánticos (UI) ================================================= */
  --v3d-success: #1E8E5A;
  --v3d-warning: var(--v3d-yellow);
  --v3d-danger:  #C62828;
  --v3d-focus:   #ED8020;

  /* === Tipografía ======================================================
     Una sola familia: Montserrat (400–800, nunca 900) para títulos,
     encabezados y cuerpo de texto.                                      */
  --v3d-font-head: "V3D Montserrat", "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --v3d-font-body: "V3D Montserrat", "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --v3d-font-icon: "V3D Symbols Rounded", "Material Symbols Rounded";

  --v3d-w-regular:  400;
  --v3d-w-medium:   500;
  --v3d-w-semibold: 600;
  --v3d-w-bold:     700;
  --v3d-w-heavy:    800;   /* máximo permitido */

  /* Escala fluida (móvil → escritorio) */
  --v3d-fs-display: clamp(2.25rem, 1.6rem + 2.6vw, 3.5rem);
  --v3d-fs-h1:      clamp(2rem,    1.5rem + 2vw,   3rem);
  --v3d-fs-h2:      clamp(1.625rem,1.3rem + 1.3vw, 2.375rem);
  --v3d-fs-h3:      clamp(1.25rem, 1.1rem + .6vw,  1.5rem);
  --v3d-fs-h4:      1.125rem;
  --v3d-fs-lead:    clamp(1.0625rem, 1rem + .35vw, 1.25rem);
  --v3d-fs-body:    1rem;
  --v3d-fs-small:   .875rem;
  --v3d-fs-micro:   .75rem;

  --v3d-lh-tight: 1.15;
  --v3d-lh-head:  1.25;
  --v3d-lh-body:  1.65;
  --v3d-tracking-eyebrow: .14em;

  /* === Espaciado, radios, sombras ====================================== */
  --v3d-space-1: .25rem;
  --v3d-space-2: .5rem;
  --v3d-space-3: .75rem;
  --v3d-space-4: 1rem;
  --v3d-space-5: 1.5rem;
  --v3d-space-6: 2rem;
  --v3d-space-7: 3rem;
  --v3d-space-8: 4rem;
  --v3d-space-section: clamp(3.5rem, 2.5rem + 4vw, 6.5rem);

  --v3d-container: 1240px;
  --v3d-gutter: clamp(1.25rem, .75rem + 2vw, 2.5rem);

  --v3d-radius-sm:   6px;
  --v3d-radius:      12px;
  --v3d-radius-lg:   20px;
  --v3d-radius-pill: 999px;

  --v3d-shadow-sm: 0 1px 2px rgba(4, 36, 60, .06), 0 1px 3px rgba(4, 36, 60, .08);
  --v3d-shadow:    0 6px 20px rgba(4, 36, 60, .08);
  --v3d-shadow-lg: 0 18px 48px rgba(4, 36, 60, .16);

  --v3d-ease: cubic-bezier(.2, .7, .2, 1);
  --v3d-dur:  .25s;
}
