app.css 5.13 KB
@import "tailwindcss";

/* ============================================
   TIPOGRAFÍAS INSTITUCIONALES
   ============================================ */

@font-face {
  font-family: 'Qanelas';
  src: url('/tipografia/Qanelas-Light.ttf') format('truetype');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Qanelas';
  src: url('/tipografia/Qanelas-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Qanelas';
  src: url('/tipografia/Qanelas-Medium.ttf') format('truetype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Qanelas';
  src: url('/tipografia/Qanelas-SemiBold.ttf') format('truetype');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Qanelas';
  src: url('/tipografia/Qanelas-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Archivo Condensed';
  src: url('/tipografia/Archivo_Condensed-SemiBold.ttf') format('truetype');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Archivo Condensed';
  src: url('/tipografia/Archivo_Condensed-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Archivo Condensed';
  src: url('/tipografia/Archivo_Condensed-Black.ttf') format('truetype');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

/* ============================================
   TEMA PERSONALIZADO - TAILWIND v4
   ============================================ */

@theme {
  /* Tipografía */
  --font-sans: 'Qanelas', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Archivo Condensed', 'Qanelas', system-ui, sans-serif;

  /* Colores Institucionales MEFP */
  --color-gold: #C9A751;
  --color-gold-light: #D4B76A;
  --color-gold-dark: #A88A3D;

  --color-wine: #B91817;
  --color-wine-light: #D42625;
  --color-wine-dark: #8F1211;

  --color-graphite: #363534;
  --color-graphite-light: #4A4948;
  --color-graphite-dark: #252423;

  /* Colores Bandera Nacional */
  --color-flag-red: #DB281C;
  --color-flag-yellow: #F4E410;
  --color-flag-green: #007C38;

  /* Colores Secundarios */
  --color-cream: #F3EAD8;
  --color-cream-light: #FAF6EE;
  --color-cream-dark: #E8DCC4;

  --color-muted: #676767;
  --color-muted-light: #8A8A8A;
  --color-muted-dark: #4A4A4A;
}

/* ============================================
   SISTEMA DE TEMAS (LIGHT/DARK MODE)
   Para cambiar la paleta, solo modifica estos valores
   ============================================ */

:root {
  /* Modo claro (default) - Slate/White */
  --theme-body: #fafafa;
  --theme-background: #f8fafc;
  --theme-titulo: #1a1a1a;
  --theme-texto: #64748b;
  --theme-fill: #f1f5f9;
  --theme-borde: rgba(0, 0, 0, 0.08);
  --theme-accent: #c9a751;
  --theme-accent-hover: #b8963f;

  /* Superficies alternativas */
  --theme-surface: #ffffff;
  --theme-surface-hover: #f8fafc;
}

:root.dark {
  /* Modo oscuro */
  --theme-body: #0d0d0d;
  --theme-background: #1a1a1a;
  --theme-titulo: #e8e4d8;
  --theme-texto: #b8b3a3;
  --theme-fill: #2d2d2d;
  --theme-borde: rgba(255, 255, 255, 0.1);
  --theme-accent: #c9a751;
  --theme-accent-hover: #d4b76a;

  /* Superficies alternativas */
  --theme-surface: #1a1a1a;
  --theme-surface-hover: #2d2d2d;
}

/* ============================================
   ESTILOS BASE
   ============================================ */

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  color: var(--theme-titulo);
  background-color: var(--theme-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color 0.2s ease, color 0.2s ease;
}

/* Focus ring consistente con identidad */
*:focus-visible {
  outline: 2px solid var(--theme-accent);
  outline-offset: 2px;
}

/* Selección de texto */
::selection {
  background-color: var(--theme-accent);
  color: var(--theme-body);
}

/* ============================================
   UTILIDADES DE TEMA
   ============================================ */

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

.theme-surface {
  background-color: var(--theme-surface);
}

.theme-text {
  color: var(--theme-titulo);
}

.theme-text-muted {
  color: var(--theme-texto);
}

.theme-border {
  border-color: var(--theme-borde);
}

.theme-accent {
  color: var(--theme-accent);
}

/* ============================================
   UTILIDADES PERSONALIZADAS
   ============================================ */

/* Gradiente de bandera (horizontal) */
.bg-flag-gradient {
  background: linear-gradient(
    to right,
    var(--color-flag-red) 33.33%,
    var(--color-flag-yellow) 33.33%,
    var(--color-flag-yellow) 66.66%,
    var(--color-flag-green) 66.66%
  );
}

/* Línea decorativa dorada */
.border-gold-accent {
  border-bottom: 3px solid var(--color-gold);
}

/* Texto con acento dorado */
.text-gold-accent {
  color: var(--color-gold);
}

/* Fuente display (Archivo) */
.font-display {
  font-family: var(--font-display);
}