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

/* ---- Noto Sans ---- */

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

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

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

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

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

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

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

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

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

h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--text-principal, #161a1d);
  font-family: "Noto Sans", sans-serif;
  font-weight: 700;
  line-height: var(--line-height-tight, 1.25);
  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;
}

/**
 * Blockquotes
 */

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