/* =====================================================
   CONFIGURACIÓN GENERAL
===================================================== */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}


:root {

  --verde-oscuro: #112f27;
  --verde: #173f34;
  --verde-medio: #24594b;
  --verde-claro: #dce8e2;

  --crema: #f4efe5;
  --crema-claro: #fbf8f2;

  --dorado: #c5a25a;
  --dorado-claro: #e1c27d;

  --texto: #29302d;
  --texto-suave: #67706c;

  --blanco: #ffffff;

  --sidebar-ancho: 285px;
  --sidebar-cerrado: 92px;

}


html {
  scroll-behavior: smooth;
}


body {

  font-family:
    "Segoe UI",
    Arial,
    Helvetica,
    sans-serif;

  background:
    linear-gradient(
      135deg,
      #eee8dc 0%,
      #f8f5ee 45%,
      #ebe6dc 100%
    );

  color: var(--texto);

  line-height: 1.75;

  min-height: 100vh;

}



/* =====================================================
   SIDEBAR
===================================================== */

.sidebar {

  position: fixed;

  top: 16px;
  left: 16px;
  bottom: 16px;

  width: var(--sidebar-ancho);

  z-index: 1000;

  padding: 18px 14px;

  border-radius: 22px;

  background:
    linear-gradient(
      145deg,
      rgba(18, 55, 46, 0.93),
      rgba(13, 43, 36, 0.86)
    );

  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);

  border: 1px solid rgba(255,255,255,.12);

  box-shadow:
    0 20px 60px rgba(13,40,33,.22),
    inset 0 1px 0 rgba(255,255,255,.08);

  overflow: hidden;

  display: flex;
  flex-direction: column;

  transition:
    width .35s ease,
    transform .35s ease;

}


.sidebar.cerrado {
  width: var(--sidebar-cerrado);
}



/* =====================================================
   PARTE SUPERIOR DEL MENÚ
===================================================== */

.sidebar-top {

  display: flex;

  align-items: center;

  justify-content: space-between;

  gap: 10px;

  padding: 6px 5px 20px;

  flex-shrink: 0;

}


.marca {

  display: flex;
  align-items: center;
  gap: 12px;

  min-width: 0;

}


.marca-icono {

  width: 48px;
  height: 48px;

  flex-shrink: 0;

  display: grid;
  place-items: center;

  border-radius: 14px;

  font-size: 24px;

  color: var(--verde-oscuro);

  background:
    linear-gradient(
      145deg,
      #e8cf96,
      #c7a45f
    );

  box-shadow:
    0 8px 18px rgba(0,0,0,.18);

}


.marca-texto {

  white-space: nowrap;

  transition:
    opacity .25s ease,
    transform .25s ease;

}


.marca-texto h2 {

  color: white;

  font-family:
    Georgia,
    "Times New Roman",
    serif;

  font-size: 17px;

}


.marca-texto p {

  color: rgba(255,255,255,.55);

  font-size: 11px;

  letter-spacing: 1px;

}


.sidebar.cerrado .marca-texto {

  opacity: 0;

  transform: translateX(-10px);

  pointer-events: none;

}



/* =====================================================
   BOTÓN MENÚ
===================================================== */

.boton-menu {

  width: 34px;
  height: 34px;

  flex-shrink: 0;

  border: none;

  border-radius: 50%;

  cursor: pointer;

  color: white;

  background:
    rgba(255,255,255,.12);

  backdrop-filter: blur(5px);

  font-size: 14px;

  transition: .25s ease;

}


.boton-menu:hover {

  background: var(--dorado);

  color: var(--verde-oscuro);

  transform: scale(1.08);

}


.sidebar.cerrado .boton-menu {

  position: absolute;

  top: 73px;
  left: 29px;

  transform: rotate(180deg);

  background: rgba(197,162,90,.95);

  color: var(--verde-oscuro);

}



/* =====================================================
   MENÚ
===================================================== */

.menu {

  display: flex;

  flex-direction: column;

  gap: 5px;

  flex: 1;

  min-height: 0;

  max-height: none;

  overflow-y: auto;
  overflow-x: hidden;

  padding-right: 4px;
  padding-bottom: 12px;

  overscroll-behavior: contain;

  scrollbar-gutter: stable;

}


.menu::-webkit-scrollbar {
  width: 5px;
}


.menu::-webkit-scrollbar-track {

  background: transparent;

  margin: 6px 0;

}


.menu::-webkit-scrollbar-thumb {

  background:
    rgba(225, 194, 125, .24);

  border-radius: 20px;

}


.menu::-webkit-scrollbar-thumb:hover {

  background:
    rgba(225, 194, 125, .45);

}


.menu-link {

  position: relative;

  display: flex;

  align-items: center;

  gap: 14px;

  min-height: 49px;

  padding: 8px 12px;

  border-radius: 13px;

  color: rgba(255,255,255,.74);

  text-decoration: none;

  transition:
    background .25s,
    color .25s,
    transform .25s;

}


.menu-link:hover {

  color: white;

  background:
    rgba(255,255,255,.08);

  transform: translateX(3px);

}


.menu-icono {

  width: 34px;
  height: 34px;

  flex-shrink: 0;

  display: grid;
  place-items: center;

  border-radius: 10px;

  font-size: 18px;

  color: var(--dorado-claro);

  background:
    rgba(255,255,255,.07);

  transition: .25s ease;

}


.menu-link:hover .menu-icono {

  background:
    rgba(197,162,90,.18);

  transform: scale(1.08);

}


.menu-texto {

  white-space: nowrap;

  font-size: 13px;

  font-weight: 500;

  transition:
    opacity .2s ease,
    transform .2s ease;

}


.menu-link.activo {

  color: white;

  background:
    linear-gradient(
      90deg,
      rgba(197,162,90,.22),
      rgba(255,255,255,.07)
    );

  box-shadow:
    inset 3px 0 0 var(--dorado);

}


.menu-link.activo .menu-icono {

  color: var(--verde-oscuro);

  background: var(--dorado);

  box-shadow:
    0 4px 14px rgba(197,162,90,.28);

}


.sidebar.cerrado .menu {

  margin-top: 48px;

  padding-bottom: 10px;

}


.sidebar.cerrado .menu-link {

  justify-content: center;

  padding: 8px;

}


.sidebar.cerrado .menu-texto {

  opacity: 0;

  width: 0;

  overflow: hidden;

  pointer-events: none;

}


.sidebar.cerrado .menu-icono {

  width: 45px;
  height: 45px;

  font-size: 21px;

  border-radius: 13px;

}



/* =====================================================
   CONTENIDO GENERAL
===================================================== */

.contenido {

  margin-left:
    calc(var(--sidebar-ancho) + 32px);

  width:
    calc(100% - var(--sidebar-ancho) - 32px);

  transition:
    margin-left .35s ease,
    width .35s ease;

}


body.menu-cerrado .contenido {

  margin-left:
    calc(var(--sidebar-cerrado) + 32px);

  width:
    calc(100% - var(--sidebar-cerrado) - 32px);

}



/* =====================================================
   PORTADA
===================================================== */

.hero {

  position: relative;

  min-height: 94vh;

  margin:
    16px 16px 16px 0;

  border-radius: 25px;

  overflow: hidden;

  display: flex;

  align-items: center;

  background:

    linear-gradient(
      90deg,
      rgba(13,42,35,.93) 0%,
      rgba(18,55,46,.83) 47%,
      rgba(18,55,46,.52) 100%
    ),

    url(
      "https://images.unsplash.com/photo-1500382017468-9049fed747ef?auto=format&fit=crop&w=1800&q=85"
    );

  background-position: center;

  background-size: cover;

  box-shadow:
    0 20px 60px rgba(13,40,33,.18);

}


.hero::after {

  content: "";

  position: absolute;

  inset: 0;

  background:
    radial-gradient(
      circle at 80% 25%,
      rgba(217,184,110,.15),
      transparent 30%
    );

}


.hero-overlay {

  position: relative;

  z-index: 2;

  width: 100%;

}


.hero-contenido {

  max-width: 940px;

  padding:
    80px clamp(40px,7vw,110px);

}


.hero-etiqueta {

  display: inline-block;

  padding:
    8px 13px;

  margin-bottom: 25px;

  border:
    1px solid rgba(226,194,125,.35);

  border-radius: 30px;

  background:
    rgba(255,255,255,.06);

  color: var(--dorado-claro);

  letter-spacing: 2px;

  font-size: 11px;

  font-weight: bold;

}


.hero h1 {

  max-width: 900px;

  color: white;

  font-family:
    Georgia,
    "Times New Roman",
    serif;

  font-size:
    clamp(46px,6vw,82px);

  line-height: 1.03;

  font-weight: 500;

}


.hero h1 span {
  color: var(--dorado-claro);
}


.hero-subtitulo {

  max-width: 700px;

  margin-top: 28px;

  color: rgba(255,255,255,.75);

  font-size: 19px;

}


.hero-acciones {

  display: flex;

  align-items: center;

  gap: 35px;

  margin-top: 40px;

}


.boton-principal {

  display: inline-flex;

  align-items: center;

  gap: 18px;

  padding:
    14px 22px;

  border-radius: 12px;

  color: var(--verde-oscuro);

  background:
    linear-gradient(
      135deg,
      var(--dorado-claro),
      var(--dorado)
    );

  text-decoration: none;

  font-weight: bold;

  box-shadow:
    0 12px 28px rgba(0,0,0,.18);

  transition: .25s;

}


.boton-principal:hover {

  transform: translateY(-2px);

}


.hero-periodo {

  display: flex;

  flex-direction: column;

  border-left:
    1px solid rgba(255,255,255,.22);

  padding-left: 25px;

}


.hero-periodo strong {

  color: white;

  font-family:
    Georgia,
    serif;

  font-size: 21px;

}


.hero-periodo small {

  color:
    rgba(255,255,255,.55);

}



/* =====================================================
   BLOQUES DE CONTENIDO
===================================================== */

.bloque-seccion {

  padding:
    38px 16px 0 0;

}


.panel-historico {

  max-width: 1180px;

  margin:
    0 auto;

  padding:
    clamp(40px,6vw,75px);

  background:
    rgba(255,255,255,.70);

  backdrop-filter:
    blur(8px);

  border:
    1px solid rgba(34,74,61,.08);

  border-radius:
    24px;

  box-shadow:
    0 18px 55px rgba(40,50,45,.07);

  position: relative;

  overflow: hidden;

}


.panel-historico::before {

  content: "";

  position: absolute;

  top: 0;
  left: 0;

  width: 7px;
  height: 100%;

  background:
    linear-gradient(
      var(--dorado),
      var(--verde-medio)
    );

}


.panel-verde {

  background:
    linear-gradient(
      135deg,
      rgba(228,238,233,.93),
      rgba(255,255,255,.88)
    );

}


.panel-dorado {

  background:
    linear-gradient(
      135deg,
      rgba(240,230,207,.92),
      rgba(255,255,255,.88)
    );

}



/* =====================================================
   ENCABEZADOS DE SECCIÓN
===================================================== */

.encabezado-seccion {

  display: flex;

  align-items: center;

  gap: 22px;

  padding-bottom: 30px;

  margin-bottom: 32px;

  border-bottom:
    1px solid rgba(24,63,52,.10);

}


.icono-seccion {

  width: 65px;
  height: 65px;

  flex-shrink: 0;

  display: grid;
  place-items: center;

  border-radius: 18px;

  font-size: 27px;

  color: var(--verde-oscuro);

  background:
    linear-gradient(
      145deg,
      #ead39f,
      #c29c52
    );

  box-shadow:
    0 10px 24px rgba(103,78,28,.15);

}


.numero-seccion {

  display: block;

  margin-bottom: 5px;

  color: #a4803e;

  font-size: 11px;

  letter-spacing: 2px;

  font-weight: bold;

}


.encabezado-seccion h2 {

  color: var(--verde-oscuro);

  font-family:
    Georgia,
    "Times New Roman",
    serif;

  font-size:
    clamp(31px,4vw,47px);

  line-height: 1.13;

  font-weight: 500;

}



/* =====================================================
   TEXTO
===================================================== */

.contenido-texto {

  max-width:
    900px;

}


.contenido-texto p {

  margin-bottom:
    20px;

  color:
    #4e5753;

}


.texto-destacado {

  color:
    var(--verde-oscuro) !important;

  font-size:
    20px;

  line-height:
    1.65;

  font-family:
    Georgia,
    "Times New Roman",
    serif;

}



/* =====================================================
   TÉRMINOS CON DEFINICIÓN
===================================================== */

.termino-def {

  position: relative;

  display: inline;

  cursor: help;

  color: var(--verde-oscuro);

  font-weight: 700;

  padding: 0 2px;

  background-image:
    linear-gradient(
      to top,
      rgba(197,162,90,.28) 0%,
      rgba(197,162,90,.28) 34%,
      transparent 34%,
      transparent 100%
    );

  transition:
    color .2s ease,
    background-color .2s ease;

}


.termino-def:hover,
.termino-def:focus {

  color: #9c7330;

  outline: none;

}


.termino-claro {

  color: var(--dorado-claro);

  background-image:
    linear-gradient(
      to top,
      rgba(225,194,125,.20) 0%,
      rgba(225,194,125,.20) 34%,
      transparent 34%,
      transparent 100%
    );

}


.termino-claro:hover,
.termino-claro:focus {

  color: #f0d99e;

}



/* =====================================================
   TOOLTIP GLOBAL
===================================================== */

.tooltip-definicion {

  position: fixed;

  z-index: 999999;

  width: min(330px, calc(100vw - 40px));

  padding: 16px 18px;

  border-radius: 13px;

  background:
    linear-gradient(
      145deg,
      #123a30,
      #0c2e26
    );

  color:
    rgba(255,255,255,.93);

  font-size: 12px;

  line-height: 1.6;

  box-shadow:
    0 16px 42px rgba(8,31,25,.30);

  border:
    1px solid rgba(225,194,125,.18);

  pointer-events: none;

  opacity: 0;

  visibility: hidden;

  transform:
    translateY(5px);

  transition:
    opacity .14s ease,
    transform .14s ease,
    visibility .14s ease;

}


.tooltip-definicion.visible {

  opacity: 1;

  visibility: visible;

  transform: translateY(0);

}


.tooltip-definicion::after {

  content: "";

  position: absolute;

  width: 10px;
  height: 10px;

  background: #10352c;

  transform: rotate(45deg);

}


.tooltip-definicion.arriba::after {

  left: var(--flecha-x, 50%);

  bottom: -5px;

}


.tooltip-definicion.abajo::after {

  left: var(--flecha-x, 50%);

  top: -5px;

}



/* =====================================================
   TARJETAS INTRODUCCIÓN
===================================================== */

.tarjetas-resumen {

  display: grid;

  grid-template-columns:
    repeat(3,1fr);

  gap: 20px;

  margin-top:
    42px;

}


.tarjeta-resumen {

  position: relative;

  padding:
    28px;

  border-radius:
    17px;

  background:
    rgba(255,255,255,.88);

  border:
    1px solid rgba(27,71,59,.08);

  box-shadow:
    0 12px 34px rgba(46,64,55,.07);

  transition:
    transform .28s,
    box-shadow .28s;

}


.tarjeta-resumen:hover {

  transform:
    translateY(-6px);

  box-shadow:
    0 20px 40px rgba(46,64,55,.12);

}


.tarjeta-icono {

  width: 47px;
  height: 47px;

  display: grid;
  place-items: center;

  margin-bottom: 20px;

  border-radius:
    12px;

  color:
    var(--verde-oscuro);

  background:
    #ebe0c5;

  font-size:
    21px;

}


.tarjeta-fecha {

  color:
    #b08a43;

  font-size:
    11px;

  letter-spacing:
    1.5px;

  font-weight:
    bold;

}


.tarjeta-resumen h3 {

  margin:
    7px 0 13px;

  color:
    var(--verde-oscuro);

  font-family:
    Georgia,
    serif;

  font-size:
    22px;

}


.tarjeta-resumen p {

  color:
    var(--texto-suave);

  font-size:
    14px;

}



/* =====================================================
   LÍNEA DEL TIEMPO
===================================================== */

.timeline-section {

  margin-top:
    38px;

  padding:
    80px 55px;

  margin-right:
    16px;

  border-radius:
    24px;

  background:

    radial-gradient(
      circle at top right,
      rgba(213,177,98,.12),
      transparent 30%
    ),

    linear-gradient(
      135deg,
      #112f27,
      #173f34
    );

  color: white;

}


.timeline-container {

  max-width:
    1180px;

  margin: auto;

}


.timeline-titulo {

  max-width:
    680px;

}


.timeline-titulo span {

  color:
    var(--dorado-claro);

  letter-spacing:
    2px;

  font-size:
    11px;

  font-weight:
    bold;

}


.timeline-titulo h2 {

  margin:
    9px 0 15px;

  font-family:
    Georgia,
    serif;

  font-size:
    clamp(32px,4vw,48px);

  font-weight:
    500;

}


.timeline-titulo p {

  color:
    rgba(255,255,255,.62);

}


.timeline {

  display: grid;

  grid-template-columns:
    repeat(5,1fr);

  margin-top:
    60px;

}


.evento {

  position: relative;

  padding:
    38px 25px 0 0;

  border-top:
    2px solid rgba(218,184,110,.42);

}


.evento-punto {

  position: absolute;

  top:
    -8px;

  left: 0;

  width: 15px;
  height: 15px;

  border-radius:
    50%;

  background:
    var(--dorado);

  box-shadow:
    0 0 0 7px rgba(197,162,90,.12);

}


.evento-fecha {

  color:
    var(--dorado-claro);

  font-family:
    Georgia,
    serif;

  font-size:
    24px;

}


.evento h3 {

  margin:
    6px 0;

  font-size:
    16px;

}


.evento p {

  color:
    rgba(255,255,255,.55);

  font-size:
    13px;

}



/* =====================================================
   MATERIAL VISUAL HISTÓRICO
===================================================== */

.visual-historico {

  display: grid;

  grid-template-columns:
    minmax(0, 1.35fr)
    minmax(260px, .85fr);

  gap: 35px;

  align-items: stretch;

  margin: 35px 0 10px;

}


.figura-historica {

  position: relative;

  min-height: 340px;

  margin: 0;

  border-radius: 20px;

  overflow: hidden;

  background: #ddd5c6;

  border:
    1px solid rgba(23, 63, 52, .10);

  box-shadow:
    0 18px 42px rgba(30, 48, 41, .12);

}


.figura-historica img {

  display: block;

  width: 100%;
  height: 100%;

  min-height: 340px;

  object-fit: cover;

  transition:
    transform .55s ease,
    filter .55s ease;

}


.figura-historica:hover img {

  transform: scale(1.035);

}


.figura-historica::after {

  content: "";

  position: absolute;

  inset: 0;

  pointer-events: none;

  background:
    linear-gradient(
      to top,
      rgba(11,39,32,.55),
      transparent 45%
    );

}


.figura-historica figcaption {

  position: absolute;

  z-index: 2;

  left: 20px;
  right: 20px;
  bottom: 18px;

  color: white;

}


.figura-historica figcaption strong {

  display: block;

  margin-bottom: 3px;

  font-family:
    Georgia,
    "Times New Roman",
    serif;

  font-size: 17px;

}


.figura-historica figcaption span {

  display: block;

  color:
    rgba(255,255,255,.72);

  font-size:
    11px;

  line-height:
    1.5;

}



/* =====================================================
   FICHA VISUAL
===================================================== */

.ficha-visual {

  display: flex;

  flex-direction: column;

  justify-content: center;

  padding: 30px;

  border-radius: 20px;

  background:
    linear-gradient(
      145deg,
      var(--verde-oscuro),
      #204d40
    );

  color: white;

  box-shadow:
    0 15px 35px rgba(20,51,42,.12);

}


.ficha-visual .ficha-etiqueta {

  margin-bottom: 12px;

  color:
    var(--dorado-claro);

  font-size:
    10px;

  letter-spacing:
    1.8px;

  font-weight:
    700;

}


.ficha-visual h3 {

  margin-bottom: 12px;

  font-family:
    Georgia,
    "Times New Roman",
    serif;

  font-size: 25px;

  line-height: 1.25;

}


.ficha-visual p {

  margin: 0;

  color:
    rgba(255,255,255,.67);

  font-size:
    13px;

}


.ficha-fecha {

  display: inline-block;

  width: fit-content;

  margin-top: 22px;

  padding: 7px 11px;

  border-radius: 8px;

  background:
    rgba(225,194,125,.13);

  color:
    var(--dorado-claro);

  font-family:
    Georgia,
    serif;

  font-size: 14px;

}


.visual-documento {

  grid-template-columns:
    minmax(250px,.7fr)
    minmax(0,1.3fr);

}


.visual-documento
.figura-historica {

  min-height: 430px;

}


.visual-documento
.figura-historica img {

  min-height: 430px;

  object-fit: cover;

}


.figura-documento img {

  object-fit: contain;

  padding: 17px;

  background:
    #ded3ba;

}


.credito-visual {

  margin-top: 9px !important;

  color:
    #8b938f !important;

  font-size:
    10px !important;

  font-style:
    italic;

}



/* =====================================================
   GRID HISTORIA
===================================================== */

.grid-historia {

  display: grid;

  grid-template-columns:
    1.7fr .8fr;

  gap:
    45px;

  align-items:
    start;

}


.dato-lateral {

  padding:
    27px;

  background:
    var(--verde-oscuro);

  color:
    white;

  border-radius:
    18px;

  box-shadow:
    0 16px 36px rgba(20,50,41,.16);

}


.dato-lateral > span {

  color:
    var(--dorado-claro);

  font-size:
    10px;

  letter-spacing:
    2px;

  font-weight:
    bold;

}


.dato-lateral h3 {

  margin:
    10px 0;

  font-family:
    Georgia,
    serif;

  font-size:
    23px;

}


.dato-lateral p {

  color:
    rgba(255,255,255,.67);

  font-size:
    14px;

}



/* =====================================================
   INSTITUCIONES COLONIALES
===================================================== */

.lista-instituciones {

  display: grid;

  grid-template-columns:
    repeat(5,1fr);

  gap:
    12px;

  margin-top:
    38px;

}


.lista-instituciones div {

  padding:
    22px 16px;

  background:
    #f1ebdf;

  border-radius:
    13px;

  border:
    1px solid rgba(27,63,52,.07);

}


.lista-instituciones div > span {

  display: block;

  color:
    #b28c48;

  font-size:
    11px;

  margin-bottom:
    8px;

}


.lista-instituciones strong {

  color:
    var(--verde-oscuro);

  font-size:
    14px;

}



/* =====================================================
   SUBBLOQUE HISTÓRICO
===================================================== */

.subbloque-historico {

  display:
    grid;

  grid-template-columns:
    55px 1fr;

  gap:
    20px;

  max-width:
    900px;

  margin:
    35px 0;

  padding:
    25px 28px;

  border-radius:
    16px;

  background:
    linear-gradient(
      135deg,
      rgba(239,232,215,.75),
      rgba(255,255,255,.88)
    );

  border:
    1px solid rgba(31,69,57,.08);

}


.subbloque-icono {

  width:
    48px;

  height:
    48px;

  display:
    grid;

  place-items:
    center;

  border-radius:
    12px;

  background:
    var(--verde-oscuro);

  color:
    var(--dorado-claro);

}


.subbloque-historico > div:last-child > span {

  display:
    block;

  margin-bottom:
    5px;

  color:
    #a17c3b;

  font-size:
    9px;

  letter-spacing:
    1.6px;

  font-weight:
    700;

}


.subbloque-historico h3 {

  color:
    var(--verde-oscuro);

  font-family:
    Georgia,
    serif;

  font-size:
    22px;

  margin-bottom:
    8px;

}


.subbloque-historico p {

  color:
    var(--texto-suave);

  font-size:
    13px;

  margin-bottom:
    8px;

}



/* =====================================================
   MÉXICO INDEPENDIENTE
===================================================== */

.problemas-grid {

  display: grid;

  grid-template-columns:
    repeat(4,1fr);

  gap:
    14px;

  margin-top:
    35px;

}


.problemas-grid div {

  display: flex;

  gap:
    13px;

  align-items:
    center;

  padding:
    17px;

  border-radius:
    12px;

  background:
    rgba(255,255,255,.72);

}


.problemas-grid span {

  color:
    var(--dorado);

  font-family:
    Georgia,
    serif;

  font-size:
    20px;

}


.problemas-grid p {

  margin: 0;

  color:
    #4c554f;

  font-size:
    13px;

}



/* =====================================================
   COMPARACIONES
===================================================== */

.comparacion {

  display: grid;

  grid-template-columns:
    repeat(2,1fr);

  gap:
    20px;

  margin-top:
    38px;

}


.comparacion-card {

  padding:
    30px;

  border-radius:
    18px;

}


.comparacion-card.positivo {

  background:
    rgba(218,234,225,.72);

  border:
    1px solid rgba(35,93,75,.10);

}


.comparacion-card.alerta {

  background:
    rgba(238,225,197,.65);

  border:
    1px solid rgba(174,133,60,.14);

}


.comparacion-titulo {

  color:
    #9e7b3f;

  letter-spacing:
    1.5px;

  font-size:
    10px;

  font-weight:
    bold;

}


.comparacion-card h3 {

  margin:
    9px 0;

  color:
    var(--verde-oscuro);

  font-family:
    Georgia,
    serif;

  font-size:
    23px;

}


.comparacion-card p {

  color:
    #56605b;

}



/* =====================================================
   PROCESO DESLINDE
===================================================== */

.proceso {

  display: grid;

  grid-template-columns:
    repeat(5,1fr);

  gap:
    13px;

  margin-top:
    40px;

}


.proceso article {

  position: relative;

  min-height:
    175px;

  padding:
    25px;

  border-radius:
    16px;

  background:
    var(--verde-oscuro);

  color:
    white;

  transition:
    transform .25s;

}


.proceso article:hover {

  transform:
    translateY(-5px);

}


.proceso span {

  width:
    38px;

  height:
    38px;

  display:
    grid;

  place-items:
    center;

  margin-bottom:
    18px;

  border-radius:
    50%;

  background:
    var(--dorado);

  color:
    var(--verde-oscuro);

  font-weight:
    bold;

}


.proceso strong {

  display:
    block;

  margin-bottom:
    5px;

}


.proceso p {

  color:
    rgba(255,255,255,.55);

  font-size:
    13px;

}



/* =====================================================
   EFECTOS
===================================================== */

.tarjetas-efectos {

  display:
    grid;

  grid-template-columns:
    repeat(3,1fr);

  gap:
    20px;

}


.tarjetas-efectos article {

  position:
    relative;

  padding:
    30px;

  border-radius:
    17px;

  background:
    #f5f0e6;

  border:
    1px solid rgba(32,67,56,.07);

}


.efecto-numero {

  position:
    absolute;

  right:
    20px;

  top:
    17px;

  color:
    rgba(20,60,50,.15);

  font-family:
    Georgia,
    serif;

  font-size:
    30px;

}


.efecto-icono {

  width:
    48px;

  height:
    48px;

  display:
    grid;

  place-items:
    center;

  margin-bottom:
    17px;

  border-radius:
    13px;

  background:
    var(--verde-oscuro);

  color:
    var(--dorado-claro);

  font-size:
    20px;

}


.tarjetas-efectos h3 {

  margin-bottom:
    10px;

  color:
    var(--verde-oscuro);

  font-family:
    Georgia,
    serif;

  font-size:
    20px;

}


.tarjetas-efectos p {

  color:
    var(--texto-suave);

  font-size:
    14px;

}



/* =====================================================
   CADENA HISTÓRICA
===================================================== */

.cadena-historica {

  margin:
    45px 0 15px;

  padding:
    30px;

  border-radius:
    18px;

  background:
    var(--verde-oscuro);

  color:
    white;

}


.cadena-titulo {

  display:
    block;

  margin-bottom:
    24px;

  color:
    var(--dorado-claro);

  font-size:
    10px;

  letter-spacing:
    2px;

  font-weight:
    700;

}


.cadena-pasos {

  display:
    flex;

  align-items:
    center;

  justify-content:
    space-between;

  gap:
    12px;

}


.cadena-pasos > div:not(.cadena-flecha) {

  flex:
    1;

  min-height:
    90px;

  padding:
    16px;

  border-radius:
    12px;

  background:
    rgba(255,255,255,.07);

}


.cadena-pasos span {

  display:
    block;

  margin-bottom:
    7px;

  color:
    var(--dorado-claro);

  font-family:
    Georgia,
    serif;

  font-size:
    16px;

}


.cadena-pasos strong {

  font-size:
    12px;

  line-height:
    1.4;

}


.cadena-flecha {

  color:
    var(--dorado);

  font-size:
    22px;

}



/* =====================================================
   ARTÍCULO 27
===================================================== */

.panel-constitucion {

  background:

    radial-gradient(
      circle at 90% 10%,
      rgba(213,181,107,.16),
      transparent 25%
    ),

    #173f34;

}


.panel-constitucion::before {

  background:
    var(--dorado);

}


.panel-constitucion
.encabezado-seccion {

  border-bottom-color:
    rgba(255,255,255,.10);

}


.panel-constitucion
.encabezado-seccion h2 {

  color:
    white;

}


.panel-constitucion
.numero-seccion {

  color:
    var(--dorado-claro);

}


.articulo-box {

  display:
    grid;

  grid-template-columns:
    150px 1fr;

  gap:
    35px;

  align-items:
    center;

}


.articulo-numero {

  font-family:
    Georgia,
    serif;

  font-size:
    92px;

  color:
    var(--dorado-claro);

  line-height:
    1;

  text-align:
    center;

  border-right:
    1px solid rgba(255,255,255,.15);

}


.articulo-box p {

  color:
    rgba(255,255,255,.72);

  margin-bottom:
    16px;

}



/* =====================================================
   REFLEXIÓN
===================================================== */

.reflexion-panel {

  background:
    linear-gradient(
      145deg,
      #f6f0e5,
      #ffffff
    );

}


blockquote {

  position:
    relative;

  margin:
    38px 0;

  padding:
    35px 45px;

  border-radius:
    17px;

  background:
    var(--verde-oscuro);

  color:
    white;

  font-family:
    Georgia,
    serif;

  font-size:
    22px;

  line-height:
    1.6;

  font-style:
    italic;

  box-shadow:
    0 15px 35px rgba(19,48,40,.13);

}


blockquote span {

  position:
    absolute;

  top:
    -17px;

  left:
    22px;

  color:
    var(--dorado);

  font-size:
    70px;

  line-height:
    1;

}



/* =====================================================
   FUENTES
===================================================== */

.fuentes-apartado {

  margin-top:
    45px;

  padding:
    25px 28px;

  border-radius:
    16px;

  background:
    linear-gradient(
      135deg,
      rgba(236,230,216,.82),
      rgba(255,255,255,.88)
    );

  border:
    1px solid rgba(34,75,61,.08);

  box-shadow:
    0 10px 30px rgba(36,55,46,.05);

}


.fuente-encabezado {

  display:
    flex;

  align-items:
    center;

  gap:
    14px;

  margin-bottom:
    12px;

}


.fuente-icono {

  width:
    42px;

  height:
    42px;

  display:
    grid;

  place-items:
    center;

  flex-shrink:
    0;

  border-radius:
    11px;

  background:
    var(--verde-oscuro);

  color:
    var(--dorado-claro);

  font-size:
    17px;

}


.fuente-etiqueta {

  display:
    block;

  margin-bottom:
    2px;

  color:
    #a17e3f;

  font-size:
    9px;

  letter-spacing:
    1.7px;

  font-weight:
    bold;

}


.fuente-encabezado h4 {

  color:
    var(--verde-oscuro);

  font-family:
    Georgia,
    "Times New Roman",
    serif;

  font-size:
    18px;

  font-weight:
    500;

}


.fuentes-apartado > p {

  max-width:
    820px;

  margin:
    12px 0 18px;

  color:
    var(--texto-suave);

  font-size:
    13px;

}


.fuente-link {

  display:
    inline-flex;

  align-items:
    center;

  gap:
    9px;

  padding:
    10px 15px;

  border-radius:
    9px;

  background:
    var(--verde-oscuro);

  color:
    white;

  text-decoration:
    none;

  font-size:
    12px;

  font-weight:
    600;

  transition:
    .25s ease;

}


.fuente-link:hover {

  transform:
    translateY(-2px);

  background:
    var(--verde-medio);

  box-shadow:
    0 8px 20px rgba(22,61,50,.15);

}


.fuente-link span {

  color:
    var(--dorado-claro);

}


.fuente-link.secundario {

  background:
    transparent;

  color:
    var(--verde-oscuro);

  border:
    1px solid rgba(24,63,52,.18);

}


.fuente-link.secundario:hover {

  background:
    rgba(24,63,52,.06);

}


.fuentes-links {

  display:
    flex;

  flex-wrap:
    wrap;

  gap:
    10px;

}


.fuente-dato {

  display:
    flex;

  align-items:
    center;

  gap:
    18px;

  max-width:
    650px;

  margin:
    20px 0;

  padding:
    17px 20px;

  border-radius:
    12px;

  background:
    rgba(197,162,90,.10);

  border:
    1px solid rgba(197,162,90,.20);

}


.fuente-dato span {

  color:
    var(--dorado);

  font-family:
    Georgia,
    serif;

  font-size:
    32px;

  font-weight:
    bold;

}


.fuente-dato p {

  margin:
    0;

  color:
    #56605b;

  font-size:
    13px;

}


.fuente-constitucional {

  background:
    rgba(255,255,255,.07);

  border-color:
    rgba(255,255,255,.10);

}


.fuente-constitucional
.fuente-encabezado h4 {

  color:
    white;

}


.fuente-constitucional
.fuente-etiqueta {

  color:
    var(--dorado-claro);

}


.fuente-constitucional > p {

  color:
    rgba(255,255,255,.63);

}


.fuente-constitucional
.fuente-link {

  background:
    var(--dorado);

  color:
    var(--verde-oscuro);

}


.fuente-constitucional
.fuente-link span {

  color:
    var(--verde-oscuro);

}



/* =====================================================
   BIBLIOGRAFÍA
===================================================== */

.bibliografia-lista {

  display:
    flex;

  flex-direction:
    column;

  gap:
    13px;

}


.bibliografia-lista article {

  display:
    grid;

  grid-template-columns:
    45px 1fr;

  gap:
    17px;

  padding:
    20px 22px;

  border-radius:
    13px;

  background:
    #f6f2e9;

  border:
    1px solid rgba(31,70,57,.06);

}


.bibliografia-lista > article > span {

  width:
    37px;

  height:
    37px;

  display:
    grid;

  place-items:
    center;

  border-radius:
    9px;

  background:
    var(--verde-oscuro);

  color:
    var(--dorado-claro);

  font-size:
    11px;

}


.bibliografia-contenido {

  display:
    flex;

  flex-direction:
    column;

  align-items:
    flex-start;

  gap:
    8px;

}


.bibliografia-contenido p {

  margin:
    0;

  color:
    #535d58;

  font-size:
    14px;

}


.bibliografia-contenido a {

  color:
    #9d7837;

  text-decoration:
    none;

  font-size:
    11px;

  font-weight:
    600;

  letter-spacing:
    .3px;

  transition:
    .2s;

}


.bibliografia-contenido a:hover {

  color:
    var(--verde-medio);

  text-decoration:
    underline;

}



/* =====================================================
   FOOTER
===================================================== */

footer {

  display:
    flex;

  justify-content:
    space-between;

  align-items:
    center;

  gap:
    30px;

  margin:
    38px 16px 16px 0;

  padding:
    35px 45px;

  border-radius:
    20px;

  background:
    var(--verde-oscuro);

  color:
    white;

}


footer strong {

  font-family:
    Georgia,
    serif;

  font-size:
    17px;

}


footer p {

  color:
    rgba(255,255,255,.5);

  font-size:
    12px;

}


footer a {

  color:
    var(--dorado-claro);

  text-decoration:
    none;

}


/* =====================================================
   LÍNEA DEL TIEMPO INTERACTIVA
===================================================== */

.timeline-interactiva {

  position: relative;

  overflow: hidden;

}


/* =====================================================
   CABECERA
===================================================== */

.timeline-header {

  display: flex;

  align-items: flex-end;

  justify-content: space-between;

  gap: 40px;

}


.timeline-header
.timeline-titulo {

  flex: 1;

}



/* =====================================================
   CONTROLES
===================================================== */

.timeline-controles {

  display: flex;

  align-items: center;

  gap: 10px;

  flex-shrink: 0;

}


.timeline-boton {

  width: 48px;
  height: 48px;

  display: grid;

  place-items: center;

  border: 1px solid
    rgba(225,194,125,.24);

  border-radius: 14px;

  cursor: pointer;

  color:
    var(--dorado-claro);

  background:
    rgba(255,255,255,.06);

  font-size: 21px;

  transition:
    transform .22s ease,
    background .22s ease,
    color .22s ease,
    border-color .22s ease;

}


.timeline-boton:hover {

  transform: translateY(-2px);

  background:
    var(--dorado);

  color:
    var(--verde-oscuro);

  border-color:
    var(--dorado);

}


.timeline-boton:active {

  transform:
    scale(.94);

}



/* =====================================================
   INDICADOR DE RECORRIDO
===================================================== */

.timeline-indicador {

  display: grid;

  grid-template-columns:
    auto 1fr auto;

  align-items: center;

  gap: 15px;

  margin-top: 45px;

}


.timeline-indicador-texto {

  color:
    rgba(255,255,255,.48);

  font-family:
    Georgia,
    serif;

  font-size: 12px;

}


.timeline-indicador-barra {

  height: 3px;

  overflow: hidden;

  border-radius: 20px;

  background:
    rgba(255,255,255,.09);

}


.timeline-indicador-progreso {

  width: 0%;

  height: 100%;

  border-radius: inherit;

  background:
    linear-gradient(
      90deg,
      var(--dorado),
      var(--dorado-claro)
    );

  box-shadow:
    0 0 14px
    rgba(225,194,125,.35);

  transition:
    width .18s ease;

}



/* =====================================================
   VIEWPORT
===================================================== */

.timeline-viewport {

  position: relative;

  width: 100%;

  margin-top: 30px;

  overflow-x: auto;
  overflow-y: hidden;

  scroll-behavior: smooth;

  cursor: grab;

  scrollbar-width: none;

  -ms-overflow-style: none;

  overscroll-behavior-x: contain;

  scroll-snap-type:
    x proximity;

}


.timeline-viewport::-webkit-scrollbar {

  display: none;

}


.timeline-viewport.arrastrando {

  cursor: grabbing;

  scroll-behavior: auto;

  user-select: none;

}



/* =====================================================
   TRACK
===================================================== */

.timeline-track {

  position: relative;

  display: flex;

  gap: 22px;

  width: max-content;

  min-width: 100%;

  padding:
    28px 10px 28px;

}


/* línea horizontal */

.timeline-track::before {

  content: "";

  position: absolute;

  top: 91px;

  left: 20px;

  right: 20px;

  height: 2px;

  background:
    linear-gradient(
      90deg,
      rgba(197,162,90,.35),
      rgba(225,194,125,.72),
      rgba(197,162,90,.35)
    );

}



/* =====================================================
   TARJETA
===================================================== */

.timeline-card {

  position: relative;

  z-index: 2;

  width: 270px;

  min-width: 270px;

  padding: 0;

  text-decoration: none;

  color: white;

  scroll-snap-align: start;

  transition:
    transform .28s ease;

}


.timeline-card:hover {

  transform:
    translateY(-7px);

}



/* =====================================================
   CABEZA DE TARJETA
===================================================== */

.timeline-card-top {

  display: flex;

  align-items: center;

  justify-content: space-between;

  height: 56px;

  margin-bottom: 26px;

}


.timeline-fecha {

  color:
    var(--dorado-claro);

  font-family:
    Georgia,
    "Times New Roman",
    serif;

  font-size: 30px;

  line-height: 1;

}


.timeline-icono {

  width: 42px;
  height: 42px;

  display: grid;

  place-items: center;

  border-radius: 12px;

  background:
    rgba(255,255,255,.07);

  border:
    1px solid rgba(255,255,255,.08);

  color:
    var(--dorado-claro);

  font-size: 18px;

  transition:
    background .25s ease,
    transform .25s ease,
    color .25s ease;

}


.timeline-card:hover
.timeline-icono {

  background:
    var(--dorado);

  color:
    var(--verde-oscuro);

  transform:
    rotate(-3deg)
    scale(1.06);

}



/* =====================================================
   NODO
===================================================== */

.timeline-nodo {

  position: absolute;

  top: 84px;

  left: 0;

  width: 16px;
  height: 16px;

  border-radius: 50%;

  background:
    var(--dorado);

  border:
    4px solid
    var(--verde-oscuro);

  box-shadow:
    0 0 0 5px
    rgba(197,162,90,.13);

  transition:
    transform .25s ease,
    box-shadow .25s ease;

}


.timeline-card:hover
.timeline-nodo {

  transform:
    scale(1.22);

  box-shadow:
    0 0 0 8px
    rgba(197,162,90,.15);

}



/* =====================================================
   CONTENIDO DE TARJETA
===================================================== */

.timeline-card-contenido {

  min-height: 215px;

  padding: 28px 22px 23px;

  border-radius: 17px;

  background:
    rgba(255,255,255,.055);

  border:
    1px solid rgba(255,255,255,.08);

  backdrop-filter:
    blur(6px);

  transition:
    background .25s ease,
    border-color .25s ease,
    box-shadow .25s ease;

}


.timeline-card:hover
.timeline-card-contenido {

  background:
    rgba(255,255,255,.09);

  border-color:
    rgba(225,194,125,.20);

  box-shadow:
    0 18px 35px
    rgba(0,0,0,.13);

}


.timeline-etapa {

  display: block;

  margin-bottom: 8px;

  color:
    var(--dorado-claro);

  font-size: 9px;

  letter-spacing: 1.7px;

  font-weight: 700;

}


.timeline-card h3 {

  margin: 0 0 12px;

  color: white;

  font-family:
    Georgia,
    "Times New Roman",
    serif;

  font-size: 21px;

  line-height: 1.2;

}


.timeline-card p {

  margin: 0;

  color:
    rgba(255,255,255,.58);

  font-size: 12px;

  line-height: 1.65;

}



/* =====================================================
   ETAPAS ESPECIALMENTE IMPORTANTES
===================================================== */

.timeline-card-destacada
.timeline-card-contenido {

  background:
    linear-gradient(
      145deg,
      rgba(197,162,90,.12),
      rgba(255,255,255,.05)
    );

  border-color:
    rgba(225,194,125,.17);

}


.timeline-card-final
.timeline-card-contenido {

  background:
    linear-gradient(
      145deg,
      rgba(225,194,125,.17),
      rgba(255,255,255,.06)
    );

  border-color:
    rgba(225,194,125,.25);

}


.timeline-card-final
.timeline-nodo {

  background:
    var(--dorado-claro);

  box-shadow:
    0 0 0 6px
    rgba(225,194,125,.18);

}



/* =====================================================
   AYUDA
===================================================== */

.timeline-ayuda {

  display: flex;

  align-items: center;

  gap: 10px;

  width: fit-content;

  margin-top: 18px;

  padding:
    9px 13px;

  border-radius: 10px;

  background:
    rgba(255,255,255,.04);

  color:
    rgba(255,255,255,.42);

}


.timeline-ayuda span {

  color:
    var(--dorado);

  font-size: 17px;

}


.timeline-ayuda p {

  margin: 0;

  font-size: 10px;

}



/* =====================================================
   RESPONSIVE TIMELINE
===================================================== */

@media (max-width: 900px) {

  .timeline-header {

    align-items:
      flex-start;

    flex-direction:
      column;

  }


  .timeline-controles {

    align-self:
      flex-end;

  }


  .timeline-card {

    width:
      245px;

    min-width:
      245px;

  }


  .timeline-card-contenido {

    min-height:
      225px;

  }

}


@media (max-width: 600px) {

  .timeline-section {

    padding:
      50px 24px;

  }


  .timeline-card {

    width:
      225px;

    min-width:
      225px;

  }


  .timeline-fecha {

    font-size:
      27px;

  }


  .timeline-card h3 {

    font-size:
      19px;

  }


  .timeline-ayuda {

    align-items:
      flex-start;

  }

}


/* =====================================================
   RESPONSIVE
===================================================== */

@media (max-width: 1050px) {

  .tarjetas-resumen,
  .tarjetas-efectos {

    grid-template-columns:
      1fr;

  }


  .timeline {

    grid-template-columns:
      1fr;

  }


  .evento {

    padding:
      0 0 35px 30px;

    border-top:
      none;

    border-left:
      2px solid rgba(218,184,110,.42);

  }


  .evento-punto {

    left:
      -8px;

    top:
      6px;

  }


  .proceso {

    grid-template-columns:
      repeat(2,1fr);

  }


  .lista-instituciones {

    grid-template-columns:
      repeat(2,1fr);

  }


  .problemas-grid {

    grid-template-columns:
      repeat(2,1fr);

  }


  .cadena-pasos {

    flex-direction:
      column;

    align-items:
      stretch;

  }


  .cadena-flecha {

    transform:
      rotate(90deg);

    text-align:
      center;

  }

}



@media (max-width: 900px) {

  .visual-historico,
  .visual-documento {

    grid-template-columns:
      1fr;

  }


  .figura-historica,
  .figura-historica img {

    min-height:
      280px;

  }


  .visual-documento
  .figura-historica,
  .visual-documento
  .figura-historica img {

    min-height:
      360px;

  }

}



@media (max-width: 760px) {

  .sidebar {

    top:
      10px;

    left:
      10px;

    bottom:
      10px;

    transform:
      translateX(-120%);

  }


  .sidebar.cerrado {

    width:
      var(--sidebar-ancho);

  }


  .sidebar.mobile-visible {

    transform:
      translateX(0);

  }


  .contenido,
  body.menu-cerrado .contenido {

    margin-left:
      0;

    width:
      100%;

  }


  .hero {

    margin:
      10px;

  }


  .hero-contenido {

    padding:
      55px 30px;

  }


  .hero-acciones {

    flex-direction:
      column;

    align-items:
      flex-start;

  }


  .bloque-seccion {

    padding:
      20px 10px 0;

  }


  .timeline-section {

    margin:
      20px 10px 0;

    padding:
      55px 30px;

  }


  .panel-historico {

    padding:
      35px 25px;

  }


  .encabezado-seccion {

    align-items:
      flex-start;

  }


  .icono-seccion {

    width:
      52px;

    height:
      52px;

  }


  .grid-historia,
  .comparacion,
  .articulo-box {

    grid-template-columns:
      1fr;

  }


  .articulo-numero {

    border-right:
      none;

    border-bottom:
      1px solid rgba(255,255,255,.15);

    padding-bottom:
      20px;

  }


  .proceso,
  .lista-instituciones,
  .problemas-grid {

    grid-template-columns:
      1fr;

  }


  .subbloque-historico {

    grid-template-columns:
      1fr;

  }


  footer {

    margin:
      20px 10px 10px;

    flex-direction:
      column;

    align-items:
      flex-start;

  }


}

/* =====================================================
   PASO 9
   INTERACTIVIDAD GENERAL
===================================================== */


/* =====================================================
   BARRA DE PROGRESO GENERAL
===================================================== */

.progreso-lectura {

  position: fixed;

  top: 0;
  left: 0;

  width: 100%;
  height: 4px;

  z-index: 100000;

  background:
    rgba(17, 47, 39, .10);

  pointer-events: none;

}


.progreso-lectura-barra {

  width: 0%;
  height: 100%;

  background:
    linear-gradient(
      90deg,
      #b98e3e,
      var(--dorado-claro)
    );

  box-shadow:
    0 0 12px
    rgba(225, 194, 125, .48);

  transition:
    width .08s linear;

}



/* =====================================================
   INDICADOR DEL APARTADO ACTUAL
===================================================== */

.indicador-seccion {

  position: fixed;

  top: 22px;
  right: 26px;

  z-index: 900;

  display: flex;

  align-items: center;

  gap: 7px;

  max-width:
    min(430px, calc(100vw - 150px));

  padding:
    9px 14px;

  border-radius:
    30px;

  background:
    rgba(249, 246, 238, .82);

  backdrop-filter:
    blur(13px);

  -webkit-backdrop-filter:
    blur(13px);

  border:
    1px solid rgba(24, 63, 52, .10);

  box-shadow:
    0 10px 30px
    rgba(19, 50, 41, .09);

  opacity: 0;

  transform:
    translateY(-8px);

  visibility: hidden;

  transition:
    opacity .25s ease,
    transform .25s ease,
    visibility .25s ease;

}


.indicador-seccion.visible {

  opacity: 1;

  transform:
    translateY(0);

  visibility: visible;

}


.indicador-seccion-base {

  color:
    #9b7738;

  font-size:
    9px;

  letter-spacing:
    1.5px;

  font-weight:
    700;

  white-space:
    nowrap;

}


.indicador-seccion-separador {

  color:
    rgba(17, 47, 39, .26);

}


.indicador-seccion-actual {

  min-width: 0;

  overflow: hidden;

  text-overflow: ellipsis;

  white-space: nowrap;

  color:
    var(--verde-oscuro);

  font-size:
    10px;

  letter-spacing:
    .8px;

  font-weight:
    700;

}



/* =====================================================
   EFECTO DE APARICIÓN
===================================================== */

.reveal {

  opacity: 0;

  transform:
    translateY(28px);

  transition:
    opacity .75s cubic-bezier(.2,.7,.2,1),
    transform .75s cubic-bezier(.2,.7,.2,1);

}


.reveal.reveal-visible {

  opacity: 1;

  transform:
    translateY(0);

}


/* pequeño retraso para elementos internos */

.reveal-delay-1 {
  transition-delay: .08s;
}

.reveal-delay-2 {
  transition-delay: .14s;
}

.reveal-delay-3 {
  transition-delay: .20s;
}



/* =====================================================
   NAVEGACIÓN ENTRE CAPÍTULOS
===================================================== */

.navegacion-capitulo {

  display: grid;

  grid-template-columns:
    minmax(0,1fr)
    minmax(0,1fr);

  gap: 18px;

  max-width: 1180px;

  margin:
    22px auto 0;

}


.nav-capitulo {

  position: relative;

  display: flex;

  align-items: center;

  gap: 15px;

  min-height: 92px;

  padding:
    18px 22px;

  border-radius:
    16px;

  text-decoration:
    none;

  background:
    rgba(255,255,255,.58);

  backdrop-filter:
    blur(8px);

  border:
    1px solid rgba(22, 63, 51, .08);

  box-shadow:
    0 10px 30px
    rgba(31, 55, 45, .05);

  transition:
    transform .25s ease,
    background .25s ease,
    box-shadow .25s ease;

}


.nav-capitulo:hover {

  transform:
    translateY(-4px);

  background:
    rgba(255,255,255,.88);

  box-shadow:
    0 16px 34px
    rgba(31,55,45,.10);

}


.nav-capitulo-siguiente {

  justify-content:
    flex-end;

  text-align:
    right;

}


.nav-capitulo-flecha {

  width: 42px;
  height: 42px;

  flex-shrink: 0;

  display: grid;
  place-items: center;

  border-radius:
    12px;

  background:
    var(--verde-oscuro);

  color:
    var(--dorado-claro);

  font-size:
    18px;

  transition:
    transform .25s ease,
    background .25s ease;

}


.nav-capitulo:hover
.nav-capitulo-flecha {

  background:
    var(--dorado);

  color:
    var(--verde-oscuro);

}


.nav-capitulo-anterior:hover
.nav-capitulo-flecha {

  transform:
    translateX(-3px);

}


.nav-capitulo-siguiente:hover
.nav-capitulo-flecha {

  transform:
    translateX(3px);

}


.nav-capitulo-contenido {

  display: flex;

  flex-direction: column;

  min-width: 0;

}


.nav-capitulo-etiqueta {

  margin-bottom: 3px;

  color:
    #9d793a;

  font-size:
    9px;

  letter-spacing:
    1.4px;

  font-weight:
    700;

}


.nav-capitulo-titulo {

  overflow: hidden;

  text-overflow: ellipsis;

  color:
    var(--verde-oscuro);

  font-family:
    Georgia,
    "Times New Roman",
    serif;

  font-size:
    18px;

  line-height:
    1.25;

}



/* cuando sólo existe uno */

.navegacion-capitulo
.nav-vacio {

  visibility: hidden;

}



/* =====================================================
   BOTÓN VOLVER ARRIBA
===================================================== */

.volver-arriba {

  position: fixed;

  z-index: 1500;

  right: 27px;
  bottom: 27px;

  width: 52px;
  height: 52px;

  display: grid;
  place-items: center;

  border: none;

  border-radius: 16px;

  cursor: pointer;

  color:
    var(--verde-oscuro);

  background:
    linear-gradient(
      145deg,
      var(--dorado-claro),
      var(--dorado)
    );

  box-shadow:
    0 13px 30px
    rgba(38, 61, 51, .20);

  opacity: 0;

  visibility: hidden;

  transform:
    translateY(15px)
    scale(.92);

  transition:
    opacity .25s ease,
    visibility .25s ease,
    transform .25s ease,
    box-shadow .25s ease;

}


.volver-arriba.visible {

  opacity: 1;

  visibility: visible;

  transform:
    translateY(0)
    scale(1);

}


.volver-arriba:hover {

  transform:
    translateY(-4px)
    scale(1.03);

  box-shadow:
    0 17px 36px
    rgba(38,61,51,.26);

}


.volver-arriba span {

  font-size: 24px;

  line-height: 1;

}



/* =====================================================
   MEJORA DEL SCROLL DE DESTINO
===================================================== */

section[id] {

  scroll-margin-top:
    22px;

}



/* =====================================================
   RESPONSIVE PASO 9
===================================================== */

@media (max-width: 900px) {

  .indicador-seccion {

    right: 18px;

    max-width:
      calc(100vw - 130px);

  }


  .navegacion-capitulo {

    margin-left: 10px;
    margin-right: 10px;

  }

}


@media (max-width: 650px) {

  .indicador-seccion {

    top: 13px;
    right: 13px;

    max-width:
      calc(100vw - 26px);

    padding:
      7px 11px;

  }


  .indicador-seccion-base,
  .indicador-seccion-separador {

    display: none;

  }


  .navegacion-capitulo {

    grid-template-columns:
      1fr;

  }


  .nav-capitulo-siguiente {

    grid-row:
      2;

  }


  .nav-vacio {

    display: none;

  }


  .volver-arriba {

    right: 17px;
    bottom: 17px;

    width: 48px;
    height: 48px;

  }

}



/* =====================================================
   ACCESIBILIDAD
   RESPETAR REDUCCIÓN DE MOVIMIENTO
===================================================== */

@media
(prefers-reduced-motion: reduce) {

  html {
    scroll-behavior: auto;
  }


  *,
  *::before,
  *::after {

    scroll-behavior: auto !important;

    transition-duration:
      .01ms !important;

    animation-duration:
      .01ms !important;

  }


  .reveal {

    opacity: 1;

    transform: none;

  }

} 

/* =====================================================
   PASO 10.2
   MENÚ Y EXPERIENCIA MÓVIL
===================================================== */


/* =====================================================
   BOTÓN HAMBURGUESA
===================================================== */

.boton-menu-movil {

  display: none;

  position: fixed;

  top: 17px;
  left: 17px;

  z-index: 1450;

  width: 50px;
  height: 50px;

  place-items: center;

  padding: 0;

  border: 1px solid
    rgba(225, 194, 125, .28);

  border-radius: 15px;

  cursor: pointer;

  color: var(--verde-oscuro);

  background:
    linear-gradient(
      145deg,
      var(--dorado-claro),
      var(--dorado)
    );

  box-shadow:
    0 12px 30px
    rgba(19, 50, 41, .22);

  transition:
    transform .25s ease,
    opacity .25s ease,
    box-shadow .25s ease;

}


.boton-menu-movil span {

  display: block;

  font-size: 23px;

  line-height: 1;

}


.boton-menu-movil:hover {

  transform:
    translateY(-2px);

  box-shadow:
    0 16px 34px
    rgba(19, 50, 41, .28);

}



/* =====================================================
   FONDO OSCURO DETRÁS DEL MENÚ
===================================================== */

.overlay-menu-movil {

  position: fixed;

  inset: 0;

  z-index: 1390;

  background:
    rgba(8, 27, 22, .44);

  backdrop-filter:
    blur(3px);

  -webkit-backdrop-filter:
    blur(3px);

  opacity: 0;

  visibility: hidden;

  pointer-events: none;

  transition:
    opacity .3s ease,
    visibility .3s ease;

}


.overlay-menu-movil.visible {

  opacity: 1;

  visibility: visible;

  pointer-events: auto;

}



/* =====================================================
   EVITAR QUE LA PÁGINA SE MUEVA
   MIENTRAS EL MENÚ ESTÁ ABIERTO
===================================================== */

body.menu-movil-abierto {

  overflow: hidden;

}



/* =====================================================
   MÓVIL
===================================================== */

@media (max-width: 760px) {


  /* -----------------------------------------------
     BOTÓN HAMBURGUESA
  ------------------------------------------------ */

  .boton-menu-movil {

    display: grid;

  }


  body.menu-movil-abierto
  .boton-menu-movil {

    opacity: 0;

    visibility: hidden;

    pointer-events: none;

  }



  /* -----------------------------------------------
     SIDEBAR MÓVIL
  ------------------------------------------------ */

  .sidebar {

    top: 10px;
    left: 10px;
    bottom: 10px;

    width:
      min(
        310px,
        calc(100vw - 34px)
      );

    z-index: 1500;

    padding:
      18px 14px;

    transform:
      translateX(
        calc(-100% - 25px)
      );

    transition:
      transform .35s
      cubic-bezier(
        .2,
        .75,
        .2,
        1
      );

  }


  .sidebar.mobile-visible {

    transform:
      translateX(0);

  }



  /* -----------------------------------------------
     SI EL MENÚ ESTABA CONTRAÍDO EN PC,
     EN CELULAR SIEMPRE SE MUESTRA COMPLETO
  ------------------------------------------------ */

  .sidebar.cerrado {

    width:
      min(
        310px,
        calc(100vw - 34px)
      );

  }


  .sidebar.cerrado
  .marca-texto {

    opacity: 1;

    transform: none;

    pointer-events: auto;

  }


  .sidebar.cerrado
  .menu {

    margin-top: 0;

    padding-bottom: 12px;

  }


  .sidebar.cerrado
  .menu-link {

    justify-content:
      flex-start;

    padding:
      8px 12px;

  }


  .sidebar.cerrado
  .menu-texto {

    opacity: 1;

    width: auto;

    overflow: visible;

    pointer-events: auto;

  }


  .sidebar.cerrado
  .menu-icono {

    width: 34px;
    height: 34px;

    font-size: 18px;

    border-radius: 10px;

  }



  /* -----------------------------------------------
     BOTÓN INTERNO DEL SIDEBAR
  ------------------------------------------------ */

  .sidebar
  .boton-menu,

  .sidebar.cerrado
  .boton-menu {

    position: static;

    width: 36px;
    height: 36px;

    display: grid;

    place-items: center;

    transform: none;

    background:
      rgba(255,255,255,.10);

    color: white;

  }


  .sidebar
  .boton-menu:hover {

    background:
      var(--dorado);

    color:
      var(--verde-oscuro);

  }



  /* -----------------------------------------------
     CABECERA SIDEBAR
  ------------------------------------------------ */

  .sidebar-top {

    padding:
      5px 4px 18px;

  }


  .marca-icono {

    width: 46px;
    height: 46px;

  }


  .marca-texto h2 {

    font-size: 16px;

  }



  /* -----------------------------------------------
     MENÚ
  ------------------------------------------------ */

  .menu {

    gap: 4px;

    padding-right: 3px;

  }


  .menu-link {

    min-height: 47px;

  }


  .menu-texto {

    font-size: 13px;

  }



  /* -----------------------------------------------
     CONTENIDO
  ------------------------------------------------ */

  .contenido,
  body.menu-cerrado
  .contenido {

    margin-left: 0;

    width: 100%;

  }



  /* -----------------------------------------------
     DEJAR ESPACIO PARA EL BOTÓN MÓVIL
     EN LA PORTADA
  ------------------------------------------------ */

  .hero {

    margin:
      10px;

  }


  .hero-contenido {

    padding:
      90px 27px 55px;

  }



  /* -----------------------------------------------
     INDICADOR ACTUAL
  ------------------------------------------------ */

  .indicador-seccion {

    top: 18px;

    right: 14px;

    max-width:
      calc(100vw - 92px);

    min-height: 46px;

    padding:
      8px 13px;

  }



  /* -----------------------------------------------
     PANELES
  ------------------------------------------------ */

  .panel-historico {

    border-radius:
      19px;

    padding:
      34px 22px;

  }


  .encabezado-seccion {

    gap: 15px;

  }


  .encabezado-seccion h2 {

    font-size:
      clamp(
        28px,
        9vw,
        38px
      );

  }



  /* -----------------------------------------------
     TEXTO
  ------------------------------------------------ */

  .texto-destacado {

    font-size: 18px;

  }



  /* -----------------------------------------------
     IMÁGENES
  ------------------------------------------------ */

  .figura-historica {

    border-radius:
      16px;

  }


  .ficha-visual {

    border-radius:
      16px;

    padding:
      25px;

  }



  /* -----------------------------------------------
     TOOLTIP
  ------------------------------------------------ */

  .tooltip-definicion {

    width:
      min(
        310px,
        calc(100vw - 30px)
      );

    font-size:
      12px;

  }



  /* -----------------------------------------------
     BOTÓN ARRIBA
  ------------------------------------------------ */

  .volver-arriba {

    right: 15px;
    bottom: 15px;

  }

}



/* =====================================================
   CELULARES MUY PEQUEÑOS
===================================================== */

@media (max-width: 430px) {

  .sidebar {

    width:
      calc(100vw - 20px);

  }


  .sidebar.cerrado {

    width:
      calc(100vw - 20px);

  }


  .hero h1 {

    font-size:
      clamp(
        41px,
        13vw,
        58px
      );

  }


  .panel-historico {

    padding:
      30px 18px;

  }


  .encabezado-seccion {

    flex-direction:
      column;

  }


  .icono-seccion {

    width:
      50px;

    height:
      50px;

  }


  .bibliografia-lista article {

    grid-template-columns:
      1fr;

  }


  .navegacion-capitulo {

    margin-left: 10px;
    margin-right: 10px;

  }

}