/* Estilo para el botón "Back to Top" */
.back-to-top {
    position: fixed;
    bottom: 40px;
    right: 40px;
    width: 50px;
    height: 50px;
    background-color: #000;
    color: #fff;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 9999;
}

.back-to-top svg {
    width: 24px;
    height: 24px;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

/* ===== About / Stack principal ===== */
.about-wrap{
  max-width: 980px; /* centra y limita el ancho de los párrafos */
}

/* Píldoras del stack */
.tech-pills{
  display: flex;
  flex-wrap: wrap;
  gap: .5rem .75rem;
  padding: 0;
  margin: 0;
  list-style: none;
}

.tech-pill{
  display: inline-flex;
  align-items: center;
  padding: .45rem .75rem;
  border-radius: 9999px;
  font-size: .875rem;
  font-weight: 500;
  line-height: 1;
  background: var(--bs-gray-200, #f2f2f2);
  color: var(--bs-gray-900, #222);
  border: 1px solid rgba(0,0,0,.06);
  white-space: nowrap; /* evita cortes raros */
}

/* Listas de “Cómo trabajo” */
.about-list{
  margin: 0;
  padding-left: 1.1rem;
}
.about-list li + li{
  margin-top: .35rem;
}

/* Tarjeta/aire en bloques (opcional, queda muy limpio) */
.about-grid > [class*="col-"]{
  background: var(--bs-body-bg, #fff);
  border: 1px solid rgba(0,0,0,.06);
  border-radius: .75rem;
  padding: 1rem 1.1rem;
}

/* ===== Layout general del bloque Sobre mí ===== */
.about-wrap{
  max-width: 980px;
  margin-inline: auto;      /* centra */
}

/* Títulos de sección (Stack / Cómo trabajo) */
.section-title{
  margin: 0 0 8px 0;
  font-weight: 600;
}

/* Píldoras del stack */
.tech-pills{
  display: flex; flex-wrap: wrap;
  gap: .5rem .75rem;
  padding: 0; margin: 8px 0 22px; /* <-- espacio bajo las pills */
  list-style: none;
  justify-content: center;
}
@media (min-width: 992px){
  .tech-pills{ justify-content: flex-start; margin-bottom: 28px; }
}
.tech-pill{
  display: inline-flex; align-items: center;
  padding: .45rem .75rem; border-radius: 9999px;
  font-size: .875rem; font-weight: 500; line-height: 1;
  background: var(--bs-gray-200, #f2f2f2);
  color: var(--bs-gray-900, #222);
  border: 1px solid rgba(0,0,0,.06);
  white-space: nowrap;
}

/* Separador entre secciones */
.about-divider{
  height: 1px;
  background: rgba(0,0,0,.08);
  margin: 18px 0 24px; /* espacio arriba y abajo del separador */
}
@media (min-width: 992px){
  .about-divider{ margin: 22px 0 32px; }
}

/* Espaciados verticales independientes de Bootstrap */
.stack-section{ margin-top: 6px; } /* un pequeño aire antes del stack */
.how-section{  margin-top: 0; }    /* empieza tras el separador */

/* Tarjetas de “Cómo trabajo” */
.work-card{
  background:#fff;
  border:1px solid rgba(0,0,0,.06);
  border-radius:16px;
  padding:16px 18px;
  box-shadow:0 2px 12px rgba(0,0,0,.04);
}
.icon-circle{
  width:36px; height:36px; border-radius:999px;
  display:flex; align-items:center; justify-content:center;
  background:rgba(0,0,0,.06); color:#111; margin-bottom:10px;
}
.about-list{ margin:0; padding-left:1.1rem; }
.about-list li{ margin-bottom:.35rem; }

/* IMPORTANTE: evita bordes/padding duplicados en las columnas */
.about-grid > [class*="col-"]{
  background: transparent !important;
  border: 0 !important;
  padding: 0 !important;
}

/* CTA alineada */
.cta-row{
  margin-top: 28px;
  display:flex; gap:.5rem;
  justify-content: center;
}
@media (min-width: 992px){
  .cta-row{ justify-content: flex-start; margin-top: 32px; }
}

/* --- Footer: forzar color de iconos sociales (Firefox/producción) --- */
.footer.bg-dark .nav-social .nav-link,
.footer.bg-dark .nav-social .nav-link:visited{
  color: #fff !important;       /* el <a> define currentColor */
  opacity: .9;
}

.footer.bg-dark .nav-social .nav-link:hover{
  color: #fff !important;
  opacity: 1;
}

.footer .nav-social .nav-link svg{
  width: 18px; height: 18px;    /* asegura tamaño consistente */
  display: inline-block;
}
