/* =Typography Tamaño General de la Fuente
-----------------------------------------------------------------------------
*/
body {
  font-family: 'Merriweather', Georgia, 'Times New Roman', Times, Serif;
  font-size: 0.85em; /* Cambia 0.85em por 0.95em o el valor que desees */
  line-height: 1.5em;
  background-color: #faf8f8;
}

pre>code {
  font-family: 'Hack', 'Source Code Pro', 'Courier New', 'Courier', monospace;
}

form,
input[type="search"],
select[multiple="multiple"] {
  font-family: 'Fira Sans', 'Trebuchet MS', 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

h1,
h2,
h3,
h4,
h5 {
  font-family: 'Fira Sans', 'Trebuchet MS', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  color: #36454f;
  font-weight: bold;
}

h1 {
  font-size: 1.5em;
  padding-bottom: 1em;
  line-height: 1.6em;
}

h2 {
  font-size: 1.3em;
  border-bottom: 1px solid #b3cde0;
}

h2 a {
  border-bottom: none;
}

h3 {
  font-size: 1.1em;
}

h6 {
  font-size: 0.8em;
}

a {
  color: #36454f;
  text-decoration: none;
  border-bottom: dotted 1px #A1A3A1;
}

a:hover {
  text-decoration: underline;
}

hr {
  border-top: 1px solid #b3cde0;
  margin-top: 5ex;
  margin-bottom: 5ex;
  max-width: 100%;
}

blockquote {
  color: #36454f;
  background: #e9e9e9;
  border-left: 10px solid #ccc;
  margin: 1.5em 10px;
  padding: 0.5em 10px;
  quotes: "\201C""\201D""\2018""\2019";
  font-style: normal;
  font-size: 95%;
}

blockquote p {
  color: #36454f;
  display: inline;
}

blockquote:before {
  color: #aaa;
  content: open-quote;
  font-size: 4em;
  line-height: 0.1em;
  margin-right: 0.25em;
  vertical-align: -0.4em;
}

.table {
  --bs-table-bg: @faf8f8 !important;
}

td, th {
  background-color: #faf8f8 !important;
}

table th,
table td {
  border-bottom: 0px !important;
  padding: 0.2em .2em;
}

ul {
  list-style: square;
}

dd {
  margin-left: 2em;
}

/* =Code
-----------------------------------------------------------------------------
*/
pre,
code,
kbd,
samp,
var,
output {
  font-size: 80%;
  font-style: normal;
  font-family: 'Source Code Pro', "Lucida Console", "Courier New", monospace;
}

nav,
.footer {
  font-family: 'Fira Sans', 'Trebuchet MS', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 115%;
  margin-bottom: 0;
}


.footer {
  background-color: #f2f2f2; /* Gris claro, cámbialo si quieres */
  padding-top: 0px;
  padding-bottom: 0px;
  text-align: center;
  font-size: 100%;
  color: #333;
  margin-top: 0px; /* Añade espacio arriba si está muy pegado */
}
.footer p {
  margin: 0;
}


a.nav-link,a.navbar-brand {
  border-bottom: 0;
}

a.nav-link:hover,a.navbar-brand:hover {
  color: #efce14;
}

/* Badges */

a.badge.badge-red {
  color: #fff;
}

a.badge.badge-blue {
  color: #fff;
}

a.badge.badge-green {
  color: #fff;
}

.badge-large {
  font-size: 18px !important;
  text-transform: none !important;
  padding: 5px 5px 3px 5px;
  text-transform: none;
  font-family: 'Fira Sans', 'Trebuchet MS', 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

.badge {
  font-family: 'Fira Sans', 'Trebuchet MS', 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

.label,
.badge {
  background: #e0e3e5;
  font-size: 12.75px;
  display: inline-block;
  line-height: 1;
  padding: 4px 7px 3px 7px;
  color: #0f0f0f;
  text-align: center;
  font-weight: normal;
  text-transform: uppercase;
}

.label-outline {
  background: none;
  border: 1px solid #0f0f0f;
  padding: 3px 6px 2px 6px;
}

.badge {
  border-radius: 15px;
}

.badge-small {
  font-size: 11.25px;
  padding: 5px 5px 3px 5px;
}

.label-black,
.label-blue,
.label-red,
.label-green,
.badge-black,
.badge-blue,
.badge-red,
.badge-green {
  color: #ffffff !important;
}

.label-black,
.badge-black {
  background: #0f0f0f;
}

.label-blue,
.badge-blue {
  background: #4673B8;
}

.label-red,
.badge-red {
  background: #BD666D;
}

.label-green,
.badge-green {
  background: #2c9f42;
}

.label-yellow,
.badge-yellow {
  background: #ffc800;
}

.label-white,
.badge-white {
  background: #ffffff;
}

.image-left {
  float: left;
  margin: 0 1em 1em 0;
}

.fa-ul>li {
  margin: 0.5em;
}

.quarto-title-meta {
  font-family: 'Fira Sans', 'Trebuchet MS', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  background-color: #ddd;
  -moz-border-radius: 10px;
  -webkit-border-radius: 10px;
  border-radius: 10px;
}

.quarto-title-meta-heading {
  margin: 1ex 1ex 0 1ex !important;
}
.quarto-title-meta-contents {
  margin: 0ex 1ex 1ex 1ex !important;
}

.video-player {
  position: relative;
  overflow: hidden;
  width: 100%;
  padding-top: 56.25%; /* 16:9 Aspect Ratio (divide 9 by 16 = 0.5625) */
}

/* Then style the iframe to fit in the container div with full height and width */
.youtube-player {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  width: 100%;
  height: 100%;
}

.quarto-listing-category.category-cloud {
  font-family: 'Fira Sans', 'Trebuchet MS', 'Helvetica Neue', Helvetica, Arial, sans-serif !important;
}

.figure-caption {
  color: var(--darkgray);
  background-color: var(--lightgray);
  padding-left: 20px;
  font-size: 12pt;
  font-family: "Fira Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

div.quarto-about-trestles .about-entity .about-link:hover {
  background-color: #36454f;
  color: #ebebeb;
}

.quarto-category:hover, .listing-category:hover {
  background-color: #36454f;
  color: #ebebeb !important;
  opacity: .6;
}

.quarto-category, .listing-category, .listing-actions-group, .about-link-text {
  font-family: "Fira Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

#mlb2-4240669.ml-form-embedContainer .ml-form-embedWrapper .ml-form-embedBody, #mlb2-4240669.ml-form-embedContainer .ml-form-embedWrapper .ml-form-successBody {
  padding: 0px !important;
}

/* Justificar el texto del contenido */
p {
  text-align: justify;
}




/* --- Ajuste correcto y final de la portada (about: trestles) --- */

div.quarto-about-trestles {
  margin-top: 0 !important;       /* elimina espacio blanco arriba */
  margin-bottom: 0 !important;    /* elimina espacio blanco abajo */
  padding-top: 3rem !important;   /* equilibrio visual */
  padding-bottom: 3rem !important;
  display: flex;
  align-items: center;
  justify-content: center;
}

div.quarto-about-trestles .about-contents {
  margin-left: auto;
  margin-right: auto;
  max-width: 1100px;
}

/* versión móvil */
@media (max-width: 768px) {
  div.quarto-about-trestles {
    padding-top: 1.2rem !important;
    padding-bottom: 1.2rem !important;
    display: block;
  }
}


/* SOLUCIONA BARRA MUY ALTA


/* --- Ajustar altura del footer --- */

.nav-footer {
  min-height: 2em;
  padding-top: 0.10rem;
  padding-bottom: 0.10rem;
}

.nav-footer-left,
.nav-footer-right {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

.nav-footer p {
  margin: 0 !important;
}


.nav-footer {
  justify-content: center !important;
  text-align: center !important;
}

.nav-footer-left,
.nav-footer-right {
  flex: 0 0 auto !important;
  text-align: center !important;
  margin: 0 0.4rem;
}




/* LOGO PERSONAL EN NAVBAR */
/* Ajusta tamaño del logo */
.logo-navbar {
    height: 38px;       /* Cambia aquí el tamaño */
    width: auto;
    margin-left: 10px;
    margin-right: 10px;
    object-fit: contain;
    vertical-align: middle;
}

/* Responsivo para móvil */
@media (max-width: 600px) {
    .logo-navbar {
        height: 30px;
    }
}
/* Ajuste general del logo */
.logo-navbar {
    height: 38px;
    width: auto;
    margin-left: 12px;
    vertical-align: middle;
}



/* ============================================================================
   PATCH VISUAL CONSERVADOR
   Azul marino base + dorado en hover
   NO altera dimensiones ni elimina funciones
   ============================================================================ */

/* 1) Tipografía moderna (mismos tamaños) */
body,
h1, h2, h3, h4, h5,
nav,
.footer,
.badge,
.label,
.quarto-category,
.listing-category,
.about-link-text {
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif !important;
}

/* 2) Color base: azul marino (reemplaza plomo) */
body,
h1, h2, h3, h4, h5,
blockquote,
blockquote p {
  color: #1a2a3a !important;
}

/* 3) Enlaces: azul marino → dorado al hover */
a {
  color: #1a2a3a !important;
  border-bottom-color: rgba(26,42,58,0.45) !important;
}

a:hover {
  color: #d4a017 !important;
  border-bottom-color: #d4a017 !important;
}

/* 4) Navbar: ítem activo permanece marcado */
.navbar-nav .nav-link.active,
.navbar-nav .nav-link[aria-current="page"] {
  color: #d4a017 !important;
  font-weight: 700;
}

/* 5) Badges y categorías: hover dorado (no blanco) */
.quarto-category:hover,
.listing-category:hover,
.badge:hover,
.label:hover {
  background-color: #d4a017 !important;
  color: #ffffff !important;
  opacity: 1 !important;
}

/* 6) Tarjetas / listados: hover con sombra dorada sutil */
.quarto-listing-default .listing-item:hover,
.card:hover {
  box-shadow: 0 10px 28px rgba(212,160,23,0.25) !important;
}

/* 7) Foto de inicio: interacción moderna respetando forma circular */
div.quarto-about-trestles .about-entity img {
  border-radius: 50% !important; /* asegura redondo */
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease,
    filter 0.3s ease;
}

div.quarto-about-trestles .about-entity img:hover {
  transform: translateY(-5px) scale(1.03);
  box-shadow:
    0 0 0 5px rgba(212,160,23,0.35),
    0 14px 35px rgba(0,0,0,0.25);
  filter: contrast(1.05) saturate(1.05);
}

/* 8) Botones/redes sociales: dorado al hover */
div.quarto-about-trestles .about-link:hover {
  background-color: #d4a017 !important;
  border-color: #d4a017 !important;
  color: #ffffff !important;
}

/* 9) Footer y navbar: coherencia azul marino + dorado */
.navbar,
.nav-footer {
  border-color: #d4a017 !important;
}



/* ============================================================================
   NAVBAR & FOOTER – AZUL MARINO + DORADO
   Seguro: no rompe funciones ni dimensiones
   ============================================================================ */

/* 1) Cinta superior (navbar) */
.navbar {
  background-color: #1a2a3a !important;   /* azul marino */
}

/* Texto normal en navbar */
.navbar a,
.navbar .nav-link,
.navbar-brand {
  color: #ffffff !important;              /* blanco */
}

/* Hover en navbar */
.navbar a:hover,
.navbar .nav-link:hover,
.navbar-brand:hover {
  color: #d4a017 !important;              /* dorado */
}

/* Ítem activo / seleccionado (permanece dorado) */
.navbar .nav-link.active,
.navbar .nav-link[aria-current="page"] {
  color: #d4a017 !important;
  font-weight: 700;
}

/* Línea inferior dorada (si ya la usas, se mantiene coherente) */
.navbar {
  border-bottom: 3px solid #d4a017 !important;
}

/* -------------------------------------------------------------------------- */

/* 2) Cinta inferior (footer) */
.nav-footer {
  background-color: #1a2a3a !important;   /* azul marino */
  color: #ffffff !important;              /* blanco */
  border-top: 3px solid #d4a017 !important;
}

/* Texto y enlaces del footer */
.nav-footer,
.nav-footer a,
.nav-footer p {
  color: #ffffff !important;
}

/* Hover en enlaces del footer */
.nav-footer a:hover {
  color: #d4a017 !important;
}

/* Iconos (GitHub, LinkedIn, etc.) */
.nav-footer svg,
.nav-footer i {
  fill: #ffffff !important;
  transition: fill 0.2s ease;
}

.nav-footer a:hover svg,
.nav-footer a:hover i {
  fill: #d4a017 !important;
}









/* ============================================================================
   NAVBAR PROFESIONAL – SIN ANIMACIONES, SIN UNDERLINES
   Estilo académico / data science senior
   ============================================================================ */

/* Estado normal */
.navbar .nav-link,
.navbar-brand {
  color: #ffffff !important;
  font-weight: 500;
  background-color: transparent;
}

/* Hover: dorado sobrio */
.navbar .nav-link:hover,
.navbar-brand:hover {
  color: #d4a017 !important;
}

/* Activo / seleccionado */
.navbar .nav-link.active,
.navbar .nav-link[aria-current="page"] {
  color: #d4a017 !important;
  font-weight: 700;
  background-color: rgba(212,160,23,0.15); /* fondo dorado sutil */
  border-radius: 6px;
}

/* Espaciado interno consistente */
.navbar .nav-link {
  padding: 0.4rem 0.7rem;
}









/* ============================================================================
   DROPDOWN / SUBMENÚ – AZUL MARINO + TEXTO BLANCO
   Corrige contraste y mantiene estilo profesional
   ============================================================================ */

/* Fondo del dropdown */
.navbar .dropdown-menu {
  background-color: #1a2a3a !important; /* azul marino */
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: 0 10px 25px rgba(0,0,0,0.35);
}

/* Texto del dropdown */
.navbar .dropdown-menu .dropdown-item {
  color: #ffffff !important; /* blanco */
  font-weight: 500;
}

/* Hover en items del dropdown */
.navbar .dropdown-menu .dropdown-item:hover,
.navbar .dropdown-menu .dropdown-item:focus {
  background-color: rgba(212,160,23,0.18) !important; /* dorado sutil */
  color: #d4a017 !important;
}

/* Item activo/seleccionado */
.navbar .dropdown-menu .dropdown-item.active,
.navbar .dropdown-menu .dropdown-item[aria-current="page"] {
  background-color: rgba(212,160,23,0.28) !important;
  color: #d4a017 !important;
  font-weight: 600;
}

/* Separadores dentro del dropdown */
.navbar .dropdown-menu .dropdown-divider {
  border-color: rgba(255,255,255,0.12);
}



/* ============================================================================
   METADATOS DE PUBLICACIÓN – AZUL MARINO + DORADO
   Reemplaza el plomo sin cambiar estructura
   ============================================================================ */

/* Contenedor de metadatos */
.quarto-title-meta {
  background-color: rgba(26, 42, 58, 0.08) !important; /* azul marino suave */
  border: 1px solid rgba(26, 42, 58, 0.18);
  color: #1a2a3a !important;
}

/* Títulos (AUTOR/A, FECHA DE PUBLICACIÓN, etc.) */
.quarto-title-meta-heading {
  color: #1a2a3a !important;
  font-weight: 700;
  letter-spacing: 0.4px;
}

/* Contenido (nombre, fecha) */
.quarto-title-meta-contents {
  color: #1a2a3a !important;
}

/* Hover sutil (opcional pero elegante) */
.quarto-title-meta:hover {
  background-color: rgba(212, 160, 23, 0.12) !important; /* dorado muy sutil */
  border-color: rgba(212, 160, 23, 0.35);
  transition: background-color 0.25s ease, border-color 0.25s ease;
}

















/* HOME – Jerarquía visual del texto (sin cambiar tamaños) */
body:has(.quarto-about-trestles) .about-contents h1,
body:has(.quarto-about-trestles) .about-contents strong:first-of-type {
  font-weight: 700;
  letter-spacing: 0.3px;
}

body:has(.quarto-about-trestles) .about-contents p:first-of-type {
  font-weight: 500;
}

/* HOME – Cita más elegante */
body:has(.quarto-about-trestles) blockquote {
  background-color: rgba(26, 42, 58, 0.06);
  border-left-color: #d4a017;
}

body:has(.quarto-about-trestles) blockquote p {
  font-style: italic;
  color: #1a2a3a;
}

/* HOME – Botones sociales refinados */
body:has(.quarto-about-trestles) .about-link {
  box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}

body:has(.quarto-about-trestles) .about-link:hover {
  box-shadow: 0 8px 20px rgba(212,160,23,0.35);
}


/* HOME – Aparición suave */
body:has(.quarto-about-trestles) div.quarto-about-trestles {
  animation: homeFade 0.6s ease-out;
}

@keyframes homeFade {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}



.navbar-brand img {
  max-height: none;
  height: 56px;
}


.navbar {
  padding-top: 2px;
  padding-bottom: 2px;
}



@media (max-width: 991px) {
  .navbar-brand img {
    display: none;
  }
}



@media (max-width: 991px) {
  .navbar {
    min-height: 64px;
  }
}





