/* ==========================================================
   LANDING: SOCIOSANITARIO
   Namespace: .educa-landing--sociosanitaria / .edu-ss-*
   Carga condicional: solo en page-sociosanitaria.php
   (ver child_enqueue_landing_styles() en functions.php)
   ========================================================== */

/* ---------- Fix Astra SOLO para esta landing ---------- */
body.page-template-page-sociosanitaria .site-content .ast-container,
body.page-template-page-sociosanitaria-php .site-content .ast-container {
  max-width: 100%;
  padding-left: 0;
  padding-right: 0;
  display: block;
}

body.page-template-page-sociosanitaria .entry-content,
body.page-template-page-sociosanitaria-php .entry-content {
  width: 100%;
  max-width: 100%;
  padding: 0;
  margin: 0;
}

body.page-template-page-sociosanitaria .entry-content > .edu-ss,
body.page-template-page-sociosanitaria-php .entry-content > .edu-ss {
  width: 100%;
}

/* ---------- Base / tokens ---------- */
.edu-ss {
  --ss-primary: #5C66AD;
  --ss-dark: #373D6D;
  --ss-darker: #0e1232;
  --ss-bg-soft: #eef0f8;
  --ss-card-soft: #e4e7f1;
  --ss-max-w: 1180px;
  --ss-side-pad: 40px;
  --ss-radius: 16px;

  width: 100%;
  max-width: none;
  overflow-x: hidden;
  font-family: "Work Sans", Arial, sans-serif;
  color: #11142E;
  background: #ffffff;
}

.edu-ss *,
.edu-ss *::before,
.edu-ss *::after {
  box-sizing: border-box;
}

.edu-ss h1,
.edu-ss h2,
.edu-ss h3,
.edu-ss p {
  margin: 0;
  font-family: "Work Sans", Arial, sans-serif;
}

.edu-ss-container {
  width: 100%;
  max-width: var(--ss-max-w);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--ss-side-pad);
  padding-right: var(--ss-side-pad);
}

/* ---------- Botones ---------- */
.edu-ss-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 32px;
  border: 0;
  border-radius: 999px;
  font-size: 15px;
  line-height: 1;
  font-weight: 600;
  text-decoration: none !important;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.edu-ss-btn:hover {
  transform: translateY(-2px);
}

.edu-ss-btn--primary {
  background: var(--ss-primary);
  color: #ffffff !important;
}

.edu-ss-btn--primary:hover {
  background: var(--ss-dark);
  box-shadow: 0 8px 24px rgba(92, 102, 173, 0.35);
}

/* ---------- Section head ---------- */
.edu-ss-section-head {
  margin-bottom: 44px;
}

.edu-ss-section-head--center {
  text-align: center;
}

.edu-ss-section-head h2 {
  font-size: clamp(28px, 3.6vw, 55px);
  font-weight: 700;
  line-height: 1.15;
  color: #373D6D;
}

/* ---------- Tag pill (hero) ---------- */
.edu-ss-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 26px;
  margin: 0 0 34px;
  border: 1px solid #ffffff;
  border-radius: 999px;
  background: transparent;
  color: #ffffff;
  font-size: 22px;
  line-height: 1;
  font-weight: 500;
  letter-spacing: -0.02em;
}

/* ==========================================================
   HERO
   ========================================================== */

.edu-ss-hero {
  position: relative;
  background-color: var(--ss-darker);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
  min-height: 760px;
  padding-top: 150px;
}

.edu-ss-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
}

.edu-ss-hero__inner {
  position: relative;
  z-index: 1;
  min-height: 620px;
  padding: 0 40px 90px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.edu-ss-hero__title {
  max-width: 915px;
  margin: 0 auto 28px;
  color: #ffffff;
  font-size: clamp(46px, 4.6vw, 70px);
  line-height: 1;
  letter-spacing: -0.04em;
  font-weight: 600;
}

.edu-ss-hero__subtitle {
  max-width: 550px;
  color: #ffffff;
  font-size: 20px;
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-weight: 500;
  padding-top: 25px;
}

/* ==========================================================
   DATOS / ESTADÍSTICAS
   ========================================================== */

.edu-ss-stats {
  background: #ffffff;
  padding: 52px 0;
}

.edu-ss-stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}

.edu-ss-stat strong {
  display: block;
  color: #000000;
  font-size: clamp(34px, 3.2vw, 42px);
  font-weight: 700;
  line-height: 1;
  margin-bottom: 14px;
}

.edu-ss-stat__plus {
  display: inline;
  color: #5C66AD;
}

.edu-ss-stat > span {
  display: block;
  color: var(--ss-dark);
  font-size: 20px;
  line-height: 1.35;
  font-weight: 400;
}

/* ==========================================================
   LOS RETOS DEL SECTOR
   ========================================================== */

.edu-ss-retos {
  background: #E4E5EF;
  padding: 35px 0 40px;
}

.edu-ss-retos__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.edu-ss-reto-card {
  position: relative;
  overflow: hidden;
  min-height: 190px;
  padding: 26px 24px;
  border-radius: var(--ss-radius);
  background: var(--ss-primary);
  display: flex;
  align-items: center;
}

.edu-ss-reto-card__icon {
  position: absolute;
  right: 0;
  bottom: 0;
  height: 165px;
  object-fit: contain;
  opacity: 1;
  z-index: 0;
  pointer-events: none;
}

.edu-ss-reto-card__title {
  position: relative;
  z-index: 1;
  display: block;
  color: #ffffff;
  font-size: 23px;
  font-weight: 600;
  line-height: 1.3;
}

/* ==========================================================
   ¿POR QUÉ ELEGIR EDUCA.PRO?
   ========================================================== */

.edu-ss-elegir {
  background: #ffffff;
  padding: 80px 0;
}

.edu-ss-elegir__layout {
  display: grid;
  grid-template-columns: minmax(0, 340px) minmax(0, 1fr);
  gap: 80px;
  align-items: start;
}

.edu-ss-elegir__left h2 {
  color: var(--ss-dark);
  font-size: clamp(30px, 3vw, 42px);
  font-weight: 700;
  line-height: 1.2;
}

.edu-ss-elegir__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 14px;
}

.edu-ss-elegir__list li {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 68px;
  padding: 18px 26px;
  border-radius: 12px;
  background: var(--ss-card-soft);
  overflow: hidden;
  cursor: pointer;
  transition: background-color .25s ease, min-height .25s ease, transform .25s ease;
}

.edu-ss-elegir__list li:hover {
  min-height: 96px;
  background-color: rgba(92, 102, 173, .15);
  transform: translateY(-2px);
}

.edu-ss-elegir__item-head {
  display: flex;
  align-items: center;
  gap: 16px;
}

.edu-ss-elegir__num {
  color: var(--ss-primary);
  font-size: 17px;
  font-weight: 700;
  flex-shrink: 0;
}

.edu-ss-elegir__title {
  color: #5C66AD;
  font-size: 16px;
  font-weight: 700;
}

.edu-ss-elegir__list li p {
  max-height: 0;
  opacity: 0;
  margin: 0 0 0 32px;
  color: var(--ss-dark);
  font-size: 13px;
  line-height: 1.35;
  font-weight: 500;
  transition: max-height .25s ease, opacity .25s ease, margin-top .25s ease;
}

.edu-ss-elegir__list li:hover p {
  max-height: 100px;
  opacity: 1;
  margin-top: 10px;
}

/* ==========================================================
   ¿NECESITAS MÁS APOYO?
   ========================================================== */

.edu-ss-apoyo {
  position: relative;
  z-index: 1;
  padding: 0 0 80px;
  margin-bottom: -220px;
}

/* Contenedor igual que .educa-gestion-container (landing Gestión de la formación) */
.edu-ss-apoyo > .edu-ss-container {
  width: min(100% - 72px, 1240px);
  max-width: none;
  padding-left: 0;
  padding-right: 0;
  margin-inline: auto;
}

@media (max-width: 600px) {
  .edu-ss-apoyo > .edu-ss-container {
    width: min(100% - 32px, 1180px);
  }
}

.edu-ss-apoyo__box {
  position: relative;
  min-height: 400px;
  border-radius: 10px;
  padding: 50px 65px 60px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: #ffffff;
  text-align: center;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 35px;
}

.edu-ss-apoyo__box--sin-bg {
  background: linear-gradient(135deg, var(--ss-dark) 0%, var(--ss-darker) 100%);
}

.edu-ss-apoyo h2 {
  color: #ffffff;
  font-size: clamp(34px, 4vw, 54px);
  line-height: 0.95;
  letter-spacing: -0.055em;
  font-weight: 600;
}

.edu-ss-apoyo__text {
  max-width: 840px;
  margin-inline: auto;
  color: #ffffff;
  font-size: 20px;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.025em;
}

.edu-ss-apoyo__options {
  position: relative;
  max-width: 960px;
  margin-inline: auto;
  border: 2px solid #ffffff;
  border-radius: 12px;
  padding: 30px 36px 28px;
  text-align: left;
}

.edu-ss-apoyo__label {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  padding: 0 18px;
  background: #3e4575;
  color: #ffffff;
  font-size: 16px;
  line-height: 1;
  font-weight: 700;
  white-space: nowrap;
}

.edu-ss-apoyo__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 34px;
}

.edu-ss-apoyo__grid strong,
.edu-ss-apoyo__grid span {
  display: block;
  color: #ffffff;
  font-size: 20px;
  line-height: 1.05;
  letter-spacing: -0.025em;
}

.edu-ss-apoyo__grid strong {
  font-weight: 700;
  margin-bottom: 4px;
}

.edu-ss-apoyo__grid span {
  font-weight: 500;
}

/* ==========================================================
   ¿QUÉ CONSIGUE TU ORGANIZACIÓN?
   ========================================================== */

.edu-ss-consigue {
  position: relative;
  z-index: 0;
  overflow: hidden;
  background: #E4E5EF;
  padding: 290px 0 160px;
}

.edu-ss-consigue__curva {
  position: absolute;
  left: -74px;
  bottom: 40px;
  width: 430px;
  max-width: none;
  height: auto;
  pointer-events: none;
  z-index: 0;
}

.edu-ss-consigue__layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 360px) minmax(0, 1fr);
  gap: 80px;
  align-items: start;
}

.edu-ss-consigue__left h2 {
  color: #11142E;
  font-size: clamp(32px, 3.4vw, 46px);
  line-height: 1.15;
  font-weight: 700;
  white-space: nowrap;
}

.edu-ss-consigue__light {
  font-weight: 500;
}

.edu-ss-consigue__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 16px;
}

.edu-ss-consigue__list li {
  position: relative;
  padding-left: 34px;
  color: #11142E;
  font-size: 24px;
  line-height: 1.3;
  font-weight: 400;
}

.edu-ss-consigue__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1px;
  width: 22px;
  height: 22px;
  background: var(--edu-ss-check-icon, none) no-repeat center / contain;
}

/* ==========================================================
   DISEÑADO PARA
   ========================================================== */

.edu-ss-disenado {
  background: #ffffff;
  padding: 45px 0 80px;
}

.edu-ss-disenado__card {
  position: relative;
  max-width: 1080px;
  margin: 0 auto;
  border: 1.5px solid var(--ss-primary);
  border-radius: 18px;
  padding: 54px 56px 44px;
}

.edu-ss-disenado__head {
  position: absolute;
  top: -16px;
  left: 50%;
  transform: translateX(-50%);
  margin: 0;
  padding: 0 24px;
  background: #ffffff;
  display: block;
}

.edu-ss-disenado__line {
  display: none;
}

.edu-ss-disenado__head h2 {
  margin: 0;
  color: var(--ss-primary);
  font-size: 25px;
  line-height: 1;
  font-weight: 700;
  white-space: nowrap;
}

.edu-ss-disenado__grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 28px;
}

.edu-ss-disenado-item {
  min-height: 150px;
  padding: 28px 18px 22px;
  border-radius: 18px;
  background: var(--ss-card-soft);
  display: grid;
  place-items: center;
  align-content: center;
  gap: 14px;
  text-align: center;
}

.edu-ss-disenado-item__icon {
  width: 55px;
  height: 55px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.edu-ss-disenado-item__icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.edu-ss-disenado-item p {
  max-width: 150px;
  color: var(--ss-primary);
  font-size: 15px;
  line-height: 1.15;
  font-weight: 600;
}

/* ==========================================================
   CTA FINAL
   ========================================================== */

.edu-ss-cta-final {
  background: #ffffff;
  padding: 0 0 90px;
}

.edu-ss-cta-final > .edu-ss-container {
  max-width: 1110px;
}

.edu-ss-cta-final__card {
  position: relative;
  min-height: 465px;
  border-radius: 18px;
  overflow: hidden;
  background-color: var(--ss-darker);
  background-size: cover;
  background-position: center;
  padding: 64px 60px;
  display: flex;
  align-items: center;
}

.edu-ss-cta-final__card--sin-imagen {
  background: linear-gradient(135deg, var(--ss-dark) 0%, var(--ss-darker) 100%);
}

.edu-ss-cta-final__inner {
  position: relative;
  z-index: 1;
  max-width: 620px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 26px;
}

.edu-ss-cta-final__title {
  margin: 0;
  color: #ffffff;
  font-size: clamp(30px, 3.4vw, 42px);
  line-height: 1.15;
  font-weight: 400;
}

.edu-ss-cta-final__title strong {
  font-weight: 700;
}

.edu-ss-cta-final__sub {
  max-width: 520px;
  margin: 0;
  color: rgba(255, 255, 255, .9);
  font-size: 17px;
  line-height: 1.45;
  font-weight: 500;
}

/* ==========================================================
   RESPONSIVE
   ========================================================== */

@media (max-width: 1024px) {
  .edu-ss {
    --ss-side-pad: 28px;
  }

  .edu-ss-retos__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .edu-ss-elegir__layout,
  .edu-ss-consigue__layout {
    gap: 48px;
  }

  .edu-ss-consigue__curva {
    opacity: 0.35;
  }

  .edu-ss-disenado__card {
    padding: 46px 28px 34px;
  }

  .edu-ss-disenado__grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
  }

  .edu-ss-apoyo__box {
    padding: 54px 40px 44px;
  }

  .edu-ss-apoyo__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .edu-ss-apoyo {
    margin-bottom: -180px;
  }

  .edu-ss-consigue {
    padding-top: 250px;
  }

  .edu-ss-hero {
    padding-top: 120px;
  }
}

@media (max-width: 768px) {
  .edu-ss {
    --ss-side-pad: 20px;
  }

  .edu-ss-stats__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px 20px;
  }

  .edu-ss-retos__grid {
    grid-template-columns: 1fr;
  }

  .edu-ss-elegir__layout,
  .edu-ss-consigue__layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .edu-ss-consigue__curva {
    display: none;
  }

  .edu-ss-consigue__left h2 {
    white-space: normal;
    text-align: center;
  }

  .edu-ss-apoyo__grid {
    grid-template-columns: 1fr;
  }

  .edu-ss-apoyo {
    margin-bottom: 0;
  }

  .edu-ss-disenado__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
  }

  .edu-ss-hero {
    min-height: auto;
    padding-top: 108px;
  }

  .edu-ss-hero__inner {
    min-height: auto;
    padding: 0 24px 56px;
  }

  .edu-ss-hero__title {
    max-width: 640px;
    font-size: clamp(38px, 6vw, 54px);
  }

  .edu-ss-hero__subtitle {
    max-width: 480px;
  }

  .edu-ss-retos,
  .edu-ss-elegir,
  .edu-ss-disenado {
    padding-top: 48px;
    padding-bottom: 48px;
  }

  .edu-ss-consigue {
    padding-top: 48px;
    padding-bottom: 48px;
  }

  .edu-ss-apoyo__box {
    padding: 42px 22px 32px;
  }

  .edu-ss-apoyo h2 {
    font-size: 34px;
  }

  .edu-ss-apoyo__options {
    padding: 34px 22px 24px;
  }

  .edu-ss-apoyo__label {
    white-space: normal;
    text-align: center;
    line-height: 1.1;
    width: max-content;
    max-width: calc(100% - 40px);
  }

  .edu-ss-cta-final__card {
    padding: 44px 28px;
  }
}

@media (max-width: 520px) {
  .edu-ss-disenado {
    padding: 34px 0 54px;
  }

  .edu-ss-disenado__card {
    padding: 42px 18px 24px;
  }

  .edu-ss-disenado__head {
    top: -14px;
    padding: 0 16px;
  }

  .edu-ss-disenado__head h2 {
    font-size: 21px;
  }

  .edu-ss-disenado__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .edu-ss-disenado-item {
    min-height: 128px;
    padding: 22px 12px 18px;
  }

  .edu-ss-disenado-item p {
    font-size: 13px;
  }
}
