/* ==========================================================================
   Agendar cita — Clínica Palermo
   Figma: 1169:14749
   ========================================================================== */

/* ─── Main section (gray bg, video left + text right) ─── */
.agendar-section {
  padding: 56px 0;
  background: #f5f5f5;
}

.agendar-section__grid {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 94px;
}

.agendar-section__text {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
}

.agendar-section__title {
  margin: 0;
  font-family: var(--cp-font-heading);
  font-size: 32px;
  font-weight: 800;
  line-height: 36px;
  color: var(--cp-text-ink); /* #344054 */
}

.agendar-section__desc {
  margin: 0;
  font-family: var(--cp-font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 20px;
  color: var(--cp-text-ink); /* #344054 */
}

/* ─── Button (WhatsApp orange, Figma: 196x44, r=10) ─── */
.agendar-section__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 20px;
  height: 44px;
  background: #ff8c45;
  color: #fff;
  font-family: var(--cp-font-body);
  font-size: 16px;
  font-weight: 700;
  line-height: 20px;
  border-radius: 10px;
  text-decoration: none;
  border: 1px solid #ff8c45;
  transition: background-color 0.2s ease;
}

.agendar-section__button:hover,
.agendar-section__button:focus,
.agendar-section__button:focus-visible {
  background: #e67a35;
  border-color: #e67a35;
  color: #fff;
}

.agendar-section__button-ext {
  flex: none;
}

/* ─── Video column ─── */
.agendar-section__video {
  flex: 0 0 auto;
  max-width: 100%;
}

.agendar-section__video-wrapper {
  position: relative;
  width: 100%;
  max-width: 662px;
  aspect-ratio: 16/9;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(213, 223, 235, 0.5);
  background: #000;
}

.agendar-section__video-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.agendar-section__video-player {
  display: block;
  width: 100%;
  height: 100%;
  border: none;
  object-fit: contain;
}

.agendar-section__video-embed {
  width: 100%;
  height: 100%;
}

.agendar-section__video-embed iframe,
.agendar-section__video-embed video {
  width: 100%;
  height: 100%;
  border: none;
}

/* ─── Video overlay (Figma Frame 103367) ─── */
.agendar-section__video-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 121px;
  background: linear-gradient(360deg, #000 10%, rgba(0,0,0,0.3) 55%, rgba(172,172,172,0) 85%, rgba(255,255,255,0) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px;
  gap: 8px;
}

.agendar-section__video-controls {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.agendar-section__video-play {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.agendar-section__video-time {
  font-family: 'Roboto', sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 19px;
  color: #fff;
}

.agendar-section__video-actions {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 15px;
}

/* ─── Progress bar (Figma Frame 103364) ─── */
.agendar-section__video-progress {
  width: 100%;
  height: 4px;
  background: #5c5c5c;
  border-radius: 50px;
}

.agendar-section__video-progress-bar {
  width: 24px;
  height: 4px;
  background: #b4b4b4;
  border-radius: 50px;
}

/* ─── Responsive ─── */
@media (max-width: 1024px) {
  .agendar-section__grid {
    flex-direction: column;
    gap: 40px;
  }

  .agendar-section__video-wrapper {
    max-width: 662px;
  }
}

@media (max-width: 767px) {
  .agendar-section {
    padding: 40px 0;
  }

  .agendar-section__title {
    font-size: 24px;
    line-height: 30px;
  }

  .agendar-section__video-wrapper {
    max-width: 100%;
  }
}
