/**
 * XBC-CORE TYPOGRAPHY V2.0
 * ========================
 * Sistema tipográfico con SOBERANÍA TECNOLÓGICA
 * Fuentes locales - Sin CDN externos
 * 
 * @package XBC-CORE
 * @version 2.0
 * @author FUTURÍSTICA®
 */

/* ============================================
   FUENTES LOCALES - PROTOCOLO V2.0
   ============================================ */

/* TENOR SANS - Títulos */
@font-face {
    font-family: 'Tenor Sans';
    src: url('../fonts/tenor-sans.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

/* CORMORANT GARAMOND - Cuerpo */
@font-face {
    font-family: 'Cormorant Garamond';
    src: url('../fonts/cormorant-regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Cormorant Garamond';
    src: url('../fonts/cormorant-medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Cormorant Garamond';
    src: url('../fonts/cormorant-semibold.ttf') format('truetype');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

/* IBM PLEX MONO - Código */
@font-face {
    font-family: 'IBM Plex Mono';
    src: url('../fonts/ibm-plex-mono-regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'IBM Plex Mono';
    src: url('../fonts/ibm-plex-mono-medium.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

/* ============================================
   NIVEL 1: TÍTULOS PRINCIPALES
   ============================================ */
h1,
.heading-1 {
    font-family: var(--font-title, 'Tenor Sans', sans-serif);
    font-size: var(--text-5xl, 48px);
    font-weight: 400;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: var(--violeta-profundo, #1A0F1F);
}

/* ============================================
   NIVEL 2: TÍTULOS SECUNDARIOS
   ============================================ */
h2,
.heading-2 {
    font-family: var(--font-title, 'Tenor Sans', sans-serif);
    font-size: var(--text-3xl, 32px);
    font-weight: 400;
    line-height: 1.2;
    letter-spacing: 0;
    color: var(--violeta-profundo, #1A0F1F);
}

/* ============================================
   NIVEL 3: SUBTÍTULOS
   ============================================ */
h3,
.heading-3 {
    font-family: var(--font-title, 'Tenor Sans', sans-serif);
    font-size: var(--text-xl, 24px);
    font-weight: 400;
    line-height: 1.3;
    letter-spacing: 0;
    color: var(--violeta-profundo, #1A0F1F);
}

/* ============================================
   NIVEL 4: ETIQUETAS
   ============================================ */
h4,
.heading-4,
label,
.label {
    font-family: var(--font-title, 'Tenor Sans', sans-serif);
    font-size: var(--text-xs, 12px);
    font-weight: 400;
    line-height: 1.4;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--violeta-profundo, #1A0F1F);
    opacity: var(--opacity-subtle, 0.7);
}

/* ============================================
   NIVEL 5: CUERPO DE TEXTO
   ============================================ */
body,
p,
.body-text {
    font-family: var(--font-body, 'Cormorant Garamond', serif);
    font-size: var(--text-base, 18px);
    font-weight: 400;
    line-height: 1.6;
    letter-spacing: 0;
    color: var(--tinta, #24282F);
}

/* ============================================
   UTILIDADES TIPOGRÁFICAS
   ============================================ */
.text-mono {
    font-family: var(--font-mono, 'IBM Plex Mono', monospace);
    letter-spacing: 0.05em;
}

.text-title {
    font-family: var(--font-title, 'Tenor Sans', sans-serif);
}

.text-body {
    font-family: var(--font-body, 'Cormorant Garamond', serif);
}

.text-center {
    text-align: center;
}

.text-uppercase {
    text-transform: uppercase;
}

/* ============================================
   COLORES DE TEXTO
   ============================================ */
.text-violeta {
    color: var(--violeta-profundo, #1A0F1F);
}

.text-green {
    color: var(--proton-green, #00FFA3);
}

.text-bronce {
    color: var(--bronce, #B59970);
}

.text-warm {
    color: var(--warm-void, #F5F3EE);
}

.text-muted {
    opacity: var(--opacity-subtle, 0.7);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    h1, .heading-1 {
        font-size: var(--text-4xl, 36px);
    }
    
    h2, .heading-2 {
        font-size: var(--text-2xl, 24px);
    }
    
    h3, .heading-3 {
        font-size: var(--text-lg, 20px);
    }
    
    body, p, .body-text {
        font-size: var(--text-sm, 16px);
    }
}
