/* ======================================================
   FUENTES: ALLER (CUERPO) + CRIMSON PRO (TÍTULOS / NAVBAR)
   ====================================================== */

/* Crimson Pro */
@import url('https://fonts.googleapis.com/css2?family=Crimson+Pro:ital,wght@0,400;0,600;0,700;1,400;1,600;1,700&display=swap');

/* Aller (local webfont kit) */
@font-face {
    font-family: 'Aller';
    src: url('fonts/aller/aller_rg-webfont.woff2') format('woff2'),
         url('fonts/aller/aller_rg-webfont.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Aller';
    src: url('fonts/aller/aller_it-webfont.woff2') format('woff2'),
         url('fonts/aller/aller_it-webfont.woff') format('woff');
    font-weight: normal;
    font-style: italic;
}

@font-face {
    font-family: 'Aller';
    src: url('fonts/aller/aller_bd-webfont.woff2') format('woff2'),
         url('fonts/aller/aller_bd-webfont.woff') format('woff');
    font-weight: bold;
    font-style: normal;
}

@font-face {
    font-family: 'Aller';
    src: url('fonts/aller/aller_bdit-webfont.woff2') format('woff2'),
         url('fonts/aller/aller_bdit-webfont.woff') format('woff');
    font-weight: bold;
    font-style: italic;
}

@font-face {
    font-family: 'Aller';
    src: url('fonts/aller/aller_lt-webfont.woff2') format('woff2'),
         url('fonts/aller/aller_lt-webfont.woff') format('woff');
    font-weight: 300;
    font-style: normal;
}

@font-face {
    font-family: 'Aller';
    src: url('fonts/aller/aller_ltit-webfont.woff2') format('woff2'),
         url('fonts/aller/aller_ltit-webfont.woff') format('woff');
    font-weight: 300;
    font-style: italic;
}

@font-face {
    font-family: 'Aller Display';
    src: url('fonts/aller/allerdisplay-webfont.woff2') format('woff2'),
         url('fonts/aller/allerdisplay-webfont.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

/* ================================
   CUERPO DEL SITIO
   ================================ */

body {
font-family: "Aller", sans-serif;
line-height: 1.6;
font-size: 18px; /* o 1.125rem */
}

/* ================================
   TÍTULOS
   ================================ */

h1, h2, h3, h4, h5, h6 {
  font-family: "Crimson Pro", serif;
  font-weight: 700;
}

h1 { font-size: 2.2rem; }
h2 { font-size: 1.9rem; }
h3 { font-size: 1.6rem; }

@media (max-width: 768px) {
body { font-size: 16px; }
h1 { font-size: 1.9rem; }
h2 { font-size: 1.7rem; }
}

/* ================================
   NAVBAR – LOGO
   ================================ */

.navbar-brand img,
.navbar-brand .navbar-logo {
  max-height: 74px !important;
  width: auto !important;
}

.navbar {
  min-height: 76px !important;
}

.navbar-brand {
  display: flex;
  align-items: center;
  font-family: "Crimson Pro", serif;
  font-weight: 800;       /* Logo / nombre en negrita */
  font-size: 1.5rem;
}

/* ================================
   NAVBAR – ÍTEMS DE NAVEGACIÓN
   ================================ */

.navbar-nav .nav-link {
  font-family: "Aller", sans-serif;
  font-weight: 500; 
  font-size: 1rem;
  color: #F1F5F5;
}

/* Hover y focus: NO cambiar color ni fondo */
.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link:focus {
  color: #F1F5F5;
  background-color: transparent !important;
}

/* Página activa */
.navbar-dark .navbar-nav .nav-link.active {
  font-weight: 600;
  color: #FFFFFF;
  background-color: transparent !important;
}

/* ================================
   RESPONSIVE
   ================================ */

@media (max-width: 768px) {
  .navbar-brand img,
  .navbar-brand .navbar-logo {
    max-height: 56px !important;
  }

  .navbar {
    min-height: 64px !important;
  }

  .navbar-brand {
    font-size: 1.1rem;
  }

  .navbar-nav .nav-link {
    font-size: 1rem;
  }
}

/* ================================
   images
   ================================ */

.img-right {
  float: right;
  margin-left: 1em;
  max-width: 20%;
  text-align: center; 
}

.img-left {
  float: left;
  margin-right: 1em;
  max-width: 20%;
}

.img-right-wrap {
  float: right;
  margin-left: 1em;
  max-width: 20%;
  text-align: center;
  display: inline-block;
}

.img-right-wrap img {
  width: 100%;
  display: block;
}

.img-right-wrap .caption {
  font-size: 0.3em;
  margin-top: 0.25em;
}

/* Estilo general del slider */
input[type="range"] {
  -webkit-appearance: none;
  width: 100%;
  height: 6px;
  background: #33111422; /* línea tenue */
  border-radius: 4px;
  outline: none;
}

/* El thumb (Chrome/Edge/Opera) */
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 14px;
  height: 14px;
  background: #331114; /* tu color */
  border-radius: 50%;
  cursor: pointer;
}

/* El thumb (Firefox) */
input[type="range"]::-moz-range-thumb {
  width: 14px;
  height: 14px;
  background: #331114;
  border-radius: 50%;
  cursor: pointer;
}

/* El track en Firefox */
input[type="range"]::-moz-range-track {
  background: #33111422;
  height: 6px;
  border-radius: 4px;
}

.widget-box {
  background-color: #F1F5F5;    /* un neutro cálido */
  color: #1a1a1a;               /* texto estándar */
  padding: 1em 1.5em;
  border-radius: 8px;
  border: 1px solid #33111422;
  max-width: 900px;
  margin: 1.5em auto;
}

/* Inputs dentro del widget */
.widget-box select,
.widget-box input[type="range"] {
  background-color: #FFFFFF;
  color: #1a1a1a;
  border: 1px solid #33111455;
}

/* Slider */
.widget-box input[type="range"] {
  -webkit-appearance: none;
  width: 100%;
  height: 6px;
  background: #33111422;
  border-radius: 4px;
}
.widget-box input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 14px; height: 14px;
  background: #331114;
  border-radius: 50%;
}
.widget-box input[type="range"]::-moz-range-thumb {
  width: 14px; height: 14px;
  background: #331114;
  border-radius: 50%;
}

/* Inputs numéricos dentro del widget */
.widget-box input[type="number"] {
background-color: #FFFFFF;
color: #1a1a1a;
border: 1px solid #33111455;
border-radius: 6px;
padding: 4px 6px;
box-sizing: border-box;


/* Evita forced-dark en navegadores */
color-scheme: light;
-webkit-text-fill-color: #1a1a1a;
}

.widget-box input[type="number"]:focus {
border-color: #331114AA;
outline: none;
}

#plot {
  background: #F7F9F9 !important;
}