/* Testimonials Block Styles */
.testimonials-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
  gap: 30px;
  width: 100%;
}

.testimonial-card {
  background-image: linear-gradient(180deg,rgb(18,19,20) 0%,rgb(8,9,10) 100%);
  border-radius: 20px;
  padding: 35px 30px;
  color: #fff;
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.1);
  min-height: 220px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.text-with-link {
  font-size: 18px;
  color: #fff;
  font-weight: 400;
  margin: 0 0 30px 0;
  line-height: 1.6;
  flex-grow: 1;
}

.see-more-link {
  color: #fff;
  margin-left: 6px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  text-decoration: none;
  cursor: pointer;
}

.see-more-text {
  font-size: 14px;
  text-decoration: underline;
  font-weight: 500;
}

.arrow {
  font-size: 18px;
  text-decoration: none;
}

.see-more-link:hover .see-more-text,
.see-more-link:hover .arrow {
  color: #EF25C7;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 16px;
}

.testimonial-image {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
}

.testimonial-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.default-avatar {
  width: 100%;
  height: 100%;
  background-color: #B3F13C;
  display: flex;
  align-items: center;
  justify-content: center;
}

.testimonial-info {
  display: flex;
  flex-direction: column;
}

.testimonial-name {
  font-size: 16px;
  font-weight: 600;
  margin: 0;
  color: #fff;
}

.testimonial-position {
  font-size: 16px;
  color: rgb(160, 159, 160);;
  margin: 0;
}

/* Modal Styles */
/* Modal base */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  justify-content: center;
  align-items: center;
  z-index: 2147483647 !important;
  overflow-y: auto; /* Enable vertical scrolling */
  padding: 20px 0; /* Add padding to ensure content doesn't touch edges */
}

.modal-inner {
  background: transparent;
  border-radius: 20px;
  max-width: 800px;
  width: 90%;
  position: relative;
}

/* Contenedor */
.modal-content {
  background: #F5F4F6;
  border: 1px solid #D7D7D7;
  border-radius: 20px;
  padding: 40px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Header */
.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start; /* Alinea elementos al top */
}

.closeModalImg {
  width: 32px;
  height: 32px;
  cursor: pointer;
  margin-top: 0; /* aseguramos que no haya margen que lo desplace */
}

.modal-avatar {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 1;
}

.modal-avatar img {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
}

.modal-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.modal-name {
  font-family: Roboto, sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: #141414;
}

.modal-title {
  font-family: Roboto, sans-serif;
  font-size: 14px;
  font-weight: 400;
  color: #555;
}

/* Body */
.modal-body {
  font-family: Roboto, sans-serif;
  font-size: 16px;
  font-weight: 400;
  color: #141414;
  line-height: 1.6;
}

.modal-body p {
  margin: 0 0 16px;
}

.modal-body p:last-child {
  margin-bottom: 0;
}

/* Responsive styles */
@media (max-width: 1024px) {
  .testimonials-container {
    grid-template-columns: 1fr;
    max-width: 600px;
    margin: 0 auto;
  }
  
  .testimonial-card {
    min-height: 180px;
  }
}

@media (max-width: 768px) {
  .testimonial-card {
    padding: 25px 20px;
  }
  
  .modal-inner {
    width: 95%;
    margin: 20px auto;
  }
  
  .modal-content {
    padding: 20px;
    max-height: calc(100vh - 80px); /* Limit height to prevent overflow */
  }
  
  .modal-body {
    overflow-y: auto; /* Enable scrolling for the content */
    max-height: 60vh; /* Limit height to ensure it's scrollable */
  }
  
  .modal-header {
    flex-wrap: wrap;
    gap: 10px;
  }
  
  .closeModalImg {
    position: absolute;
    top: 15px;
    right: 15px;
  }
}

.index-fix{
    z-index: 0;
}