@charset "utf-8";
/* CSS Document */
// Scss Document
/* ==========================================================
   SERIE FITNESS - Estilos generales
   Compatible con Drupal 11 (namespace aislado)
   Autor: Prof. Orlando CÃ¡rcamo BerrÃ­o
   ========================================================== */

.fitness-article {
  font-family: 'Open Sans', sans-serif;
  background-color: #f5f5f5;
  color: #1c1c1c;
  line-height: 1.6;
  margin: 0;
  padding: 0;
  transition: background 0.3s ease, color 0.3s ease;
}

/* ---------- CABECERA FIJA (logo + tÃ­tulo general) ---------- */
/*.fitness-article .site-header {
  position: relative; 
  top: auto;
  backdrop-filter: none; 
  background: linear-gradient(90deg, #fff, #f7f7f7);
  border-bottom: 3px solid var(--color-energy);
}*/

/*.fitness-article .site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 70px;
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 18px;
  background: rgba(255, 210, 63, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}*/

/*.fitness-article .site-header img {
  height: 42px;
  width: auto;
  display: block;
}*/

/*.fitness-article .site-header .site-title {
  font-family: 'Oswald', sans-serif;
  font-size: 1.2rem;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: #111;
  margin: 0;
}*/
/* CABECERA INTERNA DENTRO DEL ARTÃCULO */
.fitness-article .site-header {
  position: static; /* nada de fixed ni absolute */
  text-align: center;
  background: linear-gradient(90deg, #fff, #fdf5d1);
  border-bottom: 3px solid var(--color-energy);
  padding: 1.5em 0;
  margin: 0 auto 2em;
  max-width: 900px;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.fitness-article .site-header img {
  max-width: 120px;
  height: auto;
  display: block;
  margin: 0 auto 0.5em;
}

.fitness-article .site-header .site-title {
  font-family: 'Oswald', sans-serif;
  font-size: 1.3em;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--color-dark);
}

/* VersiÃ³n modo oscuro */
body.dark .fitness-article .site-header {
  background: #2a2a2a;
  border-bottom: 3px solid var(--color-energy);
}

body.dark .fitness-article .site-header .site-title {
  color: var(--color-text);
}

/* === CABECERA STICKY, FORZADA A LA IZQUIERDA === */
.fitness-article .site-header.sticky {
  position: -webkit-sticky;
  position: sticky;
  top: 1rem;
  z-index: 10;

  display: flex !important;
  align-items: center;
  justify-content: flex-start !important; /* â† fuerza alineaciÃ³n izquierda */
  text-align: left !important;            /* â† anula centrado heredado */

  gap: 0.8em;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(6px);
  border-left: 4px solid var(--color-energy);
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);

  padding: 0.6em 1.2em;
  width: fit-content;                     /* â† solo ocupa lo necesario */
  max-width: none;
  margin: 0.5em 0 1.5em 0 !important;     /* â† elimina centrado automÃ¡tico */

  transform: translateX(0);               /* â† evita desplazamientos */
}

/* Logo */
.fitness-article .site-header.sticky img {
  width: 45px;
  height: auto;
  border-radius: 4px;
  flex-shrink: 0;
  margin-right: 0.6em;
}

/* Texto del tÃ­tulo */
.fitness-article .site-header.sticky .site-title {
  font-family: 'Oswald', sans-serif;
  font-size: 1.05em;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
  color: var(--color-dark);
  margin: 0;
}

/* --- Modo oscuro --- */
body.dark .fitness-article .site-header.sticky {
  background: rgba(30, 30, 30, 0.85);
  border-left: 4px solid var(--color-energy);
  box-shadow: 0 2px 8px rgba(255,255,255,0.08);
}
body.dark .fitness-article .site-header.sticky .site-title {
  color: var(--color-text);
}

/* --- MÃ³vil --- */
@media (max-width: 700px) {
  .fitness-article .site-header.sticky {
    justify-content: flex-start !important;
    width: calc(100% - 1.5em);
    margin-left: 0.75em !important;
    margin-right: 0 !important;
  }
  .fitness-article .site-header.sticky img {
    width: 38px;
  }
  .fitness-article .site-header.sticky .site-title {
    font-size: 0.95em;
  }
}
/* ---------- ESPACIADO PRINCIPAL ---------- */
.fitness-article .page-wrap {
  margin-top: 90px;
}

/* ---------- HEADER DEL ARTÃCULO ---------- */
.fitness-article header {
  background: linear-gradient(90deg, #FFD23F, white);
  text-align: center;
  padding: 3em 1em 2em;
  position: relative;
}

.fitness-article header h1 {
  font-family: 'Oswald', sans-serif;
  font-size: 2.4em;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.2em;
}

.fitness-article header h2 {
  font-style: italic;
  font-weight: 400;
  font-size: 1.2em;
}

/* ---------- BLOQUE DE AUTORÃA ---------- */
.fitness-article .tr-author-badge {
  margin-top: 1em;
  font-size: 0.95em;
  font-family: 'Merriweather', serif;
}

.fitness-article .tr-author-badge img {
  vertical-align: middle;
  margin-right: 4px;
}

.fitness-article .tr-author-badge .author-name {
  font-weight: 600;
}

/* ---------- BOTÃ“N DE MODO OSCURO ---------- */
.fitness-article .theme-toggle {
  position: absolute;
  top: 1.2em;
  right: 1.2em;
  background: none;
  border: 2px solid #1c1c1c;
  border-radius: 50%;
  width: 42px;
  height: 42px;
  font-size: 1.2em;
  cursor: pointer;
  color: #1c1c1c;
  transition: all 0.3s ease;
}
.fitness-article .theme-toggle:hover {
  background: #FFD23F;
  color: #111;
}

/* ---------- IMAGEN PRINCIPAL ---------- */
.fitness-article .main-image-container {
  width: 100%;
  text-align: center;
  overflow: hidden;
  background-color: #fff;
  border-bottom: 5px solid #FFD23F;
}
.fitness-article .main-image-container img {
  width: 100%;
  height: auto;
  max-height: 90vh;
  object-fit: contain;
  object-position: center;
  display: block;
  margin: 0 auto;
  border-radius: 8px;
  transition: all 0.3s ease-in-out;
}
.fitness-article .main-image-container img:hover {
  transform: scale(1.01);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* ---------- PIE DE IMAGEN PRINCIPAL ---------- */
.fitness-article .image-caption {
  font-family: 'Merriweather', serif;
  font-style: italic;
  font-size: 1em;
  margin: 0.8em auto 1em;
  display: inline-block;
  padding: 0.6em 0.8em;
  border-left: 4px solid #FFD23F;
  background: #ffffff;
  color: #333;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  border-radius: 4px;
  text-align: center;
}

/* ---------- BLOQUE DE AUDIO / PODCAST ---------- */
.fitness-article .media-players-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2em;
  background-color: white;
  padding: 2em;
  border-bottom: 4px solid #FFD23F;
  transition: background 0.3s ease;
}
.fitness-article .player-wrapper {
  flex: 1 1 320px;
  max-width: 500px;
}
.fitness-article .player-wrapper h3 {
  text-align: center;
  font-family: 'Oswald', sans-serif;
  font-size: 1.1em;
  margin-bottom: 0.5em;
}
.fitness-article audio,
.fitness-article iframe {
  width: 100%;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

/* ---------- BLOQUE DE LICENCIA ---------- */
.fitness-article .cc-license {
  background-color: #f4f4f4;
  border-radius: 6px;
  font-size: 0.85rem;
  margin: 1.5rem auto;
  max-width: 800px;
  padding: 1rem;
  line-height: 1.4;
}
.fitness-article .cc-license a {
  color: #0073aa;
  text-decoration: none;
}
.fitness-article .cc-license a:hover {
  text-decoration: underline;
}

/* ---------- INTRODUCCIÃ“N Y ARTÃCULO ---------- */
.fitness-article .intro {
  background-color: white;
  padding: 2em;
  margin: 2em auto;
  max-width: 800px;
  border-left: 6px solid #FFD23F;
  font-size: 1.1em;
  transition: background 0.3s ease;
}
.fitness-article article {
  max-width: 800px;
  margin: 2em auto;
  background: white;
  padding: 2em;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
}
.fitness-article article h3 {
  font-family: 'Oswald', sans-serif;
  color: #FFD23F;
  text-transform: uppercase;
  border-bottom: 2px solid #FFD23F;
  display: inline-block;
  padding-bottom: 0.3em;
  margin-top: 2em;
}
.fitness-article blockquote {
  background: #f5f5f5;
  border-left: 6px solid #4CAF50;
  padding: 1em 1.5em;
  margin: 1.5em 0;
  font-family: 'Merriweather', serif;
  font-style: italic;
  color: #333;
}

/* ---------- IMÃGENES INTERNAS ---------- */
.fitness-article .float-image {
  max-width: 45%;
  margin: 1em;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}
.fitness-article .float-image img {
  width: 100%;
  height: auto;
  max-height: 450px;
  object-fit: cover;
}
.fitness-article .float-image figcaption {
  font-size: 0.95em;
  font-family: 'Merriweather', serif;
  font-style: italic;
  color: #333;
  background-color: #ffffff;
  padding: 0.6em 0.8em;
  margin-top: 0;
  text-align: center;
  border-left: 4px solid #4CAF50;
  border-radius: 4px;
}
.fitness-article .float-image.right { float: right; margin-left: 1.5em; }
.fitness-article .float-image.left { float: left; margin-right: 1.5em; }
.fitness-article article::after { content: ""; display: block; clear: both; }

/* ---------- GALERÃA ---------- */
.fitness-article .image-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1em;
  margin: 2em 0;
}
.fitness-article .image-gallery img {
  width: 100%;
  height: auto;
  max-height: 420px;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  object-fit: cover;
}

/* ---------- ARTÃCULOS RELACIONADOS ---------- */
.fitness-article .related-articles {
  max-width: 800px;
  margin: 3em auto;
  border-top: 3px solid #FFD23F;
  padding-top: 1em;
}
.fitness-article .related-articles h3 {
  font-family: 'Oswald', sans-serif;
  text-transform: uppercase;
  margin-bottom: 1em;
}
.fitness-article .related-list {
  display: flex;
  flex-wrap: wrap;
  gap: 1em;
}
.fitness-article .related-item {
  flex: 1 1 calc(50% - 1em);
  background: #fff8d9;
  border-radius: 8px;
  padding: 1em;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}
.fitness-article .related-item:hover {
  transform: scale(1.02);
}
.fitness-article .related-item p {
  color: #444;
  margin-top: 0.4em;
}

/* ---------- PIE DE PÃGINA ---------- */
.fitness-article footer {
  text-align: center;
  padding: 2em;
  margin-top: 3em;
  font-family: 'Merriweather', serif;
  background: #fff;
  border-top: 3px solid #FFD23F;
  color: #333;
}

/* ---------- EFECTO SCROLL REVEAL ---------- */
.fitness-article .reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.8s ease;
}
.fitness-article .reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- MODO OSCURO ---------- */
.fitness-article.dark {
  background-color: #1E1E1E;
  color: #EDEDED;
}
.fitness-article.dark header {

  background: linear-gradient(90deg, #333, #222);
  color: #EDEDED;
}
.fitness-article.dark .theme-toggle {
  border-color: #FFD23F;
  color: #FFD23F;
}
.fitness-article.dark .theme-toggle:hover {
  background: #FFD23F;
  color: #111;
}
.fitness-article.dark .main-image-container {
  background: #222;
  border-bottom: 5px solid #FFD23F;
}
.fitness-article.dark .intro,
.fitness-article.dark article,
.fitness-article.dark .media-players-container,
.fitness-article.dark footer {
  background: #2A2A2A;
  color: #EDEDED;
}
.fitness-article.dark blockquote {
  background: #333;
  color: #eee;
  border-left-color: #4CAF50;
}
.fitness-article.dark .related-item {
  background: #2b2b2b;
}
.fitness-article.dark .related-item p,
.fitness-article.dark footer p {
  color: #e0e0e0;
}
.fitness-article.dark .cc-license {
  background-color: #3a3a3a;
  color: #e0e0e0;
}
.fitness-article.dark a {
  color: #FFD23F;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 700px) {
  .fitness-article .site-header { height: 64px; padding: 0 12px; }
  .fitness-article .site-title { font-size: 1rem; }
  .fitness-article header h1 { font-size: 1.9em; }
  .fitness-article header h2 { font-size: 1.05em; }
  .fitness-article .intro, .fitness-article article { padding: 1.5em; margin: 1.5em auto; }
  .fitness-article .float-image { float: none; max-width: 100%; margin: 1em 0; }
  .fitness-article .media-players-container { padding: 1.5em 1em; }
  .fitness-article .related-item { flex: 1 1 100%; }
}

/* === OVERRIDE: Cabecera sticky alineada a la izquierda === */
.fitness-article article .site-header.sticky {
  position: -webkit-sticky;
  position: sticky;
  top: 1rem;
  z-index: 10;

  display: flex;
  align-items: center;
  justify-content: flex-start; /* izquierda */

  gap: 0.8em;
  padding: 0.7em 1.2em;

  background: rgba(255,255,255,0.90);
  backdrop-filter: blur(6px);
  border-left: 4px solid var(--color-energy);
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);

  /* CLAVES PARA QUE NO SE CENTRE */
  max-width: 850px !important;   /* ancho del â€œpillâ€ */
  width: auto;                    /* no 100% */
  margin-left: 0 !important;      /* pegado al borde izquierdo del artÃ­culo */
  margin-right: auto !important;  /* que tome el espacio libre a la derecha */
  text-align: left !important;    /* por si habÃ­a centrado heredado */
}

.fitness-article article .site-header.sticky img {
  max-width: 48px;
  height: auto;
  flex-shrink: 0;
  margin-right: 0.6em;
  border-radius: 4px;
}

.fitness-article article .site-header.sticky .site-title {
  font-family: 'Oswald', sans-serif;
  font-size: 1.1em;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--color-dark);
  font-weight: 600;
  margin: 0;
  line-height: 1;
}

/* Modo oscuro */
.fitness-article.dark article .site-header.sticky {
  background: rgba(30,30,30,0.85);
  border-left: 4px solid var(--color-energy);
  box-shadow: 0 2px 8px rgba(255,255,255,0.06);
}
.fitness-article.dark article .site-header.sticky .site-title {
  color: var(--color-text);
}

/* MÃ³vil */
@media (max-width: 600px) {
  .fitness-article article .site-header.sticky {
    justify-content: flex-start !important; /* mantener izquierda en mÃ³vil */
    margin-left: 0.5em !important;
    margin-right: 0.5em !important;
    padding: 0.5em 1em;
    gap: 0.5em;
  }
  .fitness-article article .site-header.sticky img { max-width: 42px; }
  .fitness-article article .site-header.sticky .site-title { font-size: 1em; }
}


/* === CORRECCIÃ“N DEFINITIVA DE VISIBILIDAD EN MODO OSCURO === */
body.dark .fitness-article .site-header.sticky {
  background: rgba(25, 25, 25, 0.92) !important;   /* fondo oscuro sÃ³lido */
  border-left: 4px solid var(--color-energy);
  box-shadow: 0 2px 8px rgba(255,255,255,0.05);
  color: #f5f5f5 !important;                       /* color general claro */
}

body.dark .fitness-article .site-header.sticky * {
  color: #f5f5f5 !important;                       /* fuerza color en hijos */
  text-shadow: 0 0 4px rgba(0, 0, 0, 0.6);         /* mejora legibilidad */
}

body.dark .fitness-article .site-header.sticky img {
  filter: brightness(1.2) contrast(1.1);           /* aclara el logo */
}

/* Si el tema de Drupal sobreescribe con .node o .content */
.node .fitness-article .site-header.sticky,
.content .fitness-article .site-header.sticky {
  color: #f5f5f5 !important;
}

.node .fitness-article .site-header.sticky * {
  color: #f5f5f5 !important;
}

/* --- SECCIÓN DE REFERENCIAS (ajuste de interlineado) --- */
.references {
  background: #fff;
  border-left: 6px solid var(--color-energy);
  padding: 1.5em 2em;
  margin: 2.5em auto;
  max-width: 800px;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.references h3 {
  font-family: 'Oswald', sans-serif;
  color: var(--color-energy);
  text-transform: uppercase;
  margin-bottom: 1em;
  font-size: 1.2em;
}

.references ul {
  list-style-type: none;
  padding-left: 0;
  margin: 0;
}

.references li {
  margin-bottom: 0.6em;
  line-height: 1.5; /* interlineado igual al cuerpo del artículo */
  font-size: 0.95em;
  color: #333;
  border-bottom: 1px dotted #ccc;
  padding-bottom: 0.3em;
}

/* --- MODO OSCURO --- */
body.dark .references {
  background: #2a2a2a;
  border-left-color: var(--color-energy);
  color: var(--color-text);
  box-shadow: 0 2px 6px rgba(255,255,255,0.05);
}

body.dark .references li {
  color: #ddd;
  border-bottom: 1px dotted #555;
}
.references li:last-child {
  border-bottom: none;
}