:root {
  --text-color: #2A2D34;     /* Texto principal */
  --text-muted: #555;     /* Texto secundario / gris medio */
  --text-white: #fff;
  --brand-darkBlue: #072B51;     /* Azul de acento */
  --brand-blue: #1D8EC6;  
  --bg-light: #F5F6F8;       /* Fondo claro */
  --brand-yellow: #008f29;
}

* {
    font-family: 'Geologica', 'Times New Roman', 'Arial';
    font-weight: 150; 
}

/* BRANDING DE SKILLIOM */
.bg-primary {
    background-color: var(--brand-blue) !important;
    color: #fff !important;
}

.bg-secondary {
    background-color: var(--brand-darkBlue) !important;
    color: #fff !important;
}

/* MENU SUPERIOR */
.nav-tabs {
    border-bottom: 1px solid darkgrey; /* Borde de la barra */
    background-color: #fff; /* Color de fondo */
    margin-bottom: 0; /* Asegurarse que no haya margen debajo de la barra */
    padding-bottom: 0; /* Asegurarse que no haya relleno extra abajo */
}

.nav-tabs .nav-item {
    margin-bottom: 0; /* Eliminar margen inferior en los items */
}

.nav-tabs .nav-link {
    border: none !important; /* Eliminar borde inferior de las pestañas */
    border-radius: 12px 12px 0 0 !important; /* Redondear las pestañas */
}

.custom-nav-link {
    color: #010002 !important; /* !important para sobrescribir cualquier estilo de Bootstrap */
}

/* Barra de fondo (ocupa todo el ancho en pantalla) */
.full-width-navbar {
  width: 100vw !important;    
  left: 0;
  right: 0;
  background-color: #fff;    
  box-shadow: 0 3px 8px rgba(0,0,0,0.1);
  z-index: 1040;            
  padding: 0;            
}
/* El contenedor es flex solo en desktop */
.nav-container-responsive {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1366px;
  margin: 0 auto;
  width: 100%;
  padding: 10px 20px;
}
/* Mantiene el logo a la izquierda y el menú hamburguesa a la derecha */
.nav-row-mobile {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.credits-pill {
    padding: 2px 8px;
    border-radius: 999px;
    background: #ffc1071a;   /* fondo suave */
    border: 1px solid #ffc107;
    font-size: 0.8rem;
    font-weight: 600;
}

body {
    margin: 0;
    margin-top:68px;
    padding: 0;
    box-sizing: border-box;
    color: var(--text-color);
}

header {
    margin-bottom: 5px;
}

footer {
    background-color: #1A202C;
    text-align: left;
    padding: 10px;
    padding-right: 10px;
    padding-top: 50px;
    padding-bottom: 50px;
    flex-shrink: 0;
}

/* BANNERS */
.container-fluid {
    padding-left: 35px;
    padding-right: 35px;
    max-width: 1366px;
    margin: 0 auto;
}
.img-col img {
    width: 100%;      
    height: auto;    
    border-radius: 8px; 
}
@media (max-width: 767px) { 
    .container-fluid {
        padding-left: 20px;
        padding-right: 20px;
    }
}

.custom-container {
    display: flex;
    justify-content: center;
}

.custom-row {
    width: 100%;
    display: flex;
    justify-content: center;
}

/* FOCO EN LAS HABILIDADES */
/* wrapper para posicionamiento */
.hab { position: relative; }

.hab-card {
  border: 1px solid transparent;
  position: relative;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  -ms-user-select: none;
  z-index: 10;
  background: #fff;

  transition: border-color .3s ease,
              background-color .3s ease,
              box-shadow .2s ease,
              transform .2s ease;
}

.hab-card * {
  user-select: none;
  -webkit-user-select: none;
}

.hab-card:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,.06);
  transform: translateY(-1px);
}

.hab-card.glow-blue {
  border-color: #4caedfba;
  background: 
    linear-gradient(180deg, rgba(76, 174, 223, 0.1) 0%, rgba(76, 174, 223, 0.05) 100%),
    #fff;
}

.focus-tab{
  position: absolute;
  left: -4px;
  top: 10px;            
  z-index: 1;              
  height: 15px; line-height: 15px;
  padding: 0 10px;
  border: 0; border-radius: 4px 0 0 4px;
  background: #e3e3e3; color:#111;
  cursor:pointer;
  outline: none;
  transition: transform .16s ease, background-color .16s ease, color .16s ease;
}

.focus-tab.static {
  pointer-events: none;  
  cursor: default;        
  transition: none;     
}

.focus-tab:focus {
  outline: none;  
  box-shadow: none;    
}

.focus-tab:hover{ transform: translateX(-3px); }

.focus-tab.is-active{ background:#f5b400; color:#111; }
/* TERMINAN ESTILOS DE FOCO */

.link-button {
    background: none; 
    text-decoration: none; 
    border: none; 
    cursor: pointer; 
    padding: 0;
}
.link-button:hover {
    text-decoration: underline; /* Subrayar al pasar el cursor */
}
/* Variante para texto blanco */
.link-button.blanco {
    color: white;
}
.link-button.blanco:hover {
    color: white;
    text-decoration: underline;
}

/* ===========================
   Botón Skilliom (minimal)
   =========================== */

/* Base */
.btn-gentres-skill{
  --bg: var(--brand-blue, #0F5EA8);
  --bg-hover: var(--brand-darkBlue, #072B51);
  --fg: #fff;

  display: inline-flex;
  align-items: center;
  justify-content: center; 
  text-align: center;  
  padding: 7px 15px;
  border-radius: 6px;
  border: 1px solid transparent;
  background: var(--bg);
  color: var(--fg);
  cursor: pointer;
  transition: background-color .2s ease, border-color .2s ease, color .2s ease, box-shadow .2s ease, transform .02s ease;
}

.btn-gentres-skill:hover{ background: var(--bg-hover); }
.btn-gentres-skill:active{ transform: translateY(1px); }

/* Accesibilidad */
.btn-gentres-skill:focus{ outline: none; }
.btn-gentres-skill:focus-visible{
  box-shadow: 0 0 0 3px rgba(15, 94, 168, .25); /* anillo foco */
}

/* Tamaños */
.btn-gentres-skill.btn-small{ padding: 7px 15px;}
.btn-gentres-skill.extraSmall{ padding: 5px 12px;}

/* Deshabilitado */
.btn-gentres-skill:disabled,
.btn-gentres-skill[disabled]{
  background: #c0c0c0;
  color: #fff;
  border-color: #c0c0c0;
  cursor: not-allowed;
  box-shadow: none;
}

/* Variante secundaria (fondo blanco con borde) */
.btn-gentres-skill.ghost{
  --bg: #fff;
  --bg-hover: #f7f7f9;      
  --fg: var(--brand-darkBlue, #072B51);
  background: var(--bg);
  border-color: #cbd5e1;
  color: var(--fg);
}
.btn-gentres-skill.ghost:hover{
  border-color: #072B51;
}

.btn-gentres-skill.invert{
  --bg: var(--brand-darkBlue, #072B51);    
  --bg-hover: var(--brand-blue, #0F5EA8);
  --fg: #fff;
  background: var(--bg);
  color: var(--fg);
  border-color: #e5e7eb;
}
.btn-gentres-skill.invert:hover{
  background: var(--bg-hover);
}

/* Estado seleccionado (aplica a base y ghost) */
.btn-gentres-skill.selected{
  background: var(--brand-darkBlue, #0F5EA8);
  color: #fff;
  border-color: transparent;
}
.btn-gentres-skill.ghost.selected{
  background: var(--brand-darkBlue, #072B51);
  color: #fff;
  border-color: var(--brand-darkBlue, #072B51);
}

/* Se aplica siempre al cancelar */
.btn-cancel-disabled {
  background: #989898 !important;
  color: #fff !important;
}
.btn-cancel-disabled:hover {
  background: #b4b4b4 !important;
  color: #fff !important;
}
.btn-cancel-disabled::before {
  display: none !important;
}

/* ===========================
   Termina Botón Skilliom (minimal)
   =========================== */

/* Cambia el div de los ul a in-line */
@media (max-width: 991.98px) { 
    .nav-container-responsive {
        display: block;
        position: relative;
    }

    .navbar-collapse {
        width: 100%;
        background: #fff;
        box-shadow: 0 3px 8px rgba(0,0,0,0.1);
        border-bottom: 1px solid #eee;
        position: absolute;
        left: 0;
        top: 100%;
        z-index: 1001;
    }

    .navbar-collapse .navbar-nav {
        padding-left: 24px; 
    }

    .navbar-collapse .navbar-nav .nav-item.btn-cta-item{
        background: var(--brand-darkBlue);
        display: block;
        width: calc(100% + 24px);
        margin-left: -24px;
    }

    .navbar-collapse .navbar-nav .nav-item.btn-cta-item .nav-link.btn-gentres-skill.cta{
        background: transparent;  
        display: block;
        border-radius: 0;
        padding: 12px 24px;        
        color: #fff !important;
        position: relative;
        z-index: 1;        
        text-align: left !important;       
    }

    .navbar-collapse .navbar-nav .nav-item.btn-cta-item:hover{
        background: var(--brand-blue);
    }
}

.content-white{
    color: white; /* Para que el texto sea legible en el nuevo fondo */
}

.shadow-box {
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    padding: 20px;
}

.ayuda-icon {
    cursor: pointer;
    margin-left: 5px;
    position: relative;
    display: inline-flex;
    align-items: center; 
}

.ayuda-icon i {
    vertical-align: middle;
}

.indexDiv {
    text-align: right; 
}
.indexImage {
    max-width: 100%;
    height: auto;
}

@media (min-width: 600px) and (max-width:767px){
    .indexDiv {
        text-align: center; 
    }
    .indexImage {
        max-width: 100%;
    }
}

.tooltips {
    display: none;
    position: absolute;
    background-color: #333333e3;
    color: #fff;
    line-height: 1.5;
    padding: 10px;
    border-radius: 7px;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
    max-width: 90vw;
    min-width: 300px;
    font-size: 16px;
    text-align: justify;
    white-space: normal;
    word-wrap: break-word;
    box-sizing: border-box;
}

.ayuda-icon:hover .tooltips {
    display: block;
}

.menu-item {
    padding: 8px 12px;
    cursor: pointer;
    display: block;
}

.menu-item:hover {
    background-color: #f0f0f0;
}

ul {
    list-style-type: none;  /* Elimina las viñetas */
    padding: 0;  /* Elimina el espacio de relleno */
    margin: 0;   /* Elimina el margen */
}

.small-space {
    height: 5px !important; /* Reduce el espacio */
}

.mid-space {
    height: 10px !important; /* Aumenta el espacio */
}

.large-space {
    height: 15px !important; /* Aumenta el espacio */
}

.white-floting-box {
    background-color: white; 
    border-radius: 8px; 
    padding: 15px; 
    box-shadow: 0 0 10px rgba(178, 178, 178, 0.2);
    height: 250px;
    overflow-y: auto; /* Si el contenido excede la altura máxima, aparecerá una barra de desplazamiento vertical */
}

.overlayMessage {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 15px;
    background-color: rgba(81, 81, 81, 0.85);
    z-index: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.overlayMessage span {
    color: white;
    font-size: 15px;
    font-weight: bold;
}

.box-fade {
    min-height: 80px; 
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.respuesta-corta-wrapper {
    position: relative;
    max-height: 5em; 
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.respuesta-corta-wrapper.pequena {
    max-height: 4.5em;
}

.respuesta-corta-wrapper.extraPequena {
    max-height: 4em;
}

.respuesta-corta-wrapper.expandida {
    max-height: none;
}

.respuesta-corta {
    margin: 0;
    line-height: 1.6em;
    min-height: 4.5em;
}

.respuesta-corta.pequena {
    line-height: 1.5em;
    min-height: 2em;
}

.respuesta-corta.extraPequena {
    line-height: 1.5em;
    min-height: 1.5em;
}

.fade-out {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2em;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0), white);
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.fade-out.grande {
    height: 2.5em;
}

.respuesta-corta-wrapper.expandida .fade-out {
    opacity: 0;
}

/* Clases para ajustar le margen dinámicamente en los puestos */
.ver-mas-visible {
  margin-top: 5px !important;
}

.ver-mas-oculto {
  margin-top: 15px !important;
}

.form-control-inline {
    display: inline-block;       
    width: auto;                 
    padding: 10px;      
    height: 40px;     
    border: 1px solid #ccc;
    border-radius: 4px;
    font-weight: 300;     
    color: #444; 
    vertical-align: middle;    
    outline: none !important;
    box-shadow: none !important;
    border-color: #ccc !important; 
}

.form-control-inline::placeholder {
    color: #999;       
    font-weight: 250;   
}

.form-control:focus, 
.form-control:focus-visible, 
.form-control:focus-within, 
.form-control:active {
    outline: none !important;
    box-shadow: none !important;
    border-color: #ccc !important; 
}

input.form-control,
textarea.form-control,
select.form-control,
.select2-container--default .select2-selection--single .select2-selection__rendered,
.select2-container--default .select2-selection--multiple .select2-selection__rendered,
.select2-container--default .select2-selection--single .select2-selection__placeholder,
.select2-dropdown,
.select2-results__option {
    font-weight: 300 !important;
    font-family: inherit !important;
}

.select2-container--default .select2-selection--single {
    height: 40px !important;
    text-align: left;
}

.select2-container .select2-selection__rendered {
    line-height: 40px !important; 
    text-align: left !important;
}

.select2-container .select2-results__option {
    text-align: left !important;
}

.select2-results__option[aria-selected="true"]{
    display:none !important;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 100% !important;
    top: 50% !important;
    transform: translateY(-50%);
    right: 8px; 
}

#lista-habilidades .habilidad-item.habilidad-oculta {
  display: none !important;
}

/* CAJAS PARA TEMAS */
/* Fila de temas: usa gutters del grid, no márgenes manuales */
.row-temas {
  row-gap: 15px; /* espacio vertical entre filas */
}

/* Cada columna funciona como contenedor flex para igualar alturas */
.row-temas > [class*="col-"] {
  display: flex;
  min-width: 0; /* permite que el contenido se encoja sin romper el ancho */
}

/* Tarjeta: ocupa toda la altura de su columna */
.tema-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex: 1 1 auto;
  height: 100%;
}

/* Título: centra y deja que quiebre palabras largas */
.tema-card__title {
  display: flex;
  justify-content: center;
  text-align: center;
}
.tema-card__title h6 {
  margin: 6px 0 10px 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}

/* Porcentaje al centro vertical siempre */
.tema-card__score {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 10px 0;
}

/* Pie */
.tema-card__footer {
  font-size: 13px;
  color: #555;
  text-align: center;
}
/* TEMRINAN CAJAS PARA TEMAS */

/* Hacer la card clickeable y no seleccionable */
.comp-card {
  position: relative;   
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  -ms-user-select: none;
  transition: box-shadow .2s ease, transform .2s ease;
}
.comp-card * {          
  user-select: none;
  -webkit-user-select: none;
}

/* Sutileza visual al hover (opcional) */
.comp-card:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,.06);
  transform: translateY(-1px);
}

.hidden{
    display: none;
}

/* ALERTAS */
.swal2-popup {
    color: var(--text-color) !important;
    border-radius: 10px !important; 
}

.swal2-backdrop-show {
    background: rgba(0, 0, 0, 0.5) !important; 
    /*backdrop-filter: blur(6px);*/
}

.swal2-title {
    font-family: 'Geologica', 'Times New Roman', 'Arial' !important;
    color: var(--text-color) !important;
    font-weight: 400; 
}

.swal2-html-container {
    font-family: 'Geologica', 'Times New Roman', 'Arial' !important;
    font-size: 0.95rem;
}

.swal2-image {
    margin-bottom: 0px !important; 
}

.swal2-actions-custom {
    gap: 10px; 
    justify-content: center; 
}

.swal2-confirm:focus {
  outline: none !important;
  box-shadow: none !important;
}

/* TERMINAN ALERTAS */

@media (max-width: 600px) {
    .tooltips {
        left: 50%;                     /* Centrado horizontalmente */
        transform: translateX(-50%);   /* Ajusta el posicionamiento centrado */
        max-width: 90vw;               /* Asegura que no se desborde */
        position: fixed;               /* Asegura que el tooltip se posicione con respecto a la pantalla */
        top: 50%;                      /* Centrado verticalmente */
        transform: translate(-50%, -50%);  /* Ajuste para centrar vertical y horizontalmente */
    }
}

/* SCOPS */

.page-index .shadow-box {
  padding: 20px;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  min-height:250px;
}

@media (max-width: 1000px) {
  .page-index .shadow-box { min-height:260px; }
}
@media (max-width: 767.98px) {
  .page-index .shadow-box { padding:15px; min-height:210px; }
}
@media (max-width: 575.98px) {
  .page-index .shadow-box { min-height:200px; }
}
