/**
 * Theme Name: Blocksy Child
 * Description: Blocksy Child theme
 * Author: Creative Themes
 * Template: blocksy
 * Text Domain: blocksy
 */

.bitlab-category-filters {
    margin: 20px 0 30px 0;
    text-align: center;
    padding: 20px 0;
    border-bottom: 1px solid #e8e8e8;
}

.filter-pills-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
}

.filter-pill {
    display: inline-flex;
    align-items: center;
    padding: 10px 18px;
    background-color: #f4f6f8;
    color: #333;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    cursor: pointer;
    white-space: nowrap;
}

.filter-pill:hover {
    background-color: #254d81;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    text-decoration: none;
    color: #333;
}

.filter-pill.active {
    background-color: #254d81;
    color: #fff;
    border-color: #254d81;
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(37, 77, 129, 0.3);
}

.filter-pill .count {
    margin-left: 6px;
    font-size: 12px;
    opacity: 0.8;
    font-weight: 400;
}

.filter-pill.active .count {
    opacity: 0.9;
}

/* Loading spinner */
.loading-spinner {
    text-align: center;
    padding: 60px 20px;
    font-size: 16px;
    color: #666;
}

.loading-spinner:before {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #254d81;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s linear infinite;
    margin-right: 10px;
    vertical-align: middle;
}

/* Loading spinner para filtros */
.loading-spinner-item {
    list-style: none !important;
    text-align: center;
    padding: 60px 20px;
    font-size: 16px;
    color: #666;
    grid-column: 1 / -1;
    /* Ocupa todo el ancho del grid */
}

.loading-spinner-item:before {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #254d81;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s linear infinite;
    margin-right: 10px;
    vertical-align: middle;
}

.error-item {
    list-style: none !important;
    text-align: center;
    padding: 40px 20px;
    color: #e74c3c;
    grid-column: 1 / -1;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .filter-pills-container {
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 10px;
    }

    .filter-pill {
        flex-shrink: 0;
        padding: 8px 14px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .bitlab-category-filters {
        margin: 15px -15px 25px -15px;
        padding: 15px;
    }

    .filter-pills-container {
        gap: 6px;
    }

    .filter-pill {
        padding: 6px 12px;
        font-size: 12px;
    }
}

/* Image for about us */

.about-us-img{
    mask-image: linear-gradient(
        black 80%,
        transparent
    );
    transition: transform 0.5s;
}

.about-us-img:hover{
    transform: scale(1.05);
}
/* Conócenos – móvil: recorte sin cortar cabezas */
@media (max-width: 767px) {
  .stk-block-image .stk-img-wrapper {
    height: 320px !important;   /* prueba 300–360px si quieres */
    overflow: hidden;
  }
}
  .about-us-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 15%;   /* muestra más la parte superior */
    display: block;
  }

/* Imagen: fade suave en escritorio */
.about-us-img {
  /* degradado más natural */
  -webkit-mask-image: linear-gradient(
    to bottom,
    rgba(0,0,0,1) 84%,
    rgba(0,0,0,0.85) 90%,
    rgba(0,0,0,0.45) 96%,
    rgba(0,0,0,0) 100%
  );
  mask-image: linear-gradient(
    to bottom,
    rgba(0,0,0,1) 84%,
    rgba(0,0,0,0.85) 90%,
    rgba(0,0,0,0.45) 96%,
    rgba(0,0,0,0) 100%
  );
  mask-repeat: no-repeat;
  mask-size: 100% 100%;
  transition: transform .5s;
}

/* Hover solo en desktop */
@media (hover: hover) and (min-width: 768px) {
  .about-us-img:hover { transform: scale(1.05); }
}

/* ====== Ajustes específicos para móvil ====== */
@media (max-width: 767px) {

  /* Quitar alto fijo y overflow para no cortar */
  .stk-block-image .stk-img-wrapper {
    height: auto !important;
    overflow: visible !important;
    position: relative;
  }

  .about-us-img {
    width: 100%;
    height: auto !important;         /* mantiene proporción original */
    object-fit: contain !important;  /* muestra todo, aunque quede espacio */
    object-position: center center !important;

    /* quitar degradado/fade */
    -webkit-mask-image: none !important;
    mask-image: none !important;

    display: block;
  }

  /* más espacio entre tarjetas/nombres en móvil */
  .stk-block-image { 
    margin-bottom: 72px !important; 
  }

  /* desactiva zoom en móvil */
  .about-us-img:hover { transform: none; }
}