/* ====== Variables de ancho ====== */
:root {
  --sidebar-width: 300px;   /* antes 300–320px; ajústalo a gusto */
  --sidebar-width-collapsed: 0px;
  --transition-speed: 220ms;
}

/* Botón hamburguesa */
.hamburger {
  position: fixed;
  top: 14px;
  left: 14px;
  background: transparent;
  border: 0;
  padding: 6px;
  cursor: pointer;
  z-index: 1001; /* por encima del sidebar */
  display: none; /* visible solo en móvil por defecto */
}

/* Estructura base (desktop) */
.site-sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: var(--sidebar-width);
  height: 100vh;
  overflow-y: auto;
  background: #006774; /*#CA6702;*/           /* tu negro del tema */
  color: #fff;
  transition: transform var(--transition-speed) ease, width var(--transition-speed) ease;
  will-change: transform, width;
  z-index: 1000;
}

.site-content {
  /* margin-left: var(--sidebar-width);
  transition: margin-left var(--transition-speed) ease;
  width: 90%; */
  width: calc(100% - var(--sidebar-width));
  margin-left: var(--sidebar-width);
}

 .site-middle{
    padding-left: 30px;
    padding-right: 30px;
 }

/* Hacer el sidebar más angosto en desktop */
@media (min-width: 1025px) {
  /* ya está aplicado por las variables de arriba */
}

/* ====== Móvil / tablets: sidebar colapsable tipo off-canvas ====== */
@media (max-width: 1024px) {
  .hamburger { display: inline-flex; }
  
  .site-sidebar {
    transform: translateX(-100%);   /* oculto por defecto */
    /* width: 80vw;                    ancho cuando está abierto en móvil */
    /* max-width: 300px; */
    width: 100%;
    /* box-shadow: 4px 0 16px rgba(7, 63, 232, 0.3); */
  }

  .site-content {
    margin-left: 0;                 /* el contenido ocupa todo */
    width: 100%;
    padding-left: 30px;
    padding-right: 30px;
  }

  /* Estado: abierto (clase que activaremos con JS) */
  .site-sidebar.is-open {
    transform: translateX(0);
  }

  /* Empujar un poquito el contenido cuando se abre (opcional) */
  /* .push-when-open .site-content {
    transform: translateX(12px);
  } */

  /* Overlay oscuro cuando el menú está abierto (opcional) */
  body.menu-open::after {
    content: "";
    position: fixed; inset: 0;
    background: rgba(0, 0, 0, 0.35);
    z-index: 999; /* por debajo del sidebar pero encima del contenido */
  }
  .brand-photo {
    max-width: 30%;
    clip-path: circle(50% at 50% 50%);
  }
}

/* Detalle: cuando colapses manualmente en desktop (si lo deseas) */
body.sidebar-collapsed .site-sidebar {
  width: var(--sidebar-width-collapsed);
}
body.sidebar-collapsed .site-content {
  margin-left: var(--sidebar-width-collapsed);
}

/* Asegurar que el contenido interno del sidebar no se deforme al hacerlo más angosto */
.site-sidebar .brand,
.site-sidebar .menu,
.site-sidebar .footer {
  padding-left: 16px;
  padding-right: 16px;
}

.cite-right{
  text-align: right;
  padding-bottom: 34px;
  font-style: italic;
}

.jekyll-header-cite{
  margin-bottom: 0px;
  color: #bdbdbd;
  text-align: right;
}

.jekyll-header-cite-author{
  margin-top: 0px;
}

#search-input {
  border-radius: 0px;
}

a {
  color: #F3503E;
}

.brand-photo {
  clip-path: circle(50% at 50% 50%);
}

.nav-item a {
  background: #F48F32;
}

.nav-item a:hover, .nav-item a:focus {
  border: 2px solid #fff;
}

.post-meta a {
  color: #563046;
}

.post-entry {
  width: 100%;
}

.jekyll-header {
  color: #1D6471;
}

.jekyll-header:hover {
  color: #1D6471;
}

.cv {
  display: inline-block;
}

.cv a {
  border-right: 0;
}

.cv i {
  color: #da6064;
}