/**
 * Casos de recuperación de pacientes — CINEO.
 */

.our-testimonial {
  margin: 0;
  padding: 90px 0;
  background: #f8fafc;
}

.our-testimonial .grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch;
  gap: 32px;
  margin: 0 auto;
}

.our-testimonial .widget.widget_text:not(.widget_custom_html) {
  flex: 0 0 100%;
  max-width: 830px;
  grid-column: auto;
  text-align: center;
  margin: 0 auto 8px;
}

.our-testimonial .widget.widget_text:not(.widget_custom_html) .widget-title {
  font-family: "Plus Jakarta Sans", Inter, sans-serif;
  font-weight: 700;
  font-size: 2rem;
  line-height: 1.2;
  color: #1e293b;
  margin: 0 0 12px;
}

.our-testimonial .widget.widget_text:not(.widget_custom_html) .textwidget {
  font-family: "Plus Jakarta Sans", Inter, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  color: #64748b;
}

.our-testimonial .widget_custom_html {
  flex: 1 1 420px;
  width: 100%;
  max-width: 540px;
  margin: 0;
  padding: 0;
  text-align: left;
  grid-column: auto;
}

.our-testimonial .widget_custom_html:has(.video-container--short) {
  flex: 1 1 300px;
  max-width: 360px;
}

.our-testimonial .widget_custom_html .custom-html-widget {
  margin: 0;
  padding: 0;
  height: 100%;
}

.caso-exito-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  border: 1px solid #e2e8f0;
  overflow: hidden;
  font-family: "Plus Jakarta Sans", Inter, sans-serif;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.caso-exito-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.1);
}

.video-container {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: 12px 12px 0 0;
  background: #0f172a;
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-container--short {
  padding-bottom: 177.78%;
}

.caso-info {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 24px 24px 28px;
}

.badge-area {
  background: #e0f2fe;
  color: #0369a1;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.3px;
  border-radius: 20px;
  padding: 4px 12px;
  display: inline-block;
  width: fit-content;
  text-transform: uppercase;
}

.caso-info h3 {
  margin: 0;
  color: #1e293b;
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.35;
}

.caso-datos {
  list-style: none;
  margin: 0;
  padding: 0;
  color: #475569;
  font-size: 14px;
  line-height: 1.55;
}

.caso-datos li {
  margin: 0 0 6px;
}

.caso-datos li:last-child {
  margin-bottom: 0;
}

.caso-datos strong {
  color: #1e293b;
  font-weight: 600;
}

.caso-resumen {
  margin: 4px 0 0;
  color: #64748b;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.65;
}

@media screen and (max-width: 1024px) {
  .our-testimonial .grid {
    grid-template-columns: none;
  }
}

@media screen and (max-width: 767px) {
  .our-testimonial {
    padding: 56px 0;
  }

  .our-testimonial .widget_custom_html,
  .our-testimonial .widget_custom_html:has(.video-container--short) {
    flex-basis: 100%;
    max-width: 100%;
  }
}
