/* Glow animation for tech icons during tutorial */
.tech-icon.tutorial-glow {
  box-shadow: 0 0 18px 6px #8B5CF6, 0 0 32px 12px #fff2;
  animation: tutorialGlow 1.2s infinite alternate;
}
@keyframes tutorialGlow {
  0% { box-shadow: 0 0 18px 6px #8B5CF6, 0 0 32px 12px #fff2; }
  100% { box-shadow: 0 0 32px 16px #8B5CF6, 0 0 48px 24px #fff4; }
}
#filtered-projects-card .client-project-card .project-video {
  display: flex;
  justify-content: center;
  align-items: center;
}
.filtered-columns-wrapper {
  display: flex;
  gap: 36px;
  margin: 16px 0 0 0;
  padding: 8px 12px 12px 12px;
  justify-content: center;
  align-items: flex-start;
}
.filtered-column {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  gap: 28px;
  align-items: center;
  justify-content: center;
}
#filtered-projects-card .client-project-card {
  width: 95%;
  min-width: 340px;
  max-width: 98%;
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
}
  .filtered-columns-wrapper {
    gap: 18px;
    padding: 4px 2px 8px 2px;
  }
  .filtered-column {
    gap: 18px;
  }
  #filtered-projects-card .client-project-card {
    max-width: 98vw;
  }

@media (max-width: 700px) {
  .filtered-columns-wrapper {
    flex-direction: column;
    gap: 0;
    padding: 0;
  }
  .filtered-column {
    gap: 18px;
    align-items: stretch;
  }
}
/* Importing Google Fonts for futuristic look */
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;500&family=Exo:wght@400;500&family=Rajdhani:wght@400;500&display=swap');

/* Botón de cambio de idioma arriba a la derecha */
#lang-toggle {
  position: absolute;
  top: 24px;
  right: 32px;
  padding: 10px 22px;
  border-radius: 8px;
  border: none;
  font-size: 1.05rem;
  letter-spacing: 1px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.18);
  cursor: pointer;
  z-index: 100;
  transition: background 0.3s, transform 0.2s, box-shadow 0.2s;
}
#lang-toggle:hover {
  background: linear-gradient(90deg, #ef4444 0%, #2563eb 100%);
  transform: scale(1.08);
  box-shadow: 0 4px 18px rgba(99,102,241,0.18);
}
/* Efecto hover para íconos sociales */
/* Two-column layout for filtered projects card */
.filtered-columns-wrapper {
  display: flex;
  gap: 24px;
  margin-top: 8px;
}
.filtered-column {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
@media (max-width: 700px) {
  .filtered-columns-wrapper {
    flex-direction: column;
    gap: 0;
  }
  .filtered-column {
    gap: 18px;
  }
}
a[title]:hover img,
a[title]:hover svg {
  transform: scale(1.2);
  transition: transform 0.2s cubic-bezier(.4,0,.2,1);
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.805);
}

.container {
  min-height: 100vh;
  background: linear-gradient(135deg, #0d2765 0%, #000000 30%, #0a2156 100%);
  padding: 1rem;
}

@media (min-width: 768px) {
  .container {
    padding: 2rem;
  }
}

.max-width {
  max-width: 1280px;
  margin: 0 auto;
}

.header {
  text-align: center;
  margin-bottom: 3rem;
  opacity: 0;
}

.main-title {
  font-size: 2.5rem;
  font-weight: bold;
  background: linear-gradient(to right, white, #e9d5ff, white);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 1rem;
}

@media (min-width: 768px) {
  .main-title {
    font-size: 3.75rem;
  }
}

.subtitle {
  color: #94a3b8;
  font-size: 1.125rem;
  max-width: 32rem;
  margin: 0 auto;
}

.grid {
  display: grid;
  gap: 2rem;
  align-items: start;
}

@media (min-width: 1024px) {
  .grid {
    grid-template-columns: 2fr 1fr;
  }
}

/* Mejoras responsive para la sección de proyectos y tecnologías */
@media (max-width: 900px) {
  .grid {
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }
  .header {
    flex-direction: column !important;
    gap: 18px !important;
    text-align: center !important;
  }
  .main-image {
    width: 120px !important;
    height: 120px !important;
    margin-bottom: 10px;
  }
  .header-text {
    max-width: 100% !important;
    margin: 0 auto !important;
    text-align: center !important;
  }
  .section-card {
    padding: 12px 8px 12px 8px !important;
    margin-bottom: 18px !important;
  }
  .tags {
    gap: 0.4rem !important;
    justify-content: center !important;
  }
  .tag {
    font-size: 0.95rem !important;
    padding: 0.22rem 0.7rem !important;
  }
  .github-btn {
    font-size: 0.95rem !important;
    padding: 8px 14px !important;
  }
}
/* Ajustes avanzados para versión mobile */
@media (max-width: 600px) {
  body {
    font-size: 0.98rem !important;
    line-height: 1.45 !important;
  }
  .header {
    flex-direction: column !important;
    align-items: center !important;
    gap: 10px !important;
    margin-bottom: 1.2rem !important;
    padding: 0 !important;
    position: relative !important;
  }
  .main-image {
    width: 90px !important;
    height: 90px !important;
    margin-bottom: 6px !important;
    box-shadow: 0 1px 4px rgba(0,0,0,0.10) !important;
    display: block !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
  #cv-dropdown-container {
    position: static !important;
    margin: 0 auto 10px auto !important;
    display: flex !important;
    justify-content: center !important;
    top: unset !important;
    right: unset !important;
    z-index: 1 !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    padding-top: 0 !important;
  }
  #download-cv-btn {
    font-size: 0.95rem !important;
    padding: 8px 18px !important;
    border-radius: 8px !important;
    margin-top: 8px !important;
    margin-bottom: 0 !important;
    width: auto !important;
    min-width: 120px !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.10) !important;
  }
  .section-card {
    max-width: 100vw !important;
    width: 100% !important;
    box-sizing: border-box !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    overflow-x: hidden !important;
  }
  .client-project-card {
    max-width: 100vw !important;
    width: 100% !important;
    box-sizing: border-box !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    overflow-x: hidden !important;
  }
  .content-inner {
    padding-left: 0.5rem !important;
    padding-right: 0.5rem !important;
  }
}

/* Eliminar espacio en blanco superior en mobile */
@media (max-width: 600px) {
  #cv-dropdown-container {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    padding-top: 0 !important;
  }
  .container {
    padding-top: 0 !important;
  }
  .header {
    margin-top: 0 !important;
    padding-top: 0 !important;
  }
}

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

.grades-column {
  position: relative;
  height: 100%;
}

@media (min-width: 1024px) {
  .grades-column .section-card {
    position: relative;
    top: auto;
  }
}
.percentage-value{
  font-weight:300;
  color: #fbbf24;
  font-family: 'Segoe UI';
  font-size: 1.3rem;
  margin-left:10px ;
}
.personal-value{
  font-weight:300;
  color: #c084fc;
  font-family: 'Segoe UI';
  font-size: 1.3rem;
  margin-left:30px ;
}
.uni-value{
  font-weight:300;
  color: #60a5fa;
  font-family: 'Segoe UI';
  font-size: 1.3rem;
  margin-left:30px ;
}
.client-value{
  font-weight:300;
  color: #4ade80;
  font-family: 'Segoe UI';
  font-size: 1.3rem;
  margin-left:30px ;
}
.section-card {
  position: relative;
  overflow: hidden;
  border-radius: 1rem;
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
  opacity: 0;
  transform: translateX(-50px);
  padding-top: 0px;
  padding-bottom: 0px;
}

.section-card:hover {
  border-color: rgba(255, 255, 255, 0.2);
}

.section-card.personal {
  background: linear-gradient(135deg, rgba(88, 28, 135, 0.55), rgba(91, 33, 182, 0.45));
}

.section-card.university {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(6, 182, 212, 0.2));
}

.section-card.clients {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.2), rgba(16, 185, 129, 0.2));
}

.section-card.grades {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.2), rgba(146, 78, 29, 0.2));
}

.card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.section-card:hover .card-overlay {
  opacity: 1;
}

.section-button, button {
    font-family: 'Space Grotesk', 'Sora', 'Poppins', 'Montserrat', 'Fira Sans', 'Segoe UI', Arial, sans-serif !important;
    font-weight: 300 !important;
    letter-spacing: 0.04em;
    text-transform: none;
  width: 100%;
  padding-right: 1.5rem ;
  padding-left: 1.5rem ;
  padding-bottom: 0.6rem;
  padding-top: 0.6rem;
  text-align: left;
  background: none;
  border: none;
  cursor: pointer;
  border-radius: 1rem;
  transition: all 13.3s ease;
}

.section-button:focus {
  outline: 1px solid #fcfcfc13;
}

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

.section-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: white;
  transition: color 0.3s ease;
  margin-bottom:9px;
}

@media (min-width: 768px) {
  .section-title {
    font-size: 1.5rem;
  }
}

.section-card:hover .section-title {
  color: var(--icon-color);
}

.chevron-icon {
  transition: all 0.3s ease;
}

.section-card:hover .chevron-icon {
  transform: scale(1.1);
}

.personal-icon {
  color: #c084fc;
  --icon-color: #c084fc;
  width: 100px;
  height: 70px;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.university-icon {
  color: #60a5fa;
  --icon-color: #60a5fa;
  width: 100px;
  height: 70px;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.clients-icon {
  color: #4ade80;
  --icon-color: #4ade80;
  width: 100px;
  height: 70px;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.grades-icon {
  color: #fbbf24;
  --icon-color: #fbbf24;
  width: 45px;
  height: 70px;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.personal:hover .section-title {
  color: #c084fc;
}

.university:hover .section-title {
  color: #60a5fa;
}

.clients:hover .section-title {
  color: #4ade80;
}

.grades:hover .section-title {
  color: #fbbf24;
}

.section-content {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: all 0.9s cubic-bezier(0.7,0,0.2,1);
}

.content-inner {
  padding: 0 1.5rem 1.5rem;
}

.divider {
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.2), transparent);
  margin-bottom: 1rem;
}

.content-text {
  color: #cbd5e1;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag {
  padding: 0.25rem 0.75rem;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 9999px;
  font-size: 0.875rem;
  color: #cbd5e1;
}


.average-card {
  text-align: center;
  margin-bottom: 1.5rem;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.average-label {
  color: #94a3b8;
  font-size: 0.875rem;
  margin-bottom: 0.25rem;
}

.average-value {
  font-size: 1.875rem;
  font-weight: bold;
  color: #fbbf24;
}

.grades-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.grade-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: border-color 0.2s ease;
  opacity: 0;
  transform: translateY(10px);
  animation: fadeInUp 0.3s ease forwards;
}

.grade-item:hover {
  border-color: rgba(255, 255, 255, 0.1);
}

.grade-item:nth-child(1) {
  animation-delay: 0.1s;
}
.grade-item:nth-child(2) {
  animation-delay: 0.2s;
}
.grade-item:nth-child(3) {
  animation-delay: 0.3s;
}
.grade-item:nth-child(4) {
  animation-delay: 0.4s;
}
.grade-item:nth-child(5) {
  animation-delay: 0.5s;
}

.subject {
  color: #cbd5e1;
  font-size: 0.875rem;
  font-weight: 500;
}

.grade {
  font-weight: bold;
}

.grade.excellent {
  color: #4ade80;
}

.grade.good {
  color: #fbbf24;
}

.grade.regular {
  color: #94a3b8;
}

/* Animaciones */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Animaciones para las secciones abiertas */
.section-card.open .grade-item {
  animation: fadeInUp 0.3s ease forwards;
}

.github-btn {
  background: #000 !important;
  color: #fff;
  padding: 10px 22px;
  border-radius: 10px;
  font-size: 1.05rem;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(0,0,0,0.18);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 2px solid #000000;
  transition: background 0.2s, box-shadow 0.2s, transform 0.2s;
  position: relative;
  z-index: 2;
  cursor: pointer;
}
.github-btn:hover {
  box-shadow: 0 6px 24px rgba(0,0,0,0.28);
  transform: scale(1.04);
}

.IconTec {
  width: 100% !important;
  display: flex;
  justify-content: center;
  align-items: center;
}

.tech-icons-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 52px !important;
  max-width: 1600px !important;
  width: 100% !important;
}

.tech-icon {
  cursor: pointer;
  transition: transform 0.2s;
  position: relative;
  border-radius: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
}
.tech-icon.selected {
  background: transparent !important;
  border-radius: 50% !important;
  box-shadow: none !important;
  transform: scale(1.1);
  transition: transform 0.2s;
}
.tech-icon.selected::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  box-shadow: 0 0 20px rgba(255,255,255,0.3), 0 0 40px rgba(255,255,255,0.1);
  z-index: 0;
}
.tech-icon > img,
.tech-icon > svg {
  position: relative;
  z-index: 1;
}
