/* ==========================================================================
   Educación al paciente y familia — Clínica Palermo
   Figma: 1101:11843
   ========================================================================== */

/* ─── Hero ─── */
.edu-hero {
  width: 100%;
}

.edu-hero__inner {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 56px 0;
  min-height: 495px;
  background-color: #f5f5f5;
  background-size: cover;
  background-position: center;
}

.edu-hero__inner.edu-hero--bg {
  background-color: transparent;
}

.edu-hero__content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  width: 100%;
  max-width: 452px;
  padding-left: 0;
}

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

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

.edu-hero__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 20px;
  height: 44px;
  background: var(--cp-blue-700); /* #0e4fbe */
  color: #fff;
  font-family: var(--cp-font-body);
  font-size: 16px;
  font-weight: 700;
  line-height: 20px;
  border-radius: 10px;
  text-decoration: none;
  transition: background-color 0.2s ease;
}

.edu-hero__button:hover,
.edu-hero__button:focus,
.edu-hero__button:focus-visible {
  background: #0a3d8f;
  color: #fff;
}

/* ─── Video sections ─── */
.edu-section {
  padding: 56px 0;
  background: #fff;
}

.edu-section--gray {
  background: #f5f5f5;
}

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

.edu-section__grid--alt {
  flex-direction: row-reverse;
  /* 687 video + 69 gap + 359 texto = 1115 contenedor (Figma 1690-5570) */
  gap: 69px;
}

.edu-section__text {
  flex: 0 0 583px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
}

.edu-section__text--narrow {
  flex: 1 1 0;
  min-width: 0;
  max-width: 359px;
}

.edu-section__icon {
  width: 50px;
  height: 50px;
}

.edu-section__icon svg {
  width: 50px;
  height: 50px;
}

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

.edu-title--blue {
  color: var(--cp-blue-700); /* #0e4fbe */
}

.edu-section__title--short {
  line-height: 36px;
}

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

/* ─── Warning banner inside section ─── */
.edu-section__warning {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 15px;
  background: #f3f6fb;
  border: 1px solid var(--cp-blue-700); /* #0e4fbe */
  border-radius: 10px;
  font-family: var(--cp-font-body);
  font-size: 16px;
  font-weight: 500;
  line-height: 19.5px;
  color: var(--cp-blue-700); /* #0e4fbe */
  width: 100%;
}

.edu-section__warning-icon {
  flex: none;
}

/* ─── Video column ─── */
.edu-section__video {
  flex: 0 0 auto;
}

.edu-section__video-wrapper {
  position: relative;
  width: 264.75px;
  height: 469.15px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(213, 223, 235, 0.5);
}

.edu-section__video-player {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 8px;
}

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

.edu-section__video-embed video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.edu-section__grid--alt .edu-section__video-wrapper {
  width: 687px;
  height: 388px;
}

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

.edu-section__video-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 168px;
  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: 15px 10px 10px;
}

.edu-section__grid--alt .edu-section__video-overlay {
  height: 126px;
  padding: 20px;
}

.edu-section__video-controls {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
}

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

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

.edu-section__grid--alt .edu-section__video-time {
  font-size: 16px;
  line-height: 18.8px;
}

/* ─── Column layout (Quirúrgicos, Seguridad) ─── */
.edu-section__col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  width: 100%;
}

.edu-section__col-header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  width: 100%;
}

/* ─── Desc pending (red text) ─── */
.edu-section__desc--pending {
  color: #DD2025;
}

/* ─── Divider (blue line) ─── */
.edu-section__divider {
  width: 75px;
  height: 4px;
  background: #0E4FBE;
}

/* ─── Subtitle (H3) ─── */
.edu-section__subtitle {
  margin: 0;
  font-family: var(--cp-font-heading);
  font-size: 24px;
  font-weight: 800;
  line-height: 33px;
  color: var(--cp-text-ink);
}

/* ─── Cards grid ─── */
.edu-section__cards-grid {
  display: grid;
  gap: 20px;
  width: 100%;
}

.edu-section__cards-grid--3 {
  grid-template-columns: repeat(3, 1fr);
}

.edu-section__cards-grid--4 {
  grid-template-columns: repeat(4, 1fr);
}

/* ─── Card item ─── */
.edu-section__card-item {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  padding: 25px;
  gap: 20px;
  background: #FFFFFF;
  border: 1px solid #D5DFEB;
  border-radius: 20px;
}

.edu-section__card-item--center {
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.edu-section__card-icon {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 49px;
  height: 49px;
  padding: 10px;
  background: #F3F6FB;
  border-radius: 10px;
}

.edu-section__card-icon svg {
  width: 31px;
  height: 31px;
}

.edu-section__card-text {
  margin: 0;
  font-family: var(--cp-font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 20px;
  color: var(--cp-text-ink);
  flex: 1;
}

.edu-section__card-list {
  margin: 4px 0 0;
  padding-left: 18px;
  font-family: var(--cp-font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 20px;
  color: var(--cp-text-ink);
}

.edu-section__card-list li {
  margin-bottom: 4px;
}

.edu-section__card-list li:last-child {
  margin-bottom: 0;
}

/* ─── Alert box ─── */
.edu-section__alert {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  padding: 15px;
  gap: 10px;
  background: #F3F6FB;
  border: 1px solid #0E4FBE;
  border-radius: 10px;
  width: 100%;
  box-sizing: border-box;
}

.edu-section__alert-title {
  margin: 0;
  font-family: var(--cp-font-body);
  /* 15px: la linea 2 mide 339px a 16px y desborda los 329px del recuadro;
     a 15px mide ~318px y el recuadro queda de 90px como en Figma. */
  font-size: 15px;
  font-weight: 700;
  line-height: 20px;
  color: #0E4FBE;
  text-align: left;
}

.edu-section__alert-body {
  margin: 0;
  font-family: var(--cp-font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 20px;
  color: #0E4FBE;
}

/* ─── Image column (Nacimiento) ─── */
.edu-section__image-col {
  flex: 0 0 auto;
}

.edu-section__image {
  width: 452px;
  height: 603px;
  object-fit: cover;
  border-radius: 0;
  display: block;
}

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

  .edu-section__text,
  .edu-section__text--narrow {
    flex: none;
    width: 100%;
    max-width: 583px;
  }

  .edu-section__grid--alt .edu-section__video-wrapper {
    width: 100%;
    max-width: 500px;
    height: auto;
    aspect-ratio: 16/9;
  }

  .edu-section__video-wrapper {
    width: 100%;
    max-width: 350px;
    height: auto;
    aspect-ratio: 9/16;
  }
}

@media (max-width: 767px) {
  /* ─── Hero mobile (Figma: 360x500, pad=[56,20]) ─── */
  .edu-hero__inner {
    padding: 56px 20px;
    min-height: auto;
  }

  .edu-hero__content {
    gap: 20px;
  }

  .edu-hero__title {
    font-size: 30px;
    line-height: 36px;
  }

  /* ─── Sections mobile ─── */
  .edu-section {
    padding: 0;
  }

  .edu-section--card {
    padding: 54px 20px;
  }

  .edu-section--gray.edu-section--card {
    background: #f5f5f5;
  }

  .edu-section:not(.edu-section--card) {
    padding: 56px 20px;
  }

  .edu-section__grid,
  .edu-section__grid--alt {
    flex-direction: column;
    gap: 24px;
  }

  .edu-section__text,
  .edu-section__text--narrow {
    flex: none;
    width: 100%;
    max-width: 100%;
    gap: 20px;
  }

  .edu-section__title {
    font-size: 30px;
    line-height: 36px;
  }

  .edu-section__desc {
    line-height: 19.5px;
  }

  /* ─── Video mobile: full width ─── */
  .edu-section__video {
    width: 100%;
  }

  .edu-section__video-wrapper {
    width: 100%;
    max-width: 100%;
    height: auto;
    aspect-ratio: 9/16;
  }

  .edu-section__grid--alt .edu-section__video-wrapper {
    width: 100%;
    max-width: 100%;
    height: auto;
    aspect-ratio: 16/9;
  }

  /* ─── Video overlay heights ─── */
  .edu-section__video-overlay {
    height: 203px;
    padding: 15px 10px 10px;
  }

  .edu-section__grid--alt .edu-section__video-overlay {
    height: 59px;
    padding: 20px;
  }

  /* ─── Warning mobile ─── */
  .edu-section__warning {
    width: 100%;
  }

  /* ─── Cards grid mobile ─── */
  .edu-section__cards-grid--3,
  .edu-section__cards-grid--4 {
    grid-template-columns: 1fr;
  }

  .edu-section__card-item {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 20px;
  }

  .edu-section__alert {
    flex-direction: column;
    text-align: center;
    padding: 20px;
  }

  .edu-section__alert-text {
    align-items: center;
  }

  /* ─── Image mobile ─── */
  .edu-section__image {
    width: 100%;
    height: auto;
    aspect-ratio: 452/603;
  }
}
