/* SOBRE MI */
.sobremi {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: start;
  gap: 30px;
  padding: 100px 60px;
}

.sobremi_texto {
  max-width: 520px;
}

.sobremi_texto h2 {
  font-size: 50px;
  margin-bottom: 10px;
  margin-left: 30px;
}

.sobremi_texto span {
  color: var(--azul_oscuro);
}

.linea_verde {
  width: 150px;
  height: 4px;
  background: var(--oliva);
  margin-bottom: 25px;
  margin-left: 30px;
}

.sobremi_texto p {
  font-size: 19px;
  line-height: 1.7;
  margin-left: 30px;
}

/* VISUAL DERECHA */
.sobremi_visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  min-height: 620px;
}

.titulo_rol {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-70%);
  background: var(--azul_oscuro);
  color: white;
  padding: 12px 38px;
  width: 300px;
  font-size: 30px;
  font-weight: 600;
  z-index: 6;
}

.sub_rol {
  position: absolute;
  top: 7.5%;
  left: 50%;
  transform: translateX(10%);
  color: var(--azul_oscuro);
  padding: 12px 38px;
  width: 300px;
  font-size: 26px;
  font-weight: 600;
  z-index: 6;
}

.img-botoncv {
  position: relative;
  width: 420px;
  padding-top: 60px;
  padding-bottom: 90px;
  display: flex;
  justify-content: center;
}

.imagenes_superpuestas {
  position: relative;
  width: 420px;
  height: 500px;
}

/* FOTO PRINCIPAL */
.foto_principal img {
  width: 330px;
  height: 450px;
  border-radius: 28px;
  object-fit: cover;
  object-position: center 30%;
  position: absolute;
  top: 40px;
  left: 45px;
  z-index: 4;
  display: block;
}

/* IMAGEN DECORATIVA */
.imagen_secundaria img {
  width: 600px;
  height: auto;
  position: absolute;
  bottom: -100px;
  right: -60px;
  opacity: 0.8;
  z-index: 2;
}

/* HABILIDADES TÉCNICAS */

.titulo-habilidadestec {
  position: relative;
  background: var(--azul_oscuro);
  color: white !important;
  padding: 12px 38px !important;
  font-size: 30px;
  font-weight: 600;
  width: 400px;
  z-index: 6;
  border-radius: 4px !important;
}

.habilidades_tecnicas {
  grid-column: 1 / -1;
  margin-top: -20px;
}

.habilidades_tecnicas h3 {
  font-size: 30px;
  margin-bottom: 24px;
  font-weight: 600;
  color: var(--azul_oscuro);
}

.habilidades {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center !important;
  justify-content: center !important;
}

.habilidad_item {
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  padding: 6px 40px;

  border-radius: 20px;
  transition: all 0.3s ease;
  text-align: center;
  border: 1px solid #3f618e;
  background-color: #8cb7efcb;
  gap: 20px;
}

.habilidad_item:hover {
  transform: scale(1.05);
}

.habilidad_item img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  display: block;
  margin-bottom: 10px;
  justify-content: center;
}

.habilidad_item p {
  display: flex;
  font-size: 16px;

  font-weight: 600;
  color: #262626;
  margin-top: 8px;
}

/* ── SECCIÓN HABILIDADES ── */
.seccion_gestion_proyectos {
  grid-column: 1 / -1;
  margin-top: 4rem;
}

.titulo-habilidadestec {
  font-size: clamp(18px, 2.5vw, 26px);
  font-weight: 700;
  color: var(--azul_oscuro);
  margin-bottom: 32px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.titulo-habilidadestec::after {
  content: "";
  flex: 1;
  height: 2px;
  background: linear-gradient(90deg, var(--azul_cielo), transparent);
  border-radius: 2px;
}

/* Grid de las tarjetas */
.contenedor-habilidades-listas {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 0;
}

/* Tarjeta individual */
/* ── CARD BASE ── */
.habilidad-box {
  background: #fff;
  border-radius: 20px;
  border: 1.5px solid #d6e8ff;
  overflow: hidden;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}
.habilidad-box:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(63, 97, 142, 0.18);
}

/* ── HEADER ── */
.card-header {
  padding: 22px 28px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.card-header.qa-header {
  background: var(--azul_oscuro);
}
.card-header.fe-header {
  background: #5d8ab8;
}

.card-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #fff;
}

.card-role {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 2px;
}
.card-title {
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  line-height: 1.1;
}

/* ── BADGES ── */
.badge-row {
  padding: 10px 28px;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  background: #f0f7ff;
  border-bottom: 1.5px solid #d6e8ff;
}
.badge {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 20px;
  letter-spacing: 0.5px;
}
.badge-qa {
  background: #dbeafe;
  color: #1e4d8c;
}
.badge-fe {
  background: #e0edff;
  color: #2d5f8a;
}

/* ── LISTA ── */
.card-body {
  padding: 20px 28px 24px;
}

.habilidad-box ul {
  list-style: none;
  padding: 0;
}

.habilidad-box li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px solid #f0f4fa;
  font-size: 14.5px;
  line-height: 1.4;
  color: #2d3748;
}
.habilidad-box li:last-child {
  border-bottom: none;
}

.li-icon {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
  font-size: 12px;
}
.li-icon.qa {
  background: #dbeafe;
  color: #1e4d8c;
}
.li-icon.fe {
  background: #d1fae5;
  color: #065f46;
}

/* ── FOOTER ── */
.card-footer {
  padding: 12px 28px;
  background: #f8fbff;
  border-top: 1.5px solid #d6e8ff;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.card-footer span {
  font-size: 12px;
  color: #6b8eaa;
  font-weight: 500;
}

.skill-dots {
  display: flex;
  gap: 4px;
}
.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}
.dot.filled-qa {
  background: var(--azul_oscuro);
}
.dot.filled-fe {
  background: #5d8ab8;
}
.dot.empty {
  background: #d6e8ff;
}

/* Ajuste para móviles */
@media (max-width: 768px) {
  .contenedor-habilidades-listas {
    grid-template-columns: 1fr;
  }
  .card-header,
  .card-body,
  .card-footer,
  .badge-row {
    padding-left: 20px;
    padding-right: 20px;
  }
}

/* ── 992px: tablet ── */
@media (max-width: 992px) {
  .sobremi {
    grid-template-columns: 1fr;
    padding: 80px 40px 60px;
    gap: 40px;
  }

  .sobremi_texto {
    max-width: 100%;
  }
  .sobremi_texto h2 {
    font-size: 38px;
    margin-left: 0;
  }
  .linea_verde {
    margin-left: 0;
  }
  .sobremi_texto p {
    font-size: 17px;
    margin-left: 0;
  }

  .sobremi_visual {
    min-height: auto;
    width: 100%;
    flex-direction: column;
    align-items: center;
  }

  .titulo_rol {
    position: relative;
    top: auto;
    left: auto;
    transform: none;
    width: auto;
    font-size: 24px;
    text-align: center;
    margin-bottom: 0;
  }

  .sub_rol {
    position: relative;
    top: auto;
    left: auto;
    transform: none;
    width: auto;
    font-size: 22px;
    text-align: center;
    padding: 8px 28px 16px;
  }

  .img-botoncv {
    position: relative;
    width: 100%;
    max-width: 380px;
    padding-top: 0;
    padding-bottom: 80px;
    display: flex;
    justify-content: center;
  }

  .imagenes_superpuestas {
    width: 340px;
    height: 440px;
    margin: 0 auto;
  }

  .foto_principal img {
    width: 280px;
    height: 380px;
    left: 50%;
    top: 30px;
    transform: translateX(-50%);
  }

  .imagen_secundaria img {
    width: 440px;
    bottom: -80px;
    right: -40px;
  }

  .btnDescargarCV {
    position: absolute;
    left: 50%;
    bottom: 10px;
    transform: translateX(-50%);
  }
  .btnDescargarCV:hover {
    transform: translateX(-50%) translateY(-3px);
  }

  .habilidades_tecnicas {
    margin-top: 0;
  }

  .titulo-habilidadestec {
    width: 100% !important;
    font-size: 20px !important;
    padding: 10px 20px !important;
  }
}

/* ── 600px: móvil grande ── */
@media (max-width: 600px) {
  .sobremi {
    padding: 80px 20px 50px;
    gap: 32px;
  }

  .sobremi_texto h2 {
    font-size: 28px;
  }
  .sobremi_texto p {
    font-size: 15px;
    margin-left: 0;
    max-width: 100%;
  }

  .titulo_rol {
    font-size: 20px;
    padding: 9px 20px;
  }
  .sub_rol {
    font-size: 18px;
    padding: 6px 20px 14px;
  }

  .img-botoncv {
    max-width: 300px;
    padding-bottom: 76px;
  }

  .imagenes_superpuestas {
    width: 280px;
    height: 370px;
  }

  .foto_principal img {
    width: 230px;
    height: 320px;
    top: 24px;
  }

  .imagen_secundaria img {
    width: 320px;
    bottom: -60px;
    right: -30px;
  }

  .habilidad_item {
    padding: 6px 18px;
    gap: 10px;
  }

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

  .card-header,
  .card-body,
  .card-footer,
  .badge-row {
    padding-left: 18px;
    padding-right: 18px;
  }
}

/* ── 420px: móvil pequeño ── */
@media (max-width: 420px) {
  .sobremi {
    padding: 75px 14px 40px;
    gap: 24px;
  }

  .sobremi_texto h2 {
    font-size: 24px;
  }
  .sobremi_texto p {
    font-size: 14px;
    line-height: 1.65;
  }

  .titulo_rol {
    font-size: 17px;
    padding: 8px 14px;
    width: 100%;
  }
  .sub_rol {
    font-size: 15px;
    padding: 4px 14px 12px;
  }

  .img-botoncv {
    max-width: 260px;
    padding-bottom: 72px;
  }

  .imagenes_superpuestas {
    width: 240px;
    height: 310px;
  }

  .foto_principal img {
    width: 196px;
    height: 268px;
    top: 16px;
  }

  .imagen_secundaria img {
    width: 260px;
    bottom: -48px;
    right: -20px;
  }

  .btnDescargarCV {
    min-width: 180px;
    font-size: 13px;
    padding: 10px 18px;
    bottom: 6px;
  }

  .habilidades {
    gap: 10px;
  }
  .habilidad_item {
    padding: 5px 12px;
    gap: 8px;
  }
  .habilidad_item img {
    width: 28px;
    height: 28px;
  }
  .habilidad_item p {
    font-size: 13px;
  }

  .card-header,
  .card-body,
  .card-footer,
  .badge-row {
    padding-left: 14px;
    padding-right: 14px;
  }

  .card-title {
    font-size: 16px;
  }
  .habilidad-box li {
    font-size: 13px;
  }

  .titulo-habilidadestec {
    font-size: 15px !important;
    padding: 8px 14px !important;
    width: 100% !important;
  }
}
