/* Portada nueva (Guille, 06/10/2026): fotos de la comunidad arriba y banderas que
   llevan al calendario de la primera clase de 10 €. Solo si home_hero_new. */
.hero-home-image--comu .hero-comu-slide {
  transition: opacity .8s ease;
}
.hero-home-image--comu .hero-comu-slide:not(.is-on) {
  opacity: 0;
  pointer-events: none;
}
.hero-home-image.hero-home-image--comu img.hero-comu-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-height: none;
  -o-object-fit: cover;
     object-fit: cover;
  border-radius: 24px;
  z-index: 11;
}
.hero-comu-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 12px;
  z-index: 12;
  display: flex;
  justify-content: center;
  gap: 6px;
}
.hero-comu-dots i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .6);
  box-shadow: 0 0 3px rgba(0, 0, 0, .35);
}
.hero-comu-dots i.is-on {
  background: #fff;
}
/* Banderas como botón: la píldora entera es el enlace. */
.langs-item--link {
  padding: 0;
  transition: border-color .15s ease, transform .15s ease;
}
.langs-item--link:hover {
  border-color: hsl(var(--primary));
  transform: translateY(-2px);
}
.langs-item--link .langs-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.7rem 1.4rem 0.7rem 0.9rem;
  border-radius: 999px;
  color: inherit;
  text-decoration: none;
}
.langs-hint {
  text-align: center;
  margin: -0.5rem 0 1.25rem;
  font-weight: 600;
  color: hsl(var(--primary));
}
/* Banderas dentro de la franja azul, sin texto. */
.hero-flags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.25rem;
}
.hero-flag {
  display: inline-flex;
  border-radius: 8px;
  transition: transform .15s ease;
}
.hero-flag:hover {
  transform: translateY(-2px) scale(1.06);
}
.hero-flags .hero-flag-icon {
  width: 40px;
  line-height: 30px;
  border-radius: 5px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .25);
}
/* Botones de los planes iguales que el resto de la portada (Guille, 07/10/2026): azul con letra blanca. */
.pricing-card .btn-primary.plan-get-started {
  display: block;
  width: 100%;
  text-align: center;
}

/* Botones azules como "See available courses" (Guille, 07/10/2026): los amarillos no gustaron. */
.home-hero-new .btn-yellow,
.home-hero-new .btn-yellow-block,
.home-hero-new .plan-get-started,
.home-hero-new .btn-cyan {
  background-color: hsl(var(--primary));
  color: #fff;
}

/* Franja de prueba social al estilo Lingoda (Guille, 18/10/2026): panel blanco de esquinas redondeadas pegado a la portada. */
.hero-proof {
  background: #fff;
  border-radius: 28px 28px 0 0;
  margin-top: -28px;
  position: relative;
  z-index: 5;
  padding: 1rem 0 1.25rem;
}
.hero-proof-google {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  color: hsl(var(--foreground));
  text-decoration: none;
  font-size: 1rem;
}
.hero-proof-stars { color: #f5b50a; letter-spacing: 1px; }
.hero-proof-g { display: inline-flex; align-items: center; gap: 0.3rem; font-weight: 700; }
.hero-proof-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  margin-top: 0.75rem;
}
.hero-proof-stat {
  display: flex;
  flex-direction: column;
  padding-left: 1rem;
  border-left: 1px solid hsl(var(--border));
}
.hero-proof-num {
  font-family: 'Proxima Nova Bold', 'Inter', sans-serif;
  font-size: 2rem;
  line-height: 1.1;
  color: hsl(var(--primary));
}
.hero-proof-label {
  font-size: 0.85rem;
  color: hsl(var(--muted-foreground));
}
@media (max-width: 640px) {
  .hero-proof-num { font-size: 1.4rem; }
  .hero-proof-label { font-size: 0.72rem; }
  .hero-proof-stat { padding-left: 0.6rem; }
}

/* La prueba social tiene que verse DENTRO de la primera pantalla del ordenador (Guille, 18/10/2026):
   portada más baja, sin el alto de pantalla entera, para que la franja de cifras quepa debajo. */
@media (min-width: 1025px) {
  .home-hero-new .hero-home-main {
    /* Portada + franja = una pantalla justa: la franja queda a ras del borde de abajo (Guille, 18/10/2026). */
    min-height: calc(100vh - 95px);
  }
  .home-hero-new .hero-home-main > .container {
    padding-top: 5.5rem;
    padding-bottom: 3.5rem;
  }
  .home-hero-new .hero-home-main .hero-home-image {
    height: min(540px, calc(100vh - 320px));
  }
  .home-hero-new .hero-home-main .hero-home-text {
    padding-bottom: 0.5rem;
  }
}

/* Móvil/app (Guille, 18/10/2026): la franja no tapa "Learn more about PBC" y baja en blanco hasta
   pegarse con el blanco de la barra de abajo, sin sombrita en medio. */
@media (max-width: 767.98px) {
  .home-hero-new .hero-proof {
    margin-top: 0;
    border-radius: 0;
    /* el cuerpo ya reserva 74px para la barra: el blanco los cubre y el contenido acaba justo encima */
    margin-bottom: calc(-74px - env(safe-area-inset-bottom, 0px));
    padding-bottom: calc(74px + 1rem + env(safe-area-inset-bottom, 0px));
  }
  .home-hero-new .pbc-mnav {
    box-shadow: none;
    border-top-color: transparent;
  }
}
