﻿/* Home landing — / */
/* Split from main.css — load only on is_front_page() */


/* Home — landing shell (from shared landing-sections rules) */
.home-landing {
  padding-bottom: var(--bb-space-7);
}

.home-landing > .bb-landing-section:first-child {
  border-top: 1px solid rgba(245, 245, 245, 0.06);
}

/* Full-bleed editorial mask — home hero */
.hero--home {
  --bb-hero-editorial-mask-bottom-image: linear-gradient(
    to top,
    transparent 0%,
    rgb(0 0 0 / 12%) 16%,
    rgb(0 0 0 / 55%) 36%,
    #000 54%,
    #000 100%
  );
  --bb-hero-editorial-mask-image:
    linear-gradient(
      to bottom,
      transparent 0%,
      rgb(0 0 0 / 12%) 16%,
      rgb(0 0 0 / 55%) 36%,
      #000 54%,
      #000 100%
    ),
    linear-gradient(
      to top,
      transparent 0%,
      rgb(0 0 0 / 12%) 16%,
      rgb(0 0 0 / 55%) 36%,
      #000 54%,
      #000 100%
    );
}

.hero--home .home-hero__image {
  -webkit-mask-image: var(--bb-hero-editorial-mask-image);
  mask-image: var(--bb-hero-editorial-mask-image);
  -webkit-mask-composite: source-in;
  mask-composite: intersect;
}

.hero--home .home-hero__content {
  padding-bottom: var(--home-hero-content-padding-bottom, var(--home-hero-block-padding));
}

@media (max-width: 767px) {
  .hero--home {
    --home-hero-photo-height: clamp(380px, 58svh, 500px);
    --home-hero-content-offset: clamp(0.75rem, 2vh, 1.25rem);
    --home-hero-content-padding-bottom: var(--bb-space-3);
    --home-hero-image-position: center 15%;
  }

  .hero--home .hero__actions,
  .hero--home .home-hero__actions {
    flex-direction: column;
    align-items: center;
    gap: var(--bb-space-2);
  }

  .hero--home .home-hero__image {
    object-position: var(--home-hero-image-position);
  }
}

@media (min-width: 768px) {
  .has-home-hero .hero--home .home-hero__title,
  .has-home-hero .hero--home .home-hero__subtitle {
    max-width: none;
  }
}

/* Home landing hero — full-bleed photo (patrón Academy / Equipo) */
.hero--home {
  --home-hero-photo-height: clamp(560px, 86vh, 960px);
  --home-hero-content-lift: 0.115;
  --home-hero-content-offset: clamp(1.25rem, 3vh, 2.25rem);
  --home-hero-block-padding: var(--bb-space-3);
  --home-hero-content-padding-bottom: var(--bb-space-4);
  --home-hero-image-position: center 25%;
  position: relative;
  isolation: isolate;
  min-height: auto;
  padding: 0;
  background: var(--bb-color-bg);
  overflow: visible;
}

.hero--home .home-hero__photo {
  width: 100vw;
  max-width: 100vw;
  height: var(--home-hero-photo-height);
  margin-inline: calc(50% - 50vw);
  overflow: hidden;
  position: relative;
  isolation: isolate;
}

.hero--home .home-hero__image {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--home-hero-image-position);
}

.hero--home .home-hero__content-wrap {
  position: relative;
  z-index: 1;
  margin-top: calc(var(--home-hero-photo-height) * var(--home-hero-content-lift) * -1 + var(--home-hero-content-offset));
}

.hero--home .home-hero__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-bottom: var(--home-hero-content-padding-bottom, var(--home-hero-block-padding));
}

.home-hero__title {
  margin: 0 0 var(--bb-space-2);
  font-family: var(--bb-font-quantify);
  font-size: clamp(2.75rem, 8vw, 5.5rem);
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--bb-color-text-primary);
}

.home-hero__subtitle {
  margin: 0 0 var(--home-hero-block-padding);
  font-family: var(--bb-font-heading);
  font-size: clamp(1.125rem, 2.5vw, 1.625rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--bb-color-action);
}

.home-hero__intro {
  width: 100%;
  max-width: none;
  align-self: stretch;
  margin: 0 0 var(--bb-space-4);
  color: var(--bb-color-text-secondary);
  font-size: 1.0625rem;
  line-height: 1.6;
  text-align: center;
  hyphens: none;
}

.home-hero__intro p {
  margin: 0;
  text-align: center;
}

.hero--home .hero__features {
  align-self: stretch;
  width: 100%;
  max-width: none;
  margin-top: 0;
}

.hero--home .hero-feature {
  justify-content: center;
  text-align: center;
  padding-block: var(--bb-space-2);
  padding-inline: var(--bb-space-4);
}

.hero--home .hero-feature__text--plain {
  font-family: var(--bb-font-body);
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1.35;
  text-transform: none;
  letter-spacing: normal;
}

.hero--home .hero__actions,
.hero--home .home-hero__actions {
  margin-top: var(--bb-space-4);
  justify-content: center;
}

/* Home landing sections */
/* Home — / */
.home-landing {
  background: var(--bb-color-bg);
}

.home-section--ecosystem {
  padding-top: var(--bb-space-5);
}

.home-section--ecosystem .bb-landing-section__title,
.home-section--ecosystem .bb-landing-section__intro,
.home-section--ecosystem .bb-landing-section__intro p {
  text-align: center;
}

.home-ecosystem-grid {
  display: grid;
  gap: var(--bb-space-5);
  row-gap: var(--bb-space-6);
  width: 100%;
  margin-top: var(--bb-space-4);
  --home-ecosystem-card-mask-image: linear-gradient(
    to top,
    transparent 0%,
    rgb(0 0 0 / 18%) 10%,
    rgb(0 0 0 / 68%) 24%,
    rgb(0 0 0 / 92%) 34%,
    #000 44%,
    #000 100%
  );
}

.home-ecosystem-card {
  height: 100%;
}

.home-ecosystem-card__link {
  display: block;
  height: 100%;
  color: inherit;
  text-decoration: none;
}

.home-ecosystem-card__media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  border-radius: var(--bb-radius-lg);
  background: var(--bb-color-bg);
  isolation: isolate;
}

.home-ecosystem-card__image {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: cover;
  object-position: var(--home-ecosystem-card-object-position, center 35%);
  transition: transform 0.45s ease;
  -webkit-mask-image: var(--home-ecosystem-card-mask-image);
  mask-image: var(--home-ecosystem-card-mask-image);
}

.home-ecosystem-card__link:hover .home-ecosystem-card__image,
.home-ecosystem-card__link:focus-visible .home-ecosystem-card__image {
  transform: scale(1.03);
}

.home-ecosystem-card__content {
  position: relative;
  z-index: 1;
  display: grid;
  gap: var(--bb-space-2);
  padding: var(--bb-space-3) var(--bb-space-4) 0;
}

.home-ecosystem-card__content--plain {
  transform: none;
  min-height: 16rem;
  padding: var(--bb-space-5);
  border: 1px solid rgba(245, 245, 245, 0.08);
  border-radius: var(--bb-radius-lg);
  background: var(--bb-color-surface-1);
}

.home-ecosystem-card__title {
  margin: 0;
  font-size: clamp(1.125rem, 2vw, 1.5rem);
  line-height: 1.15;
}

.home-ecosystem-card__text {
  margin: 0;
  color: var(--bb-color-text-secondary);
  font-size: clamp(0.875rem, 1.4vw, 1rem);
  line-height: 1.5;
}

.home-ecosystem-card__content--plain .home-ecosystem-card__text {
  color: var(--bb-color-text-secondary);
}

.home-ecosystem-card__cta {
  margin-top: var(--bb-space-1);
}

@media (min-width: 768px) {
  .home-ecosystem-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: var(--bb-space-4);
    row-gap: var(--bb-space-7);
  }

  .home-ecosystem-card__content {
    padding: var(--bb-space-4) var(--bb-space-5) 0;
  }
}

@media (max-width: 767px) {
  .home-section--ecosystem {
    padding-top: var(--bb-space-4);
  }
}

.home-text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  width: fit-content;
  color: var(--bb-color-text-primary);
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
}

.home-text-link::after {
  content: "→";
  transition: transform 0.2s ease;
}

.home-text-link:hover,
.home-text-link:focus-visible {
  color: var(--bb-color-action);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.home-text-link:hover::after,
.home-text-link:focus-visible::after {
  transform: translateX(2px);
}

.home-section__header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--bb-space-2) var(--bb-space-3);
  margin-bottom: var(--bb-space-4);
}

.home-section__header .bb-landing-section__title {
  width: auto;
  max-width: none;
  flex: 1 1 auto;
  min-width: 0;
  margin-bottom: 0;
}

.home-section__header .home-section__archive-link {
  flex: 0 0 auto;
  margin-top: 0;
  margin-left: auto;
  white-space: nowrap;
}

.home-academy-spotlight .home-academy-spotlight__actions {
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--bb-space-2) var(--bb-space-3);
  margin-top: 0;
}

.home-section__actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--bb-space-3);
  margin-top: var(--bb-space-5);
}

.home-section__archive-link {
  margin-top: var(--bb-space-5);
}

.home-academy-spotlight {
  display: grid;
  gap: var(--bb-space-5);
}

.home-academy-spotlight__eyebrow {
  margin: 0 0 var(--bb-space-2);
  color: var(--bb-color-action);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.home-academy-spotlight__title {
  display: flex;
  flex-direction: column;
  gap: var(--bb-space-1);
}

.home-academy-spotlight__title-lead {
  font-family: var(--bb-font-heading);
  font-size: clamp(1rem, 2vw, 1.25rem);
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--bb-color-text-secondary);
}

.home-academy-spotlight__title-brand {
  display: block;
  font-family: var(--bb-font-quantify);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.home-academy-spotlight__title-accent {
  color: var(--bb-color-action);
}

.home-academy-spotlight .bb-landing-section__intro,
.home-academy-spotlight .bb-landing-section__intro p {
  text-align: justify;
}

.home-academy-spotlight__features {
  width: 100%;
  margin-top: var(--bb-space-4);
}

.home-academy-spotlight .hero__features.hero__features--plain {
  display: flex;
  flex-direction: column;
  gap: var(--bb-space-2);
  width: 100%;
  border: none;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.home-academy-spotlight .hero__features .hero-feature + .hero-feature {
  border-top: none;
}

.home-academy-spotlight .hero-feature {
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: var(--bb-space-2);
  width: 100%;
  padding: var(--bb-space-2) var(--bb-space-3);
  border: 1px solid var(--bb-glass-border);
  border-radius: var(--bb-radius-pill);
  background: rgba(245, 245, 245, 0.06);
  text-align: left;
}

.home-academy-spotlight .hero-feature__icon {
  width: 28px;
  height: 28px;
}

.home-academy-spotlight .hero-feature__text--plain {
  font-family: var(--bb-font-body);
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1.35;
  text-transform: none;
  letter-spacing: normal;
}

.home-academy-spotlight__media {
  width: min(100%, 24rem);
  margin: 0;
  margin-inline: auto;
  border: 1px solid rgba(245, 245, 245, 0.08);
  border-radius: 2.5rem;
  overflow: hidden;
  background: var(--bb-color-surface-1);
}

.home-academy-spotlight__video {
  display: block;
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  background: #111;
  vertical-align: middle;
}

.home-guides-carousel {
  margin-top: var(--bb-space-4);
}

.home-guides-carousel__cell--archive {
  display: flex;
  align-items: stretch;
  min-height: 100%;
}

.home-guides-carousel__archive-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--bb-space-3);
  width: 100%;
  min-height: 100%;
  padding: var(--bb-space-5);
  border: 1px solid var(--bb-glass-border);
  border-radius: var(--bb-radius-md);
  background: var(--bb-color-surface-1);
  color: inherit;
  text-decoration: none;
  transition: border-color 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
}

.home-guides-carousel__archive-link:hover,
.home-guides-carousel__archive-link:focus-visible {
  border-color: rgba(245, 245, 245, 0.16);
  background: var(--bb-color-surface-2);
  transform: translateY(-2px);
}

.home-guides-carousel__archive-text {
  color: var(--bb-color-text-secondary);
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1.4;
  text-align: center;
  text-decoration: underline;
  text-decoration-color: rgba(245, 245, 245, 0.25);
  text-underline-offset: 0.2em;
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

.home-guides-carousel__archive-link:hover .home-guides-carousel__archive-text,
.home-guides-carousel__archive-link:focus-visible .home-guides-carousel__archive-text {
  color: var(--bb-color-text-primary);
  text-decoration-color: currentColor;
}

.home-guides-carousel__archive-arrow {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid var(--bb-glass-border);
  border-radius: 999px;
  background: transparent;
  color: var(--bb-color-text-primary);
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.home-guides-carousel__archive-arrow::before {
  content: '';
  display: block;
  width: 0.5rem;
  height: 0.5rem;
  border-bottom: 2px solid currentColor;
  border-left: 2px solid currentColor;
  transform: rotate(-135deg);
  margin-right: 0.15rem;
}

.home-guides-carousel__archive-link:hover .home-guides-carousel__archive-arrow,
.home-guides-carousel__archive-link:focus-visible .home-guides-carousel__archive-arrow {
  border-color: rgba(245, 245, 245, 0.22);
  background: var(--bb-color-surface-2);
}

.home-provinces {
  display: grid;
  gap: var(--bb-space-4);
  margin-top: var(--bb-space-4);
}

.home-provinces-filter__list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--bb-space-1);
  list-style: none;
  margin: 0;
  padding: 0;
}

.home-provinces-filter__pill {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 var(--bb-space-2);
  border: 1px solid var(--bb-glass-border);
  border-radius: var(--bb-radius-pill);
  background: transparent;
  color: var(--bb-color-text-secondary);
  cursor: pointer;
  font-family: var(--bb-font-heading);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.home-provinces-filter__pill:hover {
  border-color: rgba(245, 245, 245, 0.2);
  background: rgba(245, 245, 245, 0.06);
  color: var(--bb-color-text-primary);
}

.home-provinces-filter__pill.is-active {
  border-color: color-mix(in srgb, var(--bb-color-action) 55%, rgba(245, 245, 245, 0.2));
  background: color-mix(in srgb, var(--bb-color-action) 14%, rgba(245, 245, 245, 0.06));
  box-shadow:
    0 0 0 1px color-mix(in srgb, var(--bb-color-action) 35%, transparent),
    0 0 18px color-mix(in srgb, var(--bb-color-action) 42%, transparent);
  color: var(--bb-color-text-primary);
}

.home-provinces__panels {
  display: grid;
}

.home-provinces__panel {
  grid-area: 1 / 1;
}

.home-provinces__panel[hidden] {
  visibility: hidden;
  pointer-events: none;
}

.home-provinces-carousel .bb-actualidad-carousel__track {
  align-items: stretch;
}

.home-provinces-carousel .bb-actualidad-carousel__cell .bb-feature-card {
  height: 100%;
}

.home-provinces-carousel__cell--archive {
  display: flex;
  align-items: stretch;
  min-height: 100%;
}

.home-provinces-carousel__archive-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--bb-space-3);
  width: 100%;
  min-height: 100%;
  padding: var(--bb-space-5);
  border: 1px solid var(--bb-glass-border);
  border-radius: var(--bb-radius-md);
  background: var(--bb-color-surface-1);
  color: inherit;
  text-decoration: none;
  transition: border-color 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
}

.home-provinces-carousel__archive-link:hover,
.home-provinces-carousel__archive-link:focus-visible {
  border-color: rgba(245, 245, 245, 0.16);
  background: var(--bb-color-surface-2);
  transform: translateY(-2px);
}

.home-provinces-carousel__archive-text {
  color: var(--bb-color-text-secondary);
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1.4;
  text-align: center;
  text-decoration: underline;
  text-decoration-color: rgba(245, 245, 245, 0.25);
  text-underline-offset: 0.2em;
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

.home-provinces-carousel__archive-link:hover .home-provinces-carousel__archive-text,
.home-provinces-carousel__archive-link:focus-visible .home-provinces-carousel__archive-text {
  color: var(--bb-color-text-primary);
  text-decoration-color: currentColor;
}

.home-provinces-carousel__archive-arrow {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid var(--bb-glass-border);
  border-radius: 999px;
  background: transparent;
  color: var(--bb-color-text-primary);
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.home-provinces-carousel__archive-arrow::before {
  content: '';
  display: block;
  width: 0.5rem;
  height: 0.5rem;
  border-bottom: 2px solid currentColor;
  border-left: 2px solid currentColor;
  transform: rotate(-135deg);
  margin-right: 0.15rem;
}

.home-provinces-carousel__archive-link:hover .home-provinces-carousel__archive-arrow,
.home-provinces-carousel__archive-link:focus-visible .home-provinces-carousel__archive-arrow {
  border-color: rgba(245, 245, 245, 0.22);
  background: var(--bb-color-surface-2);
}

.home-community-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--bb-space-4);
  margin-top: var(--bb-space-4);
}

.home-community__media {
  margin: 0;
  min-width: 0;
}

.home-community__image {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: var(--bb-radius-md);
  object-fit: cover;
  object-position: center top;
  background: var(--bb-color-surface-1);
}

.home-community__copy {
  display: flex;
  flex-direction: column;
  gap: var(--bb-space-4);
  min-width: 0;
}

.home-community__spotlight {
  color: var(--bb-color-text-secondary);
  font-size: 1.0625rem;
  line-height: 1.6;
}

.home-community__spotlight p {
  margin: 0;
}

.home-community__spotlight p + p {
  margin-top: var(--bb-space-4);
}

.home-section--community .bb-landing-section__intro,
.home-section--community .bb-landing-section__intro p,
.home-section--community .home-community__spotlight,
.home-section--community .home-community__spotlight p {
  text-align: justify;
}

.home-section--community .home-community__actions {
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--bb-space-2) var(--bb-space-3);
  margin-top: 0;
}

.home-community__actions {
  margin-top: 0;
}

.home-academy-close {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--bb-space-3);
  width: 100%;
  padding: var(--bb-space-6) var(--bb-space-5);
  border: 1px solid rgba(245, 245, 245, 0.08);
  border-radius: var(--bb-radius-lg);
  background:
    radial-gradient(circle at top right, rgba(191, 26, 36, 0.18), transparent 55%),
    linear-gradient(180deg, rgba(26, 9, 9, 0.95) 0%, rgba(0, 0, 0, 0.98) 100%);
}

.home-academy-close__title {
  width: 100%;
  max-width: none;
  margin: 0;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
}

.home-academy-close__intro {
  width: 100%;
  max-width: none;
  margin: 0;
  color: var(--bb-color-text-secondary);
  font-size: 1.0625rem;
  line-height: 1.6;
}

@media (max-width: 767px) {
  .home-section--academy .home-academy-spotlight__content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .home-academy-spotlight__title {
    align-items: center;
  }

  .home-academy-spotlight .bb-landing-section__intro,
  .home-academy-spotlight .bb-landing-section__intro p {
    text-align: center;
  }

  .home-academy-spotlight .hero-feature {
    justify-content: center;
    text-align: center;
  }

  .home-academy-spotlight__actions {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
  }

  .home-academy-spotlight__media {
    margin-inline: auto;
  }

  .home-section--community .bb-landing-section__title {
    text-align: center;
  }

  .home-section--community .home-community-layout {
    justify-items: center;
  }

  .home-section--community .home-community__copy {
    align-items: center;
    width: 100%;
  }

  .home-section--community .home-community__actions {
    justify-content: center;
    width: 100%;
  }

  .home-section--community .home-community__media {
    width: 100%;
    margin-inline: auto;
  }
}

@media (min-width: 768px) {
  .home-academy-spotlight {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: auto auto;
    align-items: start;
    gap: var(--bb-space-4);
  }

  .home-academy-spotlight__content {
    grid-column: 1;
    grid-row: 1;
    min-width: 0;
    padding-right: var(--bb-space-2);
  }

  .home-academy-spotlight__actions {
    grid-column: 1;
    grid-row: 2;
  }

  .home-academy-spotlight__media {
    grid-column: 2;
    grid-row: 1 / -1;
    align-self: center;
    width: clamp(16rem, 22vw, 24rem);
    margin-inline: 0;
    justify-self: end;
  }

  .home-community-layout {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: center;
    gap: var(--bb-space-6);
  }

  .home-community__image {
    aspect-ratio: unset;
    min-height: 100%;
    height: 100%;
    max-height: 28rem;
  }

  .home-community__media {
    display: flex;
    min-height: 100%;
  }

}
