body {
  font-family: 'Aileron', sans-serif;
  overflow: hidden;
}
/* === BOTÓN MODO OSCURO/CLARO === */
.btn-theme {
  border: none;
  background: transparent;
  font-size: 1.4rem;
  color: #fff;
  cursor: pointer;
  transition: transform 0.3s ease, color 0.3s ease;
}
.btn-theme:hover {
  transform: scale(1.1);
  color: #ffd369;
}

/* === MODO CLARO === */
body.light-mode {
  background-color: #f9f9f9 !important;
  color: #111 !important;
}

body.light-mode .navbar {
  background-color: rgba(255, 255, 255, 0.7) !important;
  backdrop-filter: blur(8px);
}

body.light-mode .nav-link {
  color: #111 !important;
}

body.light-mode .software-card,
body.light-mode .card-exp {
  background: rgba(0,0,0,0.05);
  border-color: rgba(0,0,0,0.2);
  color: #111;
}
/* === AJUSTES COLOR LOGO NAV EN MODO CLARO === */
body.light-mode .navbar-brand {
  color: #111 !important; /* texto negro */
  transition: color 0.3s ease;
}

body.light-mode .navbar-brand:hover {
  color: #444 !important; /* tono gris al pasar el ratón */
}

body.light-mode .icon,
body.light-mode h1,
body.light-mode h2,
body.light-mode h5,
body.light-mode p {
  color: #111 !important;
}

body.light-mode .star.full {
  color: #ffb400;
}
/* === SVG DE CONEXIÓN ENTRE ESTUDIOS === */
.linea-svg path {
  stroke: #ffffffb3; /* color blanco por defecto (modo oscuro) */
  stroke-width: 2;
  fill: none;
  stroke-linecap: round;
  transition: stroke 0.4s ease;
}

/* === MODO CLARO === */
body.light-mode .linea-svg path {
  stroke: #111111b3; /* color negro con transparencia */
}

/* Transición suave entre modos */
body {
  transition: background-color 0.5s ease, color 0.5s ease;
}

/* --- NAV --- */
.navbar {
  background-color: transparent !important;
  backdrop-filter: blur(6px);
  transition: background 0.4s ease;
  z-index: 1000;
}
.navbar.scrolled {
  background-color: rgba(0, 0, 0, 0.85) !important;
}

/* ======== SECCIONES FULLSCREEN (DESKTOP) ======== */
.section {
  width: 100vw;
  height: 100vh;
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  transform: translateY(100%);
  transition: transform 1s ease-in-out, opacity 0.8s ease-in-out;
}
.section.active {
  opacity: 1;
  transform: translateY(0);
  z-index: 1;
}
.section.prev {
  transform: translateY(-100%);
  opacity: 0;
}


/* === HERO / HOME === */
.hero-bg {
  background: url('../img/fondo.jpg') center/cover no-repeat;
  position: absolute;
  inset: 0;
  filter: brightness(65%) blur(1.5px);
  z-index: -1;
}
.title-main, .title-sub {
  font-family: 'Aileron', sans-serif;
  font-weight: 900;
  line-height: 0.9;
  text-transform: uppercase;
  color: #fff;
  display: block;
  margin: 0;
}

/* Tamaño dinámico proporcional al viewport */
.title-main {
  font-size: clamp(6rem, 14vw, 16rem);
}

.title-sub {
  font-size: clamp(4rem, 9vw, 10rem);
}

/* Espaciado y efecto visual */
#home .container {
  position: relative;
  z-index: 10;
}

#home {
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}

/* === PORTFOLIO GRID === */
/* === AJUSTE ESPACIADO PORTFOLIO === */
#portfolio {
  padding-top: 6rem; /* da espacio bajo la navbar */
  padding-bottom: 2rem;
  box-sizing: border-box;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  width: 100%;
  max-width: 1200px;
}

.portfolio-card {
  position: relative;
  background-size: cover;
  background-position: center;
  border-radius: 20px;
  height: 320px;
  overflow: hidden;
  cursor: pointer;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  text-decoration: none;
  transition: transform 0.5s ease, box-shadow 0.5s ease;
}

.portfolio-card .overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.7) 100%);
  transition: background 0.4s ease;
}

.portfolio-card h2 {
  position: relative;
  z-index: 2;
  color: #fff;
  font-weight: 700;
  font-size: 2rem;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: transform 0.3s ease;
}

/* Hover effects */
.portfolio-card:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 10px 25px rgba(0,0,0,0.4);
}

.portfolio-card:hover .overlay {
  background: linear-gradient(180deg, rgba(0,0,0,0.05) 0%, rgba(0,0,0,0.85) 100%);
}

.portfolio-card:hover h2 {
  transform: translateY(-5px);
}

/* === MODO CLARO === */
body.light-mode .portfolio-card h2 {
  color: #111;
}

body.light-mode .portfolio-card .overlay {
  background: linear-gradient(180deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.7) 100%);
}

body.light-mode .portfolio-card:hover {
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

/* === RESPONSIVE SLIDER === */
@media (max-width: 768px) {
  /* .portfolio-grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 1rem;
    padding-bottom: 1rem;
  }

  .portfolio-card {
    flex: 0 0 calc(50% - 1rem);
    scroll-snap-align: center;
    min-width: 200px;
    height: 240px;
  }

  .portfolio-grid::-webkit-scrollbar {
    height: 6px;
  }
  .portfolio-grid::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.2);
    border-radius: 10px;
  } */

  body.light-mode .portfolio-grid::-webkit-scrollbar-thumb {
    background: rgba(0,0,0,0.2);
  }
}
/* === GALERÍAS === */
.hero-galeria {
  padding-top: 8rem;
  padding-bottom: 2rem;
}

.titulo-galeria {
  font-family: 'Boutique Script', cursive;
  font-size: clamp(3rem, 6vw, 5rem);
  font-weight: 700;
  color: #fff;
  letter-spacing: 1px;
}

body.light-mode .titulo-galeria {
  color: #111;
}

.foto-galeria {
  position: relative;
  overflow: hidden;
  border-radius: 15px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.foto-galeria img {
  width: 100%;
  height: auto;
  transition: transform 0.4s ease;
}

.foto-galeria:hover img {
  transform: scale(1.05);
}

.foto-galeria:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.4);
}

/* Light mode */
body.light-mode .foto-galeria:hover {
  box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}

/* Animación de entrada */
.fade-in {
  opacity: 0;
  transform: translateY(40px);
  transition: all 1s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}



/* Ajustes responsivos */
@media (max-width: 992px) {
  .title-main { font-size: clamp(3.5rem, 10vw, 8rem); }
  .title-sub { font-size: clamp(2.5rem, 8vw, 6rem); }
}

@media (max-width: 576px) {
  .title-main { font-size: 3rem; }
  .title-sub { font-size: 2.3rem; }
}
.hola-script { font-family: 'Boutique Script', cursive; font-size: 5rem; }
.soy-text { font-size: 3rem; }

/* --- EFECTOS DE ENTRADA --- */
.fade-in {
  opacity: 0;
  transform: translateY(50px);
  transition: all 1s ease-out;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* === TITULARES Y SUBTÍTULOS === */
.titulo-seccion {
  font-size: 6rem;
  font-weight: 800;
  line-height: 0.9;
}

.subtitulo-seccion {
  font-size: 3rem;
  font-weight: 700;
  margin-top: 2rem;
}

/* ======= BLOQUE DE ESTUDIOS ======= */
.estudios-row {
  margin-top: 3rem;
  margin-bottom: 5rem;
  gap: 3rem;
}

/* SVG de línea curva */
.linea-svg {
  width: 100%;
  max-width: 400px;
  height: 100px;
}

.linea-svg path {
  stroke: #ffffffb3;
  stroke-width: 2;
  fill: none;
  stroke-linecap: round;
  animation: dibujarLinea 2s ease forwards;
}

/* Animación para la línea */
@keyframes dibujarLinea {
  from {
    stroke-dasharray: 600;
    stroke-dashoffset: 600;
  }
  to {
    stroke-dasharray: 600;
    stroke-dashoffset: 0;
  }
}


/* === SOFTWARES === */
.softwares {
  margin-top: 3rem;
  text-align: center;
}

.subtitulo-seccion {
  font-size: 4rem;
  font-weight: 700;
  margin-bottom: 3rem;
}

.software-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
}

.software-card {
  width: 140px;
  height: 160px;
  background: rgba(255, 255, 255, 0.05);
  border: 2px solid rgba(255, 255, 255, 0.15);
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  transition: all 0.4s ease;
  backdrop-filter: blur(8px);
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.05);
}

.software-card:hover {
  transform: translateY(-8px);
  border-color: rgba(255, 255, 255, 0.35);
  box-shadow: 0 0 25px rgba(255, 255, 255, 0.1);
}

.icon {
  font-size: 2.5rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -1px;
}

.nombre {
  font-size: 1rem;
  color: #ddd;
  margin-top: 0.3rem;
}

/* === ESTRELLAS DE HABILIDAD === */
.stars {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 0.8rem;
  gap: 3px;
}

.star {
  font-size: 1rem;
  color: #888;
  transition: color 0.3s ease;
}

.star.full {
  color: #ffcb47;
}

.star.half {
  background: linear-gradient(90deg, #ffcb47 50%, #888 50%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* === RESPONSIVE === */
@media (max-width: 992px) {
  .software-card {
    width: 120px;
    height: 140px;
  }
  .subtitulo-seccion {
    font-size: 3rem;
  }
}


/* === EXPERIENCIA === */
.card-exp {
  background: rgba(255,255,255,0.05);
  border: 2px solid rgba(255,255,255,0.2);
  border-radius: 20px;
  padding: 2rem;
  text-align: left;
  transition: all 0.4s ease;
}
.card-exp:hover {
  background: rgba(255,255,255,0.1);
  transform: translateY(-5px);
}
.card-exp h5 {
  font-size: 1.3rem;
}
.card-exp .descripcion {
  font-size: 0.95rem;
  color: #ddd;
  margin-bottom: 0;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
  .titulo-seccion { font-size: 3.5rem; }
  .subtitulo-seccion { font-size: 2rem; }
  .software-card { width: 80px; height: 80px; }
}
@media (max-width: 992px) {
  .software-card {
    width: 120px;
    height: 140px;
  }
  .subtitulo-seccion {
    font-size: 3rem;
  }
}

/* ======== RESPONSIVE (MÓVIL / TABLET) ======== */
@media (max-width: 992px) {
  body {
    overflow-y: auto;
  }

  .section {
    position: relative;
    height: auto;
    min-height: 100vh;
    opacity: 1 !important;
    transform: none !important;
    transition: none;
  }

  .section.active,
  .section.prev {
    transform: none;
    opacity: 1;
  }
}


/* === SLIDER EN MÓVIL === */
@media (max-width: 768px) {
  .software-grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 1rem;
    padding: 1rem;
  }

  .software-card {
    flex: 0 0 45%; /* 2 por pantalla */
    scroll-snap-align: center;
    width: auto;
  }

  .software-grid::-webkit-scrollbar {
    height: 6px;
  }
  .software-grid::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
  }
  
}