/* ==========================================================
   LANDING: HOME
   Namespace: .educa-landing--home / .edu-hm-*
   Carga condicional: solo en page-home.php
   (ver child_enqueue_landing_styles() en functions.php)
   ========================================================== */

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

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

body.page-template-page-home .site-main,
body.page-template-page-home #primary,
body.page-template-page-home-php .site-main,
body.page-template-page-home-php #primary {
  width: 100%;
  max-width: 100%;
}

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

/* ---------- Base / tokens ---------- */
.edu-hm {
  --hm-primary: #5c66ad;
  --hm-primary-2: #6670c9;
  --hm-dark: #373d6d;
  --hm-navy: #11142e;
  --hm-deep: #0c1030;
  --hm-soft: #eef0f8;
  --hm-lav: #e7e9f5;
  --hm-lav-2: #b4b9dc;
  --hm-max-w: 1180px;
  --hm-side-pad: 40px;
  --hm-radius: 16px;

  width: 100%;
  max-width: none;
  overflow-x: hidden;
  font-family: var(--edu-font-main, "Work Sans", Arial, sans-serif);
  color: var(--hm-navy);
  background: #ffffff;
}

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

.edu-hm h1,
.edu-hm h2,
.edu-hm h3,
.edu-hm p,
.edu-hm blockquote,
.edu-hm ul {
  margin: 0;
  padding: 0;
  font-family: inherit;
}

.edu-hm ul {
  list-style: none;
}

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

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

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

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

.edu-hm-btn--light:hover {
  background: #7a83d6;
  box-shadow: 0 10px 26px rgba(102, 112, 201, 0.4);
}

.edu-hm-btn--outline {
  min-height: 38px;
  padding: 0 26px;
  border: 1px solid rgba(255, 255, 255, 0.85);
  background: transparent;
  color: #ffffff !important;
  font-size: 13px;
  font-weight: 500;
}

.edu-hm-btn--outline:hover {
  background: #ffffff;
  color: var(--hm-dark) !important;
  border-color: #ffffff;
}

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

.edu-hm-hero {
  position: relative;
  width: 100%;
  min-height: 660px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 200px 0 110px;
  overflow: hidden;
  text-align: center;
  color: #ffffff;
  background:
    radial-gradient(90% 110% at 50% -25%, rgba(102, 112, 201, 0.5) 0%, rgba(20, 25, 66, 0) 62%),
    linear-gradient(180deg, #1a2050 0%, #0d1130 58%, #0a0d26 100%);
}

/* Anillos concéntricos decorativos del fondo */
.edu-hm-hero::before,
.edu-hm-hero::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.edu-hm-hero::before {
  inset: -40% -20% auto -20%;
  height: 190%;
  background: repeating-radial-gradient(
    circle at 50% 0%,
    rgba(255, 255, 255, 0.055) 0 1.5px,
    rgba(255, 255, 255, 0) 1.5px 92px
  );
}

.edu-hm-hero::after {
  top: -35%;
  right: -22%;
  width: 900px;
  height: 900px;
  background: repeating-radial-gradient(
    circle at 50% 50%,
    rgba(150, 160, 230, 0.09) 0 1.5px,
    rgba(255, 255, 255, 0) 1.5px 64px
  );
  border-radius: 50%;
}

.edu-hm-hero__inner {
  position: relative;
  z-index: 1;
  max-width: 900px;
}

.edu-hm-hero__title {
  font-size: clamp(30px, 3.9vw, 50px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #ffffff;
}

.edu-hm .edu-hm-hero__subtitle {
  max-width: 640px;
  margin: 34px auto 42px;
  font-size: 15px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.82);
}

/* ==========================================================
   LOGOS (marquee compartido)
   ========================================================== */

.edu-hm-logos {
  padding: 26px 0 34px;
  background: #ffffff;
}

.edu-hm-logos .edu-cases-logos {
  padding: 44px 0 18px;
}

.edu-hm-logos .edu-cases-logos__heading {
  max-width: 1020px;
  padding-bottom: 46px;
}

.edu-hm-logos .edu-cases-logos__heading h2 {
  font-size: clamp(22px, 2.3vw, 29px);
  font-weight: 500;
  color: var(--hm-navy);
}

.edu-hm-logos .edu-cases-logos__heading h2 strong {
  font-weight: 700;
}

.edu-hm-logos .edu-cases-logos__heading p {
  font-size: 15px;
  color: #4b4f66;
}

/* Caja fija por logo: los originales llegan con márgenes muy dispares */
.edu-hm-logos .edu-cases-logos__item {
  width: 150px;
  height: 64px;
}

.edu-hm-logos .edu-cases-logos__item img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

/* ==========================================================
   CITA
   ========================================================== */

.edu-hm-quote {
  padding: 54px 0 60px;
  background: #eeeff8;
}

.edu-hm-quote__inner {
  max-width: 900px;
  text-align: center;
}

.edu-hm-quote__mark {
  display: block;
  margin-bottom: -10px;
  font-size: 58px;
  line-height: 1;
  color: var(--hm-primary);
  opacity: 0.5;
}

.edu-hm .edu-hm-quote__text {
  max-width: 760px;
  margin: 0 auto 30px;
  font-size: clamp(17px, 1.7vw, 22px);
  line-height: 1.45;
  font-style: italic;
  font-weight: 400;
  color: var(--hm-navy);
}

.edu-hm .edu-hm-quote__author {
  font-size: 13px;
  font-weight: 700;
  color: var(--hm-navy);
}

.edu-hm .edu-hm-quote__role {
  margin-top: 2px;
  font-size: 11px;
  color: #6a6e85;
}

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

.edu-hm-elegir {
  padding: 78px 0 64px;
  background: #ffffff;
}

.edu-hm-elegir__layout {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr);
  gap: 48px;
  align-items: start;
}

.edu-hm-elegir__left h2 {
  font-size: clamp(26px, 2.9vw, 37px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 400;
  color: var(--hm-navy);
}

.edu-hm-elegir__left h2 strong {
  font-weight: 700;
}

.edu-hm-elegir__left h2 span {
  color: var(--hm-navy);
}

.edu-hm-elegir__left p {
  max-width: 300px;
  margin-top: 16px;
  font-size: 13px;
  line-height: 1.5;
  color: #5a5e75;
}

.edu-hm-elegir__list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* display:block a propósito: con flex el navegador se come el espacio
   entre <strong> y el resto del texto de cada píldora. */
.edu-hm-elegir__list li {
  display: block;
  padding: 16px 26px;
  border-radius: 10px;
  background: var(--hm-lav);
  font-size: 14px;
  line-height: 1.4;
  color: var(--hm-navy);
}

.edu-hm-elegir__list li strong {
  font-weight: 700;
}

/* ==========================================================
   LOS 3 PILARES
   ========================================================== */

.edu-hm-pilares {
  padding: 40px 0 78px;
  background: #ffffff;
}

.edu-hm .edu-hm-pilares__title {
  margin-bottom: 62px;
  font-size: clamp(24px, 2.8vw, 35px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  text-align: center;
  color: var(--hm-navy);
}

.edu-hm-pilares__title span {
  color: var(--hm-primary);
}

.edu-hm-pilares__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px;
}

.edu-hm-pilar {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 250px;
  padding: 30px 28px 32px;
  border-radius: 14px;
  background: var(--hm-primary);
  color: #ffffff;
  /* Panel claro apilado detrás de la tarjeta, desplazado arriba-izquierda.
     Con box-shadow en lugar de un ::before con z-index negativo, que
     quedaría por detrás del fondo blanco de la sección. */
  box-shadow: -15px -15px 0 0 var(--hm-lav-2);
  transition: background 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.edu-hm-pilar:hover {
  background: #767ec0;
  transform: translateY(-3px);
  box-shadow: -12px -12px 0 0 var(--hm-lav-2);
}

.edu-hm-pilar__icon {
  display: block;
  width: 52px;
  height: 44px;
  color: #ffffff;
}

.edu-hm-pilar__icon svg {
  display: block;
  width: 100%;
  height: 100%;
}

.edu-hm-pilar h3 {
  max-width: 240px;
  font-size: 19px;
  line-height: 1.28;
  font-weight: 700;
  color: #ffffff;
}

/* ==========================================================
   LO SIMPLIFICAMOS TODO
   ========================================================== */

.edu-hm-simplifica {
  padding: 56px 0 40px;
  background: #ffffff;
  /* La curva sangra hacia el borde del viewport; recortamos para que no
     invada la sección siguiente. */
  overflow: hidden;
}

.edu-hm-simplifica__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 48px;
  align-items: center;
}

.edu-hm-simplifica__copy h2 {
  margin-bottom: 26px;
  font-size: clamp(26px, 2.9vw, 37px);
  line-height: 1.18;
  letter-spacing: -0.02em;
  font-weight: 400;
  color: var(--hm-navy);
}

.edu-hm-simplifica__copy h2 strong {
  font-weight: 700;
}

.edu-hm-simplifica__copy p {
  max-width: 420px;
  margin-bottom: 16px;
  font-size: 13px;
  line-height: 1.6;
  color: #4b4f66;
}

.edu-hm-simplifica__copy p:last-child {
  margin-bottom: 0;
}

.edu-hm-simplifica__visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 330px;
}

.edu-hm-simplifica__bg {
  position: absolute;
  top: 50%;
  right: -22%;
  width: auto;
  max-width: none;
  height: 138%;
  transform: translateY(-50%);
  user-select: none;
}

.edu-hm-simplifica__device {
  position: relative;
  z-index: 1;
  width: min(66%, 350px);
  height: auto;
  margin-right: 6%;
  filter: drop-shadow(0 22px 44px rgba(17, 20, 46, 0.22));
}

/* ==========================================================
   UNA SOLUCIÓN, UN ECOSISTEMA
   ========================================================== */

.edu-hm-ecosistema {
  padding: 40px 0 74px;
  background: #ffffff;
}

.edu-hm .edu-hm-ecosistema__title {
  margin-bottom: 34px;
  font-size: clamp(24px, 2.8vw, 35px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 400;
  text-align: center;
  color: var(--hm-navy);
}

.edu-hm-ecosistema__title strong {
  font-weight: 700;
}

.edu-hm-ecosistema__banner {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 400px;
  padding: 54px 60px;
  overflow: hidden;
  border-radius: var(--hm-radius);
  background-color: var(--hm-dark);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: #ffffff;
}

.edu-hm-ecosistema__banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(11, 14, 40, 0.82) 0%, rgba(11, 14, 40, 0.45) 55%, rgba(11, 14, 40, 0.25) 100%);
}

.edu-hm-ecosistema__banner--sin-imagen {
  background-image: linear-gradient(120deg, var(--hm-dark) 0%, var(--hm-deep) 100%);
}

/* Marca de agua: el PNG viene recortado por su lado izquierdo, así que
   se ancla al borde izquierdo del banner para que el corte quede fuera. */
.edu-hm-ecosistema__mark {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  height: 100%;
  width: auto;
  max-width: none;
  opacity: 0.4;
  user-select: none;
}

.edu-hm-ecosistema__content {
  position: relative;
  z-index: 2;
  max-width: 520px;
}

.edu-hm-ecosistema__brand {
  font-size: clamp(24px, 2.6vw, 33px);
  line-height: 1.1;
  font-weight: 700;
  color: #ffffff;
}

.edu-hm-ecosistema__product {
  font-size: clamp(24px, 2.6vw, 33px);
  line-height: 1.1;
  font-weight: 300;
  color: #ffffff;
}

.edu-hm .edu-hm-ecosistema__text {
  margin: 16px 0 26px;
  font-size: 13px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.85);
}

/* ==========================================================
   CASOS DE ÉXITO
   ========================================================== */

.edu-hm-casos {
  padding: 34px 0 76px;
  background: #ffffff;
}

.edu-hm .edu-hm-casos__title {
  margin-bottom: 44px;
  font-size: clamp(24px, 2.8vw, 35px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 400;
  text-align: center;
  color: var(--hm-navy);
}

.edu-hm-casos__title strong {
  font-weight: 700;
}

.edu-hm-casos__track {
  display: flex;
  gap: 28px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x proximity;
  padding-bottom: 6px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.edu-hm-casos__track::-webkit-scrollbar {
  display: none;
}

.edu-hm-caso {
  scroll-snap-align: start;
  flex: 0 0 min(262px, 78vw);
  display: flex;
  flex-direction: column;
  text-align: left;
}

.edu-hm-caso__logo {
  display: flex;
  align-items: center;
  min-height: 56px;
  margin-bottom: 16px;
}

.edu-hm-caso__logo img {
  display: block;
  width: auto;
  max-width: 132px;
  max-height: 46px;
  object-fit: contain;
}

.edu-hm-caso__logo span {
  font-size: 15px;
  font-weight: 700;
  color: var(--hm-dark);
}

.edu-hm-caso__name {
  font-size: 14px;
  font-weight: 700;
  color: var(--hm-primary);
}

.edu-hm .edu-hm-caso__company {
  margin-bottom: 12px;
  font-size: 11px;
  color: #7c8093;
}

.edu-hm-caso__quote {
  font-size: 12.5px;
  line-height: 1.55;
  font-style: italic;
  color: #3d4157;
}

.edu-hm-caso__link {
  margin-top: 14px;
  font-size: 12px;
  font-weight: 600;
  color: var(--hm-primary);
  text-decoration: none;
}

.edu-hm-caso__link:hover {
  color: var(--hm-dark);
  text-decoration: underline;
}

.edu-hm-casos__nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 26px;
  margin-top: 34px;
}

.edu-hm-casos__arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 28px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #9195aa;
  cursor: pointer;
  transition: color 0.2s ease, transform 0.2s ease;
}

.edu-hm-casos__arrow svg {
  width: 26px;
  height: 12px;
}

.edu-hm-casos__arrow:hover {
  color: var(--hm-primary);
  transform: translateY(-1px);
}

/* ==========================================================
   CTA BLOG
   ========================================================== */

.edu-hm-blog {
  padding: 22px 0 78px;
  background: #ffffff;
}

.edu-hm-blog__box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 330px;
  padding: 56px 40px;
  border-radius: var(--hm-radius);
  background-color: var(--hm-dark);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  text-align: center;
  color: #ffffff;
}

.edu-hm-blog__box--sin-imagen {
  background-image: linear-gradient(120deg, var(--hm-dark) 0%, var(--hm-deep) 100%);
}

.edu-hm .edu-hm-blog__eyebrow {
  margin-bottom: 12px;
  font-size: 14px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.9);
}

.edu-hm-blog__title {
  font-size: clamp(22px, 2.5vw, 32px);
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #ffffff;
}

.edu-hm .edu-hm-blog__text {
  margin: 16px 0 28px;
  font-size: 13px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.85);
}

/* ==========================================================
   FAQS
   ========================================================== */

.edu-hm-faq {
  padding: 0 0 84px;
  background: #ffffff;
}

.edu-hm .edu-hm-faq__title {
  margin-bottom: 26px;
  font-size: clamp(20px, 2.1vw, 26px);
  line-height: 1.2;
  letter-spacing: -0.02em;
  font-weight: 400;
  color: var(--hm-navy);
}

.edu-hm-faq__title strong {
  font-weight: 700;
}

/* Ajustes sobre el bloque del plugin educa-faqs */
.edu-hm-faq .edu-template-faq-section {
  padding: 0;
}

.edu-hm-faq .edu-template-faq-container {
  max-width: 100%;
  padding: 0;
}

.edu-hm-faq .edu-template-faq-item summary {
  min-height: 58px;
  font-size: 15px;
  font-weight: 400;
  color: var(--hm-navy);
}

.edu-hm-faq .edu-template-faq-item summary:hover {
  color: var(--hm-primary);
}

.edu-hm-faq .edu-template-faq-item__content p {
  font-size: 13px;
  line-height: 1.6;
  color: #4b4f66;
}

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

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

  .edu-hm-hero {
    min-height: 0;
    padding: 190px 0 90px;
  }

  .edu-hm-elegir__layout,
  .edu-hm-simplifica__layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }

  .edu-hm-elegir__left p {
    max-width: none;
  }

  .edu-hm-simplifica__copy p {
    max-width: none;
  }

  .edu-hm-simplifica__visual {
    min-height: 280px;
  }

  .edu-hm-simplifica__bg {
    right: -8%;
    height: 105%;
  }

  .edu-hm-pilares__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 34px 26px;
  }

  .edu-hm-ecosistema__banner {
    padding: 44px 36px;
  }

  .edu-hm-ecosistema__mark {
    opacity: 0.28;
  }
}

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

  .edu-hm-hero {
    padding: 170px 0 72px;
  }

  .edu-hm-hero__title br {
    display: none;
  }

  .edu-hm .edu-hm-hero__subtitle {
    margin: 20px auto 30px;
    font-size: 14px;
  }

  .edu-hm-logos .edu-cases-logos {
    padding: 30px 0 12px;
  }

  .edu-hm-logos .edu-cases-logos__heading {
    padding-bottom: 32px;
  }

  .edu-hm-quote {
    padding: 42px 0 46px;
  }

  .edu-hm-elegir {
    padding: 56px 0 48px;
  }

  .edu-hm-elegir__left h2 br {
    display: none;
  }

  .edu-hm-pilares {
    padding: 30px 0 58px;
  }

  .edu-hm .edu-hm-pilares__title {
    margin-bottom: 46px;
  }

  .edu-hm-pilares__grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 34px;
  }

  .edu-hm-pilar {
    min-height: 200px;
  }

  .edu-hm-pilar h3 {
    max-width: none;
    font-size: 18px;
  }

  .edu-hm-simplifica {
    padding: 40px 0 24px;
  }

  .edu-hm-simplifica__copy h2 br {
    display: none;
  }

  .edu-hm-ecosistema {
    padding: 30px 0 54px;
  }

  .edu-hm-ecosistema__banner {
    min-height: 0;
    padding: 36px 26px;
  }

  .edu-hm-ecosistema__mark {
    display: none;
  }

  .edu-hm-ecosistema__text br,
  .edu-hm-blog__title br,
  .edu-hm-blog__text br {
    display: none;
  }

  .edu-hm-casos {
    padding: 26px 0 58px;
  }

  .edu-hm-blog {
    padding: 12px 0 58px;
  }

  .edu-hm-blog__box {
    min-height: 0;
    padding: 42px 24px;
  }

  .edu-hm-faq {
    padding: 0 0 62px;
  }

  .edu-hm-faq .edu-template-faq-item summary {
    font-size: 14px;
  }
}
