/* ===================================================================
   Hero editorial compartido — InstaBooster (sep 2026)
   Usado en /packs, /blog, /faq y /contact. Mismo lenguaje que el hero
   de /servicios: degradado limpio, eyebrow en mayúsculas, titular grande
   y apretado, texto de apoyo con datos reales y, solo en escritorio, un
   bloque a la derecha (tarjeta blanca o nota en texto).
   En móvil y tablet solo se muestran eyebrow, titular y texto.
   =================================================================== */
.ib-hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #e61c72 0%, #ff4d94 100%);
  color: #fff;
  padding: 44px 0 48px;
  font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
.ib-hero__inner {
  box-sizing: border-box;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.ib-hero__main { min-width: 0; }

.ib-hero__eyebrow {
  margin: 0 0 36px;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .92);
}
.ib-hero__eyebrow span { margin: 0 .35em; opacity: .7; }

.ib-hero__title {
  margin: 0 0 18px;
  max-width: 17ch;
  font-size: clamp(2.2rem, 7vw, 3.6rem);
  line-height: 1.04;
  font-weight: 800;
  letter-spacing: -.035em;
  color: #fff;
  text-wrap: balance;
}
.ib-hero__lead {
  margin: 0;
  max-width: 34rem;
  font-size: clamp(1rem, 2.6vw, 1.2rem);
  line-height: 1.5;
  font-weight: 400;
  color: rgba(255, 255, 255, .92);
}
.ib-hero__lead strong { color: #fff; font-weight: 700; }
.ib-hero__lead a { color: #fff; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }

/* Botones bajo el texto (afiliados): pastilla blanca + pastilla fantasma,
   como los del hero de la home. */
.ib-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.ib-hero__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 24px;
  border-radius: 999px;
  font-size: .95rem;
  font-weight: 700;
  text-decoration: none !important;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.ib-hero__btn--primary { background: #fff; color: #e61c72 !important; box-shadow: 0 10px 24px -12px rgba(90, 0, 40, .6); }
.ib-hero__btn--primary:hover { transform: translateY(-2px); box-shadow: 0 16px 30px -12px rgba(90, 0, 40, .7); }
.ib-hero__btn--ghost { background: rgba(255, 255, 255, .14); color: #fff !important; border: 1.5px solid rgba(255, 255, 255, .55); }
.ib-hero__btn--ghost:hover { background: rgba(255, 255, 255, .24); transform: translateY(-2px); }
.ib-hero__btn svg { width: 16px; height: 16px; }

/* Bloque derecho: oculto salvo en escritorio */
.ib-hero__aside { display: none; }

/* — Tarjeta blanca (packs, contacto) — */
.ib-hero__card {
  box-sizing: border-box;
  width: 100%;
  max-width: 340px;
  background: #fff;
  color: #14181f;
  border-radius: 24px;
  padding: 24px 26px 22px;
  box-shadow: 0 28px 60px -22px rgba(90, 0, 40, .55), 0 2px 6px rgba(90, 0, 40, .12);
}
.ib-hero__card-kicker {
  display: block;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #6b7280;
}
.ib-hero__card-value {
  display: flex;
  align-items: baseline;
  gap: .3em;
  margin-top: 10px;
  line-height: 1;
}
.ib-hero__card-value strong {
  font-size: 2.75rem;
  font-weight: 800;
  letter-spacing: -.04em;
  color: #14181f;
}
.ib-hero__card-value small { font-size: 1rem; font-weight: 600; color: #6b7280; }
.ib-hero__card-value--text strong { font-size: 1.35rem; letter-spacing: -.02em; word-break: break-all; }
.ib-hero__card-stars { display: flex; gap: 3px; margin: 10px 0 2px; color: #f5a524; }
.ib-hero__card-stars svg { width: 20px; height: 20px; }
.ib-hero__card-note { display: block; margin-top: 6px; font-size: .86rem; font-weight: 500; color: #6b7280; }
.ib-hero__card-link {
  display: inline-block;
  margin-top: 10px;
  font-size: .84rem;
  font-weight: 700;
  color: #e61c72 !important;
  text-decoration: none !important;
}
.ib-hero__card-link:hover { text-decoration: underline !important; }
.ib-hero__card > a { color: inherit; text-decoration: none !important; }

.ib-hero__facts {
  list-style: none;
  margin: 18px 0 0;
  padding: 16px 0 0;
  border-top: 1px solid #e8eaed;
  display: grid;
  gap: 10px;
  font-size: .9rem;
  font-weight: 600;
  line-height: 1.3;
  color: #14181f;
}
.ib-hero__facts li { display: flex; align-items: center; gap: 10px; }
.ib-hero__check {
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: linear-gradient(135deg, #10b981, #059669);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(16, 185, 129, .35);
}
.ib-hero__check svg { width: 12px; height: 12px; }

/* — Nota en texto, alineada a la derecha (blog) — */
.ib-hero__note {
  max-width: 320px;
  text-align: right;
  color: #fff;
}
.ib-hero__note-kicker {
  display: block;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .8);
}
.ib-hero__note-title {
  margin: 10px 0 0;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -.01em;
}
.ib-hero__note-title a { color: #fff; text-decoration: none; }
.ib-hero__note-title a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.ib-hero__note-meta { margin: 8px 0 0; font-size: .8rem; font-weight: 500; color: rgba(255, 255, 255, .85); }

@media (min-width: 640px) {
  .ib-hero { padding: 56px 0 64px; }
  .ib-hero__inner { padding: 0 24px; }
  .ib-hero__eyebrow { margin-bottom: 56px; }
}

@media (min-width: 1024px) {
  .ib-hero { padding: 64px 0 72px; }
  .ib-hero__inner {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
    gap: 48px;
  }
  .ib-hero__eyebrow { margin-bottom: 88px; }
  .ib-hero__main { flex: 1 1 auto; }
  .ib-hero__aside { display: block; flex: 0 0 340px; }
  .ib-hero__aside--note { flex-basis: 320px; padding-bottom: 6px; }
}

/* Packs: titular más largo (lleva las tres palabras clave), un punto más
   pequeño para que quepa en dos líneas junto a la tarjeta. */
@media (min-width: 1024px) {
  .ib-hero--packs .ib-hero__title { max-width: none; font-size: clamp(2.2rem, 4.6vw, 3rem); }
}

/* Página de red social (/servicios/instagram…): logo de la red en el
   eyebrow (también en móvil, 26px) y como pieza principal de la tarjeta. */
.ib-hero__eyebrow-logo {
  display: inline-block;
  width: 26px;
  height: 26px;
  margin: -6px 10px -6px 0;
  padding: 3px;
  border-radius: 7px;
  background: #fff;
  object-fit: contain;
  vertical-align: middle;
  box-shadow: 0 2px 8px rgba(90, 0, 40, .25);
}
.ib-hero__card-logo {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}
.ib-hero__card-logo img {
  width: 56px;
  height: 56px;
  padding: 8px;
  border-radius: 14px;
  background: #f8f9fb;
  border: 1px solid #e8eaed;
  object-fit: contain;
  flex: 0 0 56px;
}
.ib-hero__card-logo strong {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -.02em;
  color: #14181f;
}
/* En esta plantilla el cabecero móvil es fijo: mismo desplazamiento que
   tenía el hero anterior para que no quede tapado. */
@media (max-width: 768px) {
  .ib-hero--network { padding-top: calc(2rem + 64px); }
}
@media (max-width: 480px) {
  .ib-hero--network { padding-top: calc(1.5rem + 64px); }
}

/* Variante compacta: páginas con contenido justo debajo (FAQ con buscador,
   contacto con formulario). Menos aire, mismo lenguaje. */
.ib-hero--compact { padding-bottom: 60px; }
.ib-hero--compact .ib-hero__eyebrow { margin-bottom: 28px; }
@media (min-width: 640px) {
  .ib-hero--compact .ib-hero__eyebrow { margin-bottom: 40px; }
}
@media (min-width: 1024px) {
  .ib-hero--compact { padding: 56px 0 84px; }
  .ib-hero--compact .ib-hero__eyebrow { margin-bottom: 56px; }
}
