/*
 * Landing de campaña (Red Week, Black Week, Cyber Monday, …).
 * Se carga SOLO cuando hay campaña activa o vista previa (landings/campanas/landing_campana.php).
 * Colores: variables --lc-* que emite PHP según el tema (LC_TEMAS en landings/campanas/campanas.php).
 */

:root {
  --lc-barra-h: 40px;
}
@media (max-width: 767.98px) {
  :root { --lc-barra-h: 64px; }
}

/* ---------- Barra de anuncio ---------- */
.lc-barra {
  position: sticky;
  top: 0;
  z-index: 1040; /* arriba de #fby-navbar-wrapper (1030) */
  background: var(--lc-barra-bg);
  color: var(--lc-barra-fg);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px 18px;
  padding: 8px 16px;
  font-size: .875rem;
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
}
.lc-barra-texto strong { font-weight: 800; }
.lc-barra-reloj {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-weight: 500;
}
.lc-barra-termina { opacity: .85; margin-right: 2px; font-size: .8rem; }
.lc-chip {
  display: inline-flex;
  align-items: baseline;
  gap: 1px;
  background: var(--lc-chip-bg);
  color: var(--lc-chip-fg);
  border-radius: 6px;
  padding: 1px 6px;
  font-size: .72rem;
  font-weight: 600;
  min-width: 34px;
  justify-content: center;
}
.lc-chip b { font-size: .85rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.lc-barra-link {
  color: var(--lc-barra-link);
  text-decoration: none;
  font-weight: 800;
  white-space: nowrap;
}
.lc-barra-link:hover { color: var(--lc-barra-link); text-decoration: underline; }
@media (max-width: 767.98px) {
  .lc-barra { flex-direction: column; gap: 4px; padding: 8px 12px; font-size: .95rem; }
  .lc-chip { font-size: .7rem; padding: 2px 7px; }
  .lc-chip b { font-size: .9rem; }
}

/* La navbar flotante baja el alto de la barra */
body #fby-navbar-wrapper { top: calc(12px + var(--lc-barra-h)); }
/* Suscribirme del menú en el color de la campaña */
#fby-navbar-wrapper .btn-primary {
  background-color: var(--lc-nav-bg) !important;
  border-color: var(--lc-nav-bg) !important;
  color: var(--lc-nav-fg) !important;
}

/* ---------- Hero ---------- */
#hero .lc-sello {
  display: inline-block;
  background: var(--lc-sello-bg);
  color: var(--lc-sello-fg);
  border-radius: 100px;
  padding: .375rem 1.125rem;
  font-weight: 800;
  letter-spacing: .01em;
}
#hero .lc-titular { font-size: clamp(2.4rem, 4.6vw, 4.2rem); line-height: 1.02; }
#hero .lc-subtitulo strong { font-weight: 800; }
#hero .lc-cta {
  background: var(--lc-cta-bg);
  border-color: var(--lc-cta-bg);
  color: var(--lc-cta-fg);
  font-weight: 700;
}
#hero .lc-cta:hover, #hero .lc-cta:focus { filter: brightness(1.08); color: var(--lc-cta-fg); }
/* La barra ocupa alto: el hero de escritorio no debe pasar del primer pantallazo */
@media (min-width: 768px) {
  section#hero { height: calc(100svh - var(--lc-barra-h)); min-height: 640px; }
  /* el contenido (titular de hasta 4 líneas) no se encima con la navbar flotante */
  section#hero > .container { padding-top: 72px; }
}

/* ---------- Precios ---------- */
#planes { scroll-margin-top: calc(var(--lc-barra-h) + 84px); }
#planes.lc-planes { background: var(--lc-precios-bg) !important; color: var(--lc-precios-fg); }
#planes.lc-planes .lc-precios-pre,
#planes.lc-planes .lc-precios-sub { color: var(--lc-precios-sub); }
#planes.lc-planes h2 { color: var(--lc-precios-fg); }
/* Las tarjetas blancas conservan su texto oscuro aunque la sección sea negra */
#planes.lc-planes .card.bg-white { color: #231F20; }
#planes.lc-planes > .container > .row .small,
#planes.lc-planes > .container > .row h6,
#planes.lc-planes .paises-dropup > .btn { color: var(--lc-precios-fg); }
#planes.lc-planes .lc-legal { color: var(--lc-precios-sub); }

/* ---------- Precios v4 (Figma «Landing» ▸ v4 · Más impacto, 2026-11-05) ---------- */
#planes.lc-planes {
  background:
    radial-gradient(55% 45% at 12% 8%, var(--lc-blob-a), transparent 70%),
    radial-gradient(60% 50% at 92% 88%, var(--lc-blob-b), transparent 70%),
    var(--lc-precios-bg) !important;
  overflow: hidden;
}
.lc4-head { display: flex; flex-direction: column; align-items: center; gap: 14px; margin-bottom: 16px; text-align: center; }
.lc4-logo { width: 210px; max-width: 50%; filter: brightness(0) invert(1); }
.lc4-wm {
  position: relative;
  display: inline-flex;
  align-items: center;
  font-size: clamp(54px, 9.5vw, 136px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.045em;
  transform: rotate(-5deg);
  margin: .3em 0 .2em;
}
.lc4-wm > span {
  display: inline-block;
  padding: .06em .24em .12em;
  border-radius: .19em;
  box-shadow: 0 .1em .28em rgba(0, 0, 0, .35);
}
.lc4-wm1 { background: var(--lc-wma-bg); color: var(--lc-wma-fg); position: relative; z-index: 1; }
.lc4-wm2 { background: var(--lc-wmb-bg); color: var(--lc-wmb-fg); margin-left: -.1em; }
.lc4-spark { position: absolute; right: -.42em; top: -.5em; width: .5em; height: .5em; transform: rotate(5deg); }
.lc4-spark b { position: absolute; height: .055em; border-radius: 1em; background: var(--lc-spark); }
.lc4-spark b:nth-child(1) { width: .22em; left: .02em; top: .24em; transform: rotate(60deg); }
.lc4-spark b:nth-child(2) { width: .26em; left: .16em; top: .3em; transform: rotate(30deg); }
.lc4-spark b:nth-child(3) { width: .22em; left: .26em; top: .44em; }
.lc4-kicker {
  display: flex; align-items: center; justify-content: center; gap: 20px; margin: 18px 0 0;
  color: var(--lc-precios-fg); text-transform: uppercase; letter-spacing: .28em; font-size: 1.15rem; font-weight: 500;
}
.lc4-line { flex: 0 0 72px; height: 2px; background: currentColor; opacity: .5; }
.lc4-fechas {
  background: var(--lc-fechas-bg); color: var(--lc-fechas-fg); border-radius: 999px; padding: 6px 18px;
  font-weight: 700; font-size: .9rem; letter-spacing: .1em; text-transform: uppercase;
}

.lc4-planes { display: flex; justify-content: center; align-items: center; gap: 20px; padding-top: 44px; }
.lc4-col { flex: 0 1 340px; min-width: 0; }
.lc4-col-dest { flex-basis: 400px; }
.lc4-card {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center;
  background: #FFF7F0; color: #111; border-radius: 30px; padding: 36px 28px 30px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, .28);
}
.lc4-card p { margin: 0; color: inherit; }
.lc4-dest {
  background: var(--lc-card-bg); color: var(--lc-card-fg); border: 4px solid var(--lc-card-borde);
  border-radius: 36px; padding: 54px 32px 34px; gap: 12px; box-shadow: 0 32px 80px var(--lc-card-sombra);
}
.lc4-popular {
  position: absolute; top: 0; left: 50%; transform: translate(-50%, -50%);
  display: inline-flex; align-items: center; gap: 8px; white-space: nowrap;
  background: #E8E27B; color: #111; border-radius: 999px; padding: 11px 22px;
  font-weight: 700; font-size: 1.05rem; letter-spacing: .05em; text-transform: uppercase;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .25);
}
.lc4-chip {
  background: #111; color: #fff; border-radius: 999px; padding: 7px 16px;
  font-weight: 700; font-size: .82rem; letter-spacing: .05em; text-transform: uppercase;
}
.lc4-dest .lc4-chip { background: var(--lc-card-chip-bg); color: var(--lc-card-chip-fg); font-size: .95rem; }
.lc4-plan { margin: 4px 0 0; font-size: 2rem; font-weight: 700; letter-spacing: -.02em; text-transform: uppercase; color: inherit; }
.lc4-dest .lc4-plan { font-size: 2.75rem; }
.lc4-antes { font-size: 1.1rem; font-weight: 500; opacity: .55; }
.lc4-precio { font-size: 4rem; font-weight: 700; line-height: 1 !important; letter-spacing: -.035em; }
.lc4-dest .lc4-precio { font-size: 5.75rem; }
.lc4-unidad { font-weight: 700; font-size: .95rem; letter-spacing: .02em; }
.lc4-pago { font-size: .95rem; opacity: .85; }
.lc4-btn {
  display: block; width: 100%; margin-top: 16px; padding: 13px 16px; border: 2px solid #111; border-radius: 999px;
  color: #111; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; text-decoration: none;
  transition: transform .15s ease, filter .15s ease;
}
.lc4-btn:hover { color: #111; transform: translateY(-1px); background: rgba(0, 0, 0, .04); }
.lc4-dest .lc4-btn {
  background: var(--lc-card-btn-bg); color: var(--lc-card-btn-fg); border: 0; padding: 19px 16px; font-size: 1.2rem;
  box-shadow: 0 8px 20px rgba(0, 0, 0, .25);
}
.lc4-dest .lc4-btn:hover { color: var(--lc-card-btn-fg); filter: brightness(1.05); background: var(--lc-card-btn-bg); }
.lc4-codigo { font-size: .75rem; opacity: .75; }
.lc4-beneficios { text-align: center; font-weight: 700; color: var(--lc-precios-fg); margin: -8px 0 32px; }

@media (max-width: 991.98px) {
  .lc4-planes { gap: 14px; }
  .lc4-precio { font-size: 3.2rem; }
  .lc4-dest .lc4-precio { font-size: 4.4rem; }
  .lc4-dest .lc4-plan { font-size: 2.2rem; }
}
@media (max-width: 767.98px) {
  .lc4-logo { width: 150px; }
  .lc4-kicker { gap: 10px; font-size: .78rem; letter-spacing: .2em; }
  .lc4-line { flex-basis: 24px; }
  .lc4-fechas { font-size: .75rem; }
  .lc4-planes { flex-direction: column; align-items: stretch; gap: 40px; padding-top: 30px; }
  .lc4-col, .lc4-col-dest { flex: none; width: 100%; }
  .lc4-col-dest { order: -1; }
  .lc4-precio { font-size: 3.6rem; }
  .lc4-dest .lc4-precio { font-size: 4.6rem; }
}

/* ---------- CTA final (descarga la app) ---------- */
.lc-final { background: var(--lc-final-bg) !important; color: var(--lc-final-fg) !important; }
.lc-final h2 { color: var(--lc-final-fg); }

/* ---------- Botón flotante (celular) ---------- */
.lc-flotante {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1035;
  padding: 28px 16px calc(10px + env(safe-area-inset-bottom));
  background: linear-gradient(to bottom, rgba(0,0,0,0), rgba(0,0,0,.78) 45%);
  text-align: center;
  transition: transform .25s ease, opacity .25s ease;
}
.lc-flotante.lc-oculto { transform: translateY(110%); opacity: 0; pointer-events: none; }
.lc-flotante-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: var(--lc-flot-bg);
  color: var(--lc-flot-fg);
  border-radius: 100px;
  padding: 12px 10px 12px 20px;
  font-weight: 800;
  font-size: 1.05rem;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(0,0,0,.25);
}
.lc-flotante-btn:hover { color: var(--lc-flot-fg); }
.lc-flotante-pill {
  background: var(--lc-flot-pill-bg);
  color: var(--lc-flot-pill-fg);
  border-radius: 100px;
  padding: 3px 10px;
  font-size: .78rem;
  font-weight: 800;
  white-space: nowrap;
}
.lc-flotante-legal {
  color: #fff;
  font-size: .72rem;
  line-height: 1.3;
  margin: 8px 0 0;
  opacity: .9;
}

/* Celular: CTA en una sola línea, como el diseño */
@media (max-width: 767.98px) {
  #hero .lc-cta { white-space: nowrap; padding-left: 1rem !important; padding-right: 1rem !important; }
}
.lc-flotante-btn > span:first-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
@media (max-width: 400px) {
  .lc-flotante-btn { font-size: 1rem; padding-left: 16px; }
}
