/* Sobre mí */

/* Sobre mí */
.sobre-mi {
  background-color: #1c1c1c;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 40px 40px;
  position: relative;
}

.sobre-mi::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 40%, #1c1c1c 100%);
  pointer-events: none;
  z-index: 0;
}

.sobre-mi > * {
  position: relative;
  z-index: 1;
}

.sobre-mi {
  padding: 10px 40px;
}

.sobre-mi .secctitulo-acercademi h2 {
  font-size: 3rem;
  margin-bottom: 10px;
}

.sobre-mi .secctitulo-acercademi span {
  color: #3498db;
}

.sobre-mi .descripcion {
  font-size: clamp(1rem, 2vw, 1.3rem);
  line-height: 1.8;
  text-align: center;
}

.sobre {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 50px;

  max-width: 1200px;
  margin: 0 auto;

  padding: 120px 20px 80px;
}

.titulo-seccion {
  text-align: center;
  font-size: 2.3rem;
  color: #ffffff;
  margin-bottom: 50px;
  position: relative;
  letter-spacing: 1px;
}

.titulo-seccion::after {
  content: "";
  display: block;
  width: 90px;
  height: 4px;
  margin: 14px auto 0;
  border-radius: 10px;
  background: linear-gradient(90deg, #3498db, #058450);
}

/* Contenedor de la imagen y el texto */
/* Marco Product Owner */
.imagen-atras {
  position: relative;
  width: 340px;
  margin: 0 auto;
  padding: 18px;
  border-radius: 28px;
  background: linear-gradient(
    135deg,
    rgba(52, 152, 219, 0.25),
    rgba(5, 132, 80, 0.25)
  );
  overflow: hidden;
}

.imagen-atras::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 30px;
  padding: 2px;
  background: linear-gradient(135deg, #3498db, #058450, #3498db);

  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);

  -webkit-mask-composite: xor;
  mask-composite: exclude;

  animation: bordePO 6s linear infinite;
}

.imagen-atras::after {
  content: "ROADMAP • KPI • BACKLOG • SPRINT";
  position: absolute;
  top: 12px;
  left: 12px;

  font-size: 0.65rem;
  letter-spacing: 2px;
  font-weight: 600;

  color: rgba(255, 255, 255, 0.6);

  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(10px);

  padding: 8px 12px;
  border-radius: 50px;
  z-index: 30;
}

.imagen-atras img {
  width: 100%;
  max-width: 100%;
  max-width: 450px;
  height: auto;
  display: block;
  border-radius: 18px;
  position: relative;
  z-index: 2;
}

/* KPI superior */

.imagen-atras {
  box-shadow:
    0 20px 50px rgba(0, 0, 0, 0.35),
    0 0 30px rgba(52, 152, 219, 0.15);
}

/* Elementos decorativos Product Owner */

.marco-po::before {
  box-shadow:
    0 0 30px rgba(52, 152, 219, 0.4),
    0 0 60px rgba(5, 132, 80, 0.2);
}

.marco-po .po-card {
  display: none;
}

.imagen-atras .indicador-1,
.imagen-atras .indicador-2,
.imagen-atras .indicador-3 {
  position: absolute;
  z-index: 3;
}

.imagen-atras::selection {
  background: transparent;
}

/* Mini dashboard */

.imagen-atras span {
  display: none;
}

.imagen-atras::marker {
  display: none;
}

@keyframes bordePO {
  0% {
    filter: hue-rotate(0deg);
  }
  100% {
    filter: hue-rotate(360deg);
  }
}

.cv-seccion {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 40px 20px;
}

.btn-cv {
  position: relative;
  display: inline-flex;
  align-items: center;
  margin-top: -80px;
  gap: 12px;
  padding: 16px 30px;
  background: linear-gradient(135deg, #3498db, #058450);
  color: #ffffff;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 50px;
  overflow: hidden;
  transition:
    transform 0.35s ease,
    box-shadow 0.35s ease;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
  animation: flotar 2.5s ease-in-out infinite;
  z-index: 90;
}

.btn-cv:hover {
  transform: translateY(-5px) scale(1.04);
  box-shadow: 0 15px 30px rgba(52, 152, 219, 0.35);
}

.btn-cv-texto,
.btn-cv-icono {
  position: relative;
  z-index: 2;
}

.btn-cv-icono {
  font-size: 1.2rem;
  transition: transform 0.35s ease;
}

.btn-cv:hover .btn-cv-icono {
  transform: translateY(3px);
}

.btn-cv::before {
  content: "";
  position: absolute;
  top: 0;
  left: -75%;
  width: 50%;
  height: 100%;
  background: rgba(255, 255, 255, 0.25);
  transform: skewX(-25deg);
  transition: left 0.7s ease;
}

.btn-cv:hover::before {
  left: 130%;
}

@keyframes flotar {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
}

/* ---------------------------------------------------------*/
/*habilidades*/
.habilidades-contenedor {
  padding: 60px 20px 100px;
}

.habilidades .titulo-seccion {
  text-align: center;
  font-size: 2.3rem;
  color: #ffffff;
  margin-bottom: 50px;
  position: relative;
  letter-spacing: 1px;
}

.habilidades .titulo-seccion::after {
  content: "";
  display: block;
  width: 90px;
  height: 4px;
  margin: 14px auto 0;
  border-radius: 10px;
  background: linear-gradient(90deg, #3498db, #058450);
}

.habilidades-container {
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, minmax(280px, 1fr));
  gap: 25px;
}

.habilidad-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 22px;
  padding: 28px 24px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(8px);
  transition:
    transform 0.35s ease,
    box-shadow 0.35s ease,
    border-color 0.35s ease;
  position: relative;
  overflow: hidden;
}

.habilidad-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(52, 152, 219, 0.1),
    rgba(5, 132, 80, 0.08)
  );
  opacity: 0;
  transition: opacity 0.35s ease;
}

.habilidad-card:hover {
  transform: translateY(-8px);
  border-color: rgba(52, 152, 219, 0.35);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}

.habilidad-card:hover::before {
  opacity: 1;
}

.habilidad-top,
.habilidad-texto,
.progress-bar {
  position: relative;
  z-index: 2;
}

.habilidad-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  margin-bottom: 14px;
}

.habilidad-top h3 {
  color: #ffffff;
  font-size: 1.25rem;
  margin: 0;
  font-weight: 600;
}

.habilidad-top span {
  min-width: 65px;
  text-align: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: linear-gradient(135deg, #3498db, #058450);
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 700;
  box-shadow: 0 6px 18px rgba(52, 152, 219, 0.25);
}

.habilidad-texto {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.96rem;
  line-height: 1.6;
  margin-bottom: 18px;
}

.progress-bar {
  width: 100%;
  height: 14px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  overflow: hidden;
  position: relative;
}

.progress {
  height: 100%;
  border-radius: 999px;
  position: relative;
  animation: llenarBarra 1.8s ease forwards;
}

.progress::after {
  content: "";
  position: absolute;
  top: 0;
  right: -20px;
  width: 40px;
  height: 100%;
  background: rgba(255, 255, 255, 0.35);
  filter: blur(8px);
}

.backend {
  width: 50%;
  background: linear-gradient(90deg, #3498db, #5dade2);
}

.gestion {
  width: 60%;
  background: linear-gradient(90deg, #058450, #12a362);
}

@keyframes llenarBarra {
  from {
    width: 0;
  }
}

/* Aplicaciones (Pills) */
.aplicaciones-grid {
  margin-top: 40px;
  justify-content: center;
  position: relative;
  display: grid;
}

.pills-container {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 15px;
}

.pill {
  background: #058450;
  color: white;
  padding: 10px 20px;
  border-radius: 12px;
  font-size: 0.9rem;
  font-weight: 500;
}

/* Responsive */
@media (max-width: 992px) {
  .sobre {
    flex-direction: column;
    text-align: center;
    padding-top: 140px;
  }

  .imagenes-sobremi {
    order: 1;
    margin-top: 100px;
  }

  .secctitulo-acercademi {
    order: 2;
    margin-top: -100px;
  }

  .sobre-mi .descripcion {
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  .sobre-mi {
    padding: 0 15px;
  }

  .sobre {
    gap: 30px;
    padding-top: 120px;
    padding-bottom: 60px;
  }

  .titulo-seccion {
    font-size: 1.8rem;
  }

  .sobre-mi .secctitulo-acercademi h2 {
    font-size: 2rem;
  }

  .imagen-atras {
    padding: 12px;
  }

  .imagen-atras::after {
    font-size: 0.5rem;
    letter-spacing: 1px;
    padding: 6px 10px;
  }

  .btn-cv {
    padding: 14px 22px;
    font-size: 0.9rem;
    margin-top: -50px;
  }

  .habilidades-container {
    grid-template-columns: 1fr;
  }

  .pills-container {
    justify-content: center;
  }

  .habilidades {
    padding: 80px 15px;
  }

  .habilidades-container {
    grid-template-columns: 1fr;
  }

  .habilidades .titulo-seccion {
    font-size: 2rem;
  }

  .habilidad-card {
    padding: 24px 18px;
  }

  .habilidad-top h3 {
    font-size: 1.1rem;
  }

  .habilidad-top span {
    font-size: 0.88rem;
    min-width: 58px;
    padding: 7px 10px;
  }
}

@media (max-width: 480px) {
  .imagen-atras img {
    max-width: 360px;
  }

  .sobre-mi .secctitulo-acercademi h2 {
    font-size: 1.7rem;
  }

  .sobre-mi .descripcion {
    font-size: 0.95rem;
  }

  .btn-cv {
    width: 100%;
    max-width: 260px;
    justify-content: center;
  }

  .pill {
    width: 100%;
    text-align: center;
  }
}
