:root {
  /*light mode*/
  --sidebar-color: #03a9f4;
  --main-bg-color: #f5f5f5;
  --icons-hover: #ff9800;
  --tiles-color: #BFE6F8; 
  --text-color: #133147;
  --accent-color: #03a9f4;
  --tec-color: #f5f5f5;
  --icons-color: #ffffff;

  /* Dark mode */
  --sidebar-color-dark: #01579B;
  --main-bg-color-dark: #333333;
  --icons-hover-dark: #FFB300;
  --tiles-color-dark: #2f5b99;
  --text-color-dark: #FFFFFF;
  --accent-color-dark: #4272f7;
  --icons-color-dark: #CCCCCC;
}

.dark-mode {
  --sidebar-color: var(--sidebar-color-dark);
  --main-bg-color: var(--main-bg-color-dark);
  --icons-hover: var(--icons-hover-dark);
  --tiles-color: var(--tiles-color-dark);
  --text-color: var(--text-color-dark);
  --accent-color: var(--accent-color-dark);
  --icons-color: var(--icons-color-dark);
}
  
  
  
.light-dark {
  position: fixed;
  bottom: -35px;
  left: 0px;
  width: 70px;
  height: auto;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
}

.shadow {
  border-radius: 100%;
  box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.8);
}

.light-dark img {
  width: 60px;
  height: 60px;
  rotate: 90deg;
  transition: transform 1s ease;
}

.about, .skills, .welcome-container, .contact, .languages {
  padding: 4vh;
}

body p {
  text-align: justify;
}

body {
  margin: 0;
  font-family: 'Montserrat', sans-serif;
  background-color: var(--sidebar-color);
  overflow: hidden;
  transition: background-color 0.5s ease;
}
  
.cv-link {
  margin-top: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: var(--tiles-color);
  padding: 10px 15px;
  border-radius: 8px;
  text-decoration: none;
  color: var(--text-color);
  box-shadow: 4px 4px 2px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.5s ease;
  max-width: 200px; 
  width: 100%;
}

.cv-container {
  width: 80%;
  margin: 0 auto;
  display: flex;
  justify-content: center;
}

.cv-link:hover {
  transform: translateY(-3px);
  box-shadow: 4px 5px 4px rgba(0, 0, 0, 0.3);
}

.cv-link i {
  font-size: 20px !important;
  margin-left: 15px;
}

#welcome-section ul {
  list-style-type: none;
  display: flex;
  justify-content: center;
  align-items: center;
  list-style-type: none;
  padding: 0px;
}

.modal-body ul{
  list-style-type: none;
}

.tecnologias {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 5px;
}

.tecnologia {
  background-color: var(--accent-color);
  padding: 8px 12px;
  border-radius: 5px;
  color: var(--tec-color);
  font-size: 0.9rem;
  box-shadow: 2px 2px 1px rgba(0, 0, 0, 0.2);
}
  
.row {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
}

#welcome-section li {
  display: flex;
  justify-content: center;
  align-items: center;
  padding-right: 1.5vw;
  margin: 0px;
}

#welcome-section i {
  font-size: 40px;
}
  
.container {
  width: 80%;
  margin: 0 auto;
}

.projects {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
}
  
section {
  border-top-left-radius: 10px;
  height: 100dvh;
  color: var(--text-color);
  background-color: var(--main-bg-color);
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  box-shadow: 0 0px 15px rgba(0, 0, 0, 0.6);
  transition: background-color 0.5s ease;
}
  
.tile {
  background-color: var(--tiles-color);
  padding: 15px;
  margin-bottom: 15px;
  border-radius: 10px;
  box-shadow: 4px 4px 2px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.5s ease;
}

.tile:hover {
  transform: translateY(-5px);
  box-shadow: 4px 5px 4px rgba(0, 0, 0, 0.3);
}

.tile a {
  display: block;
  text-align: center;
  color: var(--text-color);
  font-size: 1.2rem;
  text-decoration: none;
}

.welcome-container {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 40px;
}

.welcome-icons ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  padding: 0;
  list-style: none;
}

.welcome-icons i {
  font-size: 40px;
}

.welcome-text {
  max-width: 400px;
  text-align: center;
}

@media (max-width: 768px) {
  .welcome-container {
    flex-direction: column;
  }
}

.certificates {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
}


.contact-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  margin-top: 20px;
  list-style: none;
  padding: 0;
}

.contact-links a {
  text-decoration: none;
  background-color: var(--tiles-color);
  color: var(--text-color);
  padding: 12px 20px;
  border-radius: 8px;
  box-shadow: 4px 4px 2px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.5s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 1rem;
  min-width: 250px;
}

.contact-links a:hover {
  transform: translateY(-3px);
  box-shadow: 4px 5px 4px rgba(0, 0, 0, 0.3);
}

.contact-links i {
  font-size: 20px;
}


.tile a:hover {
  color: var(--accent-color);
}



.certificates-container {
    display: grid;
    grid-template-columns: 32% 32% 32%;
    grid-gap: 20px;
    justify-items: center;
    margin-inline: 10px;
}

.certificate-title {
  display: flex;
  width: 100%;
  justify-content: center;
  align-items: center;
  background-color: var(--text-color);
  color: var(--tiles-color);
  padding: 10px;
  border-radius: 8px;
  text-align: center;
  box-shadow: 4px 4px 2px rgba(0, 0, 0, 0.2);
  transition: background-color 0.5s ease;
}

.certificate-tile {
  background-color: var(--tiles-color);
  display: flex;
  width: 100%;
  justify-content: center;
  align-items: center;
  padding: 10px;
  border-radius: 8px;
  text-align: center;
  color: var(--text-color);
  box-shadow: 4px 4px 2px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.5s ease;
}

.certificate-tile:hover {
  transform: translateY(-3px);
  box-shadow: 4px 5px 4px rgba(0, 0, 0, 0.3);
}


#certificates a, #projects a {
  color: var(--text-color);
  text-decoration: none;
}


#social {
  list-style-type: none;
  padding: 30px;
  text-align: center;
}

.skill-icons ul{
  padding-top: 30px;
  padding-left: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  font-size: 40px;
  list-style: none;
}

#social a {
  text-decoration: none;
}

#social a i {
  margin: 40px;
  font-size: 40px;
  color: var(--text-color);
  transition: transform 1s ease;
}

#social a i:hover {
  transform: scale(1.1);
}

#navbar {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 60px;
  z-index: 1000;
}

#sidebar {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  left: 0;
  width: 70px;
  z-index: 1000;
}

#sidebar ul {
  list-style-type: none;
  margin: 0;
  padding: 0;
}

#sidebar li {
  margin-bottom: 35px;
  transition: transform 1s ease;
}

#sidebar li:hover {
  transform: scale(1.1);
}

#sidebar a {
  display: block;
  text-align: center;
}

main {
  margin-left: 70px;
  transition: margin-left 0.3s ease;
}

#sidebar i {
  font-size: 25px;
  color: var(--icons-color);
}


  
@keyframes deform {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(0.7);
  }
  100% {
    transform: scale(1);
  }
}
  
#sidebar a i {
    transition: color 0.3s ease, transform 0.3s ease;
  }

#sidebar a.active-section i {
    color: var(--icons-hover);
    animation: deform 0.5s ease;
}

#too-small,
#swipeIndicator {
  display:none;
}
  
@media screen and (max-width: 768px) {
  #root {
    overflow: hidden;
  }
  #welcome-section ul {
    flex-wrap: wrap;
  }

  #welcome-section li {
    padding-bottom: 5px;
  }

  #welcome-section i {
    font-size: 35px;
  }

  .certificates-container {
      grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
      margin: 0px 15px;
  }



  #sidebar {
    position: fixed;
    top: 100%;
    left: 0;
    transform: translateY(-100%);
    z-index: 2;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 8dvh;
    width: 100%;
    box-shadow: 0 0px 15px rgba(0, 0, 0, 0.6);
    background-color: var(--sidebar-color);
  }

  #sidebar ul{
    display: flex;
    justify-content: center;
    align-items: center;
    list-style-type: none;
  }

  #sidebar li{
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 3vw;
    margin: 0px;
  }

  main {
    display: flex;
    width: 700vw;
    margin-left: 0px;
  }

  section {
    position: relative;
    top: 0;
    width: 100vw;
    margin-top: 0px;
    border-start-start-radius: 0px;
    border-end-start-radius: 0px;
    height: 92dvh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    box-shadow: 0 0px 15px rgba(0, 0, 0, 0.6);
  }

  .light-dark {
    position: fixed;
    bottom: 0.5dvh;
    left: 100vw;
    transform: translateX(-50%);
    z-index: 1001;
    width: 8dvh;
    height: auto;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
  }
  
  .shadow {
    border-radius: 100%; 
    display: flex;
    justify-content: center;
    align-items: center;
  }
  
  .light-dark img {
    width: auto;
    height: 7dvh;
    rotate: 0deg;
    transition: transform 1s ease;
  }

  .container {
    width: 90%;
    margin: 0 auto;
  }
  
  h3 {
    font-size: medium;
  }
  
  p {
    font-size: medium;
  }

  #swipeIndicator {
    display: block;
    position: absolute;
    bottom: 12dvh;
    right: 4vw;
    font-size: 25px;
    color: var(--text-color);
    z-index: 1000;
  }

  #swipeIndicator {
    display: block;
    font-size: 25px;
    color: var(--text-color);
    z-index: 1000;
  }

  #swipeIndicator i:nth-child(5) { animation: fadeInOut1 4s infinite ease-in-out; }
  #swipeIndicator i:nth-child(4) { animation: fadeInOut2 4s infinite ease-in-out; }
  #swipeIndicator i:nth-child(3) { animation: fadeInOut3 4s infinite ease-in-out; }
  #swipeIndicator i:nth-child(2) { animation: fadeInOut4 4s infinite ease-in-out; }
  #swipeIndicator i:nth-child(1) { animation: fadeInOut5 4s infinite ease-in-out; }
  
  @keyframes fadeInOut1 {
    0%, 100% { opacity: 1; }
    16%, 90% { opacity: 0; }
  }

  @keyframes fadeInOut2 {
    0%, 100% { opacity: 1; }
    33%, 90% { opacity: 0; }
  }

  @keyframes fadeInOut3 {
    0%, 100% { opacity: 1; }
    50%, 90% { opacity: 0; }
  }

  @keyframes fadeInOut4 {
    0%, 100% { opacity: 1; }
    66%, 90% { opacity: 0; }
  }

  @keyframes fadeInOut5 {
    0%, 100% { opacity: 1; }
    83%, 90% { opacity: 0; }
  }
}

@media screen and (max-width: 200px) {
  #root{
    display: none;
  }

  #too-small{
    height: 100dvh;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--dark-text-color);
    text-align: center;
  }
}

/* Estilos para el modal */
.modal {
  display: none;
  position: fixed;
  z-index: 1500;
  left: 0;
  top: 0;
  width:100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  animation: fadeIn 0.3s ease;
}

.modal-content {
  background-color: var(--main-bg-color);
  margin: 5% auto;
  padding: 15px;
  border-radius: 15px;
  width: 80%;
  max-width: 600px;
  position: relative;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  animation: slideIn 0.8s ease;
  color: var(--text-color);
}



.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  border-bottom: 2px solid var(--accent-color);
  padding-bottom: 15px;
}

.modal-header h2 {
  margin: 0;
  color: var(--accent-color);
}

.close {
  color: var(--text-color);
  font-size: 35px;
  font-weight: bold;
  cursor: pointer;
  transition: color 0.3s ease;
}

.close:hover,
.close:focus {
  color: var(--icons-hover);
  text-decoration: none;
}


.modal-body h3 {
  color: var(--accent-color);
}

.modal-body ul {
  padding-left: 20px;
  text-align: left
}



@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideIn {
  from {
    transform: translateY(100px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Hacer los certificate-tile clickeables */
.certificate-tile {
  cursor: pointer;
}

.certificate-tile:hover {
  transform: translateY(-3px);
  box-shadow: 4px 5px 4px rgba(0, 0, 0, 0.3);
}

#swipeRight {
  display: none;
}

@media (max-width: 768px) {
  #swipeRight {
    display: flex;
  }
  .modal-content {
    width: 92%;
    margin: 0;
    height: 90%;
    position: absolute;
    bottom: 0;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
  }

  .modal-content h2 {
    font-size: 1.2rem;
  }
}
.language-card {
  margin: 20px 0;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 4px 4px 2px rgba(0, 0, 0, 0.2);
  color: var(--tiles-color);
  transition: background-color 0.5s ease, box-shadow 0.3s ease;
}

.language-card h3 {
  margin-bottom: 10px;
  color: var(--text-color);
}

.bar {
  background-color: #ddd;
  border-radius: 8px;
  height: 10px;
  width: 100%;
  overflow: hidden;
  margin-bottom: 10px;
}

.fill {
  height: 100%;
  background-color: var(--sidebar-color);
  border-radius: 8px;
  transition: width 0.5s ease;
}

.full {
  width: 100%;
}

.medium {
  width: 70%;
}

@media (max-width: 768px) {
  .language-card {
    padding: 15px;
  }

  .language-card h3 {
    font-size: 1rem;
  }

  .language-card p {
    font-size: 0.9rem;
  }
}

.habilidad {
  display: flex;
  align-items: center;
  margin: 10px 0;
  gap: 6px;
}

#welcome {
  position: relative;
}

/* Indicador de swipe hacia la derecha */
.swipe-indicator-right {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  width: 30px;
  height: 30px;
  background: linear-gradient(45deg, var(--sidebar-color), var(--tiles-color));
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  animation: pulseGrow 1.5s infinite ease-in-out 1s;
  box-shadow: 0 0 10px rgba(3, 169, 244, 0.3);
  cursor: pointer;
  z-index: 100;
}

.swipe-indicator-right::before {
  content: '';
  position: absolute;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(3, 169, 244, 0.2);
  animation: pulseGrow 1.5s infinite ease-in-out 1s;
  z-index: -1;
}

.swipe-indicator-right::after {
  content: '';
  position: absolute;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: rgba(3, 169, 244, 0.1);
  animation: pulseGrow 1.5s infinite ease-in-out 1s;
  z-index: -2;
}

.swipe-indicator-right i {
  color: white;
  font-size: 14px !important;
  animation: arrowBounce 1.5s infinite ease-in-out 1s;
}

@keyframes pulseGrow {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  80% {
    transform: scale(1.2);
    opacity: 0.8;
  }
}

@keyframes arrowBounce {
  0%, 100% {
    transform: translateX(-2px);
  }
  80% {
    transform: translateX(3px);
  }
}

/* Estilos para modo oscuro del indicador */
.dark-mode .swipe-indicator-right {
  background: linear-gradient(45deg, var(--sidebar-color), var(--text-color));
  box-shadow: 0 0 20px rgba(66, 114, 247, 0.4);
}

.dark-mode .swipe-indicator-right::before {
  background: rgba(66, 114, 247, 0.2);
}

.dark-mode .swipe-indicator-right::after {
  background: rgba(66, 114, 247, 0.1);
}