/* Style file verified on 2025-09-26 */
html {
  scroll-behavior: smooth;
}

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: #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: lightgray;
    width: 96px;
}

/* 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: gray 1px solid;
  background-color: darkgray;
}

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

.site-header-divider {
  height: 1.5rem;
  margin-inline-start: .5rem;
  border-inline-start: 2px solid black;
  display: inline-block;
}




.site-header-nav {
  padding: 0.5rem 1.5rem;
  margin-top: 14px;
}

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

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

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

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

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

.tree-toggle a:hover {
  color: #333;
}



button a {
  all: unset;
}

/* Utility class to remove default link styling */
.unstyled-link {
  all: unset;
  display: inline-block;
  cursor: pointer;
  width: 100%;
  height: 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: 250px;
  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;
  align-items: center;
  width: 6rem;
}

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

.project-icons {
  display: flex;
  margin-top: 1em;
  margin-left: 7em;
}


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

.logo {
  overflow: visible;
  margin-left: .5em;
}

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

.icon svg {
  transition: transform 0.2s ease-in-out;
}

.icon:hover svg {
  transform: scale(1.2); /* Aumenta el tamaño un 20% */
}



.interactive-table {
  width: 100%;
  border-collapse: collapse;
  padding: 0.5rem;
  display: flex;
}

.working-exp-table td{
  width: 16em;
}



.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[aria-expanded="true"] .arrow-indicator {
  transform: rotate(180deg);
}

.tree-toggle[aria-expanded="true"] .arrow-icon{
  transform: rotate(90deg);
}



.tree-toggle.arrow-icon {
  transition: transform 0.2s ease;
  transform: rotate(0deg);
  margin-right: 0.5em;
}

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


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

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

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

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

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

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

table {
  flex:auto
}

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;
  background-color: #f8f8f8;
}

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

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

.share-button {
  margin-right: 2em; 
  margin-top: 16px 
}


.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;
  margin-left: auto;
}

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


.share-menu a {
  display: flex;
  align-items: baseline;
  text-decoration: none;
  color: #333;
  font-weight: 500;
  padding: 0 0.5em;
}

.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;
}

.tooltip-container {
    position: relative;
    display: inline-block;
  }

  .tooltip-text {
    visibility: hidden;
    width: 260px;
    background-color: #333;
    color: #fff;
    text-align: left;
    border-radius: 6px;
    padding: 8px;
    position: absolute;
    z-index: 1;
    top: 125%; /* arriba del botón */
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    transition: opacity 0.3s;
    font-size: 0.85rem;
    line-height: 1.3;
  }

  .share-menu .tooltip-text{
    left: -50%;
  }

  .tooltip-container:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
  }

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

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

.modal-content-menu {
    background-color: #f3f3f3;
    outline-color: black;
    position: fixed;
    max-width: 100% !important;
    max-height: 92vh !important;
    overflow-y: auto !important; 
    overscroll-behavior: contain !important;
    width: 320px !important;
    margin: 0 !important;
    top: 69px !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: #f3f3f3;
  z-index: 1;
}




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

section {
  max-height: 80vh;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-right: 0.5em;
}

section::-webkit-scrollbar {
  width: 6px;
}

section::-webkit-scrollbar-thumb {
  background-color: #ccc;
  border-radius: 3px;
}





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

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

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

.nav-item {
  -webkit-tap-highlight-color: transparent; /* Elimina el flash azul en iOS/Android */
}

/*.nav-item:focus,
.nav-item:active {
  background-color: transparent; /* O define tu color deseado 
  outline: 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: #f3f3f3;
  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;
}


.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-portfolio{
  margin-bottom: 0.5em;
  font-size: 0.875rem;
  font-weight: 600;
  background-color: darkgray
}

#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
}


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

.site-footer {
  background-color: #444;
  color: #f0f0f0;
  padding: 1rem;
  font-size: 0.9rem;
}

.footer-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2rem;
}

.footer-note {
  text-align: center;
  font-size: 0.8rem;
  opacity: 0.7;
}

.theme-switch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 24px;
}

.theme-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0;
  right: 0; bottom: 0;
  background-color: #75b6e7;
  transition: 0.4s;
  border-radius: 24px;
}

.slider::before {
  position: absolute;
  content: "";
  height: 18px; width: 18px;
  left: 3px; bottom: 3px;
  background-color: white;
  transition: 0.4s;
  border-radius: 50%;
}

input:checked + .slider {
  background-color: #5b8db3;
}

input:checked + .slider::before {
  transform: translateX(26px);
}




/*-------Dark Mode----------*/

body.dark-mode .main-content {
  background-color: #1a1a1a;
  color: #f0f0f0;
}

body.dark-mode header,
body.dark-mode .site-footer {
  background-color: #000000;
  color: #cccccc;
}

body.dark-mode .header-panels-container{
  background-color: #333;
}

body.dark-mode section,
body.dark-mode aside,
body.dark-mode .layout-body-content,
body.dark-mode .modal-content-menu,
body.dark-mode table tr {
  background-color: #444;
}

body.dark-mode th,
body.dark-mode td a {
  color: #75b6e7;
  background-color: #444;
}

body.dark-mode .contact-menu a,
body.dark-mode .share-menu a{
  color: #f0f0f0
}



body.dark-mode .nav-item button,
body.dark-mode button a {
  color: #e6e6e6;
}

body.dark-mode a:hover,
body.dark-mode .nav-item button:hover {
  color: #66cfff;
}

body.dark-mode .panel-header-content a {
  color: #ffffff;
}

body.dark-mode .panel-header-grid a:first-of-type {
  color: #75b6e7;
}


body.dark-mode {
  h1, h2, h3, h4, h5, h6, td {
    color: #ffffff;
  }
}

body.dark-mode table tr td:first-child {
  background-color: #444;
}

.darkmode-toggle {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.95rem;
  color: var(--text-color, #1a1a1a);
  margin-left: auto;
}

.darkmode-label {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: #ffffff
}

.moon-icon {
  width: 20px;
  height: 20px;
  fill: currentColor;
}


/* Dark mode override */
body.dark-mode .darkmode-toggle {
  color: #f0f0f0;
}




@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
    }
}
