@charset "UTF-8";
@import url("https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,300..800;1,300..800&family=Pixelify+Sans&display=swap");
/* Si se aplica el tema con la media query, habrá un flash 
** si el tema guardado en localStorage no coincide con el tema del sistema.
** Para evitarlo, es preferente que el tema no se guarde en el localStorage. 
** En su lugar, se puede usar el tema por defecto del sistema y elegir cambiar el tema si el usuario lo desea.
*/
:root {
  --bg-dark: #f5f8ff;
  --bg-darken: #eaf0ff;
  --text-primary: #1a1a1a;
  --text-secondary: #4a4a4a;
  --accent: #007acc;
  --accent-darken: #0060a0;
  --accent-lighten: #0392f2;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg-dark: #0b1e3a;
    --bg-darken: #051225;
    --text-primary: #e0e6f7;
    --text-secondary: #b0b8d4;
    --accent: #77d2ff;
    --accent-darken: #5baed7;
    --accent-lighten: #97dcff;
  }
}
.light {
  --bg-dark: #f5f8ff;
  --bg-darken: #eaf0ff;
  --text-primary: #1a1a1a;
  --text-secondary: #4a4a4a;
  --accent: #007acc;
  --accent-darken: #0060a0;
  --accent-lighten: #0392f2;
}

.dark {
  --bg-dark: #0b1e3a;
  --bg-darken: #051225;
  --text-primary: #e0e6f7;
  --text-secondary: #b0b8d4;
  --accent: #77d2ff;
  --accent-darken: #5baed7;
  --accent-lighten: #97dcff;
}

/* Buttons */
/* Tags */
/* Reset & base mobile styles */
* {
  box-sizing: border-box;
  font-family: "Open Sans", sans-serif;
}

body {
  max-width: 1500px;
  background-color: var(--bg-dark);
}

html {
  scroll-behavior: smooth;
}

html,
body {
  margin: 0;
  padding: 0;
  color: var(--text-primary);
  line-height: 1.6;
  position: relative;
}

[data-es] {
  transition: opacity 0.1s;
}

.zoom-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.5);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: imageFadeIn 0.25s ease-out;
  cursor: zoom-out;
}

.zoom-overlay.zoom-out {
  animation: imageFadeOut 0.2s ease-in forwards;
}

.zoom-overlay img {
  transform: scale(1);
  max-width: 90vw;
  max-height: 90vh;
  width: auto;
}

@keyframes imageFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes imageFadeOut {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}
body > .main-layout > header {
  position: relative;
  z-index: 1;
  background-color: var(--bg-darken);
  color: var(--text-primary);
  display: flex;
  flex-direction: column;
}
body > .main-layout > header .name {
  font-size: 2rem;
  color: var(--text-primary);
  margin: 2rem;
  font-weight: bold;
}
body > .main-layout > header .title {
  font-size: 1.3rem;
  color: var(--text-secondary);
  margin: 0 2rem;
  font-weight: normal;
}
body > .main-layout > header .description {
  font-size: 1rem;
  color: var(--text-secondary);
  margin: 2rem;
  font-weight: normal;
}
body > .main-layout > header .icons {
  display: flex;
  width: 100%;
  padding: 0 2rem 2rem;
}
body > .main-layout > header .icons .social-icons,
body > .main-layout > header .icons .configuration-icons {
  gap: 1rem;
}
body > .main-layout > header .icons .social-icons a,
body > .main-layout > header .icons .social-icons button,
body > .main-layout > header .icons .configuration-icons a,
body > .main-layout > header .icons .configuration-icons button {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-primary);
  width: 3rem;
  height: 3rem;
  font-size: 3rem;
  display: flex;
  justify-content: center;
  align-items: center;
  text-decoration: none;
  transition: all 0.2s ease-in-out;
}
body > .main-layout > header .icons .social-icons a i,
body > .main-layout > header .icons .social-icons button i,
body > .main-layout > header .icons .configuration-icons a i,
body > .main-layout > header .icons .configuration-icons button i {
  font-size: 2rem;
  height: 2rem;
  width: 2rem;
  display: flex;
  justify-content: center;
  align-items: center;
}
body > .main-layout > header .icons .social-icons {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  width: 50%;
}
body > .main-layout > header .icons .social-icons a:hover {
  color: var(--accent);
  transform: translateY(-2px);
}
body > .main-layout > header .icons .configuration-icons {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  width: 50%;
}
body > .main-layout > header .icons .configuration-icons button.translate-button:hover {
  transform: rotateY(0.5rad);
}
body > .main-layout > header .icons .configuration-icons button.toggle-theme-button:hover {
  transform: rotate(0.5rad);
}

.theme-icon-animate {
  animation: theme-icon-spin 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes theme-icon-spin {
  0% {
    transform: rotate(-180deg) scale(0.5);
    opacity: 0;
  }
  60% {
    transform: rotate(20deg) scale(1.1);
    opacity: 1;
  }
  100% {
    transform: rotate(0deg) scale(1);
    opacity: 1;
  }
}
.language-icon-animate {
  animation: language-icon-spin 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  animation-fill-mode: forwards;
}

.language-icon-animate-reverse {
  animation: language-icon-spin-reverse 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  animation-fill-mode: forwards;
}

@keyframes language-icon-spin {
  0% {
    transform: rotateY(0deg);
  }
  100% {
    transform: rotateY(180deg);
  }
}
@keyframes language-icon-spin-reverse {
  0% {
    transform: rotateY(180deg);
  }
  100% {
    transform: rotateY(0deg);
  }
}
nav {
  display: none;
}

h1 {
  align-items: center;
  display: flex;
  justify-content: center;
  font-size: 2rem;
  color: var(--text-primary);
  position: sticky;
  top: 0;
  width: 100%;
  backdrop-filter: blur(15px);
  background-color: rgba(var(--bg-dark), 0.8);
  /* Fondo semi-transparente */
  z-index: 10;
  height: 60px;
  text-transform: uppercase;
}

p {
  margin-bottom: 1rem;
  max-width: 800px;
  font-size: 1rem;
  margin-block: 1lh;
  color: var(--text-secondary);
}

strong {
  color: var(--text-primary);
}

img {
  width: 100%;
  max-width: 500px;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
  transition: all 0.2s ease-in-out;
  margin: 0 auto 2rem;
}

body > .main-layout > .content > section {
  z-index: 2;
  padding: 0 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.project {
  z-index: 5;
  border-radius: 12px;
  padding: 2rem;
  margin: 2rem 0;
  transition: box-shadow 0.15s ease-in-out;
  background-color: var(--bg-darken);
  border-radius: 12px 12px 12px 0;
}
.project:hover {
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.146);
}
.project header .project-date {
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-weight: 400;
  margin: 0 0 1rem;
}
.project header h2 {
  font-size: 1.8rem;
  color: var(--text-primary);
  margin: 1rem 0 0rem;
  line-height: 1.2;
}
.project section .preview-container {
  position: relative;
  display: inline-block;
  margin-top: 1rem;
}
.project section .preview-container .preview-link {
  margin-bottom: 10px;
  display: inline-block;
  color: var(--text-primary);
  padding: 0.6rem 1.2rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: box-shadow 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
}
.project section .preview-container .preview-link.repo {
  color: #e0e6f7;
  background-color: #772EFF;
}
.project section .preview-container .preview-link.repo:hover {
  background-color: color-mix(in srgb, #772EFF 90%, rgb(0, 0, 0) 10%);
}
.project section .preview-container .preview-link.site {
  color: #e0e6f7;
  background-color: #076D9C;
}
.project section .preview-container .preview-link.site:hover {
  background-color: color-mix(in srgb, #076D9C 90%, rgb(0, 0, 0) 10%);
}
.project section .preview-container .preview-link:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.tech-tags {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0 0;
}

.tag {
  padding: 0.4rem 0.8rem;
  font-size: 0.85rem;
  border-radius: 9999px;
  font-weight: 500;
  color: white;
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  transition: background-color 0.3s;
  font-family: "Consolas", "sans-serif";
}
.tag:hover {
  cursor: pointer;
}

.tag.frontend {
  background-color: #1A6EF4;
}

.tag.backend {
  background-color: #B85C00;
}

.tag.database {
  background-color: #22873B;
}

.tag.hosting {
  background-color: #7E57C2;
}

.tag.tool {
  background-color: #8b5cf6;
}

.tag.general {
  background-color: #057f7f;
}

.tag:hover {
  filter: brightness(1.1);
  cursor: default;
}

/* Technologies Info */
.technologies-section .tech-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  padding: 0;
  margin: 2rem 0;
}
.technologies-section .tech-list .frontend {
  background-color: #1A6EF4;
  --hover-bg-color: color-mix(in srgb, $color-frontend 90%, rgb(0, 0, 0) 10%);
}
.technologies-section .tech-list .backend {
  background-color: #B85C00;
  --hover-bg-color: color-mix(in srgb, $color-backend 90%, rgb(0, 0, 0) 10%);
}
.technologies-section .tech-list .tool {
  background-color: #8b5cf6;
  --hover-bg-color: color-mix(in srgb, $color-tool 90%, rgb(0, 0, 0) 10%);
}
.technologies-section .tech-list .general {
  background-color: #057f7f;
  --hover-bg-color: color-mix(in srgb, $color-general 90%, rgb(0, 0, 0) 10%);
}
.technologies-section .tech-list li {
  padding: 0.4rem 0.8rem;
  border-radius: 9999px;
  font-size: 0.85rem;
  font-weight: 500;
  color: #fff;
  font-family: "Consolas", monospace;
  cursor: default;
}
.technologies-section .tech-list li:hover {
  filter: brightness(1.1);
  cursor: default;
}

.education-section h1,
.certificates-section h1 {
  text-align: center;
  height: auto;
}
.education-section .education-item,
.certificates-section .education-item {
  padding: 1.5rem;
  border-radius: 12px;
  margin: 2rem 0;
  transition: all 0.2s ease-in-out;
  border-radius: 12px 12px 12px 0;
  background-color: var(--bg-darken);
}
.education-section .education-item:hover,
.certificates-section .education-item:hover {
  transform: translateX(5px);
}
.education-section .education-item:last-child,
.certificates-section .education-item:last-child {
  margin-bottom: 2rem;
}
.education-section .education-item a,
.certificates-section .education-item a {
  color: var(--accent-darken);
  text-decoration: none;
  font-weight: bold;
  transition: all 0.2s ease-in-out;
}
.education-section .education-item a:hover,
.certificates-section .education-item a:hover {
  color: var(--accent-lighten);
}

body > footer {
  text-align: center;
  padding: 1rem;
  background-color: var(--bg-darken);
  color: var(--text-primary);
  position: relative;
  z-index: 1;
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  transition: all 0.2s ease-in-out;
}
body > footer:hover {
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}
body > footer p {
  margin: 0.8rem 0;
  font-size: 0.9rem;
  color: var(--text-secondary);
}
body > footer p a {
  color: #076D9C;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.2s ease-in-out;
}
body > footer p a:hover {
  color: color-mix(in srgb, #076D9C 90%, white 10%);
  transform: translateY(-3px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

@media (min-width: 768px) {
  nav {
    margin: 0 1rem 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }
  nav a {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: bold;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    background-color: var(--bg-darken);
  }
  nav a:hover {
    transition: all 0.2s ease-in-out;
    background-color: var(--accent);
    color: var(--bg-dark);
    transform: translateY(-3px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
  }
  nav a.active {
    background-color: var(--accent-darken);
    color: var(--bg-dark);
  }
  body {
    display: block;
    max-width: 1500px;
    margin: 0 auto;
    position: relative;
  }
  .main-layout {
    display: flex;
    flex-direction: row;
    min-height: 100vh;
  }
  body > .main-layout > header {
    width: 40%;
    min-width: 300px;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    transition: all 0.2s ease-in-out;
  }
  body > .main-layout > header:hover {
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
  }
  body > .main-layout > .content {
    display: flex;
    flex-direction: column;
    width: 60%;
    position: static;
  }
  body > footer {
    margin: 0;
    padding: 0;
  }
}
@media (min-width: 1000px) {
  body {
    max-width: 1300px;
  }
  body > .main-layout > header {
    width: 40%;
  }
  body > .main-layout > .content {
    width: 60%;
  }
  body > .main-layout > .content > section {
    width: 100%;
  }
  body > .main-layout > header {
    padding: 2rem;
  }
  body > .main-layout > .content > .about-section {
    padding: 2rem;
  }
}
@media (min-width: 1100px) {
  body > .main-layout > .content .projects-section .projects-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
  body > .main-layout > .content .projects-section .projects-list .project {
    margin: 0.3rem;
  }
  body > .main-layout > .content .education-section .list-education {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
  body > .main-layout > .content .education-section .list-education .education-item {
    margin: 0.3rem;
  }
  body > .main-layout > .content .certificates-section .list-certificates {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
  body > .main-layout > .content .certificates-section .list-certificates .education-item {
    margin: 0.3rem;
  }
  body > .main-layout > .content .certificates-section .list-certificates .education-item:last-child {
    margin-bottom: 2rem;
  }
}

/*# sourceMappingURL=styles.css.map */
