/* ═══════════════════════════════════════
   HOMEPAGE – mockup 04_11_22
   ═══════════════════════════════════════ */

/* Hero banner – mockup 04_11_22 */
.eb-hero-home {
  position: relative;
  min-height: clamp(420px, 50vh, 540px);
  display: flex;
  flex-direction: column;
  background: var(--eb-dark);
  overflow: hidden;
}

.eb-hero-home-bg {
  position: absolute;
  top: 0;
  bottom: 0;
  right: 0;
  left: auto;
  width: 75%;
  z-index: 0;
}

.eb-hero-home-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: right 38%;
}

/* Difuminado en el borde izquierdo de la foto (25% texto + transición) */
.eb-hero-home-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    var(--eb-dark) 0%,
    rgba(7, 42, 99, 0.85) 12%,
    rgba(13, 59, 142, 0.35) 28%,
    transparent 48%
  );
  pointer-events: none;
}

/* Zona sólida izquierda (25% sin foto) */
.eb-hero-home::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 28%;
  background: linear-gradient(
    90deg,
    var(--eb-dark) 0%,
    var(--eb-dark) 75%,
    transparent 100%
  );
  z-index: 1;
  pointer-events: none;
}

.eb-hero-dots {
  width: 22px;
  height: 22px;
  margin-bottom: 1rem;
  background-image: radial-gradient(var(--eb-accent) 2px, transparent 2px);
  background-size: 11px 11px;
  opacity: 0.95;
  pointer-events: none;
  display: none;
}

.eb-hero-home-content {
  flex: 1;
  display: flex;
  align-items: center;
  padding: 2.75rem 0 3.25rem;
  position: relative;
  z-index: 5;
}

.eb-hero-home-text {
  max-width: 30rem;
  position: relative;
}

.eb-hero-h1 {
  margin-bottom: 1.125rem;
  letter-spacing: -0.025em;
}

/* Línea 1 – ~65% del principal */
.eb-hero-h1-lead {
  display: block;
  font-size: clamp(1.125rem, 2.75vw, 1.8rem);
  font-weight: 500;
  color: var(--eb-white);
  line-height: 1.2;
  margin-bottom: 0.35em;
  letter-spacing: 0.01em;
  text-shadow: 0 1px 12px rgba(7, 42, 99, 0.35);
}

/* Línea 2 – tamaño principal */
.eb-hero-h1-main {
  display: block;
  font-size: clamp(1.75rem, 4.2vw, 2.75rem);
  font-weight: 700;
  line-height: 1.06;
  text-shadow: 0 2px 18px rgba(7, 42, 99, 0.4);
}

.eb-hero-h1-main .hl-white {
  color: var(--eb-white);
}

.eb-hero-h1-main .hl-yellow {
  color: var(--eb-accent);
}

.eb-hero-home-text p {
  font-size: clamp(0.9rem, 1.35vw, 1.0625rem);
  font-weight: 400;
  color: rgba(255, 255, 255, 0.92);
  line-height: 1.7;
  margin-bottom: 1.625rem;
  max-width: 26rem;
  text-shadow: 0 1px 10px rgba(7, 42, 99, 0.3);
}

.eb-hero-home-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.eb-hero-home-actions .eb-btn {
  width: 100%;
  min-width: 0;
  padding: 0.75rem 1.75rem;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
}

.eb-hero-home-actions .eb-btn--ghost {
  color: var(--eb-white);
  border-color: rgba(255, 255, 255, 0.9);
  font-weight: 600;
}

@media (max-width: 767px) {
  .eb-hero-home {
    min-height: clamp(420px, 54vh, 500px);
  }

  .eb-hero-home-content {
    align-items: flex-start;
    padding: 2rem 0 5rem;
  }

  .eb-hero-home-bg {
    top: 26%;
    width: 100%;
    left: 0;
    right: 0;
  }

  .eb-hero-home::before {
    width: 100%;
    background: linear-gradient(
      180deg,
      var(--eb-dark) 0%,
      rgba(7, 42, 99, 0.9) 34%,
      rgba(7, 42, 99, 0.5) 54%,
      rgba(7, 42, 99, 0.15) 72%,
      transparent 88%
    );
  }

  .eb-hero-home-bg::after {
    background: linear-gradient(
      180deg,
      rgba(7, 42, 99, 0.55) 0%,
      transparent 40%
    );
  }

  .eb-hero-home-bg img {
    object-position: center 32%;
  }
}

/* Impacto en cifras */
.eb-stats {
  padding: 2.75rem 0 3rem;
  background: var(--eb-white);
}

.eb-stats .eb-section-head {
  margin-bottom: 2rem;
}

.eb-stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem 1.25rem;
}

.eb-stat {
  position: relative;
  text-align: center;
  padding: 0.25rem;
}

.eb-stat::after {
  content: '';
  position: absolute;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  width: 1px;
  height: 72%;
  background: var(--eb-stat-divider);
  pointer-events: none;
  display: none;
}

/* 2 columnas: separador entre columnas */
.eb-stat:nth-child(odd):not(:last-child)::after {
  display: block;
}

.eb-stat-icon {
  width: 68px;
  height: 68px;
  margin: 0 auto 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.eb-stat-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.eb-stat-num {
  font-size: clamp(1.25rem, 2.5vw, 1.625rem);
  font-weight: 800;
  color: var(--eb-dark);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.eb-stat-label {
  font-size: 0.8125rem;
  color: var(--eb-text-light);
  line-height: 1.4;
  max-width: 11rem;
  margin: 0 auto;
}

/* Programas */
.eb-programs {
  padding: 3.5rem 0;
  background: var(--eb-bg-programs);
}

.eb-programs-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
}

.eb-programs-intro {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.5rem;
  width: 100%;
}

.eb-programs-intro .eb-section-head {
  margin-bottom: 0;
  text-align: left;
  width: 75%;
  max-width: 100%;
}

.eb-programs-intro .eb-section-head p {
  font-size: 0.875rem;
  line-height: 1.7;
}

.eb-programs .eb-section-head h2 span {
  color: var(--eb-secondary);
}

.eb-programs-intro > .eb-btn {
  width: fit-content;
}

.eb-program-cards {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.eb-program-card {
  max-width: 100%;
  background: var(--eb-white);
  border-radius: var(--eb-radius);
  overflow: hidden;
  box-shadow: var(--eb-shadow);
  transition: transform 0.3s, box-shadow 0.3s;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.eb-program-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--eb-shadow-card);
}

.eb-program-card-img {
  position: relative;
  display: block;
  height: 180px;
  flex-shrink: 0;
  overflow: visible;
  z-index: 2;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.eb-program-card-img:focus-visible {
  outline: 2px solid var(--eb-secondary);
  outline-offset: 2px;
  border-radius: var(--eb-radius) var(--eb-radius) 0 0;
}

.eb-program-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: var(--eb-radius) var(--eb-radius) 0 0;
  transition: transform 0.35s ease;
}

.eb-program-card-img:hover img,
.eb-program-card-img:focus-visible img {
  transform: scale(1.04);
}

.eb-program-card-img::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--eb-accent);
  z-index: 1;
}

.eb-program-card-icon {
  position: absolute;
  bottom: 0;
  left: 1.25rem;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--eb-secondary);
  border: 3px solid var(--eb-white);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
  transform: translateY(50%);
  color: var(--eb-white);
  padding: 11px;
  box-shadow: 0 4px 14px color-mix(in srgb, var(--eb-secondary) 35%, transparent);
}

.eb-program-card-icon svg,
.eb-program-card-icon .eb-i,
.eb-program-card-icon i {
  width: 22px;
  height: 22px;
  stroke: var(--eb-white);
  color: var(--eb-white);
  font-size: 1.25rem;
  line-height: 1;
}

.eb-program-card-body {
  position: relative;
  z-index: 1;
  padding: 2rem 1.125rem 1.25rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.eb-program-card-body h3 {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--eb-dark);
  margin-bottom: 0.5rem;
}

.eb-program-card-body h3 span {
  font-weight: 600;
  color: var(--eb-secondary);
  font-size: 0.875rem;
}

.eb-program-card-body p {
  font-size: 0.78125rem;
  color: var(--eb-text-light);
  line-height: 1.65;
  margin-bottom: 0.875rem;
  flex: 1;
}

.eb-program-card-body .eb-link-arrow {
  position: relative;
  z-index: 3;
  margin-top: auto;
}

/* Involúcrate */
.eb-involve {
  padding: 3rem 0;
  background: linear-gradient(160deg, var(--eb-primary) 0%, var(--eb-dark) 100%);
  color: var(--eb-white);
}

.eb-involve .eb-section-head {
  margin-bottom: 2.5rem;
}

.eb-involve .eb-section-head h2 {
  color: var(--eb-white);
  font-weight: 600;
}

.eb-involve .eb-section-head h2 .hl-yellow {
  color: var(--eb-accent);
}

.eb-involve .eb-section-head p {
  color: rgba(255, 255, 255, 0.78);
}

.eb-involve-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
}

.eb-involve-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem 1rem;
}

.eb-involve-item {
  text-align: center;
  padding: 0.5rem;
}

.eb-involve-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 0.875rem;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--eb-white);
  padding: 16px;
  text-decoration: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

/* Iconos involucrarte – Font Awesome */
.eb-involve-icon--swal {
  padding: 0;
  border: 3px solid var(--eb-accent);
  background: var(--eb-secondary);
  color: var(--eb-white);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
}

.eb-involve-icon--swal:hover,
.eb-involve-icon--swal:focus-visible {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28), 0 6px 16px rgba(7, 116, 226, 0.35);
}

.eb-involve-icon--swal:focus-visible {
  outline: 2px solid var(--eb-accent);
  outline-offset: 3px;
}

.eb-involve-icon--swal i {
  font-size: 1.5rem;
  line-height: 1;
  color: var(--eb-white);
}

.eb-involve-icon svg,
.eb-involve-icon .eb-i {
  width: 28px;
  height: 28px;
  stroke: var(--eb-white);
  color: var(--eb-white);
}

.eb-involve-item h3 {
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.375rem;
  letter-spacing: 0.02em;
  color: var(--eb-white);
}

.eb-involve-item p {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.68);
  line-height: 1.5;
}

.eb-involve-video {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: none;
  font: inherit;
  cursor: pointer;
  text-align: left;
  border-radius: var(--eb-radius);
  overflow: hidden;
  aspect-ratio: 16 / 10;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.28);
  -webkit-mask-image: -webkit-radial-gradient(white, black);
  mask-image: radial-gradient(white, black);
}

.eb-involve-video img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: var(--eb-radius);
}

.eb-involve-video-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(7, 42, 99, 0.25);
  transition: background 0.25s;
  border-radius: var(--eb-radius);
}

.eb-involve-video:hover .eb-involve-video-play {
  background: rgba(7, 42, 99, 0.38);
}

.eb-involve-video-play span {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  border: 3px solid transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.eb-involve-video:hover .eb-involve-video-play span {
  border-color: var(--eb-accent);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.35);
  transform: scale(1.06);
}

.eb-involve-video-play span svg {
  width: 26px;
  height: 26px;
  margin-left: 4px;
  fill: var(--eb-secondary);
  stroke: none;
}

/* Historias y noticias */
.eb-stories {
  padding: 3rem 0;
  background: var(--eb-bg);
}

.eb-stories .eb-section-head {
  margin-bottom: 2.5rem;
}

.eb-stories .eb-section-head h2 span {
  color: var(--eb-secondary);
  font-weight: 700;
}

.eb-stories-slider {
  position: relative;
}

.eb-stories-viewport {
  overflow: hidden;
  width: 100%;
}

.eb-stories-track {
  display: flex;
  gap: 1.75rem;
  align-items: stretch;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

.eb-story-card {
  flex-shrink: 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  position: relative;
  background: var(--eb-bg);
  border: 1px solid var(--eb-border);
  border-radius: var(--eb-radius);
  overflow: hidden;
  box-shadow: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.eb-story-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--eb-shadow-card);
  cursor: pointer;
}

.eb-story-card-img {
  position: relative;
  height: 190px;
  overflow: hidden;
  border-radius: 0;
  box-shadow: none;
  transition: none;
}

.eb-story-card:hover .eb-story-card-img {
  transform: none;
  box-shadow: none;
}

.eb-story-card-img::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--eb-accent);
  z-index: 2;
}

.eb-story-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s;
}

.eb-story-card:hover .eb-story-card-img img {
  transform: scale(1.04);
}

.eb-story-card-img .eb-tag {
  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 3;
}

.eb-story-card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 1.375rem 1.25rem 1.5rem;
  background: var(--eb-bg);
}

.eb-story-card-body h3 {
  font-size: 1.03125rem;
  font-weight: 700;
  color: var(--eb-dark);
  line-height: 1.35;
  margin-bottom: 0.625rem;
}

.eb-story-card-body p {
  flex: 1;
  font-size: 0.84375rem;
  color: var(--eb-text-light);
  line-height: 1.65;
  margin-bottom: 0;
}

.eb-story-card-body .eb-link-arrow {
  margin-top: auto;
  padding-top: 1.125rem;
  pointer-events: none;
}

.eb-stories-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.25rem;
  margin-top: 2rem;
}

.eb-stories-dot {
  position: relative;
  width: 44px;
  height: 44px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  flex-shrink: 0;
}

.eb-stories-dot::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--eb-stat-divider);
  transform: translate(-50%, -50%);
  transition: background 0.25s ease, transform 0.25s ease;
}

.eb-stories-dot:hover::after {
  transform: translate(-50%, -50%) scale(1.1);
}

.eb-stories-dot.is-active::after {
  background: var(--eb-accent);
  transform: translate(-50%, -50%) scale(1.25);
}

.eb-stories-dot:focus-visible {
  outline: 2px solid var(--eb-secondary);
  outline-offset: 2px;
}

.eb-stats .eb-section-head h2 span {
  color: var(--eb-secondary);
  font-weight: 700;
}

@media (min-width: 600px) {
  .eb-hero-home-actions {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
  }

  .eb-hero-home-actions .eb-btn {
    width: auto;
  }

  .eb-stats-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .eb-stat:nth-child(odd):not(:last-child)::after {
    display: none;
  }

  .eb-stat:not(:nth-child(3n)):not(:last-child)::after {
    display: block;
  }
}

@media (min-width: 768px) {
  .eb-hero-home {
    min-height: 500px;
  }

  .eb-hero-home-bg img {
    object-position: right 38%;
  }

  .eb-hero-dots {
    display: block;
  }

  .eb-stats-grid {
    grid-template-columns: repeat(5, 1fr);
    gap: 1.5rem 1.75rem;
  }

  .eb-stat:not(:nth-child(3n)):not(:last-child)::after {
    display: none;
  }

  .eb-stat:not(:last-child)::after {
    display: block;
  }

  .eb-programs {
    padding: 4.5rem 0;
  }

  .eb-programs-layout {
    grid-template-columns: minmax(200px, 1fr) 17.5rem 17.5rem;
    gap: 1.5rem 0.5rem;
    align-items: stretch;
    justify-content: end;
  }

  .eb-program-cards {
    display: contents;
  }

  .eb-programs-intro {
    padding-right: 1rem;
    justify-self: start;
    align-self: center;
  }

  .eb-program-card {
    max-width: none;
    width: 100%;
    justify-self: stretch;
  }

  .eb-program-card-img {
    height: 150px;
  }

  .eb-involve-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
  }

  .eb-involve-layout {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 3rem;
  }
}

@media (min-width: 1024px) {
  .eb-hero-home {
    min-height: 520px;
  }

  .eb-hero-home-text {
    max-width: 32rem;
  }

  .eb-hero-h1-lead {
    font-size: 1.8rem;
  }

  .eb-hero-h1-main {
    font-size: 2.75rem;
  }

  .eb-hero-h1 {
    margin-bottom: 1.25rem;
  }

  .eb-hero-home-text p {
    font-size: 1rem;
    max-width: 24rem;
    margin-bottom: 1.75rem;
  }

  .eb-hero-home-actions .eb-btn {
    padding: 0.8125rem 2rem;
    font-size: 0.75rem;
  }

  .eb-programs-layout {
    grid-template-columns: minmax(220px, 1fr) 18.75rem 18.75rem;
    gap: 1.5rem 0.625rem;
  }

  .eb-program-card-img {
    height: 165px;
  }

  .eb-involve-item h3 {
    font-size: 0.9375rem;
  }

  .eb-involve-item p {
    font-size: 0.8125rem;
  }
}
