app.css 3.7 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;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  color: var(--color-graphite);
  background-color: #FAFAFA;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

/* Selección de texto */
::selection {
  background-color: var(--color-gold);
  color: white;
}

/* ============================================
   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);
}