@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,100..1000;1,9..40,100..1000&family=Kanit:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

:root {
  --header-height: 3.5rem;
  --first-color: hsl(225, 73%, 57%);
  --first-color-dark: hsl(255, 63%, 57%);
  --first-color-light: hsl(255, 100%, 83%);
  --title-color: hsl(0, 0%, 87%);
  --text-color: hsl(0, 0%, 69%);
  --body-color: hsl(200, 12%, 5%);
  --container-color: hsl(200, 10%, 8%);
  --border-color: hsl(0, 0%, 20%);
  --white: #f4f4f4;
  --body-font: "DM Sans", serif;
  --body-second-font: 'Kanit', sans-serif;
  --big-font-size: 3rem;
  --h1-font-size: 2.5rem;
  --h2-font-size: 2.25rem;
  --h3-font-size: 1.5rem;
  --larger-font-size: 1.2rem;
  --large-font-size: 1.25rem;
  --weight-300: 300;
  --weight-400: 400;
  --weight-600: 600;
}

/*TEMA NEGRO */
#day_night:checked ~ * {
  --title-color: hsl(247, 27%, 31%);
  --text-color: hsl(0, 0%, 41%);
  --body-color: hsl(0, 0%, 100%);
  --container-color: hsl(266, 78%, 98%);
  --border-color: hsl(0, 0%, 87%);
}

/* ESTILOS BASE*/
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

input,
textarea,
button,
body {
  font-family: var(--body-font);
  font-size: var(--larger-font-size);
}

main {
  background-color: var(--body-color);
  color: var(--text-color);
}

input,
textarea,
button {
  outline: none;
  border: none;
  background-color: transparent;
}

h1,
h2,
h3 {
  color: var(--title-color);
  font-weight: var(--weight-600);
}

ul {
  list-style: none;
}

a {
  text-decoration: none;
}

img {
  max-width: 100%;
}

::-webkit-scrollbar {
  width: 5px; 
  height: 8px;
}

::-webkit-scrollbar-thumb {
  background: hsl(225, 73%, 57%);
  border-radius: 10px;
  box-shadow: 0 0 5px hsl(225, 73%, 57%), 0 0 10px hsl(225, 73%, 57%), 0 0 15px hsl(225, 73%, 57%); 
}

::-webkit-scrollbar-thumb:hover {
  background: hsl(225, 73%, 60%);
  box-shadow: 0 0 8px hsl(225, 73%, 60%), 0 0 15px hsl(225, 73%, 60%), 0 0 20px hsl(225, 73%, 60%);
}

::-webkit-scrollbar-track {
  background: transparent;
}

/*========== STYLE SWITCHER ==========*/
input[type="radio"],
input[type="checkbox"] {
  display: none;
}

.style_switcher {
  position: fixed;
  right: 0;
  bottom: 20%;
  padding: 1rem;
  width: 220px;
  border: 1px solid var(--border-color);
  background-color: var(--container-color);
  border-radius: 0.5rem;
  z-index: 1000;
  transform: translateX(100%);
  transition: all 0.3s ease;
}

#toggler:checked ~ .style_switcher {
  transform: translateX(0);
}

.style_switcher_toggler,
.style_switcher_theme {
  position: absolute;
  right: 110%;
  color: var(--title-color);
  background-color: var(--body-color);
  border: 1px solid var(--border-color);
  height: 48px;
  width: 48px;
  border-radius: 50%;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: all 0.3 ease;
}

.style_switcher_toggler {
  top: 7%;
}

.style_switcher_theme {
  bottom: 7%;
}

.style_switcher_theme .fa-moon {
  display: none;
}

#day_night:checked ~ * .fa-sun {
  display: none;
}

#day_night:checked ~ * .fa-moon {
  display: block;
}

.style_switcher_title {
  font-size: var(--large-font-size);
  margin-bottom: 0.75rem;
}

.style_switcher_colors {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.5rem;
}

.style_switcher_colors .color {
  height: 30px;
  width: 30px;
  border-radius: 50%;
}

.color1 {
  background-color: hsl(252, 35%, 51%);
}

.color2 {
  background-color: hsl(351, 85%, 51%);
}

.color3 {
  background-color: hsl(271, 76%, 53%);
}

.color4 {
  background-color: hsl(225, 73%, 57%);
}

.color5 {
  background-color: hsl(43, 74%, 49%);
}

.color6 {
  background-color: hsl(339, 81%, 66%);
}

.color7 {
  background-color: hsl(80, 61%, 50%);
}

.color8 {
  background-color: hsl(19, 96%, 52%);
}

.color9 {
  background-color: hsl(88, 65%, 43%);
}

.color10 {
  background-color: hsl(42, 100%, 50%);
}

#color1:checked ~ * {
  --first-color: hsl(252, 35%, 51%);
  --first-color-dark: hsl(252, 25%, 51%);
  --first-color-light: hsl(252, 100%, 83%);
}

#color2:checked ~ * {
  --first-color: hsl(351, 85%, 51%);
  --first-color-dark: hsl(351, 75%, 51%);
  --first-color-light: hsl(351, 100%, 83%);
}

#color3:checked ~ * {
  --first-color: hsl(271, 76%, 53%);
  --first-color-dark: hsl(271, 60%, 53%);
  --first-color-light: hsl(271, 100%, 83%);
}

#color4:checked ~ * {
  --first-color: hsl(225, 73%, 57%);
  --first-color-dark: hsl(255, 63%, 57%);
  --first-color-light: hsl(255, 100%, 83%);
}

#color5:checked ~ * {
  --first-color: hsl(43, 74%, 49%);
  --first-color-dark: hsl(43, 64%, 49%);
  --first-color-light: hsl(43, 100%, 83%);
}

#color6:checked ~ * {
  --first-color: hsl(339, 81%, 66%);
  --first-color-dark: hsl(339, 71%, 66%);
  --first-color-light: hsl(339, 100%, 83%);
}

#color7:checked ~ * {
  --first-color: hsl(80, 61%, 50%);
  --first-color-dark: hsl(80, 51%, 50%);
  --first-color-light: hsl(80, 100%, 83%);
}

#color8:checked ~ * {
  --first-color: hsl(19, 96%, 52%);
  --first-color-dark: hsl(19, 86%, 52%);
  --first-color-light: hsl(19, 100%, 83%);
}

#color9:checked ~ * {
  --first-color: hsl(88, 65%, 43%);
  --first-color-dark: hsl(88, 55%, 43%);
  --first-color-light: hsl(88, 100%, 83%);
}

#color10:checked ~ * {
  --first-color: hsl(42, 100%, 50%);
  --first-color-dark: hsl(42, 85%, 50%);
  --first-color-light: hsl(42, 100%, 83%);
}

/*========== CLASES REUSABLES ==========*/
.container {
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: 1rem;
}

.grid {
  display: grid;
  gap: 1.5rem;
}

.section {
  padding-block: 6rem;
}

.section_title {
  font-size: var(--h1-font-size);
  font-weight: var(--weight-400);
  line-height: 1.2;
  margin-bottom: 1.5rem;
}

.section_title::before {
  content: attr(data-title);
  display: block;
  color: var(--first-color);
  font-size: var(--large-font-size);
  font-weight: var(--weight-600);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.5rem;
}

.title_center {
  text-align: center;
  margin-bottom: 3rem;
}

/*========== HEANDER & NAV ==========*/
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: var(--body-color);
  box-shadow: 0 3px 9px hsla(0, 0%, 0% 0.05);
  z-index: 100;
}

.nav,
.nav_list {
  display: flex;
}

.nav {
  height: calc(var(--header-height) + 2.25rem);
  justify-content: space-between;
  align-items: center;
}

.nav_logo {
  font-family: var(--body-second-font);
  color: var(--first-color);
  font-size: var(--h2-font-size);
}

.nav_list {
  column-gap: 1.5rem;
}

.nav_link {
  color: var(--title-color);
  transition: all 0.3s ease;
}

.nav_toggle {
  display: none;
}

/*Link activado*/
.active-link,
.nav_link:hover {
  color: var(--first-color);
}

/*========== INICIO ==========*/
.home {
  background-color: var(--container-color);
  padding-block: 9rem 3rem;
}

.contenedorInicio {
  grid-template-columns: repeat(2, 1fr);
  align-items: center;
}

.letraChicaInicio {
  font-size: var(--large-font-size);
  font-weight: var(--weight-600);
  letter-spacing: 1px;
}

.tituloInicio {
  font-size: 40px;
  line-height: 1.4;
}

.tituloInicio span {
  font-weight: var(--weight-300);
}

.descripcionInicio {
  margin-block: 1.5rem 3rem;
}

.botonesInicio {
  display: flex;
  column-gap: 1rem;
}

.contenedorImgInicio {
  width: 70%;
  margin-inline: auto 2rem;
  position: relative;
}

.contenedorImgInicio::before,
.contenedorImgInicio::after {
  content: "";
  position: absolute;
  inset: 0;
}

.contenedorImgInicio::before {
  background-color: var(--first-color-light);
  animation: animacion_before 8s ease-in-out infinite;
}

.contenedorImgInicio::after {
  background-color: var(--first-color);
}

.contenedorImgInicio::after,
.imgInicio {
  animation: animacion_after 8s ease-in-out infinite;
}

.imgInicio {
  z-index: 10;
  position: relative;
  vertical-align: middle;
}

.instagram-btn {
  position: fixed;
  left: 20px;
  bottom: 12%;
  background: linear-gradient(45deg, #f9ce34, #ee2a7b, #6228d7);
  color: white;
  font-size: 24px;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
  transition: 0.3s;
  z-index: 1000;
}

.instagram-btn:hover {
  background: linear-gradient(45deg, #ffdc80, #fcaf45, #d6249f, #285aeb);
}

.whatsapp-btn {
  position: fixed;
  left: 20px;
  bottom: 4%;
  background-color: #25D366;
  color: white;
  font-size: 24px;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
  transition: 0.3s;
  z-index: 1000;
}

.whatsapp-btn:hover {
  background-color: #1ebe5d;
}

/* Animación Inicio */
@keyframes animacion_before {
  0% {
    border-radius: 61% 39% 31% 69% / 71% 33% 67% 29%;
  }
  50% {
    border-radius: 15% 85% 51% 49% / 22% 51% 49% 78%;
  }
  100% {
    border-radius: 61% 39% 31% 69% / 71% 33% 67% 29%;
  }
}

@keyframes animacion_after {
  0% {
    border-radius: 15% 85% 51% 49% / 22% 51% 49% 78%;
  }
  50% {
    border-radius: 61% 39% 31% 69% / 71% 33% 67% 29%;
  }
  100% {
    border-radius: 15% 85% 51% 49% / 22% 51% 49% 78%;
  }
}

/*========== BOTONES ==========*/
.btn {
  display: inline-block;
  background-color: var(--first-color);
  border: 1px solid var(--first-color);
  color: var(--white);
  padding: 0.9rem 2.5rem;
  font-size: var(--large-font-size);
  border-radius: 0.5rem;
  transition: all 0.5s ease;
}

.btn_transparent {
  background-color: transparent;
  color: var(--first-color);
}

/* BOTONES HOVER */
.btn:hover {
  background-color: var(--first-color-dark);
}

.btn_transparent_hover {
  background-color: var(--first-color);
  color: var(--white);
}

/*========== SOBRE MI ==========*/
.contenedorSobreMi {
  grid-template-columns: 4fr 8fr;
  align-items: center;
}

.contenedorImgSobreMi {
  position: relative;
  height: 400px;
}

.imgSobreMi {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  object-fit: cover;
  transition: all 0.3s ease;
}

.imgSobreMi:nth-child(1) {
  clip-path: polygon(0 0, 0 32%, 28% 0);
  transform: translateY(-1.25rem);
}

.imgSobreMi:nth-child(2) {
  clip-path: polygon(28% 0, 0 32%, 0 100%, 17% 100%, 90% 0);
  transform: translateY(-0.75rem);
}

.imgSobreMi:nth-child(3) {
  clip-path: polygon(100% 0, 100% 65%, 74% 100%, 17% 100%, 90% 0);
  transform: translateY(-0.25rem);
}

.imgSobreMi:nth-child(4) {
  clip-path: polygon(100% 65%, 74% 100%, 100% 100%);
  transform: translateY(0.25rem);
}

/*Sobre Mi Hover De Imagen*/
.contenedorSobreMi:hover .imgSobreMi {
  transform: translateY(0);
}

.descripcionSobreMi {
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 1.5rem;
  margin-bottom: 2rem;
}

.dataSobreMi {
  grid-template-columns: repeat(2, 1fr);
  gap: 0.25rem;
  margin-bottom: 3rem;
}

.itemSobreMi {
  display: flex;
  column-gap: 0.75rem;
}

.tituloDataSobreMi {
  font-size: var(--larger-font-size);
}

.linkSobreMi {
  color: hsl(225, 73%, 57%);
}

.abajoSobreMi,
.liksSocialSobreMi {
  display: flex;
  align-items: center;
}

.abajoSobreMi {
  column-gap: 3rem;
}

.liksSocialSobreMi {
  column-gap: 1.25rem;
}

.liksSocialSobreMi::before {
  content: "";
  background-color: var(--text-color);
  width: 60px;
  height: 2px;
}

.likSocialSobreMi {
  color: var(--text-color);
  transition: all 0.3s ease;
}

.likSocialSobreMi:hover {
  color: var(--first-color);
}

/*========== EXPERIENCIA + FORMACIÓN ==========*/
.qualification {
  background:
    radial-gradient(circle at top, rgba(59, 94, 255, 0.08), transparent 35%),
    var(--container-color);
  position: relative;
  overflow: hidden;
}

.qualification .section_title {
  margin-bottom: 4rem;
}

.contenedorFormacion {
  grid-template-columns: 1fr;
  max-width: 860px;
  margin-inline: auto;
  gap: 2rem;
}

.grupoFormacion {
  position: relative;
  padding: 1.5rem 0 0;
}

.titularFormacion {
  text-align: center;
  font-size: clamp(1.6rem, 2vw, 2rem);
  font-weight: var(--weight-600);
  color: var(--white);
  margin-bottom: 2.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  letter-spacing: 0.3px;
}

.itemsFormacion {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  position: relative;
}

/* línea timeline */
.itemsFormacion::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 28px;
  width: 2px;
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.08),
    rgba(59, 94, 255, 0.35),
    rgba(255, 255, 255, 0.08)
  );
}

.itemFormacion {
  position: relative;
  margin-left: 4.3rem;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.02),
    rgba(255, 255, 255, 0.01)
  );
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1.1rem;
  padding: 1.4rem 1.4rem 1.35rem;
  box-shadow:
    0 10px 30px rgba(0, 0, 0, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.03);
  transition: transform 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease;
  overflow: visible;
}

.itemFormacion:hover {
  transform: translateY(-4px);
  border-color: rgba(59, 94, 255, 0.35);
  box-shadow:
    0 14px 35px rgba(0, 0, 0, 0.28),
    0 0 0 1px rgba(59, 94, 255, 0.1);
}

/* punto timeline */
.itemFormacion::before {
  content: "";
  position: absolute;
  left: -3.15rem;
  top: 2rem;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--body-color);
  border: 3px solid var(--first-color);
  box-shadow: 0 0 0 6px rgba(59, 94, 255, 0.08);
  z-index: 2;
}

.encabezadoFormacion {
  padding: 0;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.subtituloFormacion {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--first-color);
  line-height: 1.4;
  cursor: default;
}

.iconoFormacion {
  position: static;
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(59, 94, 255, 0.08);
  border: 1px solid rgba(59, 94, 255, 0.22);
  color: var(--white);
  font-size: 1.5rem;
  line-height: 1;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.02);
}

.contenidoFormacion {
  padding-inline: 0;
}

.dataTituloFormacion {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: start;
  gap: 1rem;
  margin-bottom: 1rem;
}

.tituloResumen {
  font-size: clamp(1.35rem, 2vw, 1.8rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.25;
  max-width: 520px;
}

.dataFormacion {
  font-size: 1rem;
  font-weight: 600;
  color: var(--title-color);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255,255,255,0.08);
  padding: 0.55rem 0.85rem;
  border-radius: 999px;
  white-space: nowrap;
}

.descripcionFormacion {
  margin: 0;
  color: var(--text-color);
  font-size: 1.05rem;
  line-height: 1.75;
  max-width: 62ch;
}

.qualification .grupoFormacion + .grupoFormacion {
  margin-top: 1rem;
}

/*========== SERVICIOS ==========*/
.contenedorServicios {
  grid-template-columns: repeat(3, 1fr);
}

.itemServicios {
  background-color: var(--container-color);
  border: 1px solid var(--container-color);
  padding: 2.5rem 1.8rem;
  border-radius: 0.5rem;
  position: relative;
  transition: all 0.5s ease;
}

/* Servicios Hover */
.itemServicios:hover {
  background-color: var(--body-color);
  border-color: var(--border-color);
}

.iconoServicios {
  color: var(--first-color);
  font-size: 1.8rem;
}

.tituloServicios {
  font-size: var(--h3-font-size);
  margin-block: 1.5rem 1rem;
}

.numeroServicios {
  position: absolute;
  right: 2.5rem;
  top: 1rem;
  color: var(--title-color);
  font-size: 3.75rem;
  opacity: 0.07;
}

/*========== HABILIDADES ==========*/
.skills {
  background-color: var(--container-color);
}

.contenedorHabilidades {
  grid-template-columns: repeat(3, 1fr);
  row-gap: 4rem;
}

.titulosHabilidades {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.titulosHabilidades,
.descripcionHabilidades {
  padding-inline: 1.5rem;
}

.carreraHablidades {
  font-size: var(--larger-font-size);
}

.numeroHabilidades {
  color: var(--title-color);
  font-size: var(--large-font-size);
  font-weight: var(--weight-600);
}

.descripcionHabilidades {
  margin-block: 1rem 1.8rem;
}

.barraHabilidades,
.porcentajeHabilidades {
  height: 2px;
}

.barraHabilidades {
  background-color: var(--border-color);
}

.porcentajeHabilidades {
  background-color: var(--first-color);
  position: relative;
  margin-top: 20%;
}

.porcentajeHabilidades span {
  background-color: var(--container-color);
  border: 2px solid var(--border-color);
  width: 25px;
  height: 25px;
  border-radius: 50%;
  position: absolute;
  right: 0;
  top: -0.75rem;
}

/*========== PORTAFOLIO ==========*/
.portafolioContenedor {
  grid-template-columns: repeat(3, 1fr);
}

.cardPortafolio {
  position: relative;
  cursor: pointer;
}

.imgPortafolio {
  vertical-align: middle;
}

.detallesPortafolio {
  position: absolute;
  inset: 0;
  background-color: hsla(0, 0%, 0%, 0.5);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: all 0.4s ease-in-out;
}

.imgPortafolio,
.detallesPortafolio {
  border-radius: 0.5rem;
}

.tituloPortafolio {
  font-size: var(--h3-font-size);
}

.tituloPortafolio,
.descripcionPortafolios {
  color: var(--white);
  transform: translateY(1.5rem);
  transition: all 0.3s ease-in-out;
}

.descripcionPortafolios {
  font-size: var(--large-font-size);
}

/*Portafolio Hover*/
.cardPortafolio:hover .detallesPortafolio {
  opacity: 1;
}

.cardPortafolio:hover :is(.tituloPortafolio, .descripcionPortafolios) {
  transform: translateY(0);
}

/*========== CONTACTO ==========*/
.contenedorContacto {
  grid-template-columns: 5fr 7fr;
  align-items: flex-start;
}

.itemContacto {
  display: flex;
  align-items: flex-start;
  column-gap: 1.25rem;
}

.itemContacto:not(:last-child) {
  margin-bottom: 2.5rem;
}

.contact_icon {
  color: var(--first-color);
  font-size: var(--large-font-size);
  line-height: 1.8;
}

.tituloContacto {
  font-size: var(--large-font-size);
}

.dataContacto {
  font-size: var(--large-font-size);
}

.grupoFormularioContacto {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  column-gap: 1.25rem;
}

.inputControlContacto {
  color: var(--title-color);
  background-color: var(--container-color);
  padding: 0.9rem 0.75rem;
  width: 100%;
  border-radius: 0.5rem;
  margin-bottom: 1.25rem;
}

.textarea {
  height: 140px;
  resize: none;
}

.botonContacto {
  float: right;
}

.linkedin-btn {
  position: fixed;
  left: 20px;
  bottom: 6%;
  width: 54px;
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, #0a66c2, #1d8cff);
  color: #fff;
  font-size: 24px;
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.08),
    0 8px 24px rgba(10, 102, 194, 0.35);
  transition: all 0.3s ease;
  z-index: 1000;
}

.linkedin-btn:hover {
  transform: translateY(-4px) scale(1.06);
  box-shadow:
    0 0 18px rgba(29, 140, 255, 0.35),
    0 10px 28px rgba(10, 102, 194, 0.45);
}

/*========== FOOTER ==========*/
.footer {
  background-color: var(--container-color);
  padding-block: 3rem;
}

.footerContenedor {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.copyrightFooter {
  color: var(--text-color);
}

.linksSocialFooter {
  display: flex;
  column-gap: 1.25rem;
}

.linkSocialFooter {
  color: var(--text-color);
  font-size: var(--large-font-size);
}

/*Links Footer Hover*/
.linkSocialFooter:hover {
  color: var(--first-color);
}

/*========== MEDIAS ==========*/
@media screen and (max-width: 1200px) {
  .container {
    max-width: 960px;
  }

  :root {
    --big-font-size: 2.5rem;
    --h1-font-size: 2rem;
    --h2-font-size: 1.75rem;
    --h3-font-size: 1.25rem;
    --larger-font-size: 1rem;
    --large-font-size: 0.938rem;
  }

  .imgInicio {
    width: 340px;
  }

  .contenedorImgSobreMi {
    height: 320px;
  }

  .iconoServicios {
    font-size: 1.5rem;
  }

  .services__no {
    font-size: 2.5rem;
  }

  .services_title {
    margin-block: 1.25rem 0.75rem;
  }

  .style_switcher {
    width: 200px;
  }

  .style_switcher_colors .color {
    width: 24px;
    height: 24px;
  }

  .style_switcher_toggler,
  .style_switcher_theme {
    width: 40px;
    height: 40px;
  }

  .style_switcher_toggler {
    top: 10%;
  }

  .style_switcher_theme {
    bottom: 10%;
  }
}

@media screen and (max-width: 992px) {
  .container {
    max-width: 720px;
  }

  .contenedorInicio,
  .contenedorSobreMi,
  .contenedorContacto {
    grid-template-columns: 1fr;
  }

  .contenidoInicio {
    order: 1;
  }

  .contenedorImgInicio {
    margin-inline: auto;
  }

  .contenedorSobreMi,
  .contact_container {
    row-gap: 2rem;
  }

  .imgSobreMi:not(:first-child) {
    display: none;
  }

  .imgSobreMi:first-child {
    clip-path: initial;
    transform: initial;
    left: 50%;
    translate: -50%;
  }

  .contenedorServicios,
  .contenedorHabilidades,
  .portafolioContenedor {
    grid-template-columns: repeat(2, 1fr);
  }

  .contenedorFormacion {
    max-width: 100%;
    padding-inline: 0.25rem;
  }

  .itemFormacion {
    margin-left: 3.8rem;
  }

  .itemFormacion::before {
    left: -2.85rem;
  }

  .itemsFormacion::before {
    left: 24px;
  }

  .tituloResumen {
    max-width: 100%;
  }
}

@media screen and (max-width: 768px) {
  .container {
    max-width: 560px;
  }

  .nav {
    height: calc(var(--header-height) + 1rem);
  }

  .nav_list {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--body-color);
    flex-direction: column;
    align-items: center;
    row-gap: .75rem;
    max-height: 0;
    overflow: hidden;
    transition: all .3s ease;
  }

  .nav_toggle {
    display: block;
    color: var(--text-color);
    font-size: 1.3rem;
  }

  #nav-toggler:checked ~ .nav_list {
    max-height: 500px;
    padding: 1.75rem;
  }

  .imgInicio {
    width: 300px;
  }
}

@media screen and (max-width: 576px) {
  .home {
    padding-top: 7rem;
  }

  .section {
    padding-block: 4rem;
  }

  .contenedorServicios,
  .contenedorHabilidades,
  .portafolioContenedor,
  .grupoFormularioContacto {
    grid-template-columns: 1fr;
  }

  .footerContenedor {
    flex-direction: column;
    row-gap: 1rem;
  }

  .qualification .section_title {
    margin-bottom: 3rem;
  }

  .titularFormacion {
    font-size: 1.45rem;
    margin-bottom: 2rem;
  }

  .itemsFormacion::before {
    left: 12px;
  }

  .itemFormacion {
    margin-left: 2rem;
    padding: 1.1rem 1rem 1.1rem;
    border-radius: 0.9rem;
  }

  .itemFormacion::before {
    left: -1.55rem;
    top: 1.4rem;
    width: 14px;
    height: 14px;
    border-width: 2px;
    box-shadow: 0 0 0 4px rgba(59, 94, 255, 0.08);
  }

  .encabezadoFormacion {
    align-items: flex-start;
    gap: 0.8rem;
    margin-bottom: 0.85rem;
  }

  .subtituloFormacion {
    font-size: 1rem;
  }

  .iconoFormacion {
    width: 36px;
    height: 36px;
    font-size: 1.2rem;
  }

  .dataTituloFormacion {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .tituloResumen {
    font-size: 1.25rem;
  }

  .dataFormacion {
    width: fit-content;
    font-size: 0.92rem;
    padding: 0.45rem 0.7rem;
  }

  .descripcionFormacion {
    font-size: 0.98rem;
    line-height: 1.65;
  }
}

@media screen and (max-width: 450px) {
  .dataSobreMi {
    grid-template-columns: 1fr;
  }

  .abajoSobreMi {
    flex-direction: column;
    align-items: flex-start;
  }

  .abajoSobreMi {
    row-gap: 1.25rem;
  }

  .abajoSobreMi .btn {
    order: 1;
  }

  .encabezadoFormacion,
  .titulosHabilidades,
  .descripcionHabilidades {
    padding-inline: 1rem;
  }

  .contenidoFormacion {
    padding-inline: 0;
  }

  .itemServicios {
    padding: 2rem 1.5rem;
  }
}

@media screen and (max-width: 380px) {
  .itemFormacion {
    margin-left: 1.6rem;
    padding: 1rem 0.9rem;
  }

  .itemsFormacion::before {
    left: 9px;
  }

  .itemFormacion::before {
    left: -1.32rem;
  }

  .tituloResumen {
    font-size: 1.12rem;
  }

  .descripcionFormacion {
    font-size: 0.94rem;
  }
}