/*==================== FUENTES DE GOOGLE ====================*/
/* Font imports moved to HTML head for better performance */

/*==================== VARIABLES CSS ====================*/
:root {
  --header-height: 3rem;

  /*========== Colores Catppuccin - Tema Latte ==========*/
  /* Colores Base */
  --ctp-rosewater: #dc8a78;
  --ctp-flamingo: #dd7878;
  --ctp-pink: #ea76cb;
  --ctp-mauve: #8839ef;
  --ctp-red: #d20f39;
  --ctp-maroon: #e64553;
  --ctp-peach: #fe640b;
  --ctp-yellow: #df8e1d;
  --ctp-green: #40a02b;
  --ctp-teal: #179299;
  --ctp-sky: #04a5e5;
  --ctp-sapphire: #209fb5;
  --ctp-blue: #1e66f5;
  --ctp-lavender: #7287fd;
  
  /* Colores de Superficie */
  --ctp-text: #4c4f69;
  --ctp-subtext1: #5c5f77;
  --ctp-subtext0: #6c6f85;
  --ctp-overlay2: #7c7f93;
  --ctp-overlay1: #8c8fa1;
  --ctp-overlay0: #9ca0b0;
  --ctp-surface2: #acb0be;
  --ctp-surface1: #bcc0cc;
  --ctp-surface0: #ccd0da;
  --ctp-base: #eff1f5;
  --ctp-mantle: #e6e9ef;
  --ctp-crust: #dce0e8;

  /* Colores de la Aplicación usando la paleta Catppuccin */
  --first-color: var(--ctp-mauve);
  --first-color-second: var(--ctp-lavender);
  --first-color-alt: var(--ctp-sapphire);
  --first-color-lighter: var(--ctp-surface0);
  --title-color: var(--ctp-text);
  --text-color: var(--ctp-subtext1);
  --text-color-light: var(--ctp-subtext0);
  --input-color: var(--ctp-surface0);
  --body-color: var(--ctp-base);
  --container-color: var(--ctp-mantle);
  --scroll-bar-color: var(--ctp-surface1);
  --scroll-thumb-color: var(--ctp-surface2);

  /*========== Fuente y tipografía ==========*/
  --body-font: 'Poppins', sans-serif;

  /* .5rem = 8px, 1rem = 16px, 1.5rem = 24px ... */
  --big-font-size: 2rem;
  --h1-font-size: 1.5rem;
  --h2-font-size: 1.25rem;
  --h3-font-size: 1.125rem;
  --normal-font-size: .938rem;
  --small-font-size: .813rem;
  --smaller-font-size: .75rem;

  /*========== Grosor de la fuente ==========*/
  --font-medium: 500;
  --font-semi-bold: 600;

  /*========== Márgenes Inferiores ==========*/
  /* .25rem = 4px, .5rem = 8px, .75rem = 12px ... */
  --mb-0-25: .25rem;
  --mb-0-5: .5rem;
  --mb-0-75: .75rem;
  --mb-1: 1rem;
  --mb-1-5: 1.5rem;
  --mb-2: 2rem;
  --mb-2-5: 2.5rem;
  --mb-3: 3rem;

  /*========== z-index ==========*/
  --z-tooltip: 10;
  --z-fixed: 100;
  --z-modal: 1000;
}

/* Tamaño de fuente para dispositivos grandes */
@media screen and (min-width: 968px) {
  :root {
    --big-font-size: 3rem;
    --h1-font-size: 2.25rem;
    --h2-font-size: 1.5rem;
    --h3-font-size: 1.25rem;
    --normal-font-size: 1rem;
    --small-font-size: .875rem;
    --smaller-font-size: .813rem;
  }
}

/*========== Variables Tema Oscuro - Catppuccin Mocha ==========*/
body.dark-theme {
  /* Colores Catppuccin Mocha */
  --ctp-rosewater: #f5e0dc;
  --ctp-flamingo: #f2cdcd;
  --ctp-pink: #f5c2e7;
  --ctp-mauve: #cba6f7;
  --ctp-red: #f38ba8;
  --ctp-maroon: #eba0ac;
  --ctp-peach: #fab387;
  --ctp-yellow: #f9e2af;
  --ctp-green: #a6e3a1;
  --ctp-teal: #94e2d5;
  --ctp-sky: #89dceb;
  --ctp-sapphire: #74c7ec;
  --ctp-blue: #89b4fa;
  --ctp-lavender: #b4befe;
  
  /* Colores de Superficie */
  --ctp-text: #cdd6f4;
  --ctp-subtext1: #bac2de;
  --ctp-subtext0: #a6adc8;
  --ctp-overlay2: #9399b2;
  --ctp-overlay1: #7f849c;
  --ctp-overlay0: #6c7086;
  --ctp-surface2: #585b70;
  --ctp-surface1: #45475a;
  --ctp-surface0: #313244;
  --ctp-base: #1e1e2e;
  --ctp-mantle: #181825;
  --ctp-crust: #11111b;

  /* Colores de la Aplicación usando la paleta Oscura de Catppuccin */
  --first-color: var(--ctp-mauve);
  --first-color-second: var(--ctp-lavender);
  --first-color-alt: var(--ctp-sapphire);
  --first-color-lighter: var(--ctp-surface0);
  --title-color: var(--ctp-text);
  --text-color: var(--ctp-subtext1);
  --text-color-light: var(--ctp-subtext0);
  --input-color: var(--ctp-surface0);
  --body-color: var(--ctp-base);
  --container-color: var(--ctp-mantle);
  --scroll-bar-color: var(--ctp-surface1);
  --scroll-thumb-color: var(--ctp-surface2);
}

/*========== Botón Oscuro/Claro ==========*/
.nav__btns {
  display: flex;
  align-items: center;
}

.change-theme {
  font-size: 1.25rem;
  color: var(--title-color);
  margin-right: var(--mb-1);
  cursor: pointer;
}

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




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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0 0 var(--header-height) 0;
  font-family: var(--body-font);
  font-size: var(--normal-font-size);
  background-color: var(--body-color);
  color: var(--text-color);
}

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

ul {
  list-style: none;
}

a {
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
}

/*==================== CLASES CSS REUTILIZABLES ====================*/
.section {
  padding: 2rem 0 4rem;
}

.section__title {
  font-size: var(--h1-font-size);
  color: var(--title-color);
}

.section__subtitle {
  display: block;
  font-size: var(--small-font-size);
  margin-bottom: var(--mb-3);
}

.section__title,
.section__subtitle {
  text-align: center;
}

/*==================== DISEÑO ====================*/
.container {
  max-width: 768px;
  margin-left: var(--mb-1-5);
  margin-right: var(--mb-1-5);
}

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

.header {
  width: 100%;
  position: fixed;
  bottom: 0;
  left: 0;
  z-index: var(--z-fixed);
  background-color: var(--body-color);
}

/*==================== NAVEGACIÓN ====================*/
.nav {
  max-width: 968px;
  height: var(--header-height);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav__logo {
  display: flex;
  align-items: center;
}

.nav__logo-img {
  height: 2.5rem;
  width: auto;
  transition: all 0.3s ease;
  display: block;
  max-width: 100%;
}

.nav__logo:hover .nav__logo-img {
  transform: scale(1.1);
}

.nav__toggle {
  color: var(--title-color);
  font-weight: var(--font-medium);
}

.nav__toggle {
  font-size: 1.1rem;
  cursor: pointer;

}

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

@media screen and (max-width:767px) {
  .nav__menu {
    position: fixed;
    bottom: -100%;
    width: 100%;
    background-color: var(--body-color);
    padding: 2rem 1.5rem 4rem;
    box-shadow: 0 -1px 4px rgba(0, 0, 0, .15);
    border-radius: 1.5rem 1.5rem 0 0;
    transition: .3s;
  }
}

.nav__list {
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.nav__link {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: var(--small-font-size);
  color: var(--title-color);
  font-weight: var(--font-medium);
}

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

.nav__icon {
  font-size: 1.2rem;
}

.nav__close {
  position: absolute;
  right: 1.3rem;
  bottom: .5rem;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--first-color);
}

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

/* Mostrar menú */
.show-menu {
  bottom: 0;
}

/* Enlace activo */
.active-link {
  color: var(--first-color);
}

/* Cambiar fondo del encabezado */
.scroll-header {
  box-shadow: 0 -1px 4px rgba(0, 0, 0, .15);
}

/*========== Enlaces de la Barra de Navegación - Colores Catppuccin ==========*/
.nav__items:nth-child(1) .nav__link:hover,
.nav__items:nth-child(1) .nav__link.active-link {
  color: var(--ctp-blue);
}

.nav__items:nth-child(2) .nav__link:hover,
.nav__items:nth-child(2) .nav__link.active-link {
  color: var(--ctp-green);
}

.nav__items:nth-child(3) .nav__link:hover,
.nav__items:nth-child(3) .nav__link.active-link {
  color: var(--ctp-mauve);
}

.nav__items:nth-child(4) .nav__link:hover,
.nav__items:nth-child(4) .nav__link.active-link {
  color: var(--ctp-peach);
}

.nav__items:nth-child(5) .nav__link:hover,
.nav__items:nth-child(5) .nav__link.active-link {
  color: var(--ctp-teal);
}

.nav__items:nth-child(6) .nav__link:hover,
.nav__items:nth-child(6) .nav__link.active-link {
  color: var(--ctp-pink);
}

/*==================== INICIO ====================*/
.home__container {
  gap: 1rem;
}

.home__content {
  grid-template-columns: .5fr 3fr;
  padding-top: 3.5rem;
  align-items: center;
}

.home__social {
  display: grid;
  grid-template-columns: max-content;
  row-gap: 1rem;
}

.home__social-icon {
  font-size: 1.25rem;
  color: var(--first-color);
}

.home__social-icon:hover {
  color: var(--first-color-alt);
  transform: translateY(-.25rem);
  transition: 1.5s;
}

.home__blob-container {
  position: relative;
  width: 300px;
  height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.home__blob-shape {
  width: 300px;
  height: 300px;
  position: absolute;
  top: 0;
  left: 0;
  background: #f4b8e4;
  border: 4px solid #f4b8e4;
  animation: blobMorph 8s ease-in-out infinite, blobColorChangeBorder 12s ease-in-out infinite, blobColorChangeBackground 12s ease-in-out infinite;
  transition: all 0.8s cubic-bezier(0.23, 1, 0.320, 1);
  cursor: pointer;
  z-index: 1;
  filter: drop-shadow(0 0 15px rgba(244, 184, 228, 0.4));
  border-radius: 70% 30% 40% 60% / 45% 65% 35% 55%;
  box-sizing: border-box;
}

.home__blob-shape:hover {
  transform: scale(1.05);
  filter: brightness(1.1) saturate(1.2) drop-shadow(0 0 25px rgba(244, 184, 228, 0.5));
}

.home__blob-border {
  width: 300px;
  height: 300px;
  position: absolute;
  top: 0;
  left: 0;
  background: transparent;
  border: 4px solid rgba(255, 255, 255, 0.8);
  animation: blobMorph 8s ease-in-out infinite;
  transition: all 0.8s cubic-bezier(0.23, 1, 0.320, 1);
  cursor: pointer;
  z-index: 3;
  filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.3));
  border-radius: 70% 30% 40% 60% / 45% 65% 35% 55%;
  box-sizing: border-box;
  pointer-events: none;
}

.home__blob-container:hover .home__blob-border {
  transform: scale(1.05);
}

@keyframes blobMorph {
  0% {
    border-radius: 70% 30% 40% 60% / 45% 65% 35% 55%;
  }
  16.66% {
    border-radius: 35% 65% 70% 30% / 60% 40% 70% 30%;
  }
  33.33% {
    border-radius: 60% 40% 30% 70% / 35% 65% 45% 55%;
  }
  50% {
    border-radius: 40% 60% 65% 35% / 70% 30% 60% 40%;
  }
  66.66% {
    border-radius: 75% 25% 45% 55% / 50% 50% 35% 65%;
  }
  83.33% {
    border-radius: 30% 70% 55% 45% / 65% 35% 75% 25%;
  }
  100% {
    border-radius: 70% 30% 40% 60% / 45% 65% 35% 55%;
  }
}

@keyframes blobColorChangeBorder {
  0% { border-color: #f4b8e4; }
  16.66% { border-color: #ca9ee6; }
  33.33% { border-color: #8caaee; }
  50% { border-color: #81c8be; }
  66.66% { border-color: #a6d189; }
  83.33% { border-color: #ef9f76; }
  100% { border-color: #f4b8e4; }
}

@keyframes blobColorChangeBackground {
  0% { background: #f4b8e4; }
  16.66% { background: #ca9ee6; }
  33.33% { background: #8caaee; }
  50% { background: #81c8be; }
  66.66% { background: #a6d189; }
  83.33% { background: #ef9f76; }
  100% { background: #f4b8e4; }
}

.home__blob-carousel {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
  pointer-events: none;
  overflow: visible;
}

.home__blob-img {
  width: 292px;
  height: 292px;
  object-fit: cover;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(1);
  opacity: 0;
  transition: opacity 1.2s cubic-bezier(0.4, 0, 0.2, 1), 
              transform 0.6s cubic-bezier(0.23, 1, 0.320, 1),
              border-radius 0.6s ease-in-out;
  filter: brightness(1) contrast(1.02) saturate(1.05);
  z-index: 0;
  border-radius: 70% 30% 40% 60% / 45% 65% 35% 55%;
  animation: blobMorph 8s ease-in-out infinite;
}

.home__blob-img.active {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1.02);
}

.home__blob-container:hover .home__blob-img.active {
  transform: translate(-50%, -50%) scale(1.02);
  filter: brightness(1.05) contrast(1.03) saturate(1.08);
}

.home__data {
  grid-column: 1/3;
}

.home__title {
  font-size: var(--big-font-size);
}

.home__subtitle {
  font-size: var(--h3-font-size);
  color: var(--text-color);
  font-weight: var(--font-medium);
  margin-bottom: var(--mb-0-75);
}

.home__description {
  margin-bottom: var(--mb-2);
}

.home__scroll-button {
  color: var(--first-color);
  transition: .3s;
}

.home__scroll-button:hover {
  transform: translateY(0.25rem)
}

.home__scroll-mouse {
  font-size: 2rem;
}

.home__scroll-name {
  font-size: var(--small-font-size);
  color: var(--title-color);
  font-weight: var(--font-medium);
  margin-right: var(--mb-0-25);
}

.home__scroll-arrow {
  font-size: 1.25rem;
}

.home__scroll-mobile {
    display: none;
}

/*==================== BOTONES ====================*/
.button {
  display: inline-block;
  background-color: var(--ctp-blue);
  color: var(--ctp-base);
  padding: 1rem;
  border-radius: .5rem;
  font-weight: var(--font-semi-bold);
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.button:hover {
  background-color: var(--ctp-sapphire);
  color: var(--ctp-base);
  transform: translateY(-2px);
  box-shadow: 0 8px 15px rgba(137, 180, 250, 0.3);
  border-color: var(--ctp-lavender);
}

.button__icon {
  font-size: 1.25rem;
  margin-left: var(--mb-0-5);
  transition: .3s;
}

/* Estilos de button--white movidos a la sección CTA */

.button--flex {
  display: inline-flex;
  align-items: center;
}

.button--small {
  padding: .75rem 1rem;
}

.button--link {
  padding: 0;
  background: transparent;
  color: var(--first-color);
  font-weight: var(--font-semi-bold);
}

.button--link:hover {
  background-color: transparent;
  color: var(--first-color-alt);
  transform: none;
  box-shadow: none;
  text-shadow: none;
}

/*==================== ACERCA DE ====================*/
.about__img {
  width: 200px;
  border-radius: .5rem;
  justify-self: center;
  align-self: center;
}

.about__description {
  text-align: center;
  margin-bottom: var(--mb-2-5);
}

.about_info {
  display: flex;
  justify-content: space-evenly;
  margin-bottom: var(--mb-2-5);
}

.about__info-title {
  font-size: var(--h2-font-size);
  font-weight: var(--font-semi-bold);
  color: var(--title-color);
}

.about__info-name {
  font-size: var(--smaller-font-size);
}

.about__info-title,
.about__info-name {
  display: block;
  text-align: center;
}

.about__buttons {
  display: flex;
  justify-content: center;
}

/*==================== ABOUT BLOB CARRUSEL ====================*/
.about__blob-container {
  position: relative;
  width: 300px;
  height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  justify-self: center;
  align-self: center;
}

.about__blob-shape {
  position: absolute;
  width: 100%;
  height: 100%;
  background: var(--first-color-alt);
  border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
  z-index: -2;
  animation: blobMorph 8s ease-in-out infinite, blobColorChangeBorder 15s ease-in-out infinite;
  transition: all 0.3s ease;
}

.about__blob-border {
  position: absolute;
  width: 108%;
  height: 108%;
  border: 2px solid;
  border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
  z-index: -1;
  transition: all 0.3s ease;
  animation: blobMorph 8s ease-in-out infinite;
}

/* Bordes temáticos para cada imagen about */
.about__blob-border--personal {
  border-color: var(--first-color);
  background: linear-gradient(135deg, var(--first-color-alt), transparent);
}

.about__blob-border--technology {
  border-color: #00d4ff;
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.1), transparent);
}

.about__blob-border--engineering {
  border-color: #ff6b35;
  background: linear-gradient(135deg, rgba(255, 107, 53, 0.1), transparent);
}

.about__blob-border--marketing {
  border-color: #a855f7;
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.1), transparent);
}

.about__blob-carousel {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  overflow: hidden;
}

.about__blob-img {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 250px;
  height: 250px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center;
  opacity: 0;
  transition: all 0.5s ease;
  z-index: 1;
  filter: brightness(1) contrast(1) saturate(1);
}

.about__blob-img.active {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

/* Controles del carrusel about */
.about__carousel-controls {
  position: absolute;
  top: 50%;
  width: 100%;
  display: flex;
  justify-content: space-between;
  transform: translateY(-50%);
  z-index: 10;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.about__blob-container:hover .about__carousel-controls {
  opacity: 1;
  pointer-events: auto;
}

.about__nav-btn {
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  color: var(--first-color);
  font-size: 24px;
  font-weight: bold;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(10px);
}

.about__nav-btn:hover {
  background: var(--first-color);
  color: white;
  transform: scale(1.1);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.about__nav-prev {
  margin-left: -20px;
}

.about__nav-next {
  margin-right: -20px;
}

/* Indicadores temáticos */
.about__carousel-indicators {
  position: absolute;
  bottom: -50px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 10;
}

.about__indicator {
  width: 12px;
  height: 12px;
  border: none;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  padding: 0;
}

.about__indicator-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: block;
  transition: all 0.3s ease;
  opacity: 0.5;
}

.about__indicator.active .about__indicator-dot {
  opacity: 1;
  transform: scale(1.3);
}

.about__indicator--personal {
  background: var(--first-color);
}

.about__indicator--technology {
  background: #00d4ff;
}

.about__indicator--engineering {
  background: #ff6b35;
}

.about__indicator--marketing {
  background: #a855f7;
}

/* Efectos hover para about blob */
.about__blob-container:hover .about__blob-border {
  transform: scale(1.05);
}

.about__blob-container:hover .about__blob-img.active {
  transform: translate(-50%, -50%) scale(1.02);
  filter: brightness(1.05) contrast(1.03) saturate(1.08);
}

/* Spacer para about carousel en mobile */
@media screen and (max-width: 768px) {
  .about__blob-container {
    margin-bottom: 75px;
  }
  
  .about__carousel-indicators {
    bottom: -75px;
  }
  
  /* Ajustar tamaño del carrusel en mobile */
  .about__blob-container {
    width: 250px;
    height: 250px;
  }
  
  .about__blob-img {
    width: 200px;
    height: 200px;
  }
}

@media screen and (max-width: 480px) {
  .about__blob-container {
    margin-bottom: 50px;
    width: 200px;
    height: 200px;
  }
  
  .about__carousel-indicators {
    bottom: -50px;
  }
  
  .about__blob-img {
    width: 160px;
    height: 160px;
  }
}

/*==================== HABILIDADES ====================*/
.skills__container {
  row-gap: 0;
}

.skills__header {
  display: flex;
  align-items: center;
  margin-bottom: var(--mb-2-5);
  cursor: pointer;
}

.skills__icon,
.skills__arrow {
  font-size: 2rem;
  color: var(--first-color);
}

.skills__icon {
  margin-right: var(--mb-0-75);
}

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

.skills__subtitle {
  font-size: var(--small-font-size);
  color: var(--text-color-light);
}

.skills__arrow {
  margin-left: auto;
  transition: .4s;
}

.skills__list {
  row-gap: 1.5rem;
  padding-left: 2.7rem;
}

.skills__titles {
  display: flex;
  justify-content: space-between;
  margin-bottom: var(--mb-0-5);
}

.skills__name {
  font-size: var(--normal-font-size);
  font-weight: var(--font-medium);
}


.skills__bar,
.skills__percentage {
  height: 5px;
  border-radius: .25rem;
}

.skills__bar {
  background-color: var(--first-color-lighter);
}

.skills__description {
  font-size: var(--small-font-size);
  color: var(--text-color-light);
  margin-top: var(--mb-0-5);
  line-height: 1.4;
  font-style: italic;
}

.skills__percentage {
  display: block;
  background-color: var(--first-color);
  width: 0%;
  transition: width 1.5s ease-in-out;
}

/* Porcentajes de habilidades - se animarán con JavaScript */
.skills__html.animate {
  width: 90%;
}

.skills__css.animate {
  width: 95%;
}

.skills__js.animate {
  width: 85%;
}

.skills__react.animate {
  width: 80%;
}

.skills__prompt.animate {
  width: 90%;
}

.skills__php.animate {
  width: 95%;
}

.skills__mysql.animate {
  width: 90%;
}

.skills__node.animate {
  width: 85%;
}

.skills__python.animate {
  width: 90%;
}

.skills__blender.animate {
  width: 90%;
}

.skills__photoshop.animate {
  width: 95%;
}

.skills__adobeillustrator.animate {
  width: 85%;
}

.skills__ai.animate {
  width: 80%;
}

.skills__leadership.animate {
  width: 95%;
}

.skills__finance.animate {
  width: 90%;
}

.skills__standardization.animate {
  width: 88%;
}

.skills__business-launch.animate {
  width: 60%;
}

.skills__close .skills__list {
  height: 0;
  overflow: hidden;
}

.skills__open .skills__list {
  height: max-content;
  margin-bottom: var(--mb-2-5);
}

.skills__open .skills__arrow {
  transform: rotate(-180deg);
}

/*==================== EDUCACIÓN MEJORADA ====================*/
.education__container {
  gap: 2rem;
  row-gap: 2.5rem;
  grid-template-columns: repeat(2, 1fr);
  max-width: 900px;
  margin: 0 auto;
}

.education__content {
  position: relative;
  background-color: var(--ctp-mantle);
  padding: 2rem 1.5rem;
  border-radius: 1rem;
  border-left: 4px solid var(--ctp-blue);
  transition: all 0.4s ease;
  overflow: visible;
}

.education__content::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--ctp-blue), transparent);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.education__content:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 12px 32px rgba(137, 180, 250, 0.15);
  border-left-color: var(--ctp-sapphire);
}

.education__content:hover::before {
  opacity: 1;
}

/* Animaciones escalonadas para educación */
.education__content:nth-child(1) {
  animation: slideInFromLeft 0.8s ease-out;
}

.education__content:nth-child(2) {
  animation: slideInFromRight 0.8s ease-out 0.2s both;
}

.education__content:nth-child(3) {
  animation: slideInFromLeft 0.8s ease-out 0.4s both;
}

.education__content:nth-child(4) {
  animation: slideInFromRight 0.8s ease-out 0.6s both;
}

.education__header {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: var(--mb-1);
}

.education__icon {
  font-size: 2rem;
  flex-shrink: 0;
  margin-top: 0.2rem;
  transition: all 0.3s ease;
}

.education__content:hover .education__icon {
  color: var(--ctp-lavender);
  transform: scale(1.1) rotate(5deg);
}

.education__title {
  color: var(--ctp-text);
  font-size: var(--h3-font-size);
  font-weight: var(--font-semi-bold);
  margin-bottom: 0.25rem;
  line-height: 1.2;
}

.education__subtitle {
  font-size: var(--small-font-size);
  font-weight: var(--font-medium);
  display: block;
  margin-bottom: var(--mb-0-25);
  color: var(--ctp-subtext1);
}

.education__date {
  font-size: var(--smaller-font-size);
  color: var(--ctp-subtext0);
  font-weight: var(--font-medium);
  font-style: italic;
}

.education__description {
  font-size: var(--small-font-size);
  color: var(--ctp-text);
  line-height: 1.6;
  margin-top: var(--mb-1);
  opacity: 0.9;
}

/* Colores específicos por tema educativo */
.education__content:nth-child(1) {
  border-left-color: var(--ctp-blue);
}

.education__content:nth-child(1) .education__icon {
  color: var(--ctp-blue);
}

.education__content:nth-child(1):hover {
  border-left-color: var(--ctp-sapphire);
  box-shadow: 0 12px 32px rgba(137, 180, 250, 0.15);
}

.education__content:nth-child(2) {
  border-left-color: var(--ctp-green);
}

.education__content:nth-child(2) .education__icon {
  color: var(--ctp-green);
}

.education__content:nth-child(2):hover {
  border-left-color: var(--ctp-teal);
  box-shadow: 0 12px 32px rgba(166, 227, 161, 0.15);
}

.education__content:nth-child(3) {
  border-left-color: var(--ctp-peach);
}

.education__content:nth-child(3) .education__icon {
  color: var(--ctp-peach);
}

.education__content:nth-child(3):hover {
  border-left-color: var(--ctp-yellow);
  box-shadow: 0 12px 32px rgba(250, 179, 135, 0.15);
}

.education__content:nth-child(4) {
  border-left-color: var(--ctp-pink);
}

.education__content:nth-child(4) .education__icon {
  color: var(--ctp-pink);
}

.education__content:nth-child(4):hover {
  border-left-color: var(--ctp-flamingo);
  box-shadow: 0 12px 32px rgba(245, 194, 231, 0.15);
}

/* Responsive para educación */
@media screen and (max-width: 900px) {
  .education__container {
    max-width: 700px;
    gap: 1.5rem;
    row-gap: 2rem;
  }
}

@media screen and (max-width: 768px) {
  .education__container {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    max-width: 500px;
    margin: 0 auto;
  }
  
  .education__content {
    padding: 1.5rem 1rem;
    text-align: center;
    margin: 0 auto;
  }
  
  .education__header {
    flex-direction: column;
    text-align: center;
    gap: 0.75rem;
    align-items: center;
    justify-content: center;
  }
  
  .education__icon {
    font-size: 2rem;
    margin: 0 auto;
    display: block;
  }
  
  .education__title,
  .education__subtitle,
  .education__date,
  .education__description {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
  }
  
  .education__title {
    max-width: 100%;
    text-align: center;
  }
  
  .education__description {
    max-width: 100%;
    text-align: center;
    margin: var(--mb-1) auto 0;
  }
}

/*==================== CALIFICACIÓN ====================*/


/*==================== SERVICIOS ====================*/
.services__container {
  gap: 1.5rem;
  grid-template-columns: repeat(2, 1fr);
  max-width: 1000px;
  margin: 0 auto;
}

.services__content {
  position: relative;
  background-color: var(--container-color);
  padding: 2rem 1rem 1.5rem 1rem;
  border-radius: .5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .1);
  transition: all .3s ease;
  width: 100%;
  min-height: 280px;
  display: flex;
  flex-direction: column;
  text-align: center;
  align-items: center;
  justify-content: center;
  justify-content: space-between;
}

.services:hover {
  box-shadow: 0 4px 8px rgba(0, 0, 0, .15);
}

.services__icon {
  display: block;
  font-size: 1.5rem;
  color: var(--first-color);
  margin-bottom: var(--mb-1);
}

.services__title {
  font-size: var(--h3-font-size);
  margin-bottom: var(--mb-1);
  font-weight: var(--font-medium);
  text-align: center;
  line-height: 1.2;
}

.services__description {
  font-size: var(--small-font-size);
  color: var(--text-color);
  text-align: center;
  line-height: 1.4;
  margin-bottom: var(--mb-1-5);
  padding: 0 0.5rem;
}

.services__button {
  cursor: pointer;
  font-size: var(--small-font-size);
}

.services__button:hover .button__icon {
  transform: translateX(.25rem);
}

.services__modal {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  background-color: rgba(24, 24, 37, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 1rem;
  z-index: 9999 !important;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  will-change: opacity, visibility;
  transform: translateZ(0);
}

.services__modal.show-modal .services__modal-content {
  transform: scale(1) translateY(0) translateZ(0);
}

.services__modal-content {
  position: relative;
  background: var(--ctp-base);
  width: 90%;
  max-width: 500px;
  padding: 2rem;
  border-radius: 1rem;
  border: 2px solid var(--ctp-surface0);
  box-shadow: 0 20px 60px rgba(24, 24, 37, 0.3);
  transform: scale(0.9) translateY(30px) translateZ(0);
  transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94), opacity 0.3s ease;
  text-align: center;
  z-index: 10000 !important;
  will-change: transform, opacity;
}

.services__modal-services {
  grid-template-columns: 1fr;
  gap: 1rem;
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: left;
}

.services__modal-service {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.75rem;
  background-color: var(--ctp-surface0);
  border-radius: 0.5rem;
  transition: all 0.3s ease;
}

.services__modal-service:hover {
  transform: translateX(5px);
  background-color: var(--ctp-surface1);
}

.services__modal-title {
  color: var(--ctp-mauve);
  font-size: var(--h2-font-size);
  font-weight: var(--font-semi-bold);
  margin-bottom: 1.5rem;
  text-align: center;
}

.services__modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 1.8rem;
  color: var(--ctp-text);
  cursor: pointer;
  width: 3rem;
  height: 3rem;
  background-color: var(--ctp-surface0);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.services__modal-close:hover {
  background-color: var(--ctp-red);
  color: var(--ctp-base);
  transform: rotate(90deg) scale(1.1);
}

.services__modal-icon {
  color: var(--ctp-green);
  font-size: 1.2rem;
  margin-top: 0.1rem;
  flex-shrink: 0;
}

.services__modal-service p {
  color: var(--ctp-text);
  font-size: var(--normal-font-size);
  line-height: 1.5;
  margin: 0;
}

/* Modal Activo */
.services__modal.show-modal {
  opacity: 1;
  visibility: visible;
}

/* Prevenir scroll del body cuando modal está abierto */
body.modal-open {
  overflow: hidden;
  position: fixed;
  width: 100%;
}

/*==================== PORTAFOLIO ====================*/
.portfolio__container {
  overflow: initial;
}

.portfolio__content {
  padding: 0 1.5rem;
}

.portfolio__img {
  width: 265px;
  border-radius: .5rem;
  justify-self: center;
}

.portfolio__title {
  font-size: var(--h3-font-size);
  margin-bottom: var(--mb-0-5);
}

.portfolio__description {
  margin-bottom: var(--mb-0-75);
}

/* Colores específicos para botones de portfolio usando paleta Catppuccin */
.portfolio__content:nth-child(1) .portfolio__button {
  background-color: var(--ctp-green);
  color: var(--ctp-base);
}

.portfolio__content:nth-child(1) .portfolio__button:hover {
  background-color: var(--ctp-teal);
  transform: translateY(-2px);
  box-shadow: 0 8px 15px rgba(64, 160, 43, 0.3);
}

.portfolio__content:nth-child(2) .portfolio__button {
  background-color: var(--ctp-blue);
  color: var(--ctp-base);
}

.portfolio__content:nth-child(2) .portfolio__button:hover {
  background-color: var(--ctp-sapphire);
  transform: translateY(-2px);
  box-shadow: 0 8px 15px rgba(30, 102, 245, 0.3);
}

.portfolio__content:nth-child(3) .portfolio__button {
  background-color: var(--ctp-peach);
  color: var(--ctp-base);
}

.portfolio__content:nth-child(3) .portfolio__button:hover {
  background-color: var(--ctp-yellow);
  transform: translateY(-2px);
  box-shadow: 0 8px 15px rgba(254, 100, 11, 0.3);
}

.portfolio__content:nth-child(4) .portfolio__button {
  background-color: var(--ctp-pink);
  color: var(--ctp-base);
}

.portfolio__content:nth-child(4) .portfolio__button:hover {
  background-color: var(--ctp-flamingo);
  transform: translateY(-2px);
  box-shadow: 0 8px 15px rgba(234, 118, 203, 0.3);
}

.portfolio__content:nth-child(5) .portfolio__button {
  background-color: var(--ctp-mauve);
  color: var(--ctp-base);
}

.portfolio__content:nth-child(5) .portfolio__button:hover {
  background-color: var(--ctp-lavender);
  transform: translateY(-2px);
  box-shadow: 0 8px 15px rgba(136, 57, 239, 0.3);
}

.portfolio__button:hover .button__icon {
  transform: translateX(.25rem);
}

.swiper-button-prev::after,
.swiper-button-next::after {
  content: '';
}

.swiper-portfolio-icon {
  font-size: 2rem;
  color: var(--first-color);
}

.swiper-button-prev {
  left: -.5rem;
}

.swiper-button-next {
  right: -.5rem;
}

.swiper-container-horizontal>.swiper-pagination-bullets {
  bottom: -2.5rem;
}

.swiper-pagination-bullet-active {
  background-color: var(--first-color);
}

.swiper-button-prev,
.swiper-button-next,
.swiper-pagination-bullet {
  outline: none;
}

/*==================== PROYECTO EN MENTE ====================*/
.project {
  text-align: center;
}

.project__bg {
  background-color: var(--first-color-second);
  padding: 4rem 0;
  position: relative;
  overflow: hidden;
}

.project__title {
  font-size: var(--h2-font-size);
  margin-bottom: var(--mb-0-75);
}

.project__description {
  margin-bottom: var(--mb-1-5);
}

.project__title,
.project__description {
  color: var(--ctp-text);
}

.project__img {
  width: 232px;
  justify-self: center;
}



/*==================== TESTIMONIOS COMPACTOS ====================*/
.testimonial__content {
  text-align: center;
  padding: 2rem 1.5rem;
  max-width: 550px;
  margin: 0 auto;
<<<<<<< HEAD
  background-color: var(--ctp-mantle);
  border-radius: 1rem;
  border: 1px solid var(--ctp-surface1);
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  min-height: 300px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
=======
  background: transparent;
>>>>>>> 669fcb3 (Refactor testimonial section with custom carousel implementation and update testimonials content)
}


.testimonial__data,
.testimonial__header {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  gap: 1rem;
}

.testimonial__data {
  margin-bottom: 1rem;
}

.testimonial__img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  margin: 0 auto;
  object-fit: cover;
  object-position: center;
  border: 3px solid var(--ctp-blue);
  transition: all 0.3s ease;
}

.testimonial__img:hover {
  transform: scale(1.05);
  border-color: var(--ctp-mauve);
}

.testimonial__name {
  font-size: var(--h3-font-size);
  font-weight: var(--font-semi-bold);
  color: var(--ctp-text);
  margin-bottom: 0.25rem;
}

.testimonial__client {
  font-size: var(--small-font-size);
  color: var(--ctp-subtext1);
  font-style: italic;
}

.testimonial__description {
  margin-bottom: 1rem;
  line-height: 1.7;
  font-size: var(--normal-font-size);
  text-align: center;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
  color: var(--ctp-text);
  opacity: 0.9;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 0;
}

.testimonial__description strong {
  color: var(--ctp-blue);
  font-weight: var(--font-semi-bold);
}

.testimonial__description em {
  color: var(--ctp-peach);
  font-style: italic;
}

.testimonial__description strong em {
  color: var(--ctp-mauve);
  font-weight: var(--font-semi-bold);
  font-style: italic;
}

/* Container del carrusel más compacto - FORZADO PARA UN SOLO SLIDE */
/* Carrusel personalizado de testimonios */
.testimonial__container {
  padding-bottom: 2rem;
  background-color: transparent;
  position: relative;
  overflow: hidden;
  width: 100%;
}

.testimonial__wrapper {
  position: relative;
  width: 100%;
  height: auto;
  min-height: 200px;
}

.testimonial__slide {
  display: none;
  opacity: 0;
  transition: opacity 0.3s ease;
  width: 100%;
}

.testimonial__slide.active {
  display: block;
  opacity: 1;
}

.testimonial__slide .testimonial__content {
  width: 100%;
  max-width: 550px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Navegación del carrusel personalizado */
.testimonial__nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  margin-top: 2rem;
}

.testimonial__btn {
  background: transparent;
  color: var(--ctp-pink);
  border: none;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 1.8rem;
  border-radius: 8px;
}

.testimonial__btn:hover {
  background: var(--ctp-surface0);
  color: var(--ctp-mauve);
  transform: scale(1.1);
}

.testimonial__btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  color: var(--ctp-surface1);
}

.testimonial__indicators {
  display: flex;
  gap: 0.5rem;
}

.testimonial__indicator {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--ctp-surface2);
  cursor: pointer;
  transition: all 0.3s ease;
  opacity: 0.6;
}

.testimonial__indicator:hover {
  background: var(--ctp-subtext0);
  opacity: 0.8;
  transform: scale(1.1);
}

.testimonial__indicator.active {
  background: var(--ctp-pink);
  transform: scale(1.4);
  opacity: 1;
  box-shadow: 0 0 8px var(--ctp-pink);
}

.testimonial.section {
  background-color: var(--ctp-base);
  color: var(--ctp-text);
  padding: 4rem 0;
}

.swiper-container .swiper-pagination-testimonial {
  bottom: -10px;
}

/* Botones de navegación compactos */
.testimonial__container .swiper-button-next,
.testimonial__container .swiper-button-prev {
  width: 45px;
  height: 45px;
  background-color: var(--ctp-surface1);
  border-radius: 50%;
  color: var(--ctp-blue);
  border: 2px solid var(--ctp-blue);
  transition: all 0.3s ease;
  opacity: 0.8;
  top: 50%;
  transform: translateY(-50%);
}

.testimonial__container .swiper-button-next::after,
.testimonial__container .swiper-button-prev::after {
  display: none;
}

.testimonial__container .swiper-button-next:hover,
.testimonial__container .swiper-button-prev:hover {
  background-color: var(--ctp-blue);
  color: var(--ctp-base);
  transform: translateY(-50%) scale(1.1);
  opacity: 1;
  box-shadow: 0 6px 12px rgba(137, 180, 250, 0.3);
}

.testimonial__container .swiper-testimonial-icon {
  font-size: 1.3rem;
  line-height: 1;
}

/* Posicionamiento más cercano al contenido */
.testimonial__container .swiper-button-next {
  right: 5px;
}

.testimonial__container .swiper-button-prev {
  left: 5px;
}

/* Responsive más compacto */
@media screen and (max-width: 768px) {
  .testimonial__container .swiper-button-next,
  .testimonial__container .swiper-button-prev {
    width: 35px;
    height: 35px;
    opacity: 0.6;
    right: -5px;
  }
  
  .testimonial__container .swiper-button-prev {
    left: -5px;
  }
  
  .testimonial__container .swiper-testimonial-icon {
    font-size: 1rem;
  }
  
  .testimonial__img {
    width: 70px;
    height: 70px;
  }
  
  .testimonial__content {
    min-height: 350px;
    padding: 1.5rem 1rem;
  }
  
  .testimonial__description {
    font-size: var(--small-font-size);
    max-width: 500px;
    line-height: 1.6;
  }
}


/*==================== CONTACTO ====================*/
.contact__container {
  row-gap: 3rem;
}

.contact__information {
  display: flex;
  margin-bottom: var(--mb-2);
}

.contact__icon {
  font-size: 2rem;
  color: var(--first-color);
  margin-right: var(--mb-0-75);
}

.contact__title {
  font-size: var(--h3-font-size);
  font-weight: var(--font-medium);
}

.contact__subtitle {
  font-size: var(--small-font-size);
  color: var(--text-color-light);
}

.contact__content {
  background-color: var(--input-color);
  border-radius: .5rem;
  padding: .75rem 1rem .25rem;
}

.contact__label {
  font-size: var(--smaller-font-size);
  color: var(--title-color);
}

.contact__input {
  width: 100%;
  background-color: var(--input-color);
  color: var(--text-color);
  font-family: var(--body-font);
  font-size: var(--normal-font-size);
  border: none;
  outline: none;
  padding: .25rem .5rem .5rem 0;
  transition: all 0.3s ease;
}

/*==================== CONTACT FORM ENHANCEMENTS ====================*/
.contact__content {
  position: relative;
  border: 2px solid transparent;
  transition: all 0.3s ease;
}

.contact__content:focus-within {
  border-color: var(--ctp-lavender);
  box-shadow: 0 0 0 4px rgba(180, 190, 254, 0.1);
  background-color: rgba(180, 190, 254, 0.05);
}

.contact__input:focus {
  color: var(--title-color);
}

/* Enhanced states for form validation */
.contact__content:has(.contact__input--error) {
  border-color: var(--ctp-red);
  box-shadow: 0 0 0 4px rgba(243, 139, 168, 0.1);
  background-color: rgba(243, 139, 168, 0.05);
}

.contact__content:has(.contact__input--valid) {
  border-color: var(--ctp-green);
  box-shadow: 0 0 0 4px rgba(166, 227, 161, 0.1);
  background-color: rgba(166, 227, 161, 0.05);
}

.contact__input--error {
  color: var(--ctp-red) !important;
}

.contact__input--valid {
  color: var(--ctp-green) !important;
}

.contact__error {
  color: var(--ctp-red);
  font-size: var(--smaller-font-size);
  margin-top: 0.25rem;
  display: block;
  font-weight: var(--font-medium);
  animation: slideInError 0.3s ease-out;
}

@keyframes slideInError {
  from {
    opacity: 0;
    transform: translateY(-5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Success checkmark animation */
.contact__input--valid + .contact__success {
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--ctp-green);
  font-size: 1.25rem;
  animation: checkmarkPop 0.4s ease-out;
}

@keyframes checkmarkPop {
  0% {
    opacity: 0;
    transform: translateY(-50%) scale(0.5);
  }
  50% {
    transform: translateY(-50%) scale(1.2);
  }
  100% {
    opacity: 1;
    transform: translateY(-50%) scale(1);
  }
}

/* Submit button enhanced states */
.button[type="submit"] {
  position: relative;
  overflow: hidden;
  transition: all 0.4s ease;
}

.button[type="submit"]:disabled {
  cursor: not-allowed;
  opacity: 0.7;
}

.button[type="submit"]:not(:disabled):hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Loading state animation */
.button[type="submit"] .uil-spinner {
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Success state styles */
.button[type="submit"]:has(.uil-check) {
  background: linear-gradient(135deg, var(--ctp-green), var(--ctp-teal)) !important;
  box-shadow: 0 4px 15px rgba(166, 227, 161, 0.4);
}

/* Error state styles */
.button[type="submit"]:has(.uil-exclamation-triangle) {
  background: linear-gradient(135deg, var(--ctp-red), var(--ctp-peach)) !important;
  box-shadow: 0 4px 15px rgba(243, 139, 168, 0.4);
}

/* Notification styles */
.contact__notification {
  position: fixed;
  top: 2rem;
  right: 2rem;
  padding: 1rem 1.5rem;
  border-radius: 12px;
  color: white;
  font-weight: var(--font-medium);
  max-width: 350px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  z-index: 10000;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transform: translateX(400px);
  transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  opacity: 0;
}

.contact__notification.show {
  transform: translateX(0);
  opacity: 1;
}

.contact__notification--success {
  background: linear-gradient(135deg, var(--ctp-green), var(--ctp-teal));
}

.contact__notification--error {
  background: linear-gradient(135deg, var(--ctp-red), var(--ctp-peach));
}

.contact__notification--warning {
  background: linear-gradient(135deg, var(--ctp-yellow), var(--ctp-peach));
}

/* Mobile responsive notifications */
@media screen and (max-width: 568px) {
  .contact__notification {
    right: 1rem;
    left: 1rem;
    max-width: calc(100vw - 2rem);
    transform: translateY(-100px);
  }
  
  .contact__notification.show {
    transform: translateY(0);
  }
}

/*==================== POLÍTICA DE PRIVACIDAD ====================*/
.privacy.section {
  padding: 4rem 0 2rem;
}

.privacy__container {
  max-width: 968px;
}

.privacy__header {
  margin-bottom: var(--mb-2);
}

.privacy__breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: var(--mb-1-5);
  font-size: var(--small-font-size);
  color: var(--text-color-light);
}

.privacy__breadcrumb-link {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  color: var(--first-color);
  text-decoration: none;
  transition: all 0.3s;
}

.privacy__breadcrumb-link:hover {
  color: var(--first-color-alt);
  transform: translateX(-2px);
}

.privacy__breadcrumb-current {
  font-weight: var(--font-medium);
  color: var(--title-color);
}

.privacy__title-section {
  text-align: center;
  margin-bottom: var(--mb-3);
}

.privacy__title-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 4rem;
  height: 4rem;
  background: linear-gradient(135deg, var(--first-color), var(--first-color-alt));
  border-radius: 50%;
  margin-bottom: var(--mb-1);
  box-shadow: 0 10px 25px rgba(var(--first-color), 0.3);
}

.privacy__title-icon i {
  font-size: 2rem;
  color: white;
}

.privacy__title {
  font-size: var(--h1-font-size);
  color: var(--title-color);
  font-weight: var(--font-semi-bold);
  margin-bottom: var(--mb-0-5);
}

.privacy__subtitle {
  color: var(--text-color-light);
  font-size: var(--normal-font-size);
}

.privacy__intro {
  margin-bottom: var(--mb-3);
}

.privacy__intro-content {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem;
  background: var(--container-color);
  border-radius: 1rem;
  border-left: 4px solid var(--first-color);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.privacy__intro-icon {
  font-size: 2rem;
  color: var(--first-color);
  flex-shrink: 0;
}

.privacy__intro-text {
  color: var(--text-color);
  line-height: 1.6;
  margin: 0;
}

.privacy__content {
  display: flex;
  flex-direction: column;
  gap: var(--mb-2-5);
}

.privacy__section {
  background: var(--container-color);
  border-radius: 1rem;
  padding: 2rem;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.privacy__section:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.privacy__section--contact {
  background: linear-gradient(135deg, var(--first-color-lighter), var(--container-color));
}

.privacy__section-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: var(--mb-1-5);
}

.privacy__section-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  background: linear-gradient(135deg, var(--first-color), var(--first-color-alt));
  border-radius: 50%;
  flex-shrink: 0;
}

.privacy__section-icon--secure {
  background: linear-gradient(135deg, var(--ctp-green), var(--ctp-teal));
}

.privacy__section-icon i {
  font-size: 1.5rem;
  color: white;
}

.privacy__section-title-container {
  flex: 1;
}

.privacy__section-title {
  font-size: var(--h2-font-size);
  color: var(--title-color);
  font-weight: var(--font-semi-bold);
  margin-bottom: var(--mb-0-25);
}

.privacy__section-subtitle {
  color: var(--text-color-light);
  font-size: var(--small-font-size);
}

.privacy__section-content {
  color: var(--text-color);
  line-height: 1.6;
}

.privacy__section-description {
  margin-bottom: var(--mb-1);
  font-weight: var(--font-medium);
}

.privacy__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.privacy__list-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: var(--mb-1);
  padding: 1rem;
  background: var(--body-color);
  border-radius: 0.5rem;
  transition: all 0.3s ease;
}

.privacy__list-item:hover {
  background: var(--first-color-lighter);
  transform: translateX(5px);
}

.privacy__list-icon {
  font-size: 1.25rem;
  color: var(--first-color);
  flex-shrink: 0;
  margin-top: 0.1rem;
}

.privacy__list-content {
  flex: 1;
}

.privacy__highlight-box {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem;
  background: linear-gradient(135deg, var(--ctp-green), var(--ctp-teal));
  border-radius: 1rem;
  color: white;
}

.privacy__highlight-icon {
  font-size: 2rem;
  flex-shrink: 0;
}

.privacy__highlight-text {
  margin: 0;
  font-weight: var(--font-medium);
}

.privacy__contact-box {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem;
  background: var(--body-color);
  border-radius: 1rem;
  margin-top: var(--mb-1);
}

.privacy__contact-icon {
  font-size: 1.5rem;
  color: var(--first-color);
}

.privacy__contact-content {
  flex: 1;
}

.privacy__contact-label {
  display: block;
  font-size: var(--small-font-size);
  color: var(--text-color-light);
  margin-bottom: 0.25rem;
}

.privacy__contact-email {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--first-color);
  text-decoration: none;
  font-weight: var(--font-medium);
  transition: all 0.3s ease;
}

.privacy__contact-email:hover {
  color: var(--first-color-alt);
  transform: translateX(3px);
}

.privacy__security-grid {
  display: grid;
  gap: var(--mb-1-5);
}

.privacy__security-item {
  display: flex;
  gap: 1rem;
  padding: 1.5rem;
  background: var(--body-color);
  border-radius: 1rem;
}

.privacy__security-icon {
  font-size: 1.5rem;
  color: var(--ctp-green);
  flex-shrink: 0;
}

.privacy__security-icon--warning {
  color: var(--ctp-yellow);
}

.privacy__security-content {
  flex: 1;
}

.privacy__security-title {
  font-size: var(--h3-font-size);
  color: var(--title-color);
  font-weight: var(--font-semi-bold);
  margin-bottom: var(--mb-0-5);
}

.privacy__security-text {
  color: var(--text-color);
  margin: 0;
  line-height: 1.6;
}

.privacy__cookies-info {
  display: grid;
  gap: var(--mb-1-5);
}

.privacy__cookies-item {
  display: flex;
  gap: 1rem;
  padding: 1.5rem;
  background: var(--body-color);
  border-radius: 1rem;
}

.privacy__cookies-icon {
  font-size: 1.5rem;
  color: var(--first-color);
  flex-shrink: 0;
}

.privacy__cookies-content {
  flex: 1;
}

.privacy__cookies-title {
  font-size: var(--h3-font-size);
  color: var(--title-color);
  font-weight: var(--font-semi-bold);
  margin-bottom: var(--mb-0-5);
}

.privacy__cookies-text {
  color: var(--text-color);
  margin: 0;
  line-height: 1.6;
}

.privacy__update-box {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem;
  background: linear-gradient(135deg, var(--ctp-sky), var(--ctp-sapphire));
  border-radius: 1rem;
  color: white;
}

.privacy__update-icon {
  font-size: 2rem;
  flex-shrink: 0;
}

.privacy__update-content {
  flex: 1;
}

.privacy__update-text {
  margin: 0;
  font-weight: var(--font-medium);
}

.privacy__contact-final {
  display: flex;
  justify-content: center;
}

.privacy__contact-card {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 2rem;
  background: var(--body-color);
  border-radius: 1rem;
  max-width: 500px;
  width: 100%;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.privacy__contact-avatar {
  flex-shrink: 0;
}

.privacy__contact-img {
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--first-color);
}

.privacy__contact-info {
  flex: 1;
}

.privacy__contact-name {
  font-size: var(--h3-font-size);
  color: var(--title-color);
  font-weight: var(--font-semi-bold);
  margin-bottom: var(--mb-0-25);
}

.privacy__contact-role {
  color: var(--first-color);
  font-size: var(--small-font-size);
  font-weight: var(--font-medium);
  margin-bottom: var(--mb-0-75);
}

.privacy__contact-description {
  color: var(--text-color);
  font-size: var(--small-font-size);
  margin-bottom: var(--mb-1);
  line-height: 1.5;
}

.privacy__contact-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: linear-gradient(135deg, var(--first-color), var(--first-color-alt));
  color: white;
  text-decoration: none;
  border-radius: 2rem;
  font-size: var(--small-font-size);
  font-weight: var(--font-medium);
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(var(--first-color), 0.3);
}

.privacy__contact-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(var(--first-color), 0.4);
}

.privacy__footer {
  margin-top: var(--mb-3);
  padding: 2rem;
  background: var(--container-color);
  border-radius: 1rem;
  text-align: center;
}

.privacy__update-date {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: var(--mb-2);
  color: var(--text-color-light);
  font-size: var(--small-font-size);
}

.privacy__date-icon {
  color: var(--first-color);
}

.privacy__date-text strong {
  color: var(--title-color);
}

.privacy__actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.privacy__action-btn {
  min-width: 150px;
}

/* Responsive Design */
@media screen and (max-width: 768px) {
  .privacy__intro-content {
    flex-direction: column;
    text-align: center;
  }
  
  .privacy__section {
    padding: 1.5rem;
  }
  
  .privacy__section-header {
    flex-direction: column;
    text-align: center;
    gap: 0.75rem;
  }
  
  .privacy__contact-card {
    flex-direction: column;
    text-align: center;
  }
  
  .privacy__security-grid,
  .privacy__cookies-info {
    gap: var(--mb-1);
  }
  
  .privacy__security-item,
  .privacy__cookies-item {
    flex-direction: column;
    text-align: center;
    padding: 1rem;
  }
  
  .privacy__list-item {
    flex-direction: column;
    text-align: center;
    padding: 0.75rem;
  }
  
  .privacy__highlight-box,
  .privacy__contact-box,
  .privacy__update-box {
    flex-direction: column;
    text-align: center;
    padding: 1rem;
  }
  
  .privacy__actions {
    flex-direction: column;
    align-items: center;
  }
  
  .privacy__action-btn {
    width: 100%;
    max-width: 300px;
  }
}

@media screen and (min-width: 769px) {
  .privacy__security-grid,
  .privacy__cookies-info {
    grid-template-columns: repeat(2, 1fr);
  }
}

/*==================== MODAL POLÍTICA DE PRIVACIDAD ====================*/
.privacy__link {
  color: var(--text-color-light);
  text-decoration: underline;
  text-decoration-color: var(--first-color);
  text-underline-offset: 2px;
  font-weight: var(--font-medium);
  transition: all 0.3s ease;
}

.privacy__link:hover {
  color: var(--first-color);
  text-decoration-color: var(--first-color-alt);
  text-underline-offset: 3px;
}

.privacy__modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: var(--z-modal);
  visibility: hidden;
  opacity: 0;
  transition: all 0.3s ease;
}

.privacy__modal.show {
  visibility: visible;
  opacity: 1;
}

.privacy__modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(5px);
}

.privacy__modal-content {
  position: relative;
  max-width: 380px;
  margin: 1rem auto;
  background: var(--body-color);
  border-radius: 0.75rem;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
  z-index: 1000;
  max-height: calc(100vh - 2rem);
  overflow-y: auto;
  transform: translateY(-50px);
  transition: transform 0.3s ease;
}

.privacy__modal.show .privacy__modal-content {
  transform: translateY(0);
}

.privacy__modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--first-color-lighter);
  background: linear-gradient(135deg, var(--first-color-lighter), var(--container-color));
  border-radius: 0.75rem 0.75rem 0 0;
}

.privacy__modal-title-section {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.privacy__modal-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  background: linear-gradient(135deg, var(--first-color), var(--first-color-alt));
  border-radius: 50%;
}

.privacy__modal-icon i {
  font-size: 1rem;
  color: white;
}

.privacy__modal-title-content h2 {
  font-size: var(--h3-font-size);
  color: var(--title-color);
  font-weight: var(--font-semi-bold);
  margin-bottom: 0.1rem;
}

.privacy__modal-subtitle {
  color: var(--text-color-light);
  font-size: var(--smaller-font-size);
  margin: 0;
}

.privacy__modal-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  background: var(--first-color);
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.privacy__modal-close:hover {
  background: var(--first-color-alt);
  transform: rotate(90deg);
}

.privacy__modal-body {
  padding: 1rem;
}

.privacy__modal-summary {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.privacy__modal-item {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  padding: 0.75rem;
  background: var(--container-color);
  border-radius: 0.4rem;
  border-left: 3px solid var(--first-color);
  transition: all 0.3s ease;
}

.privacy__modal-item:hover {
  transform: translateX(5px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.privacy__modal-item-icon {
  font-size: 1rem;
  color: var(--first-color);
  flex-shrink: 0;
  margin-top: 0.05rem;
}

.privacy__modal-item-content {
  flex: 1;
}

.privacy__modal-item-content h4 {
  font-size: var(--small-font-size);
  color: var(--title-color);
  font-weight: var(--font-semi-bold);
  margin-bottom: 0.15rem;
}

.privacy__modal-item-content p {
  color: var(--text-color);
  margin: 0;
  line-height: 1.3;
  font-size: var(--smaller-font-size);
}

.privacy__modal-actions {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

.privacy__modal-btn {
  min-width: 120px;
  justify-content: center;
  padding: 0.5rem 0.75rem;
  font-size: var(--smaller-font-size);
}

/* Responsive Design para Modal */
@media screen and (max-width: 768px) {
  .privacy__modal-content {
    margin: 0.75rem;
    max-width: calc(100vw - 1.5rem);
    max-height: calc(100vh - 1.5rem);
  }
  
  .privacy__modal-header {
    padding: 0.5rem 0.75rem;
    flex-direction: row;
    text-align: left;
    gap: 0.4rem;
  }
  
  .privacy__modal-title-section {
    flex-direction: row;
    text-align: left;
    gap: 0.4rem;
  }
  
  .privacy__modal-icon {
    width: 1.5rem;
    height: 1.5rem;
  }
  
  .privacy__modal-icon i {
    font-size: 0.8rem;
  }
  
  .privacy__modal-title-content h2 {
    font-size: var(--normal-font-size);
  }
  
  .privacy__modal-close {
    width: 1.5rem;
    height: 1.5rem;
    font-size: 0.9rem;
  }
  
  .privacy__modal-body {
    padding: 0.75rem;
  }
  
  .privacy__modal-summary {
    gap: 0.5rem;
    margin-bottom: 0.75rem;
  }
  
  .privacy__modal-item {
    padding: 0.5rem;
    gap: 0.4rem;
  }
  
  .privacy__modal-item-content h4 {
    font-size: var(--smaller-font-size);
  }
  
  .privacy__modal-actions {
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
  }
  
  .privacy__modal-btn {
    width: 100%;
    max-width: 220px;
    min-width: auto;
    padding: 0.4rem 0.6rem;
  }
}

/*==================== PIE DE PÁGINA ====================*/
.footer {
  padding-top: 2rem;
}

.footer__container {
  row-gap: 3.5rem;
}

.footer__bg {
  background-color: var(--first-color);
  padding: 2rem 0 3rem;
}

.footer__logo {
  display: flex;
  justify-content: center;
  margin-bottom: var(--mb-1);
}

.footer__logo-img {
  height: 3rem;
  width: auto;
  transition: all 0.3s ease;
}

/* El pie de página usa el logo negro */
.footer__logo-img {
  content: url('../img/mg_logo_black.png');
}

.footer__logo:hover .footer__logo-img {
  transform: scale(1.1);
}

.footer__title {
  font-size: var(--h1-font-size);
  margin-bottom: var(--mb-0-25);
}

.footer__subtitle {
  font-size: var(--small-font-size);
}

.footer__links {
  display: flex;
  flex-direction: column;
  row-gap: 1.5rem;
}

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

.footer__social {
  font-size: 1.25rem;
  margin-right: var(--mb-1-5);
}

footer .footer__social a:hover {
  color: var(--first-color-lighter);
}

.footer__copy {
  font-size: var(--smaller-font-size);
  text-align: center;
  color: rgba(51, 51, 51, 0.7);
  margin-top: var(--mb-3);
}

.footer__title,
.footer__subtitle,
.footer__link,
.footer__social {
  color: var(--ctp-base);
}

/*==================== LOGO ALMA FOOTER - LAYOUT DIVIDIDO ====================*/
.footer__menu-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
  width: 100%;
}

.footer__menu-section {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer__alma-section {
  display: flex;
  justify-content: center;
  align-items: center;
}

.footer__alma-logo {
  opacity: 0.8;
  transition: all 0.3s ease;
  width: 120px;
  height: 120px;
}

.footer__alma-logo:hover {
  opacity: 1;
  transform: scale(1.05);
}

.footer__alma-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: opacity 0.3s ease;
}

/* Tema claro por defecto: mostrar logo blanco */
.footer__alma-img--light {
  display: block;
}

.footer__alma-img--dark {
  display: none;
}

/* En tema oscuro: mostrar logo normal */
body.dark-theme .footer__alma-img--light {
  display: none;
}

body.dark-theme .footer__alma-img--dark {
  display: block;
}

/* Responsive para móvil */
@media screen and (max-width: 768px) {
  .footer__menu-container {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    text-align: center;
  }
  
  .footer__alma-logo {
    width: 100px;
    height: 100px;
  }
  
  /* Centrar título y subtítulo en móvil */
  .footer__title,
  .footer__subtitle {
    text-align: center;
  }
}

@media screen and (max-width: 480px) {
  .footer__alma-logo {
    width: 80px;
    height: 80px;
  }
}

/* Asegurar que el footer tenga posición relativa para el posicionamiento absoluto */
.footer__bg {
  position: relative;
}


/*========== SCROLL HACIA ARRIBA ==========*/
.scrollup {
  position: fixed;
  right: 1rem;
  bottom: -20%;
  background-color: var(--first-color);
  opacity: .8;
  padding: 0 .3rem;
  border-radius: .4rem;
  z-index: var(--z-tooltip);
  transition: .4s;
}

.scrollup:hover {
  background-color: var(--first-color-alt);
}

.scrollup__icon {
  font-size: 1.5rem;
  color: var(--container-color);
}



/* Mostrar scroll */
.show-scroll {
  bottom: 5rem;
}

/*========== BARRA DE DESPLAZAMIENTO ==========*/
::-webkit-scrollbar {
  width: 0.6rem;
  background-color: var(--scroll-bar-color);
  border-radius: .5rem;
}

::-webkit-scrollbar-thumb {
  background-color: var(--scroll-thumb-color);
  border-radius: .5rem;
}

::-webkit-scrollbar-thumb:hover {
  background-color: var(--text-color-light);
}

/*==================== MEDIA QUERIES ====================*/
/* Para dispositivos pequeños */
@media screen and (max-width: 350px) {
  .container {
    margin-left: var(--mb-1);
    margin-right: var(--mb-1);
  }

  .nav__logo-img {
    height: 2rem;
  }

  .nav__menu {
    padding: 2rem .25rem 4rem;
  }

  .nav__list {
    column-gap: 0;
  }

  .footer__logo-img {
    height: 2.5rem;
  }
  
  /* Pie de página en móvil - logo negro */
  .footer__logo-img {
    content: url('../img/mg_logo_black.png');
  }

  .home__content {
    grid-template-columns: .25fr 3fr;
  }

  .home__blob {
    width: 250px;
  }
  
  .home__blob-container {
    width: 250px;
    height: 250px;
  }
  
  .home__blob-img {
    width: 200px;
    height: 200px;
  }

  .skills__title {
    font-size: var(--normal-font-size);
  }

  .services__container {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    width: 100%;
  }

  .services__content {
    padding: 1.5rem 1rem;
    min-height: 280px;
  }

  .education__container {
    grid-template-columns: 1fr;
    gap: 1rem;
    justify-items: center;
  }

  .education__content {
    padding: 1.5rem 1rem;
    max-width: 450px;
    width: 100%;
  }

  .services__modal {
    padding: 0 .5rem;
  }

  .project__img {
    width: 200px;
  }

  .swiper-error{
    visibility: hidden;
  }

  .testimonial__data,
  .testimonial__header {
    flex-direction: column;
    align-items: center;
  }

  .testimonial__img {
    margin-right: 0;
    margin-bottom: var(--mb-0-25);
  }

  .testimonial__data,
  .testimonial__description {
    text-align: center;
  }
}

/* Para dispositivos medianos */
@media screen and (min-width: 568px) {
  .home__content {
    grid-template-columns: max-content 1fr 1fr;
  }

  .home__data {
    grid-column: initial;
  }

  .home__img {
    order: 1;
    justify-self: center;
  }

  .about__container,
  .skills__container,
  .portfolio__content,
  .contact__container,
  .footer__container,
  .education__container {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media screen and (min-width: 768px) {
  .container {
    margin-left: auto;
    margin-right: auto;
  }

  body {
    margin: 0;
  }

  .section {
    padding: 6rem 0 2rem;
  }

  .section__subtitle {
    margin-bottom: 4rem;
  }

  .header {
    top: 0;
    bottom: initial;
  }

  .header,
  .main,
  .footer__container {
    padding: 0 1rem;
  }

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

  .nav__icon,
  .nav__close,
  .nav__toggle {
    display: none;
  }

  .nav__list {
    display: flex;
    column-gap: 2rem;
  }

  .nav__menu {
    margin-left: auto;
  }

  .change-theme {
    margin: 0;
  }

  .home__container {
    row-gap: 5rem;
  }

  .home__content {
    padding-top: 5.5rem;
    column-gap: 2rem;
  }

  .home__blob {
    padding-top: 5.5rem;
  }

  .home {
    display: block;
  }

  .home__scroll-button {
    margin-left: 3rem;
  }

  .about__container {
    column-gap: 5rem;
  }

  .about__img {
    width: 350px;
  }

  .about__description {
    text-align: initial;
  }

  .about__info {
    justify-content: space-between;
  }

  .about__buttons {
    justify-content: initial;
  }

  .services__container {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
  }

  .services__content {
    padding: 2.5rem 1.5rem 2rem 1.5rem;
    min-height: 300px;
  }

  .services__icon {
    font-size: 2rem;
  }

  .services__content {
    padding: 6rem 0 2rem 2.5rem;
  }

  .services__modal-content {
    width: 450px;
  }

  .swiper-error{
    visibility: hidden;
  }

  .portfolio__img {
    width: 320px;
  }

  .portfolio__content {
    align-items: center;
  }

  .project {
    text-align: initial;
  }

  .project__bg {
    background: none;
  }

  /* .project__container {
    background-color: var(--first-color-second);
    border-radius: 1rem;
    padding: 3rem 2.5rem 0;
    grid-template-columns: 1fr max-content;
    column-gap: 3rem;
  } */

  .project__data {
    padding-top: .8rem;
  }

  .footer__container {
    grid-template-columns: repeat(3, 1fr);
  }

  .footer__bg {
    padding: 3rem 0 3.5rem;
  }

  .footer__links {
    flex-direction: row;
    column-gap: 2rem;
  }

  .footer__socials {
    justify-self: flex-end;
  }

  .footer__copy {
    margin-top: 4.5rem;
  }
}



/* Para dispositivos grandes */
@media screen and (min-width: 1024px) {

  .header,
  .footer__container {
    padding: 0;
  }
  
  .main {
    padding: 0 2rem;
  }

  .home__blob {
    width: 320px;
  }
  
  .home__blob-container {
    width: 320px;
    height: 320px;
  }
  
  .home__blob-img {
    width: 270px;
    height: 270px;
  }

  .home__social {
    transform: translateX(-6rem);
  }

  .services__container {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
  }

  .services__content {
    padding: 3rem 1.5rem 2rem 1.5rem;
    min-height: 320px;
  }

  .swiper-error{
    visibility: visible;
  }

  .portfolio__content {
    column-gap: 5rem;
  }

  .swiper-portfolio-icon {
    font-size: 3.5rem;
  }

  .swiper-button-prev {
    left: -3.5rem;
  }

  .swiper-button-next {
    right: -3.5rem;
  }

  .swiper-container-horizontal>.swiper-pagination-bullets {
    bottom: -4.5rem;
  }

  .contact__form {
    width: 460px;
  }

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

@media screen and (max-width: 767px) {
    .home__scroll-mouse {
        display: none;
    }

    .home__scroll-mobile {
        display: inline-block;
        font-size: 2rem;
    }
}

/*==================== Animación de Mano Saludando ====================*/
.wave {
  animation-name: wave-animation;
  /* Se refiere al nombre del elemento @keyframes a continuación */
  animation-duration: 2.5s;
  /* Cambiar para acelerar o ralentizar */
  animation-iteration-count: infinite;
  /* Para que nunca deje de saludar :) */
  transform-origin: 70% 70%;
  /* Pivota alrededor de la palma inferior izquierda */
  display: inline-block;
}

@keyframes wave-animation {
  0% {
    transform: rotate(0.0deg)
  }

  10% {
    transform: rotate(14.0deg)
  }

  /* Los siguientes cinco valores se pueden ajustar para que el saludo sea más o menos extremo */
  20% {
    transform: rotate(-8.0deg)
  }

  30% {
    transform: rotate(14.0deg)
  }

  40% {
    transform: rotate(-4.0deg)
  }

  50% {
    transform: rotate(10.0deg)
  }

  60% {
    transform: rotate(0.0deg)
  }

  /* Reiniciar para la última mitad para pausar */
  100% {
    transform: rotate(0.0deg)
  }
}

/*==================== Logo de Habilidades ====================*/
.skills__logo {
  font-size: 1.5rem;
  color: var(--first-color);
  margin-right: 0.5rem;
  vertical-align: middle;
}

.skills__logo:hover{
  transform: translateY(-.25rem);
  transition: 1s;
  color: var(--ctp-pink);
}

/*==================== Colores de Acento Catppuccin ====================*/
.skills__data:nth-child(1) .skills__logo {
  color: var(--ctp-green);
}

.skills__data:nth-child(2) .skills__logo {
  color: var(--ctp-peach);
}

.skills__data:nth-child(3) .skills__logo {
  color: var(--ctp-sky);
}

.skills__data:nth-child(4) .skills__logo {
  color: var(--ctp-pink);
}

/*==================== Colores Diferentes para las Barras de Habilidades ====================*/
/* Tecnología y Desarrollo */
.skills__html {
  background-color: var(--ctp-green);
}
.skills__css {
  background-color: var(--ctp-peach);
}
.skills__js {
  background-color: var(--ctp-sky);
}
.skills__react {
  background-color: var(--ctp-pink);
}
.skills__prompt {
  background-color: var(--ctp-lavender);
}

/* Ingeniería y Sistemas Técnicos */
.skills__php {
  background-color: var(--ctp-blue);
}
.skills__mysql {
  background-color: var(--ctp-red);
}
.skills__node {
  background-color: var(--ctp-yellow);
}
.skills__python {
  background-color: var(--ctp-maroon);
}

/* Marketing y Creatividad */
.skills__blender {
  background-color: var(--ctp-lavender);
}
.skills__photoshop {
  background-color: var(--ctp-flamingo);
}
.skills__adobeillustrator {
  background-color: var(--ctp-rosewater);
}
.skills__ai {
  background-color: var(--ctp-sapphire);
}

/* Emprendimiento y Gestión */
.skills__leadership {
  background-color: var(--ctp-mauve);
}
.skills__finance {
  background-color: var(--ctp-teal);
}
.skills__standardization {
  background-color: var(--ctp-green);
}
.skills__business-launch {
  background-color: var(--ctp-peach);
}

/* Colores específicos para iconos de servicios usando la paleta Catppuccin */
.services__content:nth-child(1) .services__icon {
  color: var(--ctp-mauve);
}

.services__content:nth-child(2) .services__icon {
  color: var(--ctp-blue);
}

.services__content:nth-child(3) .services__icon {
  color: var(--ctp-peach);
}

.services__content:nth-child(4) .services__icon {
  color: var(--ctp-pink);
}

/* Enhanced button styles consolidated with existing definitions */

/*==================== CV POPUP ====================*/
.about__buttons {
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
}

.button--outline {
  background-color: transparent;
  color: var(--ctp-peach);
  border: 2px solid var(--ctp-peach);
}

.button--outline:hover {
  background-color: var(--ctp-peach);
  color: var(--ctp-base);
  border: 2px solid var(--ctp-yellow);
  transform: translateY(-2px);
  box-shadow: 0 8px 15px rgba(250, 179, 135, 0.3);
}

.cv-modal__content {
  background-color: var(--body-color);
  border: 2px solid var(--ctp-surface0);
  border-radius: 1rem;
  box-shadow: 0 20px 60px rgba(24, 24, 37, 0.3);
  width: 90%;
  max-width: 1200px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  transform: scale(0.8) translateY(50px);
  transition: transform 0.4s ease;
}

.cv-header {
  background: linear-gradient(135deg, var(--ctp-mauve), var(--ctp-lavender));
  color: var(--ctp-base);
  padding: 2rem;
  position: relative;
  border-radius: 1rem 1rem 0 0;
}

.cv-header__name {
  font-size: var(--h1-font-size);
  font-weight: var(--font-semi-bold);
  margin-bottom: 0.5rem;
  color: #333333;
  text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.cv-header__title {
  font-size: var(--h3-font-size);
  font-weight: var(--font-medium);
  margin-bottom: 1rem;
  color: rgba(51, 51, 51, 0.7);
}

.cv-header__contact {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  font-size: var(--small-font-size);
}

.cv-header__contact span {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background-color: rgba(255, 255, 255, 0.1);
  padding: 0.5rem 0.75rem;
  border-radius: 0.5rem;
  backdrop-filter: blur(4px);
  color: rgba(51, 51, 51, 0.7);
}

.cv-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  padding: 2rem;
  align-items: start;
}

.cv-section {
  margin-bottom: 2rem;
}

.cv-section__title {
  color: var(--ctp-mauve);
  font-size: var(--h2-font-size);
  font-weight: var(--font-semi-bold);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--ctp-surface0);
  position: relative;
}

.cv-section__title::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, var(--ctp-mauve), var(--ctp-lavender));
}

.cv-section__text {
  color: var(--ctp-text);
  font-size: var(--normal-font-size);
  line-height: 1.7;
  text-align: justify;
}

/* Original experience item styles - now handled by collapsible-card */
.cv-experience__item:not(.collapsible-card) {
  margin-bottom: 2.5rem;
  padding: 1.5rem 0 1.5rem 1.5rem;
  background: none;
  border: none;
  border-left: 3px solid var(--ctp-mauve);
  transition: all 0.3s ease;
  position: relative;
}

.cv-experience__item:not(.collapsible-card):not(:last-child)::after {
  content: '';
  position: absolute;
  bottom: -0.75rem;
  left: 0;
  width: 30%;
  height: 1px;
  background: linear-gradient(90deg, var(--ctp-surface1), transparent);
}

.cv-experience__item:not(.collapsible-card):hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(136, 57, 239, 0.15);
  border-left-color: var(--ctp-lavender);
}

/* Collapsible card styling */
.collapsible-card {
  border: 1px solid var(--ctp-surface1);
  border-radius: 8px;
  margin-bottom: 1rem;
  background: var(--ctp-mantle);
  overflow: hidden;
  transition: all 0.3s ease;
}

.collapsible-card:hover {
  border-color: var(--ctp-surface2);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.collapsible-card__header {
  display: flex;
  align-items: center;
  padding: 1rem;
  cursor: pointer;
  background: var(--ctp-base);
  border-bottom: 1px solid var(--ctp-surface1);
  user-select: none;
  transition: all 0.3s ease;
}

.collapsible-card__header:hover {
  background: var(--ctp-surface0);
}

.collapsible-card__icon {
  color: var(--ctp-mauve);
  font-size: 1.2rem;
  margin-right: 0.75rem;
  flex-shrink: 0;
}

.collapsible-card__header h4 {
  margin: 0;
  flex: 1;
  color: var(--ctp-text);
  font-size: var(--small-font-size);
  font-weight: var(--font-semi-bold);
}

.collapsible-card__arrow {
  color: var(--ctp-subtext1);
  font-size: 1.1rem;
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.collapsible-card.expanded .collapsible-card__arrow {
  transform: rotate(180deg);
}

.collapsible-card__content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.collapsible-card.expanded .collapsible-card__content {
  max-height: 500px;
}

.collapsible-card__content .cv-education__school,
.collapsible-card__content .cv-education__date {
  display: block;
  padding: 0 1rem;
}

.collapsible-card__content .cv-education__school {
  color: var(--ctp-subtext1);
  font-size: var(--smaller-font-size);
  font-weight: var(--font-medium);
  padding-top: 0.5rem;
}

.collapsible-card__content .cv-education__date {
  color: var(--ctp-subtext0);
  font-size: var(--smaller-font-size);
  margin-bottom: 0.5rem;
}

.collapsible-card__content .cv-education__details {
  padding: 0 1rem 1rem;
  color: var(--ctp-text);
  font-size: var(--smaller-font-size);
  line-height: 1.4;
}

.collapsible-card__content .cv-projects__details {
  padding: 0 1rem 1rem;
  color: var(--ctp-text);
  font-size: var(--smaller-font-size);
  line-height: 1.4;
}

.collapsible-card__content .cv-experience__date {
  display: block;
  padding: 0.5rem 1rem 0;
  color: var(--ctp-subtext0);
  font-size: var(--smaller-font-size);
  font-weight: var(--font-medium);
}

.collapsible-card__content .cv-experience__list {
  padding: 0.5rem 1rem 1rem;
  margin: 0;
  list-style: none;
}

.collapsible-card__content .cv-experience__list li {
  color: var(--ctp-text);
  font-size: var(--smaller-font-size);
  line-height: 1.4;
  margin-bottom: 0.3rem;
  padding-left: 1rem;
  position: relative;
}

.collapsible-card__content .cv-experience__list li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--ctp-mauve);
  font-weight: bold;
}

/* Experience card color variations */
.experience-card--tech {
  border-left: 3px solid var(--ctp-blue);
}

.experience-card--tech .collapsible-card__icon {
  color: var(--ctp-blue);
}

.experience-card--tech .collapsible-card__header {
  background: linear-gradient(135deg, var(--ctp-base) 0%, rgba(137, 180, 250, 0.03) 100%);
}

.experience-card--marketing {
  border-left: 3px solid var(--ctp-pink);
}

.experience-card--marketing .collapsible-card__icon {
  color: var(--ctp-pink);
}

.experience-card--marketing .collapsible-card__header {
  background: linear-gradient(135deg, var(--ctp-base) 0%, rgba(245, 194, 231, 0.03) 100%);
}

.experience-card--engineering {
  border-left: 3px solid var(--ctp-green);
}

.experience-card--engineering .collapsible-card__icon {
  color: var(--ctp-green);
}

.experience-card--engineering .collapsible-card__header {
  background: linear-gradient(135deg, var(--ctp-base) 0%, rgba(166, 227, 161, 0.03) 100%);
}

.cv-experience__title {
  color: var(--ctp-text);
  font-size: var(--normal-font-size);
  font-weight: var(--font-semi-bold);
  margin-bottom: 0.6rem;
  line-height: 1.4;
}

.cv-experience__date {
  color: var(--ctp-mauve);
  font-size: var(--small-font-size);
  font-weight: var(--font-medium);
  margin-bottom: 1rem;
  display: block;
}

.cv-experience__list {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.cv-experience__list li {
  color: var(--ctp-subtext1);
  font-size: var(--small-font-size);
  line-height: 1.6;
  margin-bottom: 0.8rem;
  position: relative;
  padding-left: 1.5rem;
}

.cv-experience__list li::before {
  content: "▶";
  color: var(--ctp-mauve);
  position: absolute;
  left: 0;
  top: 0;
  font-size: 0.8rem;
}

.cv-education__item {
  margin-bottom: 0.75rem;
  padding: 0.5rem 0;
  background: none;
  border-bottom: 1px solid var(--ctp-surface1);
  transition: all 0.3s ease;
  border: 1px solid transparent;
}

.cv-education__item:hover {
  transform: translateX(5px);
  border-color: var(--ctp-mauve);
  box-shadow: 0 4px 15px rgba(136, 57, 239, 0.1);
}

.cv-education__title {
  color: var(--ctp-text);
  font-size: var(--normal-font-size);
  font-weight: var(--font-semi-bold);
  margin-bottom: 0.5rem;
}

.cv-education__school {
  color: var(--ctp-subtext1);
  font-size: var(--small-font-size);
  display: block;
  margin-bottom: 0.25rem;
}

.cv-education__date {
  color: var(--ctp-mauve);
  font-size: var(--small-font-size);
  font-weight: var(--font-medium);
  background-color: var(--ctp-mantle);
  padding: 0.2rem 0.5rem;
  border-radius: 0.5rem;
  display: inline-block;
}

/* Ultra Compact Skills Layout - Fixed 2x3 grid */
.cv-skills--compact {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.3rem 1rem;
  padding: 0;
  max-width: 100%;
}

.cv-skill {
  position: relative;
  padding: 0;
  background: none;
  border: none;
  transition: all 0.3s ease;
  margin-bottom: 0.4rem;
}

.cv-skill__name {
  font-size: var(--smaller-font-size);
  font-weight: var(--font-medium);
  color: var(--ctp-text);
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.15rem;
  line-height: 1.2;
}

.cv-skill__level {
  font-size: 0.7rem;
  font-weight: var(--font-semi-bold);
  color: var(--ctp-subtext0);
  margin-left: 0.3rem;
}

.cv-skill__bar {
  width: 100%;
  height: 4px;
  background-color: var(--ctp-surface1);
  border-radius: 2px;
  margin-top: 0.2rem;
  overflow: hidden;
  position: relative;
}

.cv-skill__progress {
  height: 100%;
  background: var(--ctp-mauve);
  border-radius: 4px;
  width: 0;
  transition: width 1.5s cubic-bezier(0.2, 0.8, 0.3, 1);
  position: relative;
  box-shadow: 0 0 10px rgba(136, 57, 239, 0.4);
  overflow: hidden;
}

.cv-skill__progress::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent);
  animation: shimmer 2s ease-in-out infinite;
}

/* Colores específicos para barras de CV usando paleta Catppuccin */
.cv-skill:nth-child(1) .cv-skill__progress { background: var(--ctp-green); }
.cv-skill:nth-child(2) .cv-skill__progress { background: var(--ctp-peach); }
.cv-skill:nth-child(3) .cv-skill__progress { background: var(--ctp-sky); }
.cv-skill:nth-child(4) .cv-skill__progress { background: var(--ctp-pink); }
.cv-skill:nth-child(5) .cv-skill__progress { background: var(--ctp-blue); }
.cv-skill:nth-child(6) .cv-skill__progress { background: var(--ctp-red); }
.cv-skill:nth-child(7) .cv-skill__progress { background: var(--ctp-yellow); }
.cv-skill:nth-child(8) .cv-skill__progress { background: var(--ctp-maroon); }
.cv-skill:nth-child(9) .cv-skill__progress { background: var(--ctp-lavender); }
.cv-skill:nth-child(10) .cv-skill__progress { background: var(--ctp-flamingo); }
.cv-skill:nth-child(11) .cv-skill__progress { background: var(--ctp-rosewater); }
.cv-skill:nth-child(12) .cv-skill__progress { background: var(--ctp-sapphire); }
.cv-skill:nth-child(13) .cv-skill__progress { background: var(--ctp-mauve); }
.cv-skill:nth-child(14) .cv-skill__progress { background: var(--ctp-teal); }
.cv-skill:nth-child(15) .cv-skill__progress { background: var(--ctp-green); }
.cv-skill:nth-child(16) .cv-skill__progress { background: var(--ctp-peach); }

.cv-skill__progress::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  animation: shimmer 2s infinite;
}

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

.cv-skill__progress[data-level="100"] { width: 100%; }
.cv-skill__progress[data-level="95"] { width: 95%; }
.cv-skill__progress[data-level="90"] { width: 90%; }
.cv-skill__progress[data-level="85"] { width: 85%; }
.cv-skill__progress[data-level="80"] { width: 80%; }
.cv-skill__progress[data-level="75"] { width: 75%; }
.cv-skill__progress[data-level="70"] { width: 70%; }

.cv-languages--compact {
  display: grid;
  gap: 0.75rem;
  padding: 0;
}

.cv-language {
  position: relative;
  padding: 0;
  background: none;
  border: none;
  transition: all 0.3s ease;
  margin-bottom: 0.5rem;
}

.cv-language__name {
  font-size: var(--smaller-font-size);
  font-weight: var(--font-medium);
  color: var(--ctp-text);
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.15rem;
  line-height: 1.2;
}

.cv-language__level {
  font-size: 0.7rem;
  font-weight: var(--font-semi-bold);
  color: var(--ctp-subtext0);
  margin-left: 0.3rem;
}

.cv-language__bar {
  width: 100%;
  height: 4px;
  background-color: var(--ctp-surface1);
  border-radius: 2px;
  margin-top: 0.2rem;
  overflow: hidden;
  position: relative;
}

.cv-language__progress {
  height: 100%;
  background: var(--ctp-teal);
  border-radius: 2px;
  width: 0;
  transition: width 1.8s cubic-bezier(0.2, 0.8, 0.3, 1);
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 8px rgba(116, 199, 236, 0.4);
}

.cv-language__progress::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
  animation: shimmer 2.5s ease-in-out infinite;
}

/* Animación de barras de idiomas cuando se expande la sección */
.cv-section.expanded .cv-language__progress[data-level="100"] { width: 100%; }
.cv-section.expanded .cv-language__progress[data-level="85"] { width: 85%; }

.cv-projects {
  list-style: none;
  padding-left: 0;
}

.cv-projects li {
  color: var(--ctp-subtext1);
  font-size: var(--normal-font-size);
  line-height: 1.6;
  margin-bottom: 1rem;
  padding: 1.25rem;
  background: linear-gradient(135deg, var(--ctp-surface0), var(--ctp-mantle));
  border-radius: 0.75rem;
  position: relative;
  padding-left: 3rem;
  transition: all 0.3s ease;
  border: 1px solid transparent;
}

.cv-projects li:hover {
  transform: translateX(5px);
  border-color: var(--ctp-mauve);
  box-shadow: 0 4px 15px rgba(136, 57, 239, 0.1);
}

.cv-projects li::before {
  content: "🚀";
  position: absolute;
  left: 1rem;
  top: 1.25rem;
  font-size: 1.2rem;
}

/* Animación de entrada para las barras de skills cuando se expande la sección */
.cv-section.expanded .cv-skill__progress[data-level="100"] { width: 100%; }
.cv-section.expanded .cv-skill__progress[data-level="95"] { width: 95%; }
.cv-section.expanded .cv-skill__progress[data-level="90"] { width: 90%; }
.cv-section.expanded .cv-skill__progress[data-level="85"] { width: 85%; }
.cv-section.expanded .cv-skill__progress[data-level="80"] { width: 80%; }
.cv-section.expanded .cv-skill__progress[data-level="75"] { width: 75%; }
.cv-section.expanded .cv-skill__progress[data-level="70"] { width: 70%; }

/* Agregar efecto shimmer a las barras cuando se llenan */
.cv-section.expanded .cv-skill__progress::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  animation: shimmer 2s ease-in-out 0.5s;
}

@keyframes shimmer {
  0% { left: -100%; }
  100% { left: 100%; }
}

@keyframes fillBar {
  0% { width: 0; }
}

/* Custom Scrollbar para el modal del CV */
.cv-modal__content::-webkit-scrollbar {
  width: 8px;
}

.cv-modal__content::-webkit-scrollbar-track {
  background: var(--ctp-surface0);
  border-radius: 4px;
}

.cv-modal__content::-webkit-scrollbar-thumb {
  background: linear-gradient(var(--ctp-mauve), var(--ctp-lavender));
  border-radius: 4px;
}

.cv-modal__content::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(var(--ctp-lavender), var(--ctp-mauve));
}

/* Collapsible CV Sections */
.cv-section__header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
  padding: 0.75rem 0;
  border-radius: 0.5rem;
  transition: all 0.3s ease;
  user-select: none;
}

.cv-section__header:hover {
  background-color: var(--ctp-surface0);
  transform: translateY(-2px);
  cursor: pointer;
  border-radius: 0.5rem;
}

.cv-section__header:active {
  transform: translateY(0px) scale(0.98);
  transition: transform 0.1s ease;
}

.cv-section__icon {
  font-size: 1.25rem;
  color: var(--ctp-mauve);
  transition: color 0.3s ease, transform 0.3s ease;
}

.cv-section.expanded .cv-section__icon {
  transform: scale(1.1);
  color: var(--ctp-lavender);
}

.cv-section__title {
  flex: 1;
  margin: 0;
  position: relative;
  color: var(--ctp-mauve);
  font-size: var(--h2-font-size);
  font-weight: var(--font-semi-bold);
}

.cv-section__title::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 30px;
  height: 2px;
  background: linear-gradient(90deg, var(--ctp-mauve), var(--ctp-lavender));
  border-radius: 1px;
  transition: width 0.3s ease;
}

.cv-section__header:hover .cv-section__title::after {
  width: 50px;
}

.cv-section__arrow {
  font-size: 1.2rem;
  color: var(--ctp-subtext0);
  transition: transform 0.3s ease, color 0.3s ease;
  transform: rotate(-90deg);
}

.cv-section.expanded .cv-section__arrow {
  transform: rotate(0deg);
  color: var(--ctp-mauve);
}

.cv-section__content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s ease, padding-top 0.3s ease;
  opacity: 0;
  padding-top: 0;
}

.cv-section.expanded .cv-section__content {
  max-height: 1000px;
  opacity: 1;
  padding-top: 1rem;
}

/* Icon colors for different sections */
.cv-section:nth-child(1) .cv-section__icon { color: var(--ctp-blue); }
.cv-section:nth-child(2) .cv-section__icon { color: var(--ctp-green); }
.cv-section:nth-child(3) .cv-section__icon { color: var(--ctp-yellow); }
.cv-section:nth-child(4) .cv-section__icon { color: var(--ctp-red); }
.cv-section:nth-child(5) .cv-section__icon { color: var(--ctp-teal); }
.cv-section:nth-child(6) .cv-section__icon { color: var(--ctp-pink); }

/* Default collapsed state for sections */
.cv-section {
  margin-bottom: 1rem;
  background-color: var(--ctp-surface0);
  border-radius: 0.75rem;
  padding: 1rem;
  transition: all 0.3s ease;
  border: 1px solid transparent;
}

.cv-section:hover {
  background-color: var(--ctp-surface1);
  box-shadow: 0 6px 20px rgba(136, 57, 239, 0.15);
  border-color: var(--ctp-surface2);
  transform: translateY(-2px);
}

.cv-section.expanded {
  background-color: var(--ctp-surface1);
  border-color: var(--ctp-mauve);
  box-shadow: 0 8px 25px rgba(136, 57, 239, 0.2);
}

/* Responsive Design */
@media screen and (max-width: 768px) {
  .about__buttons {
    flex-direction: column;
    width: 100%;
    gap: 0.75rem;
  }
  
  .cv-modal__content {
    width: 95%;
    max-height: 95vh;
  }
  
  .cv-content {
    grid-template-columns: 1fr;
    gap: 1.25rem;
    padding: 1.5rem;
  }
  
  .cv-skills--compact {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }
  
  .cv-skill {
    margin-bottom: 0.3rem;
  }
  
  .cv-header {
    padding: 1.5rem;
  }
  
  .cv-header__contact {
    flex-direction: column;
    gap: 0.75rem;
  }
  
  .cv-header__contact span {
    justify-content: center;
  }
  
  .cv-modal__close {
    top: 0.75rem;
    right: 0.75rem;
    width: 2.5rem;
    height: 2.5rem;
    font-size: 1.5rem;
  }

  .cv-experience__item {
    padding: 1rem;
  }
}

@media screen and (max-width: 576px) {
  .about__buttons {
    gap: 0.5rem;
  }
  
  .cv-modal__content {
    width: 98%;
    border-radius: 0.75rem;
  }
  
  .cv-content {
    padding: 1rem;
    gap: 1rem;
  }
  
  .cv-header {
    padding: 1rem;
  }
  
  .cv-header__name {
    font-size: var(--h2-font-size);
  }

  .cv-header__title {
    font-size: var(--normal-font-size);
  }

  .cv-header__contact {
    gap: 0.5rem;
  }

  .cv-header__contact span {
    font-size: var(--smaller-font-size);
    padding: 0.4rem 0.6rem;
  }
}

/*==================== SERVICIOS MEJORADOS ====================*/
.services__container {
  gap: 2rem;
  row-gap: 2.5rem;
  grid-template-columns: repeat(2, 1fr);
  max-width: 900px;
  margin: 0 auto;
}

.services__content {
  position: relative;
  background-color: var(--ctp-mantle);
  padding: 2rem 1.5rem;
  border-radius: 1rem;
  border-left: 4px solid var(--ctp-mauve);
  transition: all 0.4s ease;
  overflow: visible;
}

.services__content::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--ctp-mauve), transparent);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.services__content:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 12px 32px rgba(136, 57, 239, 0.15);
  border-left-color: var(--ctp-lavender);
}

.services__content:hover::before {
  opacity: 1;
}

/* Animaciones escalonadas para los servicios */
.services__content:nth-child(1) {
  animation: slideInFromLeft 0.8s ease-out;
}

.services__content:nth-child(2) {
  animation: slideInFromRight 0.8s ease-out 0.2s both;
}

.services__content:nth-child(3) {
  animation: slideInFromLeft 0.8s ease-out 0.4s both;
}

.services__content:nth-child(4) {
  animation: slideInFromRight 0.8s ease-out 0.6s both;
}

@keyframes slideInFromLeft {
  0% {
    transform: translateX(-100px) translateY(20px);
    opacity: 0;
  }
  100% {
    transform: translateX(0) translateY(0);
    opacity: 1;
  }
}

@keyframes slideInFromRight {
  0% {
    transform: translateX(100px) translateY(20px);
    opacity: 0;
  }
  100% {
    transform: translateX(0) translateY(0);
    opacity: 1;
  }
}

.services__header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.services__icon {
  font-size: 2.5rem;
  color: var(--ctp-mauve);
  transition: all 0.3s ease;
}

.services__content:hover .services__icon {
  color: var(--ctp-lavender);
  transform: scale(1.1) rotate(5deg);
}

.services__title {
  color: var(--ctp-text);
  font-size: var(--h3-font-size);
  font-weight: var(--font-semi-bold);
  margin-bottom: 0.25rem;
  line-height: 1.2;
}

.services__subtitle {
  color: var(--ctp-subtext1);
  font-size: var(--small-font-size);
  font-weight: var(--font-medium);
}

.services__description {
  color: var(--ctp-subtext1);
  font-size: var(--normal-font-size);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.services__button-container {
  display: flex;
  justify-content: flex-end;
  margin-top: auto;
}

.services__button {
  background: linear-gradient(135deg, var(--ctp-mauve), var(--ctp-lavender)) !important;
  color: var(--ctp-base) !important;
  border: none !important;
  padding: 0.75rem 1.5rem;
  border-radius: 0.75rem;
  font-weight: var(--font-semi-bold);
  transition: all 0.3s ease;
  cursor: pointer;
  gap: 0.5rem;
  display: flex !important;
  align-items: center;
  font-family: var(--body-font) !important;
  font-size: var(--small-font-size) !important;
  outline: none;
}

.services__button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(136, 57, 239, 0.3);
  background: linear-gradient(135deg, var(--ctp-lavender), var(--ctp-mauve));
}

.services__button .button__icon {
  font-size: 1.2rem;
  transition: transform 0.3s ease;
}

.services__button:hover .button__icon {
  transform: translateX(3px);
}

/* Colores específicos para cada servicio */
.services__content:nth-child(1) {
  border-left-color: var(--ctp-green);
}

.services__content:nth-child(1) .services__icon {
  color: var(--ctp-green);
}

.services__content:nth-child(1):hover {
  border-left-color: var(--ctp-teal);
}

.services__content:nth-child(1):hover .services__icon {
  color: var(--ctp-teal);
}

.services__content:nth-child(2) {
  border-left-color: var(--ctp-blue);
}

.services__content:nth-child(2) .services__icon {
  color: var(--ctp-blue);
}

.services__content:nth-child(2):hover {
  border-left-color: var(--ctp-sapphire);
}

.services__content:nth-child(2):hover .services__icon {
  color: var(--ctp-sapphire);
}

.services__content:nth-child(3) {
  border-left-color: var(--ctp-peach);
}

.services__content:nth-child(3) .services__icon {
  color: var(--ctp-peach);
}

.services__content:nth-child(3):hover {
  border-left-color: var(--ctp-yellow);
}

.services__content:nth-child(3):hover .services__icon {
  color: var(--ctp-yellow);
}

.services__content:nth-child(4) {
  border-left-color: var(--ctp-pink);
}

.services__content:nth-child(4) .services__icon {
  color: var(--ctp-pink);
}

.services__content:nth-child(4):hover {
  border-left-color: var(--ctp-flamingo);
}

.services__content:nth-child(4):hover .services__icon {
  color: var(--ctp-flamingo);
}

/* Responsive para servicios */
/* Mejorar centrado en desktop */
@media screen and (min-width: 769px) {
  .services__content,
  .education__content {
    text-align: center;
    align-items: center;
    justify-content: center;
  }
  
  .services__header,
  .education__header {
    justify-content: center;
    align-items: center;
    text-align: center;
  }
  
  .services__description,
  .education__description {
    text-align: center;
    margin: var(--mb-1) auto;
    max-width: 400px;
  }
}

@media screen and (max-width: 900px) {
  .services__container {
    max-width: 700px;
    gap: 1.5rem;
    row-gap: 2rem;
  }
}

@media screen and (max-width: 768px) {
  .services__container {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    max-width: 500px;
  }
  
  .services__content {
    padding: 1.5rem 1rem;
    text-align: center;
    align-items: center;
    justify-content: center;
  }
  
  .services__header {
    flex-direction: column;
    text-align: center;
    gap: 0.75rem;
    align-items: center;
    justify-content: center;
  }
  
  .services__description {
    text-align: center;
    margin: var(--mb-1) auto;
  }
  
  .services__icon {
    font-size: 2rem;
  }
  
  .services__button-container {
    justify-content: center;
  }
}

@media screen and (max-width: 576px) {
  .services__content {
    padding: 1rem;
  }
  
  .services__title {
    font-size: var(--normal-font-size);
  }
  
  .services__icon {
    font-size: 1.8rem;
  }
}

/*==================== SECCIÓN CTA MEJORADA - ADAPTIVE THEME ====================*/
.project__bg {
  background-color: var(--ctp-base);
  padding: 4rem 0;
  position: relative;
  overflow: hidden;
}

.project__container {
  background: linear-gradient(135deg, var(--ctp-pink), var(--ctp-mauve), var(--ctp-blue));
  border-radius: 1.5rem;
  padding: 3rem;
  box-shadow: 0 25px 50px var(--ctp-crust);
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 2rem;
  max-width: 1000px;
  height: 300px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
  overflow: hidden;
  border: 1px solid var(--ctp-surface1);
}

.project__data {
  text-align: left;
  max-width: 500px;
}

.project__title {
  font-size: var(--big-font-size);
  color: var(--ctp-base);
  font-weight: var(--font-semi-bold);
  margin-bottom: 1rem;
  line-height: 1.2;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.project__description {
  color: var(--ctp-base);
  font-size: var(--normal-font-size);
  line-height: 1.7;
  margin-bottom: 2rem;
  opacity: 0.95;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.button--white {
<<<<<<< HEAD
  background-color: rgba(255, 255, 255, 0.95) !important;
  color: #333333 !important;
  border: 2px solid rgba(255, 255, 255, 0.95) !important;
  font-weight: var(--font-semi-bold);
  padding: 1rem 2rem;
  border-radius: 0.75rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
=======
  background-color: #ffffff !important;
  color: #333333 !important;
  border: 2px solid #ffffff !important;
  font-weight: var(--font-semi-bold) !important;
  padding: 1rem 2rem !important;
  border-radius: 0.75rem !important;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2) !important;
>>>>>>> 669fcb3 (Refactor testimonial section with custom carousel implementation and update testimonials content)
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.5rem !important;
  text-decoration: none !important;
  transition: all 0.3s ease !important;
  opacity: 1 !important;
  visibility: visible !important;
<<<<<<< HEAD
  position: relative;
  z-index: 10;
  backdrop-filter: blur(10px);
}

[data-theme="dark"] .button--white {
  background-color: rgba(0, 0, 0, 0.85) !important;
  color: #ffffff !important;
  border: 2px solid rgba(0, 0, 0, 0.85) !important;
}

.button--white:hover {
  background-color: rgba(255, 255, 255, 1) !important;
  color: #333333 !important;
  border-color: rgba(255, 255, 255, 1) !important;
=======
  position: relative !important;
  z-index: 1000 !important;
  font-size: var(--normal-font-size) !important;
}

.button--white:hover {
  background-color: #f8f8f8;
  color: #333333;
  border-color: #f8f8f8;
>>>>>>> 669fcb3 (Refactor testimonial section with custom carousel implementation and update testimonials content)
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.35);
}

[data-theme="dark"] .button--white:hover {
  background-color: rgba(0, 0, 0, 0.95) !important;
  color: #ffffff !important;
  border-color: rgba(0, 0, 0, 0.95) !important;
}

.button--white .button__icon {
  font-size: 1.3rem;
  transition: transform 0.3s ease;
}

.button--white:hover .button__icon {
  transform: rotate(15deg) scale(1.1);
}

/* Asegurar visibilidad del botón CTA en todas las pantallas */
.button--white {
  display: inline-flex !important;
  visibility: visible !important;
  opacity: 1 !important;
  position: relative !important;
  z-index: 100 !important;
}

.project__container {
  display: grid !important;
  align-items: center !important;
}

/* Desktop específico */
@media screen and (min-width: 768px) {
  .project__container {
    grid-template-columns: 1fr auto !important;
  }
}

.project__image-container {
  position: relative;
  width: 300px;
  height: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.project__image-carousel {
  position: relative;
  width: 250px;
  height: 280px;
  z-index: 2;
}

.project__img {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  opacity: 0;
  transition: all 0.8s ease-in-out;
  transform: translateY(20px);
  border-radius: 0;
  box-shadow: none;
  background: none;
}

.project__img.active {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive para CTA */
@media screen and (max-width: 968px) {
  .project__container {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
    padding: 2rem;
    height: auto;
    min-height: 350px;
  }
  
  .project__data {
    text-align: center;
    max-width: none;
    order: 1;
  }
  
  .project__image-container {
    width: 100%;
    height: 200px;
    order: 2;
    margin: 0 auto;
  }
  
  .project__image-carousel {
    width: 200px;
    height: 200px;
  }
}

@media screen and (max-width: 768px) {
  .project__bg {
    padding: 3rem 0;
  }
  
  .project__container {
    padding: 2rem 1rem;
    min-height: 300px;
  }
  
  .project__image-container {
    height: 180px;
  }
  
  .project__image-carousel {
    width: 180px;
    height: 180px;
  }
  
  .project__title {
    font-size: var(--h1-font-size);
  }
}

@media screen and (max-width: 576px) {
  .project__container {
    padding: 1.5rem;
    min-height: 280px;
  }
  
  .project__image-container {
    height: 160px;
  }
  
  .project__image-carousel {
    width: 160px;
    height: 160px;
  }
  
  .project__title {
    font-size: var(--h2-font-size);
  }
  
  .button--white {
    padding: 0.75rem 1.5rem;
  }
}
.about__description-container {
  position: relative;
  max-height: 120px; /* Ajusta esta altura según sea necesario */
  overflow: hidden;
  transition: max-height 0.5s ease-in-out;
}

.about__description-container::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 50px;
  background: linear-gradient(to bottom, transparent, var(--body-color));
  pointer-events: none;
}

.about__description-container.expanded {
  max-height: 1000px; /* Un valor suficientemente grande para mostrar todo el contenido */
}

.about__description-container.expanded::after {
  display: none;
}

.about__read-more {
  color: var(--ctp-mauve);
  font-size: var(--small-font-size);
  font-weight: var(--font-medium);
  cursor: pointer;
  text-decoration: underline;
  text-decoration-color: transparent;
  transition: all 0.3s ease;
  display: inline-block;
  margin-top: 0.5rem;
  text-align: left;
}

.about__read-more:hover {
  color: var(--ctp-lavender);
  text-decoration-color: var(--ctp-lavender);
  transform: translateX(3px);
}
}