/* Casos de Éxito Styles */

.main__page__banner {
  width: 100%;
  min-height: 100vh;
  background: #ffffff;
  color: #000;
  font-family: 'Figtree', sans-serif;
}

/* Hero Section */
.success__banner {
  display: flex;
  background: url(../assets/images/success-stories-banner.webp) no-repeat center center/cover;
  height: 300px;
  position: relative;
  align-items: center;
  justify-content: center;
  margin-bottom: 0;
}

.success__banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(270deg, rgba(23, 74, 255, 0) 0%, rgba(23, 74, 255, 1) 100%);
  pointer-events: none;
}

.page__banner-content {
  background: none;
  padding: 0 21px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  position: relative;
  z-index: 1;
}



/* Profile and Card Section */
.profile-card-section {
  position: relative;
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  margin-top: -50px;
  z-index: 2;
}

.profile-container {
  width: 239px;
  height: 239px;
  border-radius: 50%;
  overflow: hidden;
  border: 7px solid #f4f2f2;
  background: #ffffff;
}

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

.event-card {
  display: flex;
   gap: 16px;
  background: #1A1B23;
  border-radius: 25px;
  padding: 16px;
  width: 100%;
  max-width: 335px;
  box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);
  color: white;
}

.card-header {
 display: none;
}

.calendar-icon {
  flex-shrink: 0;
  width: 59px;
  height: 59px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.event-title {
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  font-size: 22px;
  line-height: 1.3;
  color: #ffffff;
  margin: 0;
  margin-bottom: 12px;
  flex: 1;
}

.event-details {
  font-family: 'Figtree', sans-serif;
  font-size: 17px;
  line-height: 23px;
  color: #ffffff;
}

.event-details p {
  margin: 0 0 8px 0;
  font-weight: 400;
}

.event-details strong {
  font-weight: 400;
}

.rating {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
}

.stars {
  display: flex;
  align-items: center;
}

/* Success Story Section */
.success-story {
  padding: 40px 20px;
  max-width: 100%;
}

.story-title {
  font-family: 'Figtree', sans-serif;
  font-weight: 700;
  font-size: 22px;
  line-height: 34px;
  color: #000000;
  text-align: left;
  margin: 0 0 24px 0;
}

.story-content {
  font-family: 'Figtree', sans-serif;
  font-weight: 500;
  font-size: 16.5px;
  line-height: 1.2;
  color: #4F4F4F;
  text-align: justify;
}

.story-content p {
  margin: 0 0 16px 0;
}

.story-content p:last-child {
  margin-bottom: 0;
}

/* Gallery Section */
.gallery-section {
  padding: 20px;
}

.gallery-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
}

.gallery-item {
  width: 100%;
  border-radius: 30px;
  overflow: hidden;
  background: #f0f0f0;
  aspect-ratio: 16/9;
}

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

/* Desktop Styles */
@media (min-width: 1024px) {
  .success__banner {
    height: 500px;
    margin-bottom: 0;
  }

  .success-title {
    font-size: 66px;
    line-height: 74px;
  }

  .profile-card-section {
    flex-direction: row-reverse;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 40px 80px;
    gap: 40px;
    margin-top: -120px;
    max-width: 1440px;
    margin-left: auto;
    margin-right: auto;
  }

  .profile-container {
    width: 268px;
    height: 268px;
    border: 7px solid #f1efef;
    order: 1;
  }

  .event-card {

    max-width: 409px;
    padding: 24px;
    order: 0;
    margin-right: auto;
  }

  .card-header {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
  }

  .calendar-icon {
    width: 91px;
    height: 91px;
  }

  .calendar-icon svg {
    width: 91px;
    height: 91px;
  }

  .event-title {
    font-size: 22px;
    line-height: 1.3;

  }

  .event-details {
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    line-height: 1.5;
  }

  .success-story {
    padding: 60px 80px;
    max-width: 1440px;
    margin: 0 auto;
  }

  .story-title {
    font-size: 39px;
    line-height: 38px;
    letter-spacing: -1px;
    margin-bottom: 40px;
    max-width: 1294px;
  }

  .story-content {
    font-family: 'Nunito Sans', sans-serif;
    font-size: 16px;
    line-height: 27px;
    font-variation-settings: 'YTLC' 500, 'wdth' 100;
    max-width: 1294px;
  }

  .gallery-section {
    padding: 40px 80px 80px;
    max-width: 1440px;
    margin: 0 auto;
  }

  .gallery-grid {
    flex-direction: row;
    gap: 30px;
    justify-content: space-between;
  }

  .gallery-item {
    flex: 1;
    max-width: calc(33.333% - 20px);
    aspect-ratio: 16/12;
  }
}

/* Tablet Styles */
@media (min-width: 768px) and (max-width: 1023px) {
  .success__banner {
    height: 350px;
  }

  .success-title {
    font-size: 48px;
    line-height: 56px;
  }

  .profile-card-section {
    padding: 30px 40px;
    margin-top: -80px;
  }

  .profile-container {
    width: 200px;
    height: 200px;
  }

  .event-card {
    max-width: 400px;
    padding: 28px;
  }

  .success-story {
    padding: 50px 40px;
  }

  .story-title {
    font-size: 28px;
    line-height: 36px;
  }

  .gallery-section {
    padding: 30px 40px;
  }

  .gallery-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }

  .gallery-item:last-child {
    grid-column: 1 / -1;
    max-width: 50%;
    margin: 0 auto;
  }
.card-header {
 display: flex;
}

}
