/* ==========================
   Background Decorative Shapes
   z-index: 1 (encima de estrellas, debajo del contenido)
   ========================== */

/* ── Base ── */
.bg-shape {
  position: absolute;
  pointer-events: none;
  z-index: 1;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.04);
}

/* ── Forma C: Perfil inferior derecha → cruza hacia Experiencia ── */
.bg-shape--c {
  display: block;
  background: #1A1F2A;
  width: max(20rem, 43%);
  height: 125px;
  top: 4rem;
  left: -5rem;
  bottom: auto;
  right: auto;
}


/* ── Secciones: overflow visible para que las formas crucen ── */
#perfil,
#experiencia {
  position: relative;
  overflow: visible;
}

/* ── Contenido encima de las formas ── */
#perfil > div:not(.bg-shape),
#experiencia > div:not(.bg-shape) {
  position: relative;
  z-index: 2;
}

/* ── Secciones: Formación y Habilidades ── */
#formacion {
  position: relative;
  overflow: visible;
}
#formacion > div:not(.bg-shape) {
  position: relative;
  z-index: 2;
}

#habilidades {
  position: relative;
}
#habilidades > div:not(.bg-shape) {
  position: relative;
  z-index: 2;
}

/* ── Skills Bento ── */
.skills-bento {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: auto auto;
  gap: 1rem;
}

.skills-bento__card--lenguajes {
  grid-column: 1;
  grid-row: 1;
}

.skills-bento__card--metodologias {
  grid-column: 2;
  grid-row: 1;
}

.skills-bento__row2 {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.skills-bento__card {
  position: relative;
  overflow: hidden;
  background: #141820;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  padding: 1.2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
  transition:
    background 0.6s ease-out,
    border-color 0.6s ease-out,
    box-shadow 0.6s ease-out,
    transform 220ms ease,
    filter 220ms ease;
}


.skills-bento__title {
  font-size: 1.06rem;
  font-weight: 800;
  color: var(--accent-gold, #F0A830);
  letter-spacing: 0.2px;
  align-self: flex-start;
}

#habilidades .skills-bento__title::after {
  height: 1px;
}

.skills-bento__icons {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.skills-bento__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
}

.skills-bento__item img {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.skills-bento__item span {
  font-size: 0.72rem;
  color: rgba(240, 255, 252, 0.78);
  text-align: center;
  font-weight: 500;
}

.skills-bento__card:hover .skills-bento__item span {
  color: rgba(255, 255, 255, 0.7);
}

/* ── Forma Obj: Objetivos superior izquierda ── */
.bg-shape--obj {
  display: block;
  background: #1A1F2A;
  width: max(20rem, 43%);
  height: 125px;
  top: 4rem;
  left: -5rem;
  bottom: auto;
  right: auto;
}

/* ── Secciones: Objetivos / Contacto ── */
#objetivos,
#contacto {
  position: relative;
  overflow: visible;
}
#objetivos > div:not(.bg-shape),
#contacto > div:not(.bg-shape) {
  position: relative;
  z-index: 2;
}

/* ── Tablet+: mostrar formas y expandir bento ── */
@media (min-width: 768px) {
  .skills-bento {
    grid-template-columns: 70fr 30fr;
  }
  .skills-bento__row2 {
    grid-template-columns: 25fr 35fr 40fr;
  }
  .skills-bento__item img {
    width: 48px;
    height: 48px;
  }
}
