/*
    - Proyecto: CSS provisorio del Kit Digital
    - Descripción: Basado en el Kit Digital https://kitdigital.uc.cl/. Se usa el Kit como base y este CSS para complementar.
    - Autor: Dirección de Experiencia Digital de la UC
    - Versión: 1.0.2.
    - Última actualización: 10/09/26
    - Comentarios: Usado por AyudantIA, Nodo IA, TransformarChile y Avanza
*/


/***** TIPOGRAFÍAS (v1) *****/ 

.uc-display {
    font-size: 2em;
    line-height: 1.2;
}

@media (min-width: 992px) {
    .uc-display {
        font-size: 3em;
        line-height: 1.2;
    }
}

.uc-display.display-lg {
    font-size: 2.5em;
    line-height: 1.2;
}

@media (min-width: 992px) {
    .uc-display.display-lg {
        font-size: 3.75em;
        line-height: 1.2;
    }
}


/* TIPOGRAFÍAS (V2) */

:root {
  /* Tokens de peso tipográfico */
  --font-weight-regular: 400;
  --font-weight-medium: 500;
  --font-weight-bold: 700;

  /* Tokens de tamaño y line-height — valores MOBILE por defecto */
  --font-size-sm: 0.875rem;   --line-height-sm: 1.25rem;   /* 14 / 20 */
  --font-size-md: 1rem;       --line-height-md: 1.5rem;    /* 16 / 24 */
  --font-size-lg: 1.125rem;   --line-height-lg: 1.75rem;   /* 18 / 28 */
  --font-size-xl: 1.25rem;    --line-height-xl: 1.75rem;   /* 20 / 28 */
  --font-size-2xl: 1.375rem;  --line-height-2xl: 1.75rem;  /* 22 / 28 */
  --font-size-3xl: 1.5rem;    --line-height-3xl: 1.75rem;  /* 24 / 28 */
  --font-size-4xl: 1.625rem;  --line-height-4xl: 2rem;     /* 26 / 32 */
  --font-size-5xl: 1.75rem;   --line-height-5xl: 2rem;     /* 28 / 32 */
  --font-size-6xl: 2rem;      --line-height-6xl: 2.5rem;   /* 32 / 40 */
  --font-size-7xl: 2.25rem;   --line-height-7xl: 2.75rem;  /* 36 / 44 */
  --font-size-8xl: 2.5rem;    --line-height-8xl: 3rem;     /* 40 / 48 */
}

@media (min-width: 768px) {
  :root {
    /* Sobrescritura de tamaños — valores DESKTOP */
    --font-size-xl: 1.25rem;   --line-height-xl: 1.75rem;    /* 20 / 28 */
    --font-size-2xl: 1.375rem; --line-height-2xl: 1.75rem;  /* 22 / 28 */
    --font-size-3xl: 1.5rem;   --line-height-3xl: 1.85rem;  /* 24 / 28 */
    --font-size-4xl: 1.75rem;  --line-height-4xl: 2rem;     /* 28 / 32 */
    --font-size-5xl: 2rem;     --line-height-5xl: 2.5rem;   /* 32 / 40 */
    --font-size-6xl: 2.5rem;   --line-height-6xl: 3rem;     /* 40 / 48 */
    --font-size-7xl: 3rem;     --line-height-7xl: 3.5rem;   /* 48 / 56 */
    --font-size-8xl: 3.75rem;  --line-height-8xl: 4.5rem;   /* 60 / 72 */
    /* sm, md, lg no cambian: los párrafos usan el mismo tamaño en mobile y desktop */
  }
}

/* --------------------------------------------------------------------------
   Clases de peso
   -------------------------------------------------------------------------- */
.text-weight--regular { font-weight: var(--font-weight-regular); }
.text-weight--medium   { font-weight: var(--font-weight-medium); }
.text-weight--bold     { font-weight: var(--font-weight-bold); }

/* --------------------------------------------------------------------------
   Clases de tamaño — atómicas (solo tamaño + line-height, sin peso ni semántica)
   -------------------------------------------------------------------------- */
.font-size--sm  { font-size: var(--font-size-sm);  line-height: var(--line-height-sm); }
.font-size--md  { font-size: var(--font-size-md);  line-height: var(--line-height-md); }
.font-size--lg  { font-size: var(--font-size-lg);  line-height: var(--line-height-lg); }
.font-size--xl  { font-size: var(--font-size-xl);  line-height: var(--line-height-xl); }
.font-size--2xl { font-size: var(--font-size-2xl); line-height: var(--line-height-2xl); }
.font-size--3xl { font-size: var(--font-size-3xl); line-height: var(--line-height-3xl); }
.font-size--4xl { font-size: var(--font-size-4xl); line-height: var(--line-height-4xl); }
.font-size--5xl { font-size: var(--font-size-5xl); line-height: var(--line-height-5xl); }
.font-size--6xl { font-size: var(--font-size-6xl); line-height: var(--line-height-6xl); }
.font-size--7xl { font-size: var(--font-size-7xl); line-height: var(--line-height-7xl); }
.font-size--8xl { font-size: var(--font-size-8xl); line-height: var(--line-height-8xl); }

/* --------------------------------------------------------------------------
   Párrafo base (equivalente a <p> sin clase)
   -------------------------------------------------------------------------- */
p {
  font-size: var(--font-size-md);
  line-height: var(--line-height-md);
  font-weight: var(--font-weight-regular);
}

/* --------------------------------------------------------------------------
   Títulos — tamaño y peso por defecto vía selector de tag (sin clases .h1–.h6)
   Se puede sobrescribir el peso agregando .text-weight--regular o --medium
   -------------------------------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
  font-weight: var(--font-weight-bold);
}
h1 { font-size: var(--font-size-6xl); line-height: var(--line-height-6xl); }
h2 { font-size: var(--font-size-5xl); line-height: var(--line-height-5xl); }
h3 { font-size: var(--font-size-4xl); line-height: var(--line-height-4xl); }
h4 { font-size: var(--font-size-3xl); line-height: var(--line-height-3xl); }
h5 { font-size: var(--font-size-2xl); line-height: var(--line-height-2xl); }
h6 { font-size: var(--font-size-xl);  line-height: var(--line-height-xl); }

/* --------------------------------------------------------------------------
   Display — usar font-size--7xl / font-size--8xl + peso explícito
   Reemplaza a las antiguas .display y .display--lg / .display-lg
   Ejemplo de uso:
     <div class="font-size--7xl text-weight--medium">Display</div>
     <div class="font-size--8xl text-weight--regular">Display grande</div>
   -------------------------------------------------------------------------- */



/*****************************/
/*          COLORES          */
/*****************************/


:root {
  /* beige/ — A partir de color Plan #FFFAE8. Neutro cálido, uso principal: fondos */
  --beige-10: #FFFAE8; /* Color Plan */
  --beige-20: #F3EBD4;
  --beige-30: #D8CCAE;
  --beige-40: #BDAC89;
  --beige-50: #A7916C;
  --beige-60: #8D7758;
  --beige-70: #736149;
  --beige-80: #504335;
  --beige-90: #27211B;
  --beige-100:#1B1713;

  /* plan/ — A partir de color Plan #1A1E2B. Neutro frío, uso principal: alternativa oscura a grey */
  --plan-10: #F4F5F8;
  --plan-20: #E0E3EC;
  --plan-30: #B8BED4;
  --plan-40: #909ABC;
  --plan-50: #707DA8;
  --plan-60: #586692;
  --plan-70: #495479;
  --plan-80: #343C56;
  --plan-90: #1A1E2B; /* Color Plan */
  --plan-100:#141720;
}


.color-bg-plan {
    background-color: var(--plan-90);
}

.color-bg-beige-plan {
    background-color: var(--beige-10);
}


/* Links y botones */ 

.color-bg-beige-plan .uc-btn.btn-listed:hover, 
.color-bg-beige-plan .uc-btn.btn-listed.hover {
    background-color: var(--beige-20);
}

.color-bg-beige-plan .uc-btn.btn-listed:first-child {
    border-top: 1px solid var(--beige-30);
}

.color-bg-beige-plan .uc-btn.btn-listed {
    border-bottom: 1px solid var(--beige-30);
}

.color-bg-beige-plan a.link-inline,
.color-bg-beige-plan .uc-icon, .uc-svg-icon {
    color: #035BBF;
}
