/* ==========================================================================
   BTG Hero Split
   --------------------------------------------------------------------------
   Componente: templates/components/btg-component-hero-split.php
   ACF:        acf-json/group_5497ccd4a9412.json (_btg-hero-split)

   CSS plano (no hay fuentes SCSS en el repo). Usa los tokens de BTG Orquestra
   ya definidos en main.css y los mismos breakpoints del theme:
   712px (x-small) · 1024px (small) · 1280px (medium).
   Al recuperar los fuentes, mover a assets/styles/components/_btg-hero-split.scss
   ========================================================================== */

.btg-hero-split {
  --btg-hero-split-overlay: 0;
  /* Alto del header fijo del theme (.btg-navbar): 56px mobile · 80px desde 1024px */
  --btg-hero-split-navbar: 56px;
  /* Barra de administración de WordPress (solo con sesión iniciada) */
  --btg-hero-split-adminbar: 0px;

  /* Ocupa todo el alto visible bajo el header (vh de respaldo, svh evita saltos en iOS) */
  min-height: calc(100vh - var(--btg-hero-split-navbar) - var(--btg-hero-split-adminbar));
  min-height: calc(100svh - var(--btg-hero-split-navbar) - var(--btg-hero-split-adminbar));

  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  /* Azul oscuro de Orquestra (#05132A, `dark-blue` en btg-lp), visible si no hay imagen de fondo */
  background-color: var(--primary-extended-100, var(--background-base-inverse));
  color: var(--emphasis-base-high-inverse);
}

/* Fondo
   ========================================================================== */

.btg-hero-split__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.btg-hero-split__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-color: var(--background-base-inverse);
  opacity: var(--btg-hero-split-overlay);
  pointer-events: none;
}

.btg-hero-split__bg__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.btg-hero-split__bg__img--desktop {
  display: none;
}

@media (min-width: 712px) {
  .btg-hero-split__bg__img--desktop {
    display: block;
  }

  .btg-hero-split__bg__img--mobile {
    display: none;
  }
}

/* Layout
   ========================================================================== */

.btg-hero-split__layout {
  position: relative;
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  padding-top: 48px;
  padding-bottom: 48px;
}

.btg-hero-split__layout > .btg-grid {
  align-items: center;
  row-gap: 40px;
}

body.admin-bar .btg-hero-split {
  --btg-hero-split-adminbar: 46px;
}

@media (min-width: 783px) {
  body.admin-bar .btg-hero-split {
    --btg-hero-split-adminbar: 32px;
  }
}

@media (min-width: 1024px) {
  .btg-hero-split {
    --btg-hero-split-navbar: 80px;
  }

  .btg-hero-split__layout {
    padding-top: 96px;
    padding-bottom: 96px;
  }
}

/* Contenido
   ========================================================================== */

.btg-hero-split__content {
  display: flex;
  flex-direction: column;
  max-width: 648px;
}

.btg-hero-split__intro {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.btg-hero-split__badge {
  margin-bottom: 16px;
  padding: 2px 8px;
}

.btg-hero-split__badge .orq-badge__text {
  font-size: 12px;
  line-height: 1.5;
}

.btg-hero-split__title {
  margin: 0;
  font-size: 32px;
  line-height: 1.25;
  font-weight: 400;
  letter-spacing: -0.01em;
  text-wrap: balance;
  color: var(--emphasis-base-high-inverse);
}

.btg-hero-split__text {
  margin: 16px 0 0;
  font-size: 16px;
  line-height: 1.5;
  color: var(--emphasis-base-80-inverse);
}

@media (min-width: 712px) {
  .btg-hero-split__title {
    font-size: 48px;
    line-height: 1.166667;
  }

  .btg-hero-split__text {
    margin-top: 24px;
  }
}

@media (min-width: 1280px) {
  .btg-hero-split__title {
    font-size: 64px;
    line-height: 1.125;
  }
}

/* Acciones
   ========================================================================== */

.btg-hero-split__action {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  margin-top: 32px;
}

@media (min-width: 712px) {
  .btg-hero-split__action {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px 24px;
    margin-top: 40px;
  }
}

/* Footer (sello + features)
   ========================================================================== */

.btg-hero-split__footer {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-top: 32px;
  padding-top: 32px;
  border-top: 1px solid var(--emphasis-base-20-inverse);
}

@media (min-width: 712px) {
  .btg-hero-split__footer {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 24px 40px;
    margin-top: 32px;
  }
}

.btg-hero-split__seal {
  display: flex;
  align-items: center;
  gap: 16px;
  max-width: 320px;
}

.btg-hero-split__seal__img {
  flex: 0 0 auto;
  width: auto;
  max-width: 96px;
  height: auto;
  max-height: 32px;
}

.btg-hero-split__seal__text {
  margin: 0;
  font-size: 12px;
  line-height: 1.5;
  color: var(--emphasis-base-80-inverse);
}

.btg-hero-split__features {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.btg-hero-split__features__item {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btg-hero-split__features__item .icon-container {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.btg-hero-split__features__item .icon-container__icon {
  font-size: 24px;
  color: var(--emphasis-base-high-inverse);
}

.btg-hero-split__features__item .icon-container img {
  display: block;
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.btg-hero-split__features__item__text {
  font-size: 14px;
  line-height: 1.5;
  color: var(--emphasis-base-high-inverse);
}

/* Visual
   ========================================================================== */

.btg-hero-split__visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.btg-hero-split__visual__img {
  display: block;
  width: 100%;
  max-width: 360px;
  height: auto;
}

.btg-hero-split__visual--hide-mobile {
  display: none;
}

@media (min-width: 712px) {
  .btg-hero-split__visual__img {
    max-width: 480px;
  }
}

@media (min-width: 1024px) {
  .btg-hero-split__visual--hide-mobile {
    display: flex;
  }

  .btg-hero-split__visual {
    justify-content: flex-end;
  }

  .btg-hero-split__visual__img {
    max-width: 560px;
  }
}
