@import url("https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@20..48,100..700,0..1,-50..200&icon_names=arrow_outward,call_received");
.simi-socios,
.simi-socios * { box-sizing: border-box; }
.simi-socios {
  display: grid;
  grid-template-columns: repeat(5, 180px);
  grid-auto-rows: 225px;
  gap: 16px;
  justify-content: center;
  overflow: visible;
  font-family: Montserrat, sans-serif;
}
.elementor-widget-html:has(.simi-socios),
.elementor-widget-shortcode:has(.simi-socios) {
  width: 100%;
}
.simi-socios__slot {
  position: relative;
  width: 180px;
  height: 225px;
  z-index: 1;
  transition: transform 0.6s ease;
}
.simi-socios__slot:hover,
.simi-socios__slot.is-open { z-index: 40; }
.simi-socios__card {
  position: absolute;
  top: 0;
  left: 0;
  width: 180px;
  height: 225px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;  
  padding: 16px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.05);
  outline: 1.18px solid #E5E7EB;
  outline-offset: -1.18px;
  overflow: hidden;
  transition: width 0.8s ease, height 0.8s ease, box-shadow 0.8s ease, padding 0.8s ease;
}
.simi-socios .material-symbols-outlined {
  font-family: "Material Symbols Outlined";
  font-style: normal;
  font-weight: normal;
  font-variation-settings: "FILL" 0, "wght" 400, "GRAD" 0, "opsz" 24;
  -webkit-font-feature-settings: "liga";
  font-feature-settings: "liga";
}
.simi-socios__arrow { display: none; }
.simi-socios__logo {
  width: 150px;
  height: 80px;
  object-fit: contain;
  flex-shrink: 0;
}
.simi-socios__bio,
.simi-socios__btn,
.simi-socios__arc { display: none; }
.simi-socios__slot:nth-child(5n-1) .simi-socios__card,
.simi-socios__slot:nth-child(5n) .simi-socios__card {
  left: auto;
  right: 0;
}
.simi-socios__slot:nth-child(n+11) .simi-socios__card {
  top: auto;
  bottom: 0;
}
.simi-socios__slot:hover .simi-socios__card,
.simi-socios__slot.is-open .simi-socios__card {
  width: 400px;
  height: 230px;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 22px 24px 18px;
  outline: none;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
  background:
    linear-gradient(#fff, #fff) padding-box,
    linear-gradient(120deg, #2a2a72, #c4a24a) border-box;
  border: 1.5px solid transparent;
}
.simi-socios__slot:hover .simi-socios__logo,
.simi-socios__slot.is-open .simi-socios__logo {
  width: auto;
  max-width: 170px;
  height: 48px;
  margin-bottom: 12px;
  align-self: flex-start;
}
@keyframes simi-socios-bio-fade {
  from { opacity: 0; filter: blur(4px); }
  to   { opacity: 1; filter: blur(0); }
}
.simi-socios__slot:hover .simi-socios__bio,
.simi-socios__slot.is-open .simi-socios__bio {
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0;
  flex: 1;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.45;
  color: #111;
  text-align: left;
  animation: simi-socios-bio-fade 1.2s ease-out both;
}
.simi-socios__slot:hover .simi-socios__btn,
.simi-socios__slot.is-open .simi-socios__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: flex-end;
  margin-top: 10px;
  padding: 8px 18px;
  background: #111;
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
  border-radius: 8px;
  z-index: 1;
  white-space: nowrap;
}
.simi-socios__slot:hover .simi-socios__arc,
.simi-socios__slot.is-open .simi-socios__arc {
  display: block;
  position: absolute;
  left: -38px;
  bottom: -73px;
  pointer-events: none;
}
.simi-socios__arc::after {
  content: "";
  position: absolute;
  inset: 16px;
  border-radius: 9999px;
  background: #fff;
}
@media (max-width: 980px) {
  .simi-socios {
    grid-template-columns: repeat(auto-fill, 180px);
    grid-template-rows: none;
  }
  .simi-socios__arrow {
    display: block;
    position: absolute;
    top: 16px;
    right: 16px;
    font-size: 24px;
    line-height: 1;
    color: #000;
    z-index: 2;
    pointer-events: auto;
    cursor: pointer;
  }
  .simi-socios__slot:nth-child(5n-1) .simi-socios__card,
  .simi-socios__slot:nth-child(5n) .simi-socios__card {
    left: 0;
    right: auto;
  }
  .simi-socios__slot:nth-child(n+11) .simi-socios__card {
    top: 0;
    bottom: auto;
  }
  .simi-socios__card {
    transition: none;
  }
  .simi-socios__slot:hover:not(.is-open) { z-index: 1; }
  .simi-socios__slot:hover:not(.is-open) .simi-socios__card {
    width: 180px;
    height: 225px;
    align-items: center;
    justify-content: center;
    padding: 16px;
    outline: 1.18px solid #E5E7EB;
    outline-offset: -1.18px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.05);
    background: #fff;
    border: none;
  }
  .simi-socios__slot:hover:not(.is-open) .simi-socios__logo {
    width: 150px;
    max-width: none;
    height: 80px;
    margin-bottom: 0;
    align-self: center;
  }
  .simi-socios__slot:hover:not(.is-open) .simi-socios__bio,
  .simi-socios__slot:hover:not(.is-open) .simi-socios__btn,
  .simi-socios__slot:hover:not(.is-open) .simi-socios__arc {
    display: none;
  }
  .simi-socios__slot.is-open .simi-socios__card {
    width: min(400px, calc(100vw - 32px));
    left: 0;
    right: auto;
  }
}
