:root {

  /* tamaños */
  --btn-height: 44px;
  --btn-height-sm: 30px;

  /* anchos */
  --btn-width-md: 160px;
  --btn-width-sm: 120px;
  --btn-width-xs: 70px;

  /* forma */	
  --btn-radius: 999px;

}

/* ===== WIDTH ===== */

.btn-width-md {
  width: var(--btn-width-md);
}

.btn-width-sm {
  width: var(--btn-width-sm);
}

.btn-width-fluid {
  width: clamp(140px, 20vw, 200px);
}

/* ===== SIZE ===== */

.btn-sm {
  height: var(--btn-height-sm);
  font-size: .875rem;
}

/* ===== ICON HELPERS ===== */

.btn_icon{
  display:inline-flex;
  align-items:center;
  justify-content:center;

  width:18px;
  height:18px;

  font-size:14px;
  line-height:1;

  margin-left:auto;
  flex-shrink:0;
}

.boton_icon{
  gap:20px;
}


/* base de los botones */

.t4-content .btn-default,
.boton {
  display:inline-flex;
  align-items:center;
  justify-content:center;

  height:var(--btn-height);
  padding:0 1rem;

  border:none;
  border-radius:var(--btn-radius);

  font-family:inherit;
  font-weight: var(--fw-regular);

  cursor:pointer;
  text-align:center;
  white-space:nowrap;

  transition:
    background-color .2s ease,
    transform .1s ease;
}

/* ===== BOTÓN PRINCIPAL ===== */

.t4b-btn.btn.btn-default,
.boton_principal{
  background:var(--color-principal-500);
  color:var(--color-blanco);
}

.t4-content .btn-default:hover,
.boton_principal:hover{
  background:var(--color-principal-700);
}

.boton_pequeno_icon{
    display: flex;
    gap:10px;
}


/* variantes y estados */
/* Hover */
.boton_principal:hover {
    background: var(--color-principal-700);
  color:var(--color-blanco);
}


/* Presionado / Active */
.t4-content .btn-default:active,
.boton_principal:active {
    background: var(--color-principal-900);
    transform: scale(0.97);
  	color: var(--color-blanco);
}


/* Focus accesible (teclado) */
.t4-content .btn-default:focus,
.boton_principal:focus {
  border: none !important;
  color: var(--color-blanco);
}

.t4-content .btn-default:focus-visible,
.boton_principal:focus-visible {
    outline: 3px solid var(--color-principal-300);
    outline-offset: 2px;
  	color: var(--color-blanco);
}


/* Deshabilitado */
.t4-content .btn-default:disabled,
.t4-content .btn-default,
.boton_principal:disabled,
.boton_principal[aria-disabled="true"]{
    background: var(--color-secundario-300);
    color: var(--color-secundario-700);

    cursor: not-allowed;
    transform: none;
    box-shadow: none;
    opacity: 1;
}


/* Evita hover cuando está deshabilitado */
.t4-content .btn-default:disabled:hover,
.boton_principal:disabled:hover {
    background: var(--color-neutro-300);
}

.t4-content .btn-default,
a.boton{
  text-decoration: none;
}


/* boton secundario */
.boton-secundario{
  background: var(--color-blanco);
  color: var(--color-principal-500);
  border: 2px solid  var(--color-principal-500);
}

.boton-secundario:hover{
  color: var(--color-principal-700);
  background-color:  var(--color-principal-200);
}

.boton-secundario:active{
  color: var(--color-principal-900) !important;
  background-color:  var(--color-principal-700) !important;
  color: var(--color-blanco) !important;
}

.boton-secundario:focus {
  border: 2px solid var(--color-principal-700) !important;
  color: var(--color-principal-700);
  background-color:  var(--color-principal-200);
}

.boton-secundario:focus-visible {
  outline: 3px solid var(--color-principal-300);
  outline-offset: 2px;
  border: 2px solid var(--color-principal-500) !important;
  color: var(--color-principal-500);
}

/* Botón en fondo oscuro */

.bg-dark-demo{
  background-color: var(--color-secundario-500);
  border-radius: 8px;
}
.is-dark.boton{
  background: var(--color-blanco);
  color:var(--color-principal-500);
}

.is-dark.boton:hover{
  background: var(--color-principal-200);
  color: var(--color-secundario-700);
}

.is-dark.boton:active{
  background: var(--color-principal-300);
  color: var(--color-principal-900);
}

/* boton icono */

.boton_icono{
  width:var(--btn-height);
  height:var(--btn-height);
  padding:0;

  border-radius:50%;

  display:inline-grid;
  place-items:center;

  background:var(--color-principal-500);
  color:var(--color-blanco);
}

/* Hover */
.boton_icono:hover {
    background: var(--color-principal-700);
}


/* Presionado / Active */
.boton_icono:active {
    background: var(--color-principal-900);
    transform: scale(0.97);
}


/* Focus accesible (teclado) */
.boton_icono:focus-visible {
    outline: 3px solid var(--color-principal-300);
    outline-offset: 2px;
}
.boton_icono:disabled,
.boton_icono[aria-disabled="true"]{
    background: var(--color-secundario-300);
    color: var(--color-secundario-700);

    cursor: not-allowed;
    transform: none;
    box-shadow: none;
    opacity: 1;
}

/*----------------- Enlaces ----------------------*/
.link_large,
.pathway,
.t4b-link,
.link_regular,
.link_small{
  font-family: var(--font-primary);
  color:var(--color-govco-700);
  text-decoration: underline;
}
.link_large:hover,
.pathway:hover,
.t4b-link:hover,
.link_regular:hover,
.link_small:hover{
  transition: 0.2s all ease-in;
  color:var(--color-govco-900);
  text-decoration: underline;
}
.link_large:active,
.pathway:active,
.t4b-link:active,
.link_regular:active,
.link_small:active{
  color:var(--color-secundario-700);
  text-decoration: none;
}
.link_large:visited,
.pathway:visited,
.t4b-link:visited,
.link_regular:visited,
.link_small:visited{
  color:var(--color-principal-00);
}
.link_large{
  font-weight: var(--fw-bold);
  font-size: clamp(1rem, 0.9167rem + 0.1736vw, 1.125rem);
  line-height: 1.35rem;
}
.pathway,
.t4b-link,
.link_regular{
  font-weight: var(--fw-regular);
  font-size: clamp(0.9375rem, 0.8958rem + 0.0868vw, 1rem);
  line-height: 1.35rem;
}
.link_small{
  font-weight: var(--fw-regular);
  font-size: clamp(0.875rem, 0.875rem + 0vw, 0.875rem);
  line-height: 1.31rem;
}

/* miga de pan */

.theme-default .breadcrumb .divider:before {
    color: var(--color-secundario-500);
    content: ">";
    font-size: 0.825rem;
}

.t4-breadcrumbs li:first-child {
  display: none;
}

.breadcrumb .divider {
    padding-left: .4rem;
}

/*----------------- END Enlaces ----------------------*/
