:root{
  /* Fondo muy oscuro por defecto (se actualizará con el mouse) */
  --bg-a: #03020a;
  --bg-b: #060617;
  --bg-c: #0b0b12;

  /* acentos suaves (se usan para overlays) */
  --accent1: #6dd3ff;
  --accent2: #b792ff;
}
/* -------------------------
   Scrollbar espacial (global)
   ------------------------- */

/* Firefox */
* {
  /* color del pulgar y del track para Firefox */
  scrollbar-width: thin; /* auto | thin | none */
  scrollbar-color: rgba(140,200,255,0.95) rgba(12,14,20,0.6);
}

/* WebKit browsers (Chrome, Edge, Safari) */
*::-webkit-scrollbar {
  width: 14px;    /* ancho vertical */
  height: 14px;   /* alto horizontal */
}

/* Track (fondo del scrollbar) */
*::-webkit-scrollbar-track {
  border-radius: 999px;
  background:
    radial-gradient(closest-side, rgba(255,255,255,0.02), transparent 40%),
    linear-gradient(180deg, rgba(6,8,15,0.9), rgba(18,20,30,0.85));
  box-shadow: inset 0 1px 6px rgba(0,0,0,0.6);
  margin: 4px; /* ayuda a dar separación visual */
}

/* Corner (donde se cruzan scrollbars) */
*::-webkit-scrollbar-corner {
  background: rgba(10,12,18,0.9);
}

/* Pulgar (thumb) - la "nave espacial" */
*::-webkit-scrollbar-thumb {
  border-radius: 999px;
  /* 3 capas: estrellas pequeñas, nebula gradient, brillo */
  background-image:
    radial-gradient(circle at 20% 25%, rgba(255,255,255,0.95) 1px, transparent 2px),
    radial-gradient(circle at 65% 60%, rgba(255,255,255,0.75) 1px, transparent 3px),
    linear-gradient(120deg, rgba(80,60,200,0.95), rgba(0,180,220,0.92));
  background-blend-mode: screen, screen, normal;
  border: 3px solid rgba(8,10,16,0.65); /* separador oscuro */
  background-clip: padding-box;
  min-height: 36px; /* para que sea fácil de agarrar */
  box-shadow:
    0 0 12px rgba(0,150,220,0.18),
    inset 0 1px 6px rgba(255,255,255,0.06);
  cursor: pointer;
  transition: transform 200ms cubic-bezier(.2,.9,.2,1), box-shadow 200ms;
  /* animación espacial (pulso) */
  animation: space-pulse 3.6s ease-in-out infinite;
}

/* Hover y active — más brillante y levemente más grande */
*::-webkit-scrollbar-thumb:hover {
  transform: scale(1.06);
  box-shadow:
    0 0 20px rgba(0,200,255,0.25),
    inset 0 1px 8px rgba(255,255,255,0.08);
}

*::-webkit-scrollbar-thumb:active {
  transform: scale(0.98);
  box-shadow:
    0 0 10px rgba(0,200,255,0.28),
    inset 0 1px 6px rgba(255,255,255,0.06);
}

/* Opcional: un "orbita" luminoso que se desplaza verticalmente para dar vida */
*::-webkit-scrollbar-thumb::before {
  content: "";
  position: absolute;
  left: -9999px; /* evita que afecte el layout normal (sólo para navegadores que lo soporten) */
}

/* Animación (se desactiva si el usuario prefiere reducir motion) */
@keyframes space-pulse {
  0% {
    transform: scale(1);
    box-shadow: 0 0 8px rgba(0,150,220,0.12), inset 0 1px 6px rgba(255,255,255,0.05);
  }
  50% {
    transform: scale(1.03);
    box-shadow: 0 0 18px rgba(0,150,220,0.22), inset 0 1px 8px rgba(255,255,255,0.08);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 8px rgba(0,150,220,0.12), inset 0 1px 6px rgba(255,255,255,0.05);
  }
}

/* Respeto a prefer-reduced-motion */
@media (prefers-reduced-motion: reduce) {
  *::-webkit-scrollbar-thumb {
    animation: none !important;
    transition: none !important;
  }
}

/* Tips de accesibilidad: hace el thumb más grande cuando el foco está en un elemento que scrolla */
*:focus::-webkit-scrollbar-thumb,
*:focus-within::-webkit-scrollbar-thumb {
  min-height: 48px;
  box-shadow: 0 0 22px rgba(0,200,255,0.28), inset 0 1px 8px rgba(255,255,255,0.08);
}

/* reset / base */
*{box-sizing:border-box}
html,body{ height:100%; margin:0; overflow-x:hidden; overflow-y:auto; font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial; -webkit-font-smoothing:antialiased; -moz-osx-font-smoothing:grayscale; scroll-behavior:smooth;}

/* Fondo con gradiente oscuro; usa variables que actualiza JS */
body{
  background: linear-gradient(140deg, var(--bg-a) 0%, var(--bg-b) 50%, var(--bg-c) 100%);
  transition: background 400ms linear;
  color: #e8e8f0;
}

/* overlay suave para dar profundidad */
body::before{
  content:"";
  position:fixed;
  inset:0;
  z-index:0;
  pointer-events:none;
  mix-blend-mode:overlay;
  background:
    radial-gradient(800px 500px at 10% 20%, rgba(109,211,255,0.03), transparent 10%),
    radial-gradient(700px 500px at 90% 80%, rgba(183,146,255,0.02), transparent 12%);
  animation: bgShift 20s linear infinite;
  transition: opacity 300ms linear, transform 300ms linear;
}

@keyframes bgShift{
  0%   { transform: translate3d(0,0,0) scale(1); opacity:1; }
  50%  { transform: translate3d(-2%,2%,0) scale(1.01); opacity:0.96; }
  100% { transform: translate3d(0,0,0) scale(1); opacity:1; }
}

/* escenario de estrellas */
.stage{
  position:fixed;
  width:100%;
  height:100vh;
  overflow:hidden;
  perspective: 900px;
  z-index:1;
  will-change: transform;
}

/* cada estrella: absolutamente posicionada mediante variables CSS */
.star{
  position:absolute;
  left:var(--left, 50%);
  top:var(--top, 50%);
  transform-style:preserve-3d;
  pointer-events:none;
  will-change: transform, opacity;
  /* leve sombra para Glow */
  filter: drop-shadow(0 0 calc(var(--size,4px) * 0.6) rgba(255,255,255,0.12));
  /* drift (se mezcla con el translate que aplica el loop JS) */
  animation: drift var(--duration, 12s) linear var(--delay, 0s) infinite alternate;
  transform: translate3d(0,0,0) rotateZ(var(--rot, 0deg));
}

/* el "núcleo" blanco de la estrella */
.star .glow{
  width:var(--size, 2.0px);
  height:var(--size, 2.0px);
  margin-left: calc(-1 * var(--size, 2.0px) / 2);
  margin-top: calc(-1 * var(--size, 2.0px) / 2);
  background: radial-gradient(circle at 40% 30%, #ffffff 0%, rgba(255,255,255,0.95) 12%, rgba(255,255,255,0.12) 40%, transparent 60%);
  border-radius: 50%;
  opacity: var(--opacity, 0.9);
  transform-origin: 50% 50%;
  animation: pulse var(--pulse, 3.0s) ease-in-out var(--delay, 0s) infinite;
  box-shadow: 0 0 calc(var(--size,2px) * 1.3) rgba(255,255,255,0.09);
  backdrop-filter: blur(0.2px);
}

/* drift mueve la estrella un pequeño offset (definido por JS en --moveX/--moveY) */
@keyframes drift{
  from { transform: translate3d(0px, 0px, 0px) rotateZ(var(--rot, 0deg)); opacity: var(--min-opacity, 0.6); }
  to   { transform: translate3d(var(--moveX, 6px), var(--moveY, -8px), var(--z, 0px)) rotateZ(calc(var(--rot, 0deg) + 12deg)); opacity: var(--max-opacity, 1); }
}

/* pulso (crecer/achicar) */
@keyframes pulse{
  0%   { transform: scale(0.85); filter:brightness(0.95); }
  50%  { transform: scale(1.35); filter:brightness(1.12); }
  100% { transform: scale(0.9); filter:brightness(0.98); }
}

/* === HERO SECTION === */
.hero{
  position: relative;
  z-index: 10;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 3rem 2rem;
}

.hero-inner{
  max-width: 1400px;
  width: 100%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4rem;
  align-items: center;
}

/* Avatar flotante a la izquierda */
.avatar{
  width: 220px;
  height: 220px;
  border-radius: 50%;
  border: 4px solid rgba(109,211,255,0.3);
  box-shadow:
    0 0 60px rgba(109,211,255,0.4),
    0 0 100px rgba(183,146,255,0.2),
    inset 0 0 30px rgba(109,211,255,0.1);
  object-fit: cover;
  transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  animation: avatarFloat 6s ease-in-out infinite;
  filter: brightness(1.05) contrast(1.1);
}

.avatar:hover{
  transform: scale(1.15) rotate(8deg);
  box-shadow:
    0 0 80px rgba(109,211,255,0.6),
    0 0 120px rgba(183,146,255,0.4),
    inset 0 0 40px rgba(109,211,255,0.2);
  border-color: rgba(109,211,255,0.7);
}

@keyframes avatarFloat{
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-15px) rotate(2deg); }
}

/* Contenido principal alineado a la izquierda */
.intro{
  text-align: left;
}

.name{
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  font-weight: 300;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  margin: 0 0 1rem 0;
  display: inline-block;
}
.name span {
  display: inline-block;
  cursor: default;
}

.name span:hover {
  animation: pop 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes pop {
  0% {
    transform: scale(1) translateY(0);
    color: inherit;
    text-shadow: none;
  }
  100% {
    transform: scale(1.3) translateY(-5px);
    color: var(--accent1);
    text-shadow: 0 0 20px rgba(109,211,255,0.8);
  }
}
/* Título grande con letras interactivas */
.intro h1{
  font-size: 6rem;
  font-weight: 900;
  line-height: 1.1;
  margin: 0 0 1.5rem 0;
  background: linear-gradient(135deg, #6dd3ff 0%, #b792ff 35%, #ff91d9 70%, #6dd3ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  background-size: 300% 300%;
  letter-spacing: -0.02em;
  animation: gradientFlow 8s ease infinite;
}

/* Animación del gradiente que fluye constantemente */
@keyframes gradientFlow {
  0%, 100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}




/* Descripción */
.lead{
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  color: rgba(255,255,255,0.75);
  line-height: 1.7;
  max-width: 650px;
  margin: 0 0 2.5rem 0;
  font-weight: 300;
}

/* Botones CTA */
.cta{
  display: flex;
  gap: 1.2rem;
  flex-wrap: wrap;
}

.btn{
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 1rem 2rem;
  background: rgba(109,211,255,0.06);
  border: 2px solid rgba(109,211,255,0.25);
  border-radius: 60px;
  color: #6dd3ff;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  backdrop-filter: blur(12px);
  position: relative;
  overflow: hidden;
}

.btn::before{
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(109,211,255,0.15), rgba(183,146,255,0.15));
  opacity: 0;
  transition: opacity 0.4s ease;
}

.btn:hover{
  transform: translateY(-5px) scale(1.05);
  box-shadow:
    0 15px 35px rgba(109,211,255,0.4),
    0 5px 15px rgba(0,0,0,0.3);
  border-color: rgba(109,211,255,0.8);
  background: rgba(109,211,255,0.12);
}

.btn:hover::before{
  opacity: 1;
}

.btn svg{
  transition: transform 0.3s ease;
}

.btn:hover svg{
  transform: rotate(360deg) scale(1.2);
}
a{
  text-decoration: none;
}

/* Botón scroll */
.scroll-btn{
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(109,211,255,0.08);
  border: 2px solid rgba(109,211,255,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6dd3ff;
  text-decoration: none;
  animation: scrollBounce 2.5s ease-in-out infinite;
  transition: all 0.4s ease;
  backdrop-filter: blur(10px);
}

.scroll-btn:hover{
  background: rgba(109,211,255,0.2);
  transform: translateX(-50%) scale(1.2);
  box-shadow: 0 0 30px rgba(109,211,255,0.5);
}

@keyframes scrollBounce{
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(-15px); }
}

.visually-hidden{
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* === ABOUT SECTION === */
.about{
  position: relative;
  z-index: 10;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5rem 2rem;
}

.about-inner{
  max-width: 900px;
  padding: 4rem;
  background: rgba(11,11,18,0.5);
  border: 1px solid rgba(109,211,255,0.2);
  border-radius: 32px;
  backdrop-filter: blur(25px);
  box-shadow:
    0 25px 80px rgba(0,0,0,0.6),
    inset 0 1px 0 rgba(255,255,255,0.1);
  transition: all 0.5s ease;
}

.about-inner:hover{
  transform: translateY(-10px);
  box-shadow:
    0 35px 100px rgba(109,211,255,0.3),
    inset 0 1px 0 rgba(255,255,255,0.15);
  border-color: rgba(109,211,255,0.4);
}

.about-inner h2{
  font-size: clamp(2.5rem, 5vw, 4rem);
  margin: 0 0 2rem 0;
  background: linear-gradient(135deg, #6dd3ff 0%, #b792ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 800;
}

.about-inner p{
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  color: rgba(255,255,255,0.8);
  line-height: 1.8;
  margin: 0 0 2.5rem 0;
}

.links{
  display: flex;
  gap: 1.2rem;
  flex-wrap: wrap;
}

.ghost-link{
  padding: 1rem 2.5rem;
  border: 2px solid rgba(183,146,255,0.3);
  border-radius: 60px;
  color: #b792ff;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.05rem;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  backdrop-filter: blur(10px);
}

.ghost-link:hover{
  background: rgba(183,146,255,0.15);
  border-color: rgba(183,146,255,0.7);
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 12px 30px rgba(183,146,255,0.35);
  color: #d4b3ff;
}

/* === RESPONSIVE === */
@media (max-width: 1024px){
  .hero-inner{
    grid-template-columns: 1fr;
    gap: 2.5rem;
    text-align: center;
  }

  .intro{
    text-align: center;
  }

  .avatar{
    margin: 0 auto;
    width: 180px;
    height: 180px;
  }

  .cta{
    justify-content: center;
  }
}

@media (max-width: 768px){
  .hero-inner{
    gap: 2rem;
  }

  .avatar{
    width: 150px;
    height: 150px;
  }

  .about-inner{
    padding: 2.5rem 2rem;
  }
}

@media (max-width: 520px){
  body::before{ opacity:0.6; }

  .hero{
    padding: 2rem 1.5rem;
  }

  .avatar{
    width: 120px;
    height: 120px;
  }

  .cta{
    gap: 0.8rem;
  }

  .btn{
    padding: 0.85rem 1.6rem;
    font-size: 0.95rem;
  }

  .about-inner{
    padding: 2rem 1.5rem;
  }

  .scroll-btn{
    width: 50px;
    height: 50px;
    bottom: 1.5rem;
  }
}

/* === ACCESIBILIDAD === */
@media (prefers-reduced-motion: reduce){
  .star, .star .glow, body::before, .avatar, .scroll-btn {
    animation: none !important;
    transition: none !important;
  }
  .intro h1{ animation: none !important; }
}
/* === ESTILOS COMPARTIDOS ENTRE SECCIONES === */
section {
  position: relative;
  z-index: 10;
}

.section-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  text-align: center;
  margin: 0 0 4rem 0;
  background: linear-gradient(135deg, #6dd3ff 0%, #b792ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.title-icon {
  font-size: clamp(2rem, 4vw, 3rem);
  filter: drop-shadow(0 0 20px rgba(109, 211, 255, 0.6));
  animation: iconFloat 3s ease-in-out infinite;
}

@keyframes iconFloat {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-10px) rotate(5deg); }
}

/* === SECCIÓN CERTIFICADOS === */
.certificates {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 6rem 2rem;
}

.certificates-inner {
  max-width: 1400px;
  width: 100%;
  margin: 0 auto;
}

.certificates-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2.5rem;
}

.cert-card {
  position: relative;
  background: rgba(11, 11, 18, 0.6);
  border: 2px solid rgba(109, 211, 255, 0.2);
  border-radius: 24px;
  padding: 2.5rem;
  backdrop-filter: blur(20px);
  overflow: hidden;
  transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  cursor: pointer;
}

.cert-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(109, 211, 255, 0.05), rgba(183, 146, 255, 0.05));
  opacity: 0;
  transition: opacity 0.4s ease;
}
.cert-glow {
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(109, 211, 255, 0.15) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.5s ease, transform 0.5s ease;
  pointer-events: none;
  z-index: 0;
}

.cert-card:hover {
  transform: translateY(-15px) scale(1.02);
  border-color: rgba(109, 211, 255, 0.6);
  box-shadow:
    0 25px 60px rgba(109, 211, 255, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}


.cert-content {
  position: relative;
  z-index: 1;
  text-align: center;
}

.cert-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(109, 211, 255, 0.1), rgba(183, 146, 255, 0.1));
  border-radius: 50%;
  border: 2px solid rgba(109, 211, 255, 0.3);
  color: #6dd3ff;
  transition: all 0.4s ease;
}

.cert-card:hover .cert-icon {
  transform: scale(1.15) rotate(360deg);
  border-color: rgba(109, 211, 255, 0.8);
  box-shadow: 0 0 30px rgba(109, 211, 255, 0.5);
}

.cert-content h3 {
  font-size: 1.5rem;
  margin: 0 0 0.5rem 0;
  color: #e8e8f0;
  font-weight: 700;
}

.cert-issuer {
  color: rgba(109, 211, 255, 0.9);
  font-size: 1.1rem;
  margin: 0.5rem 0;
  font-weight: 500;
}

.cert-date {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.95rem;
  margin: 0.5rem 0 1rem;
}

.cert-badge {
  display: inline-block;
  padding: 0.5rem 1.2rem;
  background: rgba(109, 211, 255, 0.15);
  border: 1px solid rgba(109, 211, 255, 0.4);
  border-radius: 20px;
  color: #6dd3ff;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* === SECCIÓN PROYECTOS === */
.projects {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 6rem 2rem;
}

.projects-inner {
  max-width: 1400px;
  width: 100%;
  margin: 0 auto;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 3rem;
}

.project-card {
  position: relative;
  background: rgba(11, 11, 18, 0.6);
  border: 2px solid rgba(109, 211, 255, 0.2);
  border-radius: 24px;
  overflow: hidden;
  backdrop-filter: blur(20px);
  transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.project-card:hover {
  transform: translateY(-15px);
  border-color: rgba(109, 211, 255, 0.6);
  box-shadow: 0 30px 70px rgba(109, 211, 255, 0.35);
}
.project-image {
  position: relative;
  width: 100%;
  height: 250px;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;   /* mantiene proporción sin recortar */
  object-position: center;
  pointer-events: none;
}


.project-image::before {
  content: '';
  position: absolute;
  inset: 0;
  object-fit: contain;
  background:
    repeating-linear-gradient(0deg, rgba(109, 211, 255, 0.03) 0px, transparent 2px, transparent 4px),
    repeating-linear-gradient(90deg, rgba(183, 146, 255, 0.03) 0px, transparent 2px, transparent 4px);
  animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
  0% { transform: translate(0, 0); }
  100% { transform: translate(20px, 20px); }
}

/* Variaciones de fondo para cada proyecto */
.project-image-2 {
  background: linear-gradient(135deg, #0f2027 0%, #203a43 50%, #2c5364 100%);
}

.project-image-3 {
  background: linear-gradient(135deg, #1e3c72 0%, #2a5298 50%, #7e22ce 100%);
}

.project-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.8) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.project-card:hover .project-overlay {
  opacity: 1;
}

.view-project {
  padding: 1rem 2rem;
  background: rgba(109, 211, 255, 0.2);
  border: 2px solid rgba(109, 211, 255, 0.6);
  border-radius: 30px;
  color: #6dd3ff;
  font-weight: 700;
  font-size: 1.1rem;
  backdrop-filter: blur(10px);
  transform: translateY(20px);
  transition: all 0.3s ease;
}

.project-card:hover .view-project {
  transform: translateY(0);
}

.project-content {
  padding: 2rem;
}

.project-content h3 {
  font-size: 1.7rem;
  margin: 0 0 1rem 0;
  color: #e8e8f0;
  font-weight: 700;
}

.project-content p {
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.7;
  margin: 0 0 1.5rem 0;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-bottom: 1.5rem;
}

.tag {
  padding: 0.5rem 1rem;
  background: rgba(183, 146, 255, 0.1);
  border: 1px solid rgba(183, 146, 255, 0.3);
  border-radius: 15px;
  color: #b792ff;
  font-size: 0.85rem;
  font-weight: 600;
  transition: all 0.3s ease;
}

.tag:hover {
  background: rgba(183, 146, 255, 0.2);
  border-color: rgba(183, 146, 255, 0.6);
  transform: translateY(-3px);
}

.project-links {
  display: flex;
  gap: 1rem;
}

.project-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.5rem;
  background: rgba(109, 211, 255, 0.08);
  border: 2px solid rgba(109, 211, 255, 0.3);
  border-radius: 25px;
  color: #6dd3ff;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.4s ease;
}

.project-link:hover {
  background: rgba(109, 211, 255, 0.2);
  border-color: rgba(109, 211, 255, 0.8);
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(109, 211, 255, 0.3);
}

/* === SECCIÓN EXPERIENCIA (TIMELINE) === */
.experience {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 6rem 2rem;
}

.experience-inner {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
}

.timeline {
  position: relative;
  padding: 3rem 0;
}

/* Línea vertical central */
.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(to bottom,
    transparent 0%,
    rgba(109, 211, 255, 0.5) 10%,
    rgba(183, 146, 255, 0.5) 90%,
    transparent 100%
  );
  transform: translateX(-50%);
  animation: timelinePulse 3s ease-in-out infinite;
}

@keyframes timelinePulse {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; box-shadow: 0 0 20px rgba(109, 211, 255, 0.5); }
}

.timeline-item {
  position: relative;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 3rem;
  margin-bottom: 4rem;
  opacity: 0;
  animation: fadeInTimeline 0.8s ease forwards;
}

.timeline-item:nth-child(1) { animation-delay: 0.1s; }
.timeline-item:nth-child(2) { animation-delay: 0.2s; }
.timeline-item:nth-child(3) { animation-delay: 0.3s; }
.timeline-item:nth-child(4) { animation-delay: 0.4s; }

@keyframes fadeInTimeline {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Items pares: contenido a la izquierda */
.timeline-item:nth-child(even) .timeline-content {
  grid-column: 1;
  text-align: right;
}

.timeline-item:nth-child(even) .timeline-marker {
  grid-column: 2;
}

/* Items impares: contenido a la derecha */
.timeline-item:nth-child(odd) .timeline-content {
  grid-column: 3;
  text-align: left;
}

.timeline-item:nth-child(odd) .timeline-marker {
  grid-column: 2;
}

.timeline-marker {
  position: relative;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.marker-ring {
  position: absolute;
  width: 100%;
  height: 100%;
  border: 3px solid rgba(109, 211, 255, 0.4);
  border-radius: 50%;
  animation: ringPulse 2s ease-in-out infinite;
}

@keyframes ringPulse {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.8);
    opacity: 0;
  }
}

.marker-dot {
  width: 14px;
  height: 14px;
  background: linear-gradient(135deg, #6dd3ff, #b792ff);
  border-radius: 50%;
  box-shadow: 0 0 20px rgba(109, 211, 255, 0.8);
  transition: all 0.4s ease;
}

.timeline-item:hover .marker-dot {
  transform: scale(1.5);
  box-shadow: 0 0 30px rgba(109, 211, 255, 1);
}

.timeline-content {
  background: rgba(11, 11, 18, 0.6);
  border: 2px solid rgba(109, 211, 255, 0.2);
  border-radius: 20px;
  padding: 2rem;
  backdrop-filter: blur(20px);
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.timeline-content::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(109, 211, 255, 0.05), rgba(183, 146, 255, 0.05));
  opacity: 0;
  transition: opacity 0.4s ease;
}

.timeline-item:hover .timeline-content {
  border-color: rgba(109, 211, 255, 0.6);
  transform: scale(1.03);
  box-shadow: 0 15px 40px rgba(109, 211, 255, 0.25);
}

.timeline-item:hover .timeline-content::before {
  opacity: 1;
}

.timeline-date {
  display: inline-block;
  padding: 0.5rem 1.2rem;
  background: rgba(109, 211, 255, 0.15);
  border: 1px solid rgba(109, 211, 255, 0.4);
  border-radius: 20px;
  color: #6dd3ff;
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.timeline-content h3 {
  font-size: 1.7rem;
  margin: 1rem 0 0.5rem 0;
  color: #e8e8f0;
  font-weight: 700;
  position: relative;
  z-index: 1;
}

.timeline-content h4 {
  font-size: 1.2rem;
  color: rgba(183, 146, 255, 0.9);
  margin: 0 0 1rem 0;
  font-weight: 600;
  position: relative;
  z-index: 1;
}

.timeline-content p {
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.7;
  margin: 0 0 1.5rem 0;
  position: relative;
  z-index: 1;
}

.timeline-achievements {
  list-style: none;
  padding: 0;
  margin: 0;
  position: relative;
  z-index: 1;
}

.timeline-achievements li {
  color: rgba(255, 255, 255, 0.7);
  padding: 0.5rem 0;
  padding-left: 1.5rem;
  position: relative;
}

.timeline-achievements li::before {
  content: '▹';
  position: absolute;
  left: 0;
  color: #6dd3ff;
  font-size: 1.2rem;
}

/* === SECCIÓN HABILIDADES === */
.skills {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 6rem 2rem;
}

.skills-inner {
  max-width: 1400px;
  width: 100%;
  margin: 0 auto;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2.5rem;
  margin-bottom: 4rem;
}

.skill-category {
  background: rgba(11, 11, 18, 0.6);
  border: 2px solid rgba(109, 211, 255, 0.2);
  border-radius: 24px;
  padding: 2.5rem;
  backdrop-filter: blur(20px);
  transition: all 0.4s ease;
}

.skill-category:hover {
  border-color: rgba(109, 211, 255, 0.5);
  transform: translateY(-10px);
  box-shadow: 0 20px 50px rgba(109, 211, 255, 0.2);
}

.category-title {
  font-size: 1.8rem;
  margin: 0 0 2rem 0;
  color: #6dd3ff;
  font-weight: 700;
  text-align: center;
  position: relative;
  padding-bottom: 1rem;
}

.category-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: linear-gradient(to right, #6dd3ff, #b792ff);
  border-radius: 2px;
}

.skill-items {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.skill-item {
  opacity: 0;
  animation: fadeInSkill 0.6s ease forwards;
}

.skill-item:nth-child(1) { animation-delay: 0.1s; }
.skill-item:nth-child(2) { animation-delay: 0.2s; }
.skill-item:nth-child(3) { animation-delay: 0.3s; }
.skill-item:nth-child(4) { animation-delay: 0.4s; }

@keyframes fadeInSkill {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.skill-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.7rem;
}

.skill-name {
  font-weight: 600;
  color: #e8e8f0;
  font-size: 1.05rem;
}

.skill-percent {
  font-weight: 700;
  color: #6dd3ff;
  font-size: 1rem;
}

.skill-bar {
  width: 100%;
  height: 10px;
  background: rgba(109, 211, 255, 0.1);
  border-radius: 10px;
  overflow: hidden;
  position: relative;
}

.skill-bar::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg,
    rgba(109, 211, 255, 0.2) 0%,
    transparent 50%,
    rgba(109, 211, 255, 0.2) 100%
  );
  animation: shimmer 2s linear infinite;
}

@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

.skill-progress {
  width: var(--width, 0%);
  height: 100%;
  background: linear-gradient(90deg, #6dd3ff 0%, #b792ff 100%);
  border-radius: 10px;
  box-shadow: 0 0 15px rgba(109, 211, 255, 0.6);
  animation: fillBar 1.5s ease-out forwards;
  position: relative;
  overflow: hidden;
}

@keyframes fillBar {
  from { width: 0%; }
  to { width: var(--width, 0%); }
}

.skill-progress::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 30px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4));
  animation: progressGlow 1.5s ease infinite;
}

@keyframes progressGlow {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

/* Soft Skills */
.soft-skills {
  text-align: center;
  padding: 3rem 0;
}

.soft-skills .category-title {
  margin-bottom: 2.5rem;
}

.soft-skills-container {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
  justify-content: center;
  align-items: center;
}

.soft-skill {
  display: inline-block;
  padding: 1rem 2rem;
  background: rgba(183, 146, 255, 0.1);
  border: 2px solid rgba(183, 146, 255, 0.3);
  border-radius: 30px;
  color: #b792ff;
  font-weight: 600;
  font-size: 1.05rem;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  cursor: default;
  animation: floatSkill 3s ease-in-out infinite;
}

.soft-skill:nth-child(odd) {
  animation-delay: 0.5s;
}

.soft-skill:nth-child(even) {
  animation-delay: 1s;
}

@keyframes floatSkill {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-8px); }
}

.soft-skill:hover {
  background: rgba(183, 146, 255, 0.25);
  border-color: rgba(183, 146, 255, 0.8);
  transform: translateY(-10px) scale(1.1);
  box-shadow: 0 15px 35px rgba(183, 146, 255, 0.4);
}

/* === SECCIÓN CONTACTO === */
.contact {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 6rem 2rem;
}

.contact-inner {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
}

.contact-intro {
  text-align: center;
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  color: rgba(255, 255, 255, 0.75);
  margin: 0 0 4rem 0;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 4rem;
  margin-bottom: 4rem;
}

/* Contact Info */
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  padding: 1.5rem;
  background: rgba(11, 11, 18, 0.6);
  border: 2px solid rgba(109, 211, 255, 0.2);
  border-radius: 20px;
  backdrop-filter: blur(20px);
  transition: all 0.4s ease;
}

.contact-item:hover {
  border-color: rgba(109, 211, 255, 0.6);
  transform: translateX(10px);
  box-shadow: 0 10px 30px rgba(109, 211, 255, 0.25);
}

.contact-icon {
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(109, 211, 255, 0.15), rgba(183, 146, 255, 0.15));
  border-radius: 50%;
  border: 2px solid rgba(109, 211, 255, 0.3);
  color: #6dd3ff;
  flex-shrink: 0;
  transition: all 0.4s ease;
}

.contact-item:hover .contact-icon {
  transform: scale(1.1) rotate(5deg);
  border-color: rgba(109, 211, 255, 0.8);
  box-shadow: 0 0 25px rgba(109, 211, 255, 0.5);
}

.contact-item h4 {
  font-size: 1.2rem;
  margin: 0 0 0.5rem 0;
  color: #e8e8f0;
  font-weight: 700;
}

.contact-item p,
.contact-item a {
  color: rgba(255, 255, 255, 0.7);
  margin: 0;
  font-size: 1.05rem;
  text-decoration: none;
  transition: color 0.3s ease;
}

.contact-item a:hover {
  color: #6dd3ff;
}

/* Contact Form */
.contact-form {
  background: rgba(11, 11, 18, 0.6);
  border: 2px solid rgba(109, 211, 255, 0.2);
  border-radius: 24px;
  padding: 3rem;
  backdrop-filter: blur(20px);
  transition: all 0.4s ease;
}

.contact-form:hover {
  border-color: rgba(109, 211, 255, 0.4);
  box-shadow: 0 20px 50px rgba(109, 211, 255, 0.15);
}

.form-group {
  position: relative;
  margin-bottom: 2.5rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 1.2rem 0;
  background: transparent;
  border: none;
  border-bottom: 2px solid rgba(109, 211, 255, 0.3);
  color: #e8e8f0;
  font-size: 1.1rem;
  font-family: inherit;
  transition: all 0.4s ease;
  outline: none;
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-group label {
  position: absolute;
  left: 0;
  top: 1.2rem;
  color: rgba(255, 255, 255, 0.5);
  font-size: 1.1rem;
  pointer-events: none;
  transition: all 0.4s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  border-bottom-color: #6dd3ff;
}

.form-group input:focus ~ label,
.form-group textarea:focus ~ label,
.form-group input:not(:placeholder-shown) ~ label,
.form-group textarea:not(:placeholder-shown) ~ label {
  top: -1.5rem;
  font-size: 0.9rem;
  color: #6dd3ff;
  font-weight: 600;
}

.form-line {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #6dd3ff, #b792ff);
  transition: width 0.4s ease;
}

.form-group input:focus ~ .form-line,
.form-group textarea:focus ~ .form-line {
  width: 100%;
}

.submit-btn {
  width: 100%;
  padding: 1.3rem 2rem;
  background: linear-gradient(135deg, rgba(109, 211, 255, 0.15), rgba(183, 146, 255, 0.15));
  border: 2px solid rgba(109, 211, 255, 0.4);
  border-radius: 50px;
  color: #6dd3ff;
  font-size: 1.2rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  overflow: hidden;
}

.submit-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(109, 211, 255, 0.3), rgba(183, 146, 255, 0.3));
  opacity: 0;
  transition: opacity 0.4s ease;
}

.submit-btn:hover {
  transform: translateY(-5px);
  border-color: rgba(109, 211, 255, 0.8);
  box-shadow:
    0 20px 50px rgba(109, 211, 255, 0.4),
    0 0 50px rgba(109, 211, 255, 0.3);
}

.submit-btn:hover::before {
  opacity: 1;
}

.btn-text,
.btn-icon {
  position: relative;
  z-index: 1;
}

.btn-icon {
  transition: transform 0.4s ease;
}

.submit-btn:hover .btn-icon {
  transform: translateX(10px);
}

.submit-btn:active {
  transform: translateY(-2px);
}

/* Social Footer */
.social-footer {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  padding: 2rem 0;
}

.social-link {
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(109, 211, 255, 0.08);
  border: 2px solid rgba(109, 211, 255, 0.3);
  border-radius: 50%;
  color: #6dd3ff;
  text-decoration: none;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  overflow: hidden;
}

.social-link::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(109, 211, 255, 0.2), rgba(183, 146, 255, 0.2));
  opacity: 0;
  transition: opacity 0.4s ease;
}

.social-link:hover {
  transform: translateY(-10px) scale(1.15);
  border-color: rgba(109, 211, 255, 0.8);
  box-shadow:
    0 15px 40px rgba(109, 211, 255, 0.4),
    0 0 30px rgba(109, 211, 255, 0.3);
}

.social-link:hover::before {
  opacity: 1;
}

.social-link svg {
  position: relative;
  z-index: 1;
  transition: transform 0.4s ease;
}

.social-link:hover svg {
  transform: rotate(360deg) scale(1.2);
}

/* === RESPONSIVE === */
@media (max-width: 1024px) {
  .timeline::before {
    left: 30px;
  }

  .timeline-item {
    grid-template-columns: auto 1fr;
    gap: 2rem;
  }

  .timeline-item:nth-child(even) .timeline-content,
  .timeline-item:nth-child(odd) .timeline-content {
    grid-column: 2;
    text-align: left;
  }

  .timeline-item:nth-child(even) .timeline-marker,
  .timeline-item:nth-child(odd) .timeline-marker {
    grid-column: 1;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}

@media (max-width: 768px) {
  .section-title {
    font-size: clamp(2rem, 6vw, 3rem);
    margin-bottom: 3rem;
  }

  .certificates-grid,
  .projects-grid,
  .skills-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .timeline {
    padding: 2rem 0 2rem 2rem;
  }

  .timeline::before {
    left: 12px;
  }

  .timeline-item {
    gap: 1.5rem;
  }

  .timeline-content {
    padding: 1.5rem;
  }

  .contact-form {
    padding: 2rem;
  }

  .social-footer {
    gap: 1.5rem;
  }

  .social-link {
    width: 50px;
    height: 50px;
  }
}

@media (max-width: 520px) {
  .certificates-grid,
  .projects-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .cert-card,
  .project-card,
  .skill-category {
    padding: 1.5rem;
  }

  .timeline {
    padding-left: 1.5rem;
  }

  .timeline-item {
    gap: 1rem;
  }

  .timeline-content h3 {
    font-size: 1.4rem;
  }

  .contact-form {
    padding: 1.5rem;
  }

  .form-group {
    margin-bottom: 2rem;
  }

  .submit-btn {
    padding: 1.1rem 1.5rem;
    font-size: 1.05rem;
  }
}

/* === ANIMACIONES DE SCROLL === */
@media (prefers-reduced-motion: no-preference) {
  /* Fade in cuando el elemento entra en viewport */
  .cert-card,
  .project-card,
  .skill-category,
  .contact-item {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease forwards;
  }

  .cert-card:nth-child(1) { animation-delay: 0.1s; }
  .cert-card:nth-child(2) { animation-delay: 0.2s; }
  .cert-card:nth-child(3) { animation-delay: 0.3s; }
  .cert-card:nth-child(4) { animation-delay: 0.4s; }

  .project-card:nth-child(1) { animation-delay: 0.15s; }
  .project-card:nth-child(2) { animation-delay: 0.3s; }
  .project-card:nth-child(3) { animation-delay: 0.45s; }

  @keyframes fadeInUp {
    from {
      opacity: 0;
      transform: translateY(30px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
}

/* === ACCESIBILIDAD === */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .timeline::before {
    animation: none;
  }

  .marker-ring {
    animation: none;
  }

  .title-icon,
  .soft-skill {
    animation: none;
  }
}

/* Focus visible para navegación por teclado */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid #6dd3ff;
  outline-offset: 3px;
}

/* === EFECTOS ADICIONALES === */

/* Efecto de partículas en hover para certificados */
@keyframes particle {
  0% {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
  100% {
    transform: translateY(-100px) scale(0);
    opacity: 0;
  }
}

/* Glow pulsante para elementos importantes */
@keyframes glowPulse {
  0%, 100% {
    box-shadow: 0 0 20px rgba(109, 211, 255, 0.3);
  }
  50% {
    box-shadow: 0 0 40px rgba(109, 211, 255, 0.6);
  }
}

/* Efecto de typing para títulos (opcional) */
@keyframes typing {
  from { width: 0; }
  to { width: 100%; }
}

@keyframes blink {
  50% { border-color: transparent; }
}


@keyframes cardHoverFloat {
  0%, 100% {
    transform: translateY(-15px) scale(1.02);
  }
  50% {
    transform: translateY(-20px) scale(1.02);
  }
}

/* Efecto de neón para bordes */
.contact-form:hover,
.timeline-content:hover {
  animation: neonBorder 1.5s ease-in-out infinite;
}

@keyframes neonBorder {
  0%, 100% {
    border-color: rgba(109, 211, 255, 0.4);
  }
  50% {
    border-color: rgba(109, 211, 255, 0.8);
  }
}

/* Efecto de ondas para el formulario al enviar */
@keyframes ripple {
  0% {
    transform: scale(0);
    opacity: 1;
  }
  100% {
    transform: scale(4);
    opacity: 0;
  }
}

.submit-btn:active::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(109, 211, 255, 0.5);
  border-radius: 50%;
  animation: ripple 0.6s ease-out;
}

/* Efecto de estrella fugaz ocasional */
@keyframes shootingStar {
  0% {
    transform: translateX(-100px) translateY(-100px) rotate(-45deg);
    opacity: 1;
  }
  100% {
    transform: translateX(1000px) translateY(1000px) rotate(-45deg);
    opacity: 0;
  }
}

/* Hover state mejorado para los tags de tecnología */
.tag:hover {
  animation: tagBounce 0.5s ease;
}

@keyframes tagBounce {
  0%, 100% {
    transform: translateY(-3px);
  }
  50% {
    transform: translateY(-8px);
  }
}

/* Indicador de progreso para barras de habilidades */
.skill-bar:hover .skill-progress {
  animation: progressPulse 1s ease infinite;
}

@keyframes progressPulse {
  0%, 100% {
    box-shadow: 0 0 15px rgba(109, 211, 255, 0.6);
  }
  50% {
    box-shadow: 0 0 25px rgba(109, 211, 255, 1);
  }
}

/* Efecto de brillo en los íconos de contacto */
.contact-icon::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    45deg,
    transparent 30%,
    rgba(255, 255, 255, 0.3) 50%,
    transparent 70%
  );
  transform: rotate(45deg);
  transition: all 0.6s ease;
  opacity: 0;
}

.contact-item:hover .contact-icon::after {
  opacity: 1;
  animation: shine 1.5s ease infinite;
}

@keyframes shine {
  0% {
    left: -50%;
  }
  100% {
    left: 150%;
  }
}

/* Mejora visual para el estado de carga del formulario */
.contact-form.submitting .submit-btn {
  pointer-events: none;
  opacity: 0.7;
}

.contact-form.submitting .submit-btn .btn-icon {
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Estado de éxito del formulario */
.contact-form.success {
  border-color: rgba(109, 211, 255, 0.8);
  animation: successPulse 0.6s ease;
}

@keyframes successPulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.02);
  }
}

/* Print styles */
@media print {
  .star,
  .stage,
  body::before,
  .scroll-btn,
  .cert-glow,
  .project-overlay {
    display: none !important;
  }

  section {
    page-break-inside: avoid;
  }

  .timeline::before {
    background: #333 !important;
  }
}
/* === MEDIA QUERIES ADICIONALES PARA HERO Y CONTACT === */

/* Tablets y pantallas medianas */
@media (max-width: 900px) {
  .hero {
    min-height: auto;
    padding: 2.5rem 2rem;
  }

  .intro h1 {
    font-size: clamp(2.5rem, 8vw, 4rem);
  }

  .hero-inner {
    gap: 2.5rem;
  }
}

/* Móviles grandes */
@media (max-width: 640px) {
  .hero {
    padding: 2rem 1.5rem;
    min-height: auto;
  }

  .intro h1 {
    font-size: clamp(2rem, 10vw, 3rem);
    margin-bottom: 1rem;
  }

  .name {
    font-size: 1rem;
    margin-bottom: 0.8rem;
  }

  .lead {
    font-size: 1rem;
    margin-bottom: 1.5rem;
  }

  .avatar {
    width: 140px;
    height: 140px;
  }

  .cta {
    flex-direction: column;
    width: 100%;
  }

  .btn {
    width: 100%;
    justify-content: center;
    padding: 0.9rem 1.5rem;
  }

  /* Contact Form Adjustments */
  .contact {
    padding: 4rem 1.5rem;
  }

  .contact-intro {
    font-size: 1rem;
    margin-bottom: 2.5rem;
  }

  .contact-grid {
    gap: 2rem;
  }

  .contact-item {
    padding: 1.2rem;
    gap: 1rem;
  }

  .contact-icon {
    width: 50px;
    height: 50px;
  }

  .contact-icon svg {
    width: 22px;
    height: 22px;
  }

  .contact-item h4 {
    font-size: 1.05rem;
  }

  .contact-item p,
  .contact-item a {
    font-size: 0.95rem;
  }

  .contact-form {
    padding: 2rem 1.5rem;
  }

  .form-group {
    margin-bottom: 2rem;
  }

  .form-group input,
  .form-group textarea {
    font-size: 1rem;
    padding: 1rem 0;
  }

  .form-group label {
    font-size: 1rem;
    top: 1rem;
  }

  .submit-btn {
    padding: 1.1rem;
    font-size: 1.05rem;
  }
}

/* Móviles pequeños */
@media (max-width: 400px) {
  .hero {
    padding: 1.5rem 1rem;
  }

  .intro h1 {
    font-size: 1.8rem;
    line-height: 1.2;
  }

  .name {
    font-size: 0.9rem;
    letter-spacing: 0.1em;
  }

  .lead {
    font-size: 0.95rem;
    line-height: 1.6;
  }

  .avatar {
    width: 110px;
    height: 110px;
  }

  .btn {
    padding: 0.8rem 1.2rem;
    font-size: 0.9rem;
  }

  .scroll-btn {
    width: 45px;
    height: 45px;
    bottom: 1rem;
  }

  .scroll-btn svg {
    width: 18px;
    height: 18px;
  }

  /* Contact adjustments */
  .contact {
    padding: 3rem 1rem;
  }

  .section-title {
    font-size: 1.8rem;
    margin-bottom: 2rem;
  }

  .title-icon {
    font-size: 1.5rem;
  }

  .contact-intro {
    font-size: 0.95rem;
    margin-bottom: 2rem;
  }

  .contact-item {
    flex-direction: column;
    text-align: center;
    padding: 1rem;
  }

  .contact-icon {
    width: 45px;
    height: 45px;
    margin: 0 auto;
  }

  .contact-form {
    padding: 1.5rem 1rem;
    border-radius: 20px;
  }

  .form-group {
    margin-bottom: 1.8rem;
  }

  .form-group textarea {
    min-height: 100px;
  }

  .submit-btn {
    padding: 1rem;
    font-size: 1rem;
    gap: 0.5rem;
  }

  .social-footer {
    gap: 1rem;
  }

  .social-link {
    width: 45px;
    height: 45px;
  }

  .social-link svg {
    width: 20px;
    height: 20px;
  }
}

/* Landscape móviles */
@media (max-width: 900px) and (max-height: 500px) {
  .hero {
    min-height: auto;
    padding: 2rem 1.5rem;
  }

  .hero-inner {
    gap: 1.5rem;
  }

  .avatar {
    width: 100px;
    height: 100px;
  }

  .intro h1 {
    font-size: 2rem;
    margin-bottom: 0.8rem;
  }

  .lead {
    font-size: 0.95rem;
    margin-bottom: 1rem;
  }

  .scroll-btn {
    display: none;
  }
}
