#about-me-link {
  all: unset;
  display: inherit;
  font: inherit;
  color: inherit;
}

em {
  font-style: italic;
  color: #267CB9;
}

/* body */
body {
  margin: 0;
  padding: 0;
  background-color: #f3f3f3;
}

body {
  font-family: Segoe UI, Segoe UI Variable Text, -apple-system, BlinkMacSystemFont, Helvetica Neue, Helvetica, Arial, sans-serif;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.logo img {
  height: 35px;
  width: auto;
}

.logo img:hover {
  transform: scale(1.1);
  transition: transform 0.3s ease;
}

main, section, aside, footer, header {
  background-color: #fdfdfd;
}

ul {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: .875rem;
  line-height: 1.3;
}

th {
    text-align: center;
    font-size: .875rem;
    padding: 0.5rem;
    background-color: lightgray;
}

/* header */

header {
  color: white;
  padding: 1rem;
  display: flex !important;
}


.sticky-header {
  position: relative;
  top: 0;
  z-index: 1000;
  padding: 0px 16px 0 16px;
  border-bottom: #666 1px solid;
}

.holder {
  position: relative;
  display: flex;
  flex-direction: row;
  align-items: center;
  width: 100%;
}

.site-header-divider {
  height: 1.5rem;
  margin-inline-start: .5rem;
  display: inline-block;
}




.site-header-nav {
  background-color: #ffffff;
  padding: 1rem 2rem;
}

.nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.nav-item button,
.nav-item a,
.head-toggle,
.tree-toggle {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  background: none;
  border: none;
  cursor: pointer;
}

.nav-item button,
.nav-item a,
.head-toggle,
.tree-toggle {
  position: relative;
  padding-bottom: 4px;
}

.nav-item button::after,
.nav-item a::after,
.head-toggle::after,
.tree-toggle::after {
  content: "";
  position: absolute; /* ← important for placement */
  left: 0;
  bottom: 0;
  width: 0%;
  height: 2px;
  background-color: #0078d4;
  transition: width 0.3s ease;
}

.nav-item button:hover::after,
.nav-item a:hover::after,
.head-toggle::after,
.tree-toggle:hover::after {
  width: 100%;
}

/*Mobile Menu*/

.mobile-menu-hamburger {
  display: none;
}

@media (max-width: 768px) {
.mobile-menu-hamburger {
  display: block;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}
}


/*Header Dropdown Panels*/

.header-panels-container {
  position: absolute;
  right: 0;
  width: 97%;
  background: #fff;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  z-index: 1000;
  padding: 1rem;
}

.header-panel-content {
  display: flex;
  flex-direction: row;
  width: 100%;
}

.panel-header-grid {
  width: 300px;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: center;
  margin-bottom: 0.5rem;
  padding: 2rem;
}

.panel-header-grid a:first-of-type {
  font-weight: bold;
  font-size: 1.2rem;
  color: #0078d4;
  text-decoration: none;
}

.panel-header-grid a:not(:first-of-type) {
  font-style: italic;
  color: #666;
  font-size: 0.95rem;
}

table tr td:first-child {
  font-weight: bold;
  background-color: lightgray;
}

table tr {
  text-align: center;
  vertical-align: middle;
  background-color: #f8f8f8;
  font-size: 14px;
}

a[aria-label="LinkedIn"] svg {
  width: 20px;
  height: 20px;
  fill: #0077B5;
}

.icon {
  width: 20px;
  height: 20px;
  margin-right: 0.5em;
  vertical-align: middle;
  fill: #0078D4;
}

.interactive-table {
  width: 100%;
  border-collapse: collapse;
  padding: 0.5rem;
}
.panel-templates {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.25rem;
  margin-bottom: 0.5rem;
}

.panel-header h4 {
  margin: 0;
  font-size: 1.1rem;
  color: #333;
}

.panel-templates p {
  margin: 0;
  font-size: 0.9rem;
  color: #666;
}

.panel-menu {
  list-style: none;
  padding: 0;
  margin: 0;
}

.panel-menu li {
  margin: 0.5rem 0;
}

.arrow-indicator {
  margin-left: 0.5rem;
  vertical-align: middle;
  transition: transform 0.2s ease;
}

.head-toggle,
.tree-toggle[aria-expanded="true"] .arrow-indicator {
  transform: rotate(180deg);
}

.arrow-icon {
  transition: transform 0.2s ease;
  margin-right: 0.5em;
}

.sub-list {
  margin-left: 1.5em;
}

/*.sub-list.hidden {
  display: none;
}*/

.sub-list li {
  margin: 1em 0;
}

.toggle-arrow {
  display: inline-block;
  transition: transform 0.2s ease;
  margin-right: 0.5em;
}

.toggle-arrow[aria-expanded="true"] {
  transform: rotate(90deg); /* Flecha hacia abajo */
}

.sub-list.hidden {
  display: none;
}

td {
  height: 40px;
  vertical-align: bottom;
}

td a {
  display : block;
  width: 100%;
  cursor: pointer;
  transition: background-color 0.2s ease;
  border-bottom: 2px solid #0078d4;
  color: black;
}

td a:hover {
  background-color: #f0f4ff;
  font-weight: bold;
}

.share-side-header {
  margin-left : auto;
  margin-top: auto;
}

.share-menu {
  display: flex;
  gap: 1em;
  list-style: none;
  padding: 0;
  margin-left: auto;
}

.documents-menu {
  display: flex;
  gap: 1em;
  list-style: none;
  padding: 0;
  width: 200px;
}

.contact-menu {
  display: flex;
  gap: 1em;
  list-style: none;
  padding: 0;
  margin-left: auto;
}


.share-menu a {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: #333;
  font-weight: 500;
}

.contact-menu a {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: #333;
  font-weight: 500;
}

.contact-menu svg {
  width: 20px;
  height: 20px;
  margin-right: 0.5em;
}

.share-menu svg {
  width: 20px;
  height: 20px;
  margin-right: 0.5em;
}

.modal-content-menu {
  transition: opacity 0.3s ease;
}

.modal-content-menu[hidden] {
  opacity: 0;
  pointer-events: none;
}

.modal-content-menu {
    background-color: white;
    outline-color: black;
    position: fixed;
    max-width: 100% !important;
    max-height: 100vh !important;
    width: 320px !important;
    margin: 0 !important;
    top: 88px !important;
    bottom: 0 !important;
    z-index: 500 !important;
}

.cloned-nav-tree {
  list-style: none;
  padding: 0;
  margin: 0;
}

.layout-body-content {
  display: flex;
  width: 100%;
  flex-grow: 1;
  flex-direction: row;
  min-height: 80vh;
  padding: 1rem;
  background-color: #fff;
  z-index: 1;
}




section {
  flex: 0 0 20%;
  background-color: white;
  color: Gray;
  padding: 24px;
  position: sticky;
  top: 0;
  align-self: start;
}

.nav-tree {
  list-style: none;
  padding-left: 0;
}

.nav-item {
  cursor: pointer;
  margin-bottom: 0.5em;
  color: #333 ;
}

.nav-item::marker {
  content: none;
}

.head-toggle,
.tree-toggle {
  background: none;
  border: none;
  display: flex;
  align-items: center;
  cursor: pointer;
  font: inherit;
  padding: 0;
}

.arrow-icon {
  transition: transform 0.2s ease;
  margin-right: 0.5em;
}

main {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  flex: 1;
  flex-grow: 1;
  background-color: white;
  box-shadow: 0 0 10px rgba(0,0,0,0.05);
  margin: 0;
}

.main-content {
  position: relative;
  left: 0;
  background: #fff;
  /*box-shadow: 0 4px 12px rgba(0,0,0,0.1);*/
  padding: 1rem;
  min-width: 300px;
  z-index: 100;
}

.panel-content-main {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.panel-content-main[hidden] {
  display: block; /* para que la transición funcione */
  opacity: 0;
  pointer-events: none;
  position: absolute;
  z-index: 100;
}

.panel-content-main:not([hidden]) {
  color: #666;
  position: relative;
  z-index: 100;
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

#markdown-container {
  flex: 1;
  padding: 1rem;
  border-radius: 8px;
  /*box-shadow: 0 0 10px rgba(0,0,0,0.1);*/
}

aside {
  flex: 0 0 20%;
  height: 100%;
  background-color: #ffffff;
  padding: 1rem;
  position: sticky;
  top: 0;
  align-self: start;
  height: fit-content;
}

.article-nav-list{
  margin-left: 1em;
}


.article-nav-list li {
  margin: 0.5em;
}

.article-nav-list a {
  color: gray;
  margin-bottom: 0.5em;
}

.article-nav-list a.active {
  font-weight: bold;
  color: #0078d4;
  border-left: 3px solid #0078d4;
}

footer {
  background-color: #eaeaea;
  text-align: center;
  padding: 1rem;
  font-size: 0.9rem;
}

.layout-body-footer {
  margin-top: 2rem;
  padding: 1rem;
  background-color: #eaeaea;
  text-align: center;
}



.layout-container {
  display: flex;
  flex-direction: row;
}

.view {
	margin: 20px
}

.nav-item a{
  margin: 0.5em;
  margin-bottom: 0.5em;
  font-size: 0.875rem;
  font-weight: normal;
  cursor: pointer;
  color: #333 ;
  font-weight: 500;
}

#nav-tree-about-me{
  margin-bottom: 0.5em;
  font-size: 0.875rem;
  background-color: #f2f2f2;
}

#header-about-me {
  font-size: 0.875rem;
  font-weight: normal;
  cursor: pointer;
  color: #333 ;
  margin: 0.5em;
}

h1,h2,h3,h4,h5,h6 {
    color: #222;
    margin: 0 0 20px
}

p,ul,ol,table,pre,dl {
    margin: 0 0 20px
}

h1,h2,h3 {
    line-height: 1.1
}

h1 {
    font-size: 28px
}

h2 {
    color: #393939
}

h3,h4,h5,h6 {
    color: #494949
}


a {
    color: #267CB9;
    text-decoration: none
}

a:hover,a:focus {
    color: #069;
    font-weight: bold
}

h:hover,h:focus{
	color: #069;
    font-weight: bold
}


a small {
    font-size: 11px;
    color: #777;
    margin-top: -0.3em;
    display: block
}

a:hover small {
    color: #777
}

h1 {
  margin-top: 0;
}

.site-logo {
  width: 200px;         /* Adjust as needed */
  height: 205px;
  object-fit: cover;
  border-radius: 50%;
  display: block;
  /*margin: 0 auto 1em auto;*/
}

.url{
 font-size: 2em
}

.footer {
    width: 270px;
    float: left;
    position: fixed;
    bottom: 50px;
    -webkit-font-smoothing: subpixel-antialiased
}

/* Main content on the right */
.content {
  flex: 1;
  padding: 2em;
}



@media print, screen and (max-width: 871px) {
    header,section,footer{
		float: none;
        position: static;
       /* width: auto  */
    }

	
	
    header {
        padding-right: 320px
    }
	
    section {
        border: 1px solid #e5e5e5;
        border-width: 1px 0;
        padding: 20px 0;
        margin: 0 0 20px
    }

    header a small {
        display: inline
    }

}


@media print, screen and (max-width: 620px) {
    body {
        word-wrap:break-word
    }

    header {
        padding: 0
    }

    header p.view {
        position: static
    }

    pre,code {
        word-wrap: normal
    }
    
    section {
      display: none;
    }

    aside {
      display: none;
    }

    .site-header-nav {
      display: none;
    }

}


@media print, screen and (max-width: 480px) {
    body {
        padding:15px
    }

    .downloads {
        width: 99%
    }

    .downloads li,.downloads li+li+li {
        width: 33%
    }
}

@media print {
    body {
        padding: 0.4in;
        font-size: 12pt;
        color: #444
    }
}
