.ts-text{
    display: none!important;
}

.block-expand-categories .expand-category h4 {
    top: 20px !important;
}

.counter+h5 {
    text-transform: none;
}

.portfolio-item .portfolio-image img {
    height: 250px;
    object-fit: cover;
}

.grid-filter li:nth-child(2).activeFilter a{
    background-color: var(--secondary-color)!important   ;
}

.grid-filter li:nth-child(3).activeFilter a{
    background-color: var(--primary-color)!important   ;
}

.grid-filter li:nth-child(4).activeFilter a{
    background-color: var(--tertiary-color)!important   ;
}

.grid-filter li:nth-child(5).activeFilter a{
    background-color: var(--cuaternary-color)!important   ;
}

/* Contenedor que se recorta */
.portfolio-collapser{
  position: relative;
}

/* Estado colapsado */
.portfolio-collapser.is-collapsed{
  max-height: 150vh;      /* <-- ajustá el alto fijo */
  overflow: hidden;
}

/* Fade abajo (solo cuando está colapsado) */
.portfolio-collapser .portfolio-fade{
  display: none;
}


.proyectos .portfolio-fade, .proyectos .portfolio-expand{
    display: none!important;
}
.proyectos .portfolio-collapser.is-collapsed{
    height: auto!important;
    max-height: unset!important;
}

.portfolio-collapser.is-collapsed .portfolio-fade{
    display: block;
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 360px;
    z-index: 99999;
  pointer-events: none;
  background: linear-gradient(to top, rgba(255,255,255,0.95), rgba(255,255,255,0));
}

/* Si tu fondo NO es blanco, cambiá el rgba(255,255,255,0.95) por tu color de fondo */

/* Botón: cuando está expandido, lo ocultamos */
.portfolio-collapser:not(.is-collapsed) .portfolio-expand{
  display: none;
}

.portfolio-collapser:not(.is-collapsed){
  padding-bottom: 3em;
}

.portfolio-expand.text-center.mt-3 {
    z-index: 99999;
    position: absolute;
    bottom: 50px;
    left: calc(50%);
    transform: translateX(-50%);
}

.portfolio-desc{
    padding-bottom: 0;
}

@media(min-width: 575px){
    #bwblock_76312:before, #bwblock_36389:before, #bwblock_31539:before {
        content: "→";
        position: absolute;
        top: 20px;
        left: -10px;
        font-size: 1.5em;
    }
}

@media(max-width: 575px){
    .index header#header {
        margin-bottom: -100px;
    }

    .grid-filter li a {
        border: 1px solid #dddddd;
    }

    div#bwblock_30891, #bwblock_57528, #bwblock_59088, #bwblock_26193 {
        padding: 0 !important;
    }

    .grid-filter{
        margin-bottom: 2em!important;
    }

    div#copyrights .col-md-4 > a {
        width: 100%;
        margin: 0 !important;
        display: block;
    }

    #footer .social-icon.si-facebook, #footer .social-icon.si-instagram {
        margin-top: 10px;
    }

    div#copyrights a {
        line-height: 2.2em;
    }

    .middot_facebook, .middot_instagram{
        opacity: 0;
    }
}

header#header.sticky-top.dark {
    background: linear-gradient(0deg, rgba(15, 17, 19, 0) 0%, rgba(15, 17, 19, 0.75) 100%);
}

#top-social li .ts-icon {
    font-size: 1em;
}


/* MAPA INTERACTIVO */

.uy-map{
  margin: 0 auto;
}

.uy-map svg{
    width: 120%;
    height: auto;
    display: block;
    margin: -10% 0 -10% -10%;
}

/* Estado base (sin animar) */
.uy-map svg path{
  fill: #6f757c;
  stroke: #ffffff;
  stroke-width: .7px;
  stroke-linecap: round;
  stroke-linejoin: round;

  fill-opacity: 0;           /* arrancan “apagados” */
  transform-origin: center;
  filter: saturate(1) brightness(1);
}

/* Pintado: solo cuando el contenedor tiene .is-animating */
.uy-map.is-animating svg path{
  animation-name: uyPaint;
  animation-duration: 700ms;
  animation-timing-function: cubic-bezier(.2,.9,.2,1);
  animation-fill-mode: forwards;
  animation-iteration-count: 1;
  animation-delay: var(--d, 0ms);
}


/* Keyframe de pintado */
@keyframes uyPaint{
  0%   { fill-opacity: 0; transform: scale(0.985); filter: saturate(.9) brightness(.98); }
  60%  { fill-opacity: .85; transform: scale(1.01); }
  100% { fill-opacity: 1; transform: scale(1); filter: saturate(1) brightness(1); }
}

/* Sparkle sutil (se aplica solo a paths que JS marque con .sparkle) */
.uy-map.is-sparkling svg path.sparkle{
  animation: uySparkle 900ms ease-in-out 1;
}

@keyframes uySparkle{
  0%, 100% { filter: saturate(1) brightness(1); }
  50%      { filter: saturate(1.11) brightness(1.11); }
}

/* Accesibilidad */
@media (prefers-reduced-motion: reduce){
  .uy-map svg path{
    animation: none !important;
    fill-opacity: 1 !important;
  }
}

/* TERMINA MAPA INTERACTIVO */

.clients-grid .grid-item a img {
    height: 100px;
    object-fit: contain;
    filter: grayscale(1);
    transition: all 0.3s ease;
}

.clients-grid .grid-item a img:hover {
    filter: grayscale(0);
}

@media(min-width: 992px){
    ul.clients-grid > li:first-child::before, ul.clients-grid > li:nth-child(6)::before, ul.clients-grid > li:nth-child(12)::before {
        opacity: 0;
    }
}


/* BOTON DE IDEA */

.idea-float{
  position: fixed;
  left: 15px;
  bottom: 80px;
  z-index: 9999;

  display: inline-flex;
  align-items: center;
  gap: 12px;

  text-decoration: none;
  cursor: pointer;
}

/* GIF */
.idea-float__gif{
  width: 56px;          /* ajustá tamaño */
  height: auto;
  display: block;
  border-radius: 12px;  /* opcional */
}

/* Texto desplegable */
.idea-float__text{
  white-space: nowrap;

  /* “cajita” */
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(0,0,0,.78);
  color: #fff;
  font-size: 14px;
  line-height: 1;

  /* oculto por defecto */
  max-width: 0;
  opacity: 0;
  overflow: hidden;

  /* animación suave */
  transition: max-width .28s ease, opacity .2s ease, transform .28s ease;
  transform: translateX(-6px);

  /* para que el padding no empuje cuando max-width=0 */
  padding-left: 0;
  padding-right: 0;
}

/* Hover / focus: muestra texto */
.idea-float:hover .idea-float__text,
.idea-float:focus-visible .idea-float__text{
  max-width: 360px;     /* cuánto puede crecer */
  opacity: 1;
  transform: translateX(0);

  padding-left: 12px;
  padding-right: 12px;
}

/* TERMINA BOTON DE IDEA */


.card-subtitle {
    padding: 30px;
    opacity: 0;
    transition: all 1s ease;
    z-index: 9999;
    position: absolute;
    background-color: rgba(255, 255, 255, 0.95) !important;
    bottom: 0;
}

.card-subtitle b{
    font-weight: 600;
}

.expand-category:hover .card-subtitle {
    opacity: 1;
}

div#bwblock_45458 {
    padding: 0;
}

#bwblock_38167 h4 {
    font-style: italic;
    font-size: 1.5em;
}

#posts .grid-inner.rounded-xxxl {
    border-bottom-left-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
}

.fbox-bg.fbox-center .fbox-icon {
    background-color: #f2efef;
}