/**
 * Tipografía Institucional - Noto Sans
 * Configuración de @font-face para las variantes de Noto Sans
 */

/* Noto Sans - Thin (100) */
@font-face {
  font-family: 'Noto Sans';
  src: url('../fonts/NotoSans-Thin.ttf') format('truetype');
  font-weight: 100;
  font-style: normal;
  font-display: swap;
}

/* Noto Sans - Regular (400) */
@font-face {
  font-family: 'Noto Sans';
  src: url('../fonts/NotoSans-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* Noto Sans - Medium (500) */
@font-face {
  font-family: 'Noto Sans';
  src: url('../fonts/NotoSans-Medium.ttf') format('truetype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

/* Noto Sans - Bold (700) */
@font-face {
  font-family: 'Noto Sans';
  src: url('../fonts/NotoSans-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* Noto Sans - Italic (400 italic) */
@font-face {
  font-family: 'Noto Sans';
  src: url('../fonts/NotoSans-Italic.ttf') format('truetype');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

/**
 * Configuración global de tipografía
 */

body {
  font-family: 'Noto Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI',
               Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-weight: 400;
  line-height: var(--line-height-normal, 1.5);
  color: var(--text-principal, #161a1d);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/**
 * Jerarquía de títulos
 */

h1, h2, h3, h4, h5, h6 {
  font-family: 'Noto Sans', sans-serif;
  font-weight: 700;
  line-height: var(--line-height-tight, 1.25);
  color: var(--text-principal, #161a1d);
  margin-bottom: var(--spacing-md, 1.5rem);
}

h1 {
  font-size: var(--font-size-5xl, 3rem);        /* 48px */
  font-weight: 700;
}

h2 {
  font-size: var(--font-size-4xl, 2.25rem);     /* 36px */
  font-weight: 700;
}

h3 {
  font-size: var(--font-size-3xl, 1.875rem);    /* 30px */
  font-weight: 700;
}

h4 {
  font-size: var(--font-size-2xl, 1.5rem);      /* 24px */
  font-weight: 500;
}

h5 {
  font-size: var(--font-size-xl, 1.25rem);      /* 20px */
  font-weight: 500;
}

h6 {
  font-size: var(--font-size-lg, 1.125rem);     /* 18px */
  font-weight: 500;
}

/**
 * Párrafos y texto base
 */

p {
  font-size: var(--font-size-base, 1rem);       /* 16px */
  font-weight: 400;
  line-height: var(--line-height-relaxed, 1.75);
  margin-bottom: var(--spacing-sm, 1rem);
}

.lead {
  font-size: var(--font-size-lg, 1.125rem);     /* 18px */
  font-weight: 400;
  line-height: var(--line-height-relaxed, 1.75);
}

.text-small {
  font-size: var(--font-size-sm, 0.875rem);     /* 14px */
}

.text-xs {
  font-size: var(--font-size-xs, 0.75rem);      /* 12px */
}

/**
 * Utilidades de peso
 */

.font-thin {
  font-weight: 100;
}

.font-regular {
  font-weight: 400;
}

.font-medium {
  font-weight: 500;
}

.font-bold {
  font-weight: 700;
}

/**
 * Utilidades de estilo
 */

.font-italic {
  font-style: italic;
}

/**
 * Responsive Typography
 */

@media (max-width: 768px) {
  h1 {
    font-size: var(--font-size-4xl, 2.25rem);   /* 36px en móvil */
  }

  h2 {
    font-size: var(--font-size-3xl, 1.875rem);  /* 30px en móvil */
  }

  h3 {
    font-size: var(--font-size-2xl, 1.5rem);    /* 24px en móvil */
  }

  h4 {
    font-size: var(--font-size-xl, 1.25rem);    /* 20px en móvil */
  }

  h5 {
    font-size: var(--font-size-lg, 1.125rem);   /* 18px en móvil */
  }

  h6 {
    font-size: var(--font-size-base, 1rem);     /* 16px en móvil */
  }

  .lead {
    font-size: var(--font-size-base, 1rem);     /* 16px en móvil */
  }
}

/**
 * Enlaces
 */

a {
  color: var(--color-guinda, #9b2247);
  text-decoration: none;
  transition: var(--transition-fast, 150ms ease-in-out);
}

a:hover {
  color: var(--color-guinda-oscuro, #611232);
  text-decoration: underline;
}

a:focus {
  outline: 2px solid var(--color-dorado, #a57f2c);
  outline-offset: 2px;
}

/**
 * Listas
 */

ul, ol {
  font-size: var(--font-size-base, 1rem);
  line-height: var(--line-height-relaxed, 1.75);
  margin-bottom: var(--spacing-sm, 1rem);
}

li {
  margin-bottom: var(--spacing-xs, 0.5rem);
}

/**
 * Blockquotes
 */

blockquote {
  font-size: var(--font-size-lg, 1.125rem);
  font-style: italic;
  font-weight: 400;
  border-left: 4px solid var(--color-guinda, #9b2247);
  padding-left: var(--spacing-md, 1.5rem);
  margin: var(--spacing-lg, 2rem) 0;
  color: var(--text-secundario, #98989A);
}
