/* ==========================================================================
   Clickio inner pages — shared components (cluster pages)
   Loaded after site.css (tokens + buttons + box-sizing fix) on every inner
   page. Holds the pieces that REPEAT across the 5 monetization-cluster pages
   (and beyond): the dark-art hero template, gradient section headings, the
   tinted section panels, the point/check lists, the comparison tables
   (Smart Ad Refresh + price-floor), the "Ready to work with us?" CTA, and the
   glue for the 2nd-level cluster submenu. Page-specific layout lives in the
   per-page css (e.g. monetization.css). Do NOT put homepage styles here.
   ========================================================================== */

/* ------------------------------------------------------------ typography */
.grad-head {
  font-size: clamp(30px, 4.4vw, 48px);
  line-height: 1.12;
  font-weight: 800;
  letter-spacing: -0.01em;
  margin: 0 0 22px;
  /* Tilda renders these titles with a per-title purple→red gradient fill.
     Exact live gradient (getComputedStyle on /monetization/ headings):
     right/top edge red → left/bottom edge purple. Lighter than a navy→red
     approximation — matches live pixel-for-pixel. */
  background: linear-gradient(255.96deg, rgb(255, 56, 66) 1%, rgb(207, 58, 65) 30%, rgb(57, 12, 159) 99%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: rgb(57, 12, 159); /* fallback if clip unsupported */
}
.grad-head .red { -webkit-text-fill-color: var(--red); color: var(--red); }

.lead {
  font-size: 20px;
  line-height: 1.55;
  font-weight: 400;
  color: var(--body);
  margin: 0 0 22px;
  max-width: 760px;
}
.body-copy {
  font-size: 16px;
  line-height: 1.56;
  font-weight: 400;
  color: var(--body);
  margin: 0 0 18px;
}
.body-copy:last-child { margin-bottom: 0; }
.small-label { font-size: 16px; line-height: 1.55; color: var(--body); text-align: center; }

/* ------------------------------------------------- generic 2-col layout */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.two-col .col-copy, .two-col .col-visual { min-width: 0; }
.two-col .col-visual img { width: 100%; height: auto; }

/* ----------------------------------------------------- tinted panel card */
/* A rounded decorative panel behind content. Fill is the OPPOSITE of the
   section background so it reads on both white and tinted sections. */
.ipanel {
  background: var(--tint);
  border-radius: 40px;
  padding: 44px 48px;
}
.section--tint .ipanel { background: #fff; }

/* ------------------------------------------- point list (bold lead + dot) */
.point-list { list-style: none; margin: 26px 0 0; padding: 0; }
.point-list > li { position: relative; padding-left: 26px; margin-bottom: 22px; }
.point-list > li::before {
  content: ""; position: absolute; left: 0; top: 9px;
  width: 9px; height: 9px; border-radius: 50%; background: var(--coral);
}
.point-list h3 { font-size: 20px; font-weight: 700; color: var(--navy); margin: 0 0 4px; }
.point-list p { font-size: 16px; line-height: 1.5; color: var(--body); margin: 0; }
/* plain variant: single-line bullets, no bold lead-in */
.point-list--plain > li { padding-left: 22px; margin-bottom: 12px; }
.point-list--plain > li::before { top: 8px; }
.point-list--plain li { font-size: 16px; line-height: 1.5; color: var(--body); }

/* point cards (analytics 3-up) */
.point-card { padding: 26px 30px; }
.point-card h3 { font-size: 24px; font-weight: 700; color: var(--navy); margin: 0 0 10px; }
.point-card p { font-size: 16px; line-height: 1.5; color: var(--body); margin: 0; }

/* --------------------------------------------------- check list (ticks) */
.check-list { list-style: none; margin: 0; padding: 0; }
.check-list > li {
  position: relative; padding-left: 46px; margin-bottom: 26px;
  font-size: 16px; line-height: 1.5; color: var(--body);
}
.check-list > li:last-child { margin-bottom: 0; }
.check-list .check-icon {
  position: absolute; left: 0; top: 0;
  width: 30px; height: 30px;
}

/* ==========================================================================
   Comparison tables (repeat on ad_optimization)
   ========================================================================== */
.cmp { width: 100%; }
.cmp table, .cmp.cmp--table { width: 100%; border-collapse: collapse; }

/* -- price-floor style: bordered white card, X / check icons -- */
.cmp--factors {
  background: #fff;
  border: 1px solid #E4E8F0;
  border-radius: 28px;
  overflow: hidden;
  padding: 8px 32px 16px;
}
.cmp--factors table { border-collapse: collapse; }
.cmp--factors th, .cmp--factors td {
  padding: 15px 8px; text-align: left; vertical-align: middle;
}
.cmp--factors thead th {
  font-size: 20px; font-weight: 700; color: var(--navy);
  padding-top: 20px; padding-bottom: 18px;
}
/* keep long ES/PT header ("Gestionado por IA") and the uplift figures on one
   line at desktop widths; mobile blocks re-allow header wrapping */
.cmp--factors thead th, .cmp--factors tr.cmp-uplift td { white-space: nowrap; }
.cmp--factors tbody td:first-child, .cmp--factors thead th:first-child { width: 44%; }
.cmp--factors tbody td:first-child {
  font-size: 16px; color: var(--body);
}
.cmp--factors tbody tr { border-top: 1px solid #EEF1F6; }
.cmp--factors .cell-icon { text-align: left; }
.cmp--factors .cell-icon img { width: 26px; height: 26px; }
.cmp--factors tr.cmp-uplift { border-top: 1px solid #EEF1F6; }
.cmp--factors tr.cmp-uplift td { font-weight: 700; color: var(--navy); padding-top: 18px; padding-bottom: 18px; }
.cmp--factors tr.cmp-uplift td:first-child { font-weight: 700; }

/* -- smart-ad-refresh style: winning column is ONE continuous rounded green
      panel (matches live: solid #00AD98, ~40px radius, subtle inner row
      separators). border-collapse:separate keeps the green cells fused into a
      single panel with rounded top/bottom corners instead of clipped per-cell
      corners with white gaps. -- */
.cmp--refresh {
  position: relative;
  background: #fff;
  border-radius: 24px;
  padding: 8px 0 0 34px;
  box-shadow: 0 20px 46px rgba(13,18,64,.05);
}
.cmp--refresh table { table-layout: fixed; border-collapse: separate; border-spacing: 0; }
.cmp--refresh th, .cmp--refresh td {
  padding: 20px 20px; text-align: left; vertical-align: middle;
  font-size: 16px; color: var(--body);
}
.cmp--refresh thead th {
  font-size: 20px; font-weight: 700; color: var(--navy);
  padding-top: 30px; padding-bottom: 26px;
}
.cmp--refresh tbody td:first-child, .cmp--refresh thead th:first-child { font-weight: 400; }
.cmp--refresh thead th:first-child { font-weight: 700; }
.cmp--refresh tbody td:first-child { color: var(--navy); font-weight: 700; }
/* row separators live only in the two left (non-green) columns */
.cmp--refresh tbody td:not(.cmp-hl) { border-top: 1px solid #EFF1F7; }
/* the winning column — one continuous solid-green panel */
.cmp--refresh .cmp-hl {
  position: relative;
  color: #fff;
  background: var(--green);
}
.cmp--refresh thead th.cmp-hl { color: #fff; }
/* The green column is a RAISED CARD that overhangs the white table card top
   and bottom (matches live: green panel sticks ~27px above the header row and
   ~28px below the last row, like a card overlapping the table's edges). The
   overhang is drawn with pseudo-elements that extend the green straight up from
   the header cell and straight down from the last row cell; the rounded corners
   move onto those extensions. Vertical-only, full column width — no horizontal
   overhang, no shadow (as on live), so mobile picks it up with no h-scroll. */
.cmp--refresh thead th.cmp-hl::before {
  content: ""; position: absolute; left: 0; right: 0; bottom: 100%;
  height: 35px; background: var(--green);
  border-top-left-radius: 32px; border-top-right-radius: 32px;
}
.cmp--refresh tbody tr:last-child td.cmp-hl::after {
  content: ""; position: absolute; left: 0; right: 0; top: 100%;
  height: 28px; background: var(--green);
  border-bottom-left-radius: 32px; border-bottom-right-radius: 32px;
}
/* subtle lighter separators drawn INSIDE the green panel */
.cmp--refresh tbody td.cmp-hl { box-shadow: inset 0 1px 0 rgba(255,255,255,.18); }

/* ==========================================================================
   Ready to work with us? — shared inner CTA
   ========================================================================== */
.inner-cta { text-align: center; padding: 52px 24px 60px; }
.inner-cta-illus { width: 210px; height: auto; margin: 0 auto 18px; }
.inner-cta-head {
  font-size: clamp(32px, 6vw, 62px);
  line-height: 1.05; font-weight: 800; color: var(--navy);
  margin: 0 0 30px; letter-spacing: -0.01em;
}

/* ==========================================================================
   Dark-art hero template (shared by all 5 cluster pages)
   Full-bleed dark gradient art; centered red-accent title; a framed looping
   dashboard video on the left, copy + bullets + pill buttons on the right.
   ========================================================================== */
.ihero {
  position: relative;
  background-color: #2b2668;
  /* One canonical URL for the shared dark art (the per-page copies were
     byte-identical) so the browser fetches it once site-wide; --hero-grad
     paints a matching gradient underneath while the raster loads. */
  background-image: url("/img/hero-bg.png"), var(--hero-grad);
  background-size: cover;
  background-position: center;
  color: #fff;
  overflow: hidden;
  padding: 72px 0 96px;
}
/* dark veil so white copy stays readable over the red glow (right side) */
.ihero::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(16,14,52,.35) 0%, rgba(16,14,52,.12) 40%, rgba(16,14,52,.42) 100%);
  pointer-events: none;
}
.ihero-title {
  text-align: center;
  font-size: clamp(38px, 6vw, 72px);
  line-height: 1.06;
  font-weight: 800;
  letter-spacing: -0.01em;
  margin: 24px 0 64px;
}
.ihero-title em { font-style: normal; color: var(--coral); display: block; }
.ihero-grid {
  display: grid;
  grid-template-columns: 600px 1fr;
  gap: 56px;
  align-items: center;
  min-height: 430px;
}
.ihero-frame {
  display: block;
  background: #fff;
  border-radius: 16px;
  padding: 10px;
  box-shadow: 0 30px 70px rgba(6,8,30,.45);
  line-height: 0;
}
.ihero-frame video, .ihero-frame img {
  width: 100%; height: auto; display: block;
  border-radius: 8px; background: #0b1020;
}
.ihero-sub { font-size: 20px; line-height: 1.55; color: #fff; margin: 0 0 26px; max-width: 480px; }
.ihero-bullets { list-style: none; margin: 0 0 34px; padding: 0; }
.ihero-bullets li {
  position: relative; padding-left: 22px; margin-bottom: 12px;
  font-size: 18px; line-height: 1.5; color: #fff;
}
.ihero-bullets li::before {
  content: "•"; position: absolute; left: 2px; top: -1px; color: #fff; font-size: 20px;
}
.ihero-cta { display: flex; gap: 18px; flex-wrap: wrap; }
.ihero-cta .pill-btn { border-radius: 30px; height: 55px; padding: 0 34px; font-size: 14px; }

/* ==========================================================================
   2nd-level cluster submenu (menu-2nd partial)
   The partial embeds the exact Tilda T396 zero-block from monetization-en
   (fixed navy strip under the header, shown only >=1200px). Base T396 CSS/JS
   come from the header partial; the fixed positioning + reveal came from the
   live "Global Custom HTML" block we exclude, so re-add them here.
   ========================================================================== */
#menu-2nd > .t-records { opacity: 1; }              /* replaces the excluded reveal transition */
@media screen and (min-width: 1200px) {
  /* pin the strip directly under the 82px fixed header (matches live) */
  #menu-2nd > .t-records > .t-rec.t-screenmin-1200px {
    position: fixed; top: 82px; left: 0; right: 0; z-index: 9990;
  }
}
