:root {
  --header-height: 150px;
  --categories-item-height: 150px;
  --sidebar-width: 230px;
  --sidebar-width-open: 230px;
  --sidebar-width-close: calc(var(--icon-size) + (var(--sidebar-padding-x) * 2));
  --profile-photo-height: 200px;
  --sidebar-padding-x: 16px;
  --icon-size: 24px;
  --categories-height: 56px;
  --profile-photo-top: calc(
    (var(--header-height) - (var(--categories-height) / 2)) - (var(--profile-photo-height) / 2)
  );
  --profile-photo-left: calc((var(--sidebar-width) / 2) - (var(--profile-photo-height) / 2));
  --sidebar-top: var(--header-height);
  --menu-btn-container-size: 40px;
}
/* Estilo para todas las barras de desplazamiento */
::-webkit-scrollbar {
  height: 10px; /* Ancho de la barra de desplazamiento */
  width: 10px; /* Ancho de la barra de desplazamiento */
}

/* Estilo para el riel (track) de todas las barras de desplazamiento */
::-webkit-scrollbar-track {
  background: #b8b8b88c; /* Color de fondo del riel */
}

/* Estilo para el pulgar (thumb) de todas las barras de desplazamiento */
::-webkit-scrollbar-thumb {
  background: #312020; /* Color del pulgar */
  border-radius: 15px; /* Radio de borde del pulgar */
}

html, body {
  height: 100%;
  margin: 0;
}
body {
  display: none;
  opacity: 0;
  font-family: 'Montserrat', sans-serif;
  margin: 0;
  padding: 0;
  width: 100%;
}

body.show {
  display: flex;
  opacity: 1;
}


.footer {
  /* min-height: 200px;
  height: auto; */
  width:  calc(100% - var(--sidebar-width));
  margin-left: var(--sidebar-width);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-color: #010d49;
  color: #fff;
  transition: all 0.2s;
  z-index: -1;
}

/* .footer {
  background-color: #282828;
  color: #f0f0f0;
  padding: 40px 0;
  text-align: center;
} */

.footer-content {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-evenly;
}

.footer-content h3 {
  color: #1e90ff;
}
.dark .footer-content h3 {
  color: #e004fd;
}

.footer-about, .footer-social {
  /* padding: 16px; */
  text-align: left;
  display: flex;
  flex-direction: column;
}

.footer-about {
  width: 70%;
  text-align: justify;
  color: rgb(214, 212, 212);
}

.footer-links ul {
  list-style-type: none;
  padding: 0;
}

.footer-links li {
  margin: 5px 0;
}

.footer-links a, .footer-social a {
  color: #1e90ff;
  text-decoration: none;
  transition: color 0.3s ease;
}

.dark .footer-links a, .dark .footer-social a {
  color: #af3bbe;
}

.footer-links a:hover, .footer-social a:hover {
  color: #f0f0f0;
}

.footer-bottom {
  width: 100%;
  margin-top: 30px;
  font-size: 0.9em;
  display: flex;
  justify-content: center;
  color: rgb(194, 193, 193);
}
.footer-bottom p{
  width: max-content
}

.dark .footer {
  background-color: #1f0029;
}

body {
  line-height: 1.6;
  color: #333;
  margin: 0 auto;
  padding: 0 auto;
  display: flex;
  flex-direction: column;
  background-color: rgb(235, 235, 235);
}

body.dark {
  color: rgb(190, 190, 190);
  background-color: #333;
}

.dark_button {
  position: fixed;
  top: 16px;
  right: 16px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
  border-style: none;
  padding: 0;
  background-color: transparent;
  opacity: 0.5;
  cursor: pointer;
  z-index: 11;
}

.dark_button:hover {
  opacity: 1;
}

.dark_button img {
  width: 24px;
  height: 24px;
}

h1,
h2 {
  color: #193096;
}
.dark h1,
.dark h2 {
  color: #ffffff;
}
.section {
  margin-bottom: 30px;
}
.skills-list {
  list-style: none;
  padding: 0;
}
.skills-list li {
  margin-bottom: 10px;
}

header {
  height: var(--header-height);
  width: 100%;
  padding-top: 4px;
  background: linear-gradient(to right, #4c53af, #faf7f3, #f5f3ef);
  position: fixed;
  top: 0;
  display: flex;
  justify-content: space-evenly;
  align-items: end;
  box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;
  z-index: 10;
}

.dark header {
  background: linear-gradient(to left, #4b0082, #000000);
}

header .name_and_categories {
  width: 100%;
  display: flex;
  flex-direction: column;
}

.container_flotante {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px 4px;
}

.flotante {
  width: 60%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  border: none;
  border-radius: 3px;
  background-color: rgba(255, 255, 255, 0.432);
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

.dark .flotante {
  background-color: #4c00826b;
  box-shadow: 0 1px 4px rgba(255, 255, 255, 0.938);
}

.name_and_categories h1,
.name_and_categories p {
  text-align: start;
  margin: 0px;
}

header .profile_photo {
  position: absolute;
  top: var(--profile-photo-top);
  left: var(--profile-photo-left);
  display: flex;
  justify-content: center;
  align-items: center;
  border-style: solid;
  border-color: #ffffff;
  border-radius: 50%;
  overflow: hidden;
  background-color: #051c68;
  z-index: 1;
  transition: all 0.4s;
}

.dark .profile_photo {
  border-color: #f2f6fd;
  background-color: #3c064d;
}

.profile_photo img {
  overflow: hidden;
  height: var(--profile-photo-height);
  opacity: 0;
  transition: opacity 0.2s;
}

.profile_photo img.visible {
  transition: opacity 0.3s ease-in-out;
  opacity: 1;
}

.categories {
  /* width: 100%; */
  display: flex;
  justify-content: end;
  height: var(--categories-height);
  padding-left: calc((var(--profile-photo-left) / 2) + (var(--profile-photo-height) / 2));
}

.categories .category_item {
  width: 50%;
  padding: 15px 30px;
  font-size: 16px;
  font-weight: bold;
  text-align: center;
  text-decoration: none;
  background-color: #4c53af;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    background-color 0.3s,
    color 0.3s,
    transform 0.3s;
}
.category_item:hover {
  background-color: #444a99;
  color: #fff;
}

.category_item.active {
  background-color: #222880;
  border-bottom-style: solid;
  border-color: rgb(255, 255, 255);
  border-width: 1px;
}

.dark .category_item {
  background-color: #680475;
}

.dark .category_item:hover {
  background-color: #5b0466;
}

.dark .category_item.active {
  background-color: #410449;
}

.category_item:active {
  transform: scale(0.98);
}

.side_item:active {
  transform: scale(0.99);
}

.sidebar {
  height: 100%;
  width: var(--sidebar-width);
  position: fixed;
  top: var(--sidebar-top);
  left: 0;
  padding-top: calc((var(--profile-photo-height) - (var(--categories-height) / 2)) / 2);
  background-color: #02082e;
  transition: all 0.2s;
}

.dark .sidebar {
  background-color: #18011f;
}

.dark .menu_btn_container {
  background-color: #3c064d;
}

.menu_btn_container {
  width: var(--menu-btn-container-size);
  height: var(--menu-btn-container-size);
  background-color: #051c68;
  color: white;
  z-index: 10;
  cursor: pointer;
  position: fixed;
  top: 50%;
  left: calc(var(--sidebar-width) - var(--menu-btn-container-size) / 2);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: all 0.2s;
  opacity: 0.5;
}

.menu_btn_container:active {
  transform: scale(0.98);
}

.menu_btn_container:hover {
  opacity: 1;
}

.sidebar.close .side_item label {
  display: none;
}

.sidebar .side_item label {
  cursor: pointer;
}

.sidebar .side_item {
  cursor: pointer;
  padding: var(--sidebar-padding-x);
  font-size: 16px;
  color: gray;
  display: flex;
  align-items: center;
  border-bottom-style: solid;
  border-color: rgba(172, 172, 172, 0.616);
  border-width: 0.2px;
}

.sidebar .side_item.active {
  background-color: rgba(128, 128, 128, 0.164);
  color: white;
}

.category_icon {
  margin-right: 12px;
  width: 24px;
  height: 24px;
}

.side_icon {
  margin-right: 12px;
  width: 24px;
  height: 24px;
}

.sidebar .side_item:hover {
  background-color: rgba(128, 128, 128, 0.164);
  color: white;
}

.sidebar_content {
  display: flex;
  flex-direction: column;
  flex: 1;
  margin-left: var(--sidebar-width);
  padding-top: var(--profile-photo-height);
  padding-left: 32px;
  transition: all 0.5s;
}

.tooltip {
  position: relative;
}

.tooltip::after {
  font-family: "Lucida Sans", "Lucida Sans Regular", "Lucida Grande", "Lucida Sans Unicode", Geneva, Verdana, sans-serif;
  font-size: 16px;
  content: attr(data-tooltip);
  position: absolute;
  background-color: #030000c5;
  color: #fff;
  padding: 8px;
  border-radius: 8px;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.3s,
    visibility 0.3s;
  bottom: 90%;
  left: 80%;
}

.tooltip:hover::after {
  opacity: 1;
  visibility: visible;
}

.sidebar .tooltip:hover::after {
  visibility: hidden;
}
.sidebar.close .tooltip:hover::after {
  visibility: visible;
}

.networks_social_container {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.button_social_network {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #1a087e;
  margin-right: 12px;
  margin-left: 12px;
}

.dark .button_social_network {
  color: #ffffff;
}
.contact {
  width: 100%;
}
form {
  /* margin: 0 auto; */
  display: flex;
  width: 400px;
  flex-direction: column;
  align-items: center;
}

form label {
  margin-bottom: 8px;
  width: 100%;
  text-align: start;
}

form input,
form textarea {
  border: none;
  outline: none;
  border-radius: 4px;
  padding-top: 8px;
  padding-bottom: 8px;
  margin-bottom: 16px;
  width: 100%;
}

form input:focus,
form textarea:focus {
  box-shadow:
    rgba(5, 27, 223, 0.4) 0px 0px 0px 1px,
    rgba(25, 5, 206, 0.65) 0px 2px 2px -1px,
    rgba(14, 56, 192, 0.08) 0px 1px 0px inset;
}
.dark form input:focus,
.dark form textarea:focus {
  box-shadow:
    rgba(179, 5, 223, 0.4) 0px 0px 0px 2px,
    rgba(173, 5, 206, 0.65) 0px 2px 2px -1px,
    rgba(142, 14, 192, 0.08) 0px 1px 0px inset;
}

form button {
  margin-bottom: 32px;
  background-color: #35079e;
  color: white;
  width: 100%;
  border: none;
  border-radius: 4px;
  cursor: pointer;  
  padding-top: 8px;
  padding-bottom: 8px;
}

.dark form button {
  background-color: #67087a;
}
.dark form button:hover {
  background-color: #520a61;
}

form button:hover {
  background-color: rgb(7, 48, 94);
}

.category_content {
  display: none;
  flex-direction: column;
  align-items: center;
}

.category_content.active {
  display: flex;
}

.work_experience_container {
  padding: 8px;
  width: 90%;
}
.job {
  border-radius: 8px;
  padding: 16px;
  box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;
  background-color: #c2baba34;
  margin-bottom: 16px;
}
.job:last-of-type {
  margin-bottom: 48px;
}


.job_title_company_duration {
  display: flex;
  flex-direction: row;
  text-align: center;
  justify-content: center;
  align-items: center;
  padding: 8px;
}

.job_title {
  font-size: 24px !important;
  color: #02082e;
  width: 50%;
}

.dark .job_title {
  color: #e4e3e3;
}

.job_company_duration {
  width: 50%;
}
.job_company {
  font-weight: 700;
}
.job_duration {
  border-radius: 15px;
  background-color: rgba(212, 177, 59, 0.418);
  font-size: small;
}

.job_description_title {
  border-radius: 8px;
  background-color: #02082e;
  padding: 4px;
  color: white;
  text-align: center;
  cursor: pointer;
  font-size: small;
}

.job_description_text {
width: 100%;
padding-left: 16px;
margin-bottom: 16px;
}

.dark .job_description_title {
  background-color: #18011f;
}

.job_description_title:active {
  transform: scale(0.999);
}

.job_description_content {
  display: flex;
  flex-wrap: wrap;
  flex-direction: row;
  background-color: transparent;
  text-align: justify;
  margin: 4px;
  border-radius: 4px;
  border-style: solid;
  border-width: 0.1px;
  border-color: #ecf7f8e5;
  opacity: 0;
  visibility: hidden;
  padding: 0px;
  max-height: 0;
  overflow-y: auto;
  transition: max-height 0.5s ease;
}

.job_description_title.opened +.job_description_content {
  opacity: 1;
  visibility: visible;
  padding: 16px;
  max-height: 300px; /* O cualquier otro valor que acomode tu contenido */
}

.job_item {
  min-width: 20%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 8px;
  border-radius: 5px;
  padding: 8px;
  background-color: rgb(241, 241, 241);
  box-shadow: rgba(88, 88, 88, 0.24) 0px 3px 8px;
}

.dark .job_item {
  background-color: rgb(46, 46, 46);
  box-shadow: rgba(201, 201, 201, 0.24) 0px 3px 8px;
}

.job_item .label{
  margin-right: 16px;
  text-align: left;
}

.job_item .icon img{
  width: 48px;
}

.div_mapa{
  width: 50%;
  height: 90%;
}

.div_mapa iframe{
  width: 99%;
  height: 100%;
}

.footer_responsive {
 display: none;   
}

@keyframes slideAnimation {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-100%);
  }
}

@keyframes flash {
  0% {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

.flash-effect {
  animation: flash 0.3s ease-in-out;
}

@media only screen and (max-width: 720px) {

  .dark_button{
    top:var(--categories-height);
    right: 4px;
    background-color: #babbbd;
    box-shadow: rgba(88, 88, 88, 0.24) 0px 3px 8px;
    padding: 8px;
  }
  
  .dark .dark_button{
    background-color: #18011f;
  }
  
  header {
    height:var(--categories-height);
    position: fixed;
    top: 0;
  }
  
  header .profile_photo {
    display: none;
  }

  .categories{
    padding-left: 0px;
  }
  .footer, .container_flotante, .profile_photo {
    display: none;   
  }
  
  .sidebar {
    top: var(--categories-height);
    padding-top: 0px;
  }  

  .sidebar.close {
    width: 0px;
  }  

  .sidebar.close .side_item {
    display: none;
  }  

  .sidebar.close .menu_btn_container {
    left: calc((-1) * var(--menu-btn-container-size) / 3);
  }  

   .menu_btn_container{
    top: var(--categories-height);
   }

  .sidebar_content {
    margin: 0px;
    padding: 0px;
  }

  .job_title_company_duration{
    flex-direction: column;
  }

  .job_title_company_duration > *{
    width: 100%;
  }

  .job_item{
    width: 100%;
  }

  .footer_responsive {
    display: flex;
    flex-direction: column;
    font-size: small;
    color: #02082e;
    border-top-left-radius: 15px;
    border-top-right-radius: 15px;
    background-color: rgb(255, 255, 255);
    box-shadow: rgba(88, 88, 88, 0.24) 0px 3px 8px;
    text-align: center;
    position: fixed;
    bottom: 0;
    width: 100%;
  }
  .dark .footer_responsive {
    color: white;
    background-color: #02082e;
  }

  .footer_responsive p {
    margin: 0px;
    width: 100%;
  }

  .dark .footer_responsive .button_social_network {
    color: white;
  }

  .footer_responsive .button_social_network {
    color: black;
  }

  .footer_responsive .networks_social_container {
   width: 100%;
  }

  .contact{
    margin-top: var(--categories-height);
  }

  form {
    width: 350px;
  }
}


/* Estilos básicos del snackbar */
#snackbar {
  visibility: hidden; /* Oculto por defecto */
  min-width: 250px;
  background-color: #333;
  color: #fff;
  text-align: center;
  border-radius: 4px;
  padding: 16px;
  position: fixed;
  z-index: 165656;
  right: 30px;
  top: 30px;
  font-size: 17px;
}

#snackbar.success{
  background-color: rgb(8, 95, 8);
}
#snackbar.info{
  background-color: rgb(23, 4, 88);
}
#snackbar.fail{
  background-color: rgb(101, 5, 5);
}

/* Animación de entrada/salida */
#snackbar.show {
  visibility: visible;
  -webkit-animation: fadein 0.5s, fadeout 0.5s 2.5s;
  animation: fadein 0.5s, fadeout 0.5s 2.5s;
}

@-webkit-keyframes fadein {
  from {top: 0; opacity: 0;} 
  to {top: 30px; opacity: 1;}
}

@keyframes fadein {
  from {top: 0; opacity: 0;}
  to {top: 30px; opacity: 1;}
}

@-webkit-keyframes fadeout {
  from {top: 30px; opacity: 1;} 
  to {top: 0; opacity: 0;}
}

@keyframes fadeout {
  from {top: 30px; opacity: 1;}
  to {top: 0; opacity: 0;}
}


.education_item_container {
  display: flex;
  align-items: center;
  padding: 16px;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  background-color: #f9f9f9;
  margin-bottom: 20px;
}

.dark .education_item_container {
  background-color: #2b0439;
}

.dark .education-title {
  color: rgb(246, 232, 206);
}

.logoEducation {
  flex-shrink: 0;
  margin-right: 16px;
}

.education-content {
  display: flex;
  flex-direction: column;
}

.education-title {
  font-size: 18px;
  font-weight: 600;
  color: #333;
  margin-bottom: 4px;
}

.education-institution {
  font-size: 14px;
  color: #666;
}

.education-range-time {
  font-size: 13px;
  color: #999;
  margin-top: 4px;
}
