/* Variables */
:root {
  --color-primary: #1e293b;
  --color-secondary: #0ea5e9;
  --color-accent: #10b981;
  --color-background: #ffffff;
  --color-text: #333333;
  --color-light-gray: #f8f9fa;
  --color-medium-gray: #e9ecef;
  --color-dark-gray: #6c757d;
  --color-gradient-start: #0ea5e9;
  --color-gradient-end: #10b981;
  --color-title: #ffffff;
  --font-main: 'Poppins', sans-serif;
  --font-heading: 'Montserrat', sans-serif;
  --border-radius: 10px;
  --transition-default: 0.3s ease;
  --box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  --box-shadow-hover: 0 15px 35px rgba(0, 0, 0, 0.15);
}

/* Fuentes */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700&family=Poppins:wght@300;400;500;600&display=swap');

/* Base */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  margin: 0;
  padding: 0;
  background: linear-gradient(135deg, #0f172a, #164e63);
  color: var(--color-text);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

body::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('data:image/svg+xml,%3Csvg width="100" height="100" viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg"%3E%3Cpath d="M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z" fill="rgba(255,255,255,.03)" fill-rule="evenodd"/%3E%3C/svg%3E');
  opacity: 0.5;
  z-index: 0;
}

/* Contenedores */
.container {
  max-width: 1000px;
  margin: 60px auto;
  padding: 0;
  background-color: transparent;
  position: relative;
  z-index: 1;
}

/* Espaciado entre secciones */
.container {
  margin-top: 25px;
  margin-bottom: 25px;
  position: relative;
}

/* Ajuste específico para la sección de portafolio */
.container:nth-of-type(3) {
  margin-top: 15px;
}

header,
footer {
  color: #fff;
  padding: 40px 20px;
  text-align: center;
  position: relative;
}

header {
  transition: background var(--transition-default);
  padding-bottom: 20px;
  position: relative;
  overflow: hidden;
}

header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: 2px;
  background: linear-gradient(to right, transparent, var(--color-gradient-start), var(--color-gradient-end), transparent);
  z-index: 1;
}

.profile-img {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  margin: 0 auto 25px;
  display: block;
  border: 4px solid white;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
  transition: transform 0.5s ease, box-shadow 0.5s ease;
  position: relative;
  z-index: 2;
  object-fit: cover;
}

.profile-img:hover {
  transform: scale(1.05);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

h1,
h2,
h3 {
  font-family: var(--font-heading);
  text-align: center;
  color: var(--color-primary);
  position: relative;
  z-index: 2;
}

h1 {
  font-size: 2.8rem;
  font-weight: 700;
  margin-bottom: 15px;
  color: var(--color-title);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  letter-spacing: 1px;
  display: inline-block;
  position: relative;
}

h1::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: linear-gradient(to right, var(--color-gradient-start), var(--color-gradient-end));
  border-radius: 3px;
}

h2 {
  font-size: 1.3rem;
  font-weight: 500;
  color: white;
  margin-bottom: 20px;
  opacity: 0.9;
}

h3 {
  font-size: 1.8rem;
  margin-bottom: 25px;
  padding-bottom: 10px;
  position: relative;
}

h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: linear-gradient(to right, var(--color-gradient-start), var(--color-gradient-end));
  border-radius: 3px;
}

p {
  font-size: 16px;
  line-height: 1.8;
  margin-bottom: 20px;
  color: var(--color-text);
}

.section {
  animation: fadeIn 1s ease-in-out;
  padding: 10px;
  position: relative;
}

/* Secciones */

.section h3 {
  position: relative;
  display: inline-block;
  font-size: 2.2rem;
  font-weight: 700;
  color: white;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  background: linear-gradient(135deg, var(--color-gradient-start), var(--color-gradient-end));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-fill-color: transparent;
  margin-bottom: 30px;
}

.section h3::after {
  width: 100%;
  height: 4px;
  background: linear-gradient(to right, var(--color-gradient-start), var(--color-gradient-end));
  border-radius: 4px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.section ul {
  list-style-type: none;
  padding: 0;
}

.section ul li {
  margin-bottom: 10px;
}

.container:first-of-type .section {
  position: relative;
  padding: 20px 0;
}

.container:first-of-type .section::after {
  content: '';
  position: absolute;
  top: 100px;
  bottom: 20px;
  left: 50%;
  width: 2px;
  background: linear-gradient(to bottom, var(--color-gradient-start), var(--color-gradient-end));
  transform: translateX(-50%);
  z-index: 1;
  box-shadow: 0 0 15px rgba(14, 165, 233, 0.5);
}

.container:first-of-type .section h3 {
  position: relative;
  display: inline-block;
  margin-bottom: 50px;
  font-size: 2.5rem;
  font-weight: 700;
  color: white;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  background: linear-gradient(135deg, var(--color-gradient-start), var(--color-gradient-end));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-fill-color: transparent;
}

.container:first-of-type .section h3::after {
  width: 100%;
  height: 4px;
  background: linear-gradient(to right, var(--color-gradient-start), var(--color-gradient-end));
  border-radius: 4px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.container:first-of-type .section p {
  position: relative;
  width: 45%;
  margin-bottom: 40px;
  padding: 20px;
  background-color: rgba(255, 255, 255, 0.8);
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  z-index: 2;
}

.container:first-of-type .section p:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.container:first-of-type .section p:nth-of-type(odd) {
  margin-left: 0;
  margin-right: auto;
  text-align: right;
}

.container:first-of-type .section p:nth-of-type(even) {
  margin-left: auto;
  margin-right: 0;
}

.container:first-of-type .section p::before {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-gradient-start), var(--color-gradient-end));
  top: 50%;
  z-index: 2;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.7);
}

.container:first-of-type .section p:nth-of-type(odd)::before {
  right: -40px;
  transform: translateY(-50%);
}

.container:first-of-type .section p:nth-of-type(even)::before {
  left: -40px;
  transform: translateY(-50%);
}

.container:first-of-type .section p:first-of-type::before {
  background: linear-gradient(135deg, var(--color-gradient-start), var(--color-gradient-end));
}

.container:first-of-type .section p:nth-of-type(2)::before {
  background: linear-gradient(135deg, var(--color-gradient-end), #8b5cf6);
}

.container:first-of-type .section p:nth-of-type(3)::before {
  background: linear-gradient(135deg, #8b5cf6, var(--color-gradient-start));
}

.container:first-of-type .section p span {
  font-size: 2rem;
  display: inline-block;
  margin: 0 10px;
  vertical-align: middle;
  background-size: 200% 200%;
  animation: gradientShift 3s ease infinite;
}

.container:first-of-type .section p:nth-of-type(odd) span {
  float: left;
  margin-right: 15px;
  background: linear-gradient(135deg, var(--color-gradient-start), var(--color-gradient-end));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-fill-color: transparent;
}

.container:first-of-type .section p:nth-of-type(even) span {
  float: right;
  margin-left: 15px;
  background: linear-gradient(135deg, var(--color-gradient-end), #8b5cf6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-fill-color: transparent;
}

.container:first-of-type .section p:nth-of-type(3) span {
  background: linear-gradient(135deg, #8b5cf6, var(--color-gradient-start));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-fill-color: transparent;
}


@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

@media (max-width: 768px) {
  .container {
    margin: 10px auto;
    padding: 10px;
  }

  .container:first-of-type .section::after {
    left: 30px;
    transform: none;
    top: 170px;
    bottom: 20px;
  }

  .container:first-of-type .section h3 {
    margin-bottom: 100px;
  }

  .container:first-of-type .section p {
    width: 80%;
    margin-left: 60px !important;
    margin-right: 0 !important;
    text-align: left !important;
    clear: both;
    position: relative;
    z-index: 1;
  }

  .container:first-of-type .section p::before {
    left: -40px !important;
    right: auto !important;
  }

  .container:first-of-type .section p::after {
    left: -20px !important;
    right: auto !important;
    width: 20px;
    background: linear-gradient(to right, var(--color-gradient-start), transparent) !important;
  }

  .container:first-of-type .section p span {
    float: left !important;
    margin-right: 15px !important;
    margin-left: 0 !important;
  }

  .container:first-of-type .section {
    padding-top: 30px;
  }
}

.language-dropdown {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 10;
}

.custom-select {
  position: relative;
  width: 140px;
}

.select-selected {
  display: flex;
  align-items: center;
  padding: 10px 15px;
  border: none;
  border-radius: 30px;
  background-color: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  color: white;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.select-selected:hover {
  background-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

.select-items {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 99;
  background-color: rgba(255, 255, 255, 0.95);
  border-radius: 15px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  max-height: 200px;
  overflow-y: auto;
  margin-top: 10px;
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.select-items:not(.select-hide) {
  opacity: 1;
  transform: translateY(0);
}

.select-hide {
  display: none;
}

.select-item {
  display: flex;
  align-items: center;
  padding: 12px 15px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  color: var(--color-primary);
  font-weight: 500;
}

.select-item span {
  color: var(--color-primary);
  font-weight: 500;
}

.select-item:hover {
  background-color: var(--color-light-gray);
}

.select-item:first-child {
  border-radius: 15px 15px 0 0;
}

.select-item:last-child {
  border-radius: 0 0 15px 15px;
}

.flag-icon {
  width: 24px;
  height: 18px;
  margin-right: 10px;
  object-fit: contain;
  border-radius: 3px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Habilidades */
.skills-container {
  position: relative;
  margin: 30px 0;
}

.skills-category {
  margin-bottom: 25px;
  padding: 0;
  position: relative;
  overflow: visible;
}

.skills-category h4 {
  color: white;
  font-weight: 600;
  margin-bottom: 20px;
  font-size: 1.1rem;
  position: relative;
  padding: 8px 18px;
  background: linear-gradient(135deg, var(--color-gradient-start), var(--color-gradient-end));
  border-radius: 30px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
  display: inline-block;
  z-index: 1;
  letter-spacing: 0.5px;
  transform: translateX(20px);
}

.skills-category h4::before {
  display: none;
}

.skills-category ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
  position: relative;
  z-index: 1;
  padding: 0;
  margin: 0;
}

/* Hexágonos */
.skills-category ul li {
  list-style: none;
  position: relative;
  width: 100px;
  height: 115px;
  margin: 4px;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 12px 8px;
  text-align: center;
  font-weight: 500;
  font-size: 0.85rem;
  z-index: 1;
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  background: rgba(255, 255, 255, 0.8);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Efecto brillo */
.skills-category ul li::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: inherit;
  filter: blur(10px);
  opacity: 0;
  z-index: -1;
  transition: opacity 0.4s ease;
  transform: scale(0.9);
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
}

.skills-category ul li:hover::before {
  opacity: 0.7;
}

.skills-category ul li:hover {
  transform: translateY(-10px) scale(1.05);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
  z-index: 2;
}

/* Iconos */
.skills-category ul li img {
  width: 30px;
  height: 30px;
  margin-bottom: 8px;
  transition: all 0.4s ease;
  filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.1));
}

.skills-category ul li:hover img {
  transform: scale(1.2) rotate(10deg);
  filter: drop-shadow(0 5px 10px rgba(0, 0, 0, 0.2));
}

.skills-category::after {
  display: none;
}

.skills-category:last-child::after {
  display: none;
}

/* Responsive habilidades */
@media (max-width: 768px) {
  .skills-category ul {
    justify-content: center;
  }

  .skills-category ul li {
    width: 110px;
    height: 130px;
    font-size: 0.8rem;
  }

  .skills-category ul li img {
    width: 30px;
    height: 30px;
    margin-bottom: 8px;
  }

  .skills-category h4 {
    font-size: 1.1rem;
    padding: 8px 16px;
    transform: translateX(15px);
  }
}

/* Portafolio */
.portfolio-filter {
  display: flex;
  justify-content: center;
  margin-bottom: 30px;
  gap: 15px;
  position: relative;
  z-index: 5;
}

.filter-btn {
  background-color: rgba(255, 255, 255, 0.15);
  border: none;
  border-radius: 30px;
  padding: 10px 25px;
  font-family: var(--font-main);
  font-weight: 500;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  color: white;
  position: relative;
  overflow: hidden;
  z-index: 1;
  backdrop-filter: blur(5px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.filter-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, var(--color-gradient-start), var(--color-gradient-end));
  z-index: -1;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.filter-btn:hover,
.filter-btn.active {
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.filter-btn:hover::before,
.filter-btn.active::before {
  opacity: 1;
}

.filter-btn.active {
  font-weight: 600;
  letter-spacing: 0.5px;
}

/* Carrusel */
.portfolio-carousel-container {
  position: relative;
  margin: 0 -20px;
  padding: 0 20px;
}

/* Flechas */
.portfolio-nav-arrows {
  position: absolute;
  top: 50%;
  width: 100%;
  left: 0;
  transform: translateY(-50%);
  display: flex;
  justify-content: space-between;
  pointer-events: none;
  z-index: 10;
  padding: 0 10px;
}

.portfolio-nav-arrow {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  pointer-events: auto;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.1);
  opacity: 0.7;
}

.portfolio-nav-arrow:hover {
  background: linear-gradient(to right, var(--color-gradient-start), var(--color-gradient-end));
  transform: scale(1.1);
  opacity: 1;
}

.portfolio-nav-arrow img {
  width: 24px;
  height: 24px;
  fill: white;
}

.project-cards {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  gap: 30px;
  padding: 20px 10px 30px 10px;
  scrollbar-width: none;
  -ms-overflow-style: none;
  scroll-behavior: smooth;
  position: relative;
  -webkit-overflow-scrolling: touch;
}

/* Sin scrollbar */
.project-cards::-webkit-scrollbar {
  display: none;
}

.project-card {
  flex: 0 0 auto;
  width: 90%;
  max-width: 800px;
  scroll-snap-align: center;
  background-color: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  border-radius: var(--border-radius);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  overflow: hidden;
  transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  display: flex;
  flex-direction: row;
  border: 1px solid rgba(255, 255, 255, 0.2);
  margin-bottom: 10px;
  height: auto;
  min-height: 350px;
  transform-origin: center center;
}

.project-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
  border-color: rgba(255, 255, 255, 0.3);
}

.project-card img {
  width: 45%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.7s ease, filter 0.7s ease;
  filter: brightness(0.95);
}

.project-card:hover img {
  transform: scale(1.08);
  filter: brightness(1.05);
}

.project-card-content {
  padding: 35px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  width: 55%;
  justify-content: center;
  position: relative;
  z-index: 2;
}

.project-card-content h3 {
  margin-top: 0;
  margin-bottom: 20px;
  font-size: 1.6rem;
  color: white;
  text-align: left;
  position: relative;
  padding-bottom: 15px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.project-card-content h3::after {
  left: 0;
  transform: none;
  width: 50px;
  height: 3px;
  background: linear-gradient(to right, var(--color-gradient-start), var(--color-gradient-end));
  border-radius: 3px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.project-card-content p {
  margin-bottom: 25px;
  font-size: 1rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.9);
  max-height: 120px;
  overflow-y: auto;
  padding-right: 5px;
}

/* Estilo personalizado para el scrollbar */
.project-card-content p::-webkit-scrollbar {
  width: 4px;
}

.project-card-content p::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
}

.project-card-content p::-webkit-scrollbar-thumb {
  background: linear-gradient(to bottom, var(--color-gradient-start), var(--color-gradient-end));
  border-radius: 10px;
}

.project-card a {
  display: inline-block;
  text-decoration: none;
  color: white;
  font-weight: 600;
  text-align: center;
  padding: 12px 30px;
  background: linear-gradient(to right, var(--color-gradient-start), var(--color-gradient-end));
  border-radius: 30px;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  margin-top: auto;
  box-shadow: 0 8px 20px rgba(14, 165, 233, 0.3);
  position: relative;
  overflow: hidden;
  font-size: 1rem;
  align-self: flex-start;
  letter-spacing: 0.5px;
}

.project-card a.download-btn {
  background: linear-gradient(to right, #f59e0b, #d97706);
  box-shadow: 0 8px 20px rgba(245, 158, 11, 0.3);
}

.project-card a.download-btn::before {
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
}

.project-card.hide {
  display: none;
}

.project-card a::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: 0.7s;
}

.project-card a:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 25px rgba(14, 165, 233, 0.4);
}

.project-card a:hover::before {
  left: 100%;
}

/* Navegación */
.portfolio-nav {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 25px;
  position: relative;
  z-index: 5;
}

.portfolio-nav-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.2);
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.portfolio-nav-dot:hover {
  background-color: rgba(255, 255, 255, 0.4);
  transform: scale(1.1);
}

.portfolio-nav-dot.active {
  background: linear-gradient(to right, var(--color-gradient-start), var(--color-gradient-end));
  transform: scale(1.3);
  box-shadow: 0 3px 8px rgba(14, 165, 233, 0.4);
}

/* Animación tarjetas */
@keyframes cardAppear {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.project-card {
  animation: cardAppear 0.8s ease-out forwards;
}

/* Retraso animación */
.project-card:nth-child(1) {
  animation-delay: 0.1s;
}

.project-card:nth-child(2) {
  animation-delay: 0.2s;
}

.project-card:nth-child(3) {
  animation-delay: 0.3s;
}

.project-card:nth-child(4) {
  animation-delay: 0.4s;
}

.project-card:nth-child(5) {
  animation-delay: 0.5s;
}

/* Separador */
hr {
  border: none;
  height: 2px;
  background: linear-gradient(to right,
      transparent,
      var(--color-gradient-start),
      var(--color-gradient-end),
      transparent);
  width: 80%;
  margin: 30px auto;
  opacity: 0.7;
}

/* Redes sociales */
footer {
  padding-top: 40px;
  margin-top: 40px;
  position: relative;
}

footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: 2px;
  background: linear-gradient(to right, transparent, var(--color-gradient-start), var(--color-gradient-end), transparent);
  z-index: 1;
}

footer button {
  border: none;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.2);
  padding: 15px;
  margin: 15px;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  z-index: 2;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

footer button svg {
  width: 24px;
  height: 24px;
  fill: white;
  transition: all 0.3s ease;
}

footer button:hover {
  background-color: white;
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

footer button:hover svg {
  fill: var(--color-gradient-start);
}

/* Animaciones */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive */
@media (max-width: 768px) {
  .container {
    margin: 10px auto;
    padding: 10px;
  }

  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.1rem;
  }

  .project-card {
    flex-direction: column;
    height: auto;
  }

  .project-card img {
    width: 100%;
    height: 180px;
  }

  .project-card-content {
    width: 100%;
    padding: 20px;
  }

  .skills-category ul {
    justify-content: center;
  }

  .language-dropdown {
    top: 10px;
    right: 10px;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .project-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Scroll */
.scroll-reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.scroll-reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}
