/* [2026-12-01 v3] Campañas «huevos libres de jaula» Argentina — piel común de los 4 themes.
   Titulares: Barlow Condensed (Google Fonts, cargada desde design.font_google_url del JSON).
   Ojo: el núcleo repite el id del bloque en la <section> y en el bloque interior (p. ej. dos
   #compartir); por eso las reglas por id van siempre con section#id. */
:root {
  --font-family-headline: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  --lf-headline:          'Barlow Condensed', 'Arial Narrow', sans-serif;
  --lf-weight-headline:   800;
  --cp-yellow:            var(--landing-secondary, #FFB601);
  --cp-ink:               #1a1a1a;
  --cp-night:             #253140;
  --cp-paper:             #f4f3ee;
}

/* ── Titulares ─────────────────────────────────────────────────────────── */
.cp-jaulas h1, .cp-jaulas h2, .cp-jaulas h3,
.cp-jaulas .stage-hero-title, .cp-jaulas .share-title,
.cp-jaulas .landing-section-title, .cp-jaulas .aside-block {
  font-family: var(--lf-headline);
  font-weight: 800;
  letter-spacing: -0.01em;
}
.cp-jaulas .landing-content-block h2,
.cp-jaulas .landing-section-title,
.cp-jaulas .share-title {
  font-size: clamp(2.2rem, 3.6vw, 3.2rem);
  line-height: .95;
  text-transform: uppercase;
  margin-top: .4em;
  margin-bottom: .5em;
}

/* ── Superficies del navegador: selección y foco con la paleta ───────── */
.cp-jaulas ::selection { background: var(--cp-yellow); color: var(--cp-ink); }
.cp-jaulas a:focus-visible,
.cp-jaulas button:focus-visible,
.cp-jaulas input:focus-visible,
.cp-jaulas select:focus-visible,
.cp-jaulas textarea:focus-visible {
  outline: 3px solid var(--cp-yellow);
  outline-offset: 3px;
  box-shadow: none;
}
.cp-jaulas .wysiwyg a:not(.btn) { text-underline-offset: .18em; text-decoration-thickness: 2px; }

/* ── Portada: texto abajo, sin botón, sin fondo de color en el stage ──── */
.cp-jaulas .stage-outer { background: transparent; }
.cp-jaulas .stage-hero-title {
  font-size: clamp(2.4rem, 4.8vw, 4.4rem);
  line-height: .92;
  text-transform: uppercase;
  text-wrap: balance;
  margin-bottom: .35em;
}
.cp-jaulas .stage-hero-overline {
  font-family: var(--lf-headline);
  font-size: clamp(1.15rem, 1.6vw, 1.45rem);
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
  color: var(--cp-yellow);
  margin-bottom: .4em;
}
.cp-jaulas .stage-hero-overline::before,
.cp-jaulas .stage-hero-overline::after { display: none; }
.cp-jaulas .stage-hero-subtitle {
  font-size: clamp(1.05rem, 1.25vw, 1.2rem);
  line-height: 1.45;
  max-width: 34em;
}
.cp-jaulas .opp-zone-bottom { padding-bottom: clamp(5.5rem, 9vw, 8rem); } /* por encima del corte diagonal */

/* ── Portada con profundidad: polvo y foto que siguen al ratón (campaign.js) ── */
.cp-jaulas #landing-stage .stage-bg-image { transform: scale(1.06); will-change: transform; }
.cp-dust {
  position: absolute;
  inset: -6%;
  z-index: 2;                 /* sobre la foto y el velo (1), bajo el contenido (10) */
  pointer-events: none;
  will-change: transform;
}
.cp-dust canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.cp-drift { position: absolute; inset: 0; animation: cp-drift 60s ease-in-out infinite alternate; }
.cp-dust-near .cp-drift { animation-duration: 44s; animation-direction: alternate-reverse; }
@keyframes cp-drift {
  from { transform: translate3d(-.8%, .6%, 0); }
  to   { transform: translate3d(.9%, -1.6%, 0); }
}
/* [2026-12-01 v7] Aire pesado: bruma parda, bordes oscuros que respiran y un haz de luz tenue. */
.cp-haze {
  position: absolute;
  inset: -4%;
  z-index: 2;
  pointer-events: none;
  background:
    radial-gradient(120% 70% at 50% 85%, rgba(92, 70, 46, .42), rgba(92, 70, 46, 0) 70%),
    radial-gradient(80% 55% at 70% 40%, rgba(120, 96, 66, .20), rgba(120, 96, 66, 0) 70%),
    radial-gradient(140% 120% at 50% 45%, rgba(0, 0, 0, 0) 45%, rgba(8, 6, 4, .62) 100%);
  mix-blend-mode: multiply;
  animation: cp-breathe 14s ease-in-out infinite alternate;
}
.cp-haze::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(90% 60% at 45% 70%, rgba(176, 146, 104, .16), rgba(176, 146, 104, 0) 72%);
  mix-blend-mode: screen;
}
.cp-beam {
  position: absolute;
  inset: -10%;
  z-index: 2;
  pointer-events: none;
  mix-blend-mode: screen;
  background: linear-gradient(112deg, rgba(0, 0, 0, 0) 30%, rgba(214, 182, 128, .10) 42%, rgba(232, 204, 150, .16) 48%, rgba(214, 182, 128, .08) 56%, rgba(0, 0, 0, 0) 68%);
  animation: cp-breathe 18s ease-in-out infinite alternate-reverse;
  will-change: transform;
}
@keyframes cp-breathe { from { opacity: .82; } to { opacity: 1; } }

/* ── «La campaña» (sidebar, como Scjn) ────────────────────────────────── */
.cp-jaulas section#info { margin-top: 0; padding-block: clamp(1.5rem, 3vw, 2.5rem) clamp(3.5rem, 7vw, 6rem); }
@media (max-width: 991px) { .cp-jaulas section#info { padding-top: clamp(3rem, 8vw, 4rem); } }
.cp-jaulas section#info .copy-col p { font-size: 1.0625rem; line-height: 1.6; }
.cp-jaulas section#info .aside-block {
  font-size: clamp(2.4rem, 3.8vw, 3.4rem);
  line-height: 1.02;
  text-transform: uppercase;
}
.cp-jaulas section#info .aside-block em { font-style: italic; font-weight: 700; }

/* ── Créditos de foto: vertical, pequeño, sobre la imagen ─────────────── */
.cp-parallax, .cp-photo { position: relative; margin: 0; }
.cp-credit, .cp-hero-credit {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  z-index: 3;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-family: var(--lf-body, system-ui, sans-serif);
  font-size: 10px;
  line-height: 1;
  letter-spacing: .04em;
  color: rgba(255, 255, 255, .82);
  text-shadow: 0 0 4px rgba(0, 0, 0, .75);
  pointer-events: none;
  white-space: nowrap;
}
#landing-stage .cp-hero-credit { right: 1.25rem; bottom: calc(var(--stage-divider-h, 80px) + 1rem); }

/* ── Foto a todo el ancho con parallax ────────────────────────────────── */
.cp-jaulas section#foto-1 { margin-block: 0; padding: 0; }
.cp-jaulas section#foto-1 .container-fluid,
.cp-jaulas section#foto-1 .landing-content-col,
.cp-jaulas section#foto-1 .landing-content-inner { padding: 0; max-width: none; }
.cp-jaulas section#foto-1 .row { margin: 0; }
.cp-parallax {
  width: 100%;
  height: clamp(340px, 68vh, 720px);
  overflow: hidden;
  background: var(--cp-night);
}
.cp-parallax img {
  position: absolute;
  left: 0;
  top: -15%;
  width: 100%;
  height: 130%;
  max-width: none;
  object-fit: cover;
  will-change: transform;
}

/* ── Gallinas ponedoras en Argentina: cifras + fuente, una sola banda ─── */
/* La banda oscura va en las dos <section> (a todo el ancho) y no en la caja interior, que tiene
   márgenes propios: así cifras y fuentes miden lo mismo en cualquier ancho. */
.cp-jaulas section#cifras { margin-bottom: 0; background: var(--cp-night); }
.cp-jaulas section#cifras .landing-stats-block {
  background: transparent;
  margin: 0;
  padding-top: clamp(3.5rem, 6vw, 5rem);
  padding-bottom: 1.75rem;
}
.cp-jaulas section#cifras .stats-number { font-family: var(--lf-headline); font-weight: 800; font-size: clamp(3.2rem, 6vw, 5rem); }
.cp-jaulas section#cifras .stats-label {
  font-size: 1rem;
  line-height: 1.4;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  color: rgba(255, 255, 255, .82);
  max-width: 17em;
  margin-inline: auto;
}
.cp-jaulas section#cifras-fuente { margin-top: 0; padding: 0; background: var(--cp-night); }
.cp-jaulas section#cifras-fuente > .landing-block-inner { padding: 0 1.5rem clamp(2.75rem, 5vw, 3.75rem); }

/* Animación de las cifras (campaign.js añade .cp-stats-ready y, al entrar en pantalla, .cp-in).
   Sin JS no se oculta nada. */
.cp-stats-ready .stats-item {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s cubic-bezier(.16, 1, .3, 1), transform .9s cubic-bezier(.16, 1, .3, 1);
}
.cp-stats-ready .stats-item:nth-child(2) { transition-delay: .12s; }
.cp-stats-ready .stats-item:nth-child(3) { transition-delay: .24s; }
.cp-stats-ready.cp-in .stats-item { opacity: 1; transform: none; }
.cp-stats-ready .stats-number { font-variant-numeric: tabular-nums; }
.cp-stats-ready .stats-label { transition: opacity .6s ease .5s; opacity: 0; }
.cp-stats-ready.cp-in .stats-label { opacity: 1; }
.cp-stats-ready .stats-number::after {
  content: '';
  display: block;
  width: 0;
  height: 4px;
  margin: .2em auto 0;
  background: var(--cp-yellow);
  transition: width 1.4s cubic-bezier(.16, 1, .3, 1) .35s;
}
.cp-stats-ready.cp-in .stats-number::after { width: 2.2em; }
.cp-jaulas .cp-source {
  margin: 0 auto;
  max-width: 60rem;
  text-align: center;
  font-size: .8125rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, .6);
}

/* ── Fotos 2 y 3 ──────────────────────────────────────────────────────── */
.cp-jaulas .cp-photo img { display: block; aspect-ratio: 3 / 2; object-fit: cover; }

/* ── «Actuá»: mismo botón que «Firma aquí» de la barra (btn-action) ────── */
.cp-jaulas section#actua { margin-bottom: 0; padding-bottom: clamp(3.5rem, 7vw, 5.5rem); }
.cp-jaulas .cp-sign-wrap { margin: 2.5rem 0 0; text-align: left; line-height: 1; }
/* Los estilos de enlace del texto (.wysiwyg a) recortaban el botón: se devuelven los del núcleo. */
.cp-jaulas .wysiwyg a.cp-btn-sign,
.cp-jaulas .wysiwyg a.cp-btn-sign:hover,
.cp-jaulas .wysiwyg a.cp-btn-sign:focus-visible {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: auto;
  min-height: 56px;
  padding: 16px 40px 16px 32px;
  line-height: 20px;
  color: #fff;
  border: 0;
  border-bottom: 2px solid transparent;
  text-decoration: none;
}
.cp-jaulas .wysiwyg a.cp-btn-sign { transition: filter .15s ease, transform .15s ease; }
.cp-jaulas .wysiwyg a.cp-btn-sign:hover { filter: brightness(1.08); transform: translateY(-1px); }
.cp-jaulas .wysiwyg a.cp-btn-sign:active { transform: none; }

/* ── Compartir: una banda de papel, con aire y sin adornos ────────────── */
.cp-jaulas section#compartir {
  background: var(--cp-paper);
  margin: 0;
  padding: clamp(4rem, 8vw, 6.5rem) 0;
}
.cp-jaulas section#compartir .landing-share-block { background: transparent; border: 0; padding: 0; margin: 0; }
.cp-jaulas section#compartir .share-title { margin-bottom: 1.5rem; }
.cp-jaulas section#compartir .share-buttons { gap: .6rem !important; }
.cp-jaulas section#compartir .btn-share {
  border-radius: 3px;
  padding: .75rem 1.35rem;
  box-shadow: none;
  transition: transform .15s ease, filter .15s ease;
}
.cp-jaulas section#compartir .btn-share:hover,
.cp-jaulas section#compartir .btn-share:focus-visible { transform: translateY(-2px); filter: brightness(1.06); }
.cp-jaulas section#compartir .btn-share:active { transform: translateY(0); }

/* ── Barra fija «Firmá y exigí que cumplan» ───────────────────────────── */
.lb-bar_cta .sticky-bar h5 {
  font-family: var(--lf-headline);
  font-weight: 800;
  font-size: clamp(1.6rem, 2.4vw, 2.1rem);
  line-height: 1;
  text-transform: uppercase;
  margin-bottom: .15em;
}
.lb-bar_cta .sticky-bar h6 {
  font-size: clamp(.95rem, 1.1vw, 1.1rem);
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0;
}

@media (max-width: 767px) {
  .cp-jaulas .opp-zone-bottom { padding-bottom: 2rem; }
  .cp-jaulas .stage-hero-content { text-align: center; }
  .cp-jaulas .stage-hero-subtitle { margin-inline: auto; }
  .cp-jaulas .cp-sign-wrap { text-align: center; }
  .lb-bar_cta .sticky-bar h5 { font-size: 1.35rem; }
}

@media (prefers-reduced-motion: reduce) {
  .cp-drift, .cp-haze, .cp-beam { animation: none; }
  .cp-jaulas #landing-stage .stage-bg-image { transform: none; }
  .cp-stats-ready .stats-item, .cp-stats-ready .stats-label { opacity: 1; transform: none; transition: none; }
  .cp-stats-ready .stats-number::after { width: 2.2em; transition: none; }
  .cp-parallax img { top: 0; height: 100%; transform: none !important; }
  .cp-jaulas section#compartir .btn-share { transition: none; }
}

/* [2026-12-02] Portátiles (ventana ≤870px de alto): el núcleo ya no oculta el texto del hero;
   aquí se ajusta el tamaño propio de la campaña para que quepa sin tapar la foto. */
@media (min-width: 768px) and (max-height: 870px) {
  .cp-jaulas .stage-hero-title    { font-size: clamp(2rem, 6.4vh, 3.4rem); }
  .cp-jaulas .stage-hero-overline { font-size: clamp(1rem, 2.1vh, 1.25rem); }
  .cp-jaulas .stage-hero-subtitle { font-size: clamp(.95rem, 2vh, 1.1rem); max-width: 32em; }
}
