/* Tablón de anuncios — público (#447) */

:root {
  --bg: #f6f9f8;
  --surface: #ffffff;
  --surface-sunken: #eef3f2;
  --border: #dbe6e4;
  --border-strong: #c3d3d0;
  --text: #142523;
  --text-muted: #55716c;
  --text-faint: #85a19c;
  --accent: #00acad;
  --accent-dark: #0f766e;
  --accent-darker: #0b5a54;
  --accent-soft: #dcf5f2;
  --accent-soft-strong: #bdece6;
  --gold: #93650f;
  --gold-soft: #fbecc9;
  --gold-line: #e7c877;
  --cat-employment: #1d4ed8;
  --cat-employment-soft: #dfe9fd;
  --cat-transfer: #b45309;
  --cat-transfer-soft: #fbe8d2;
  --cat-services: #6d28d9;
  --cat-services-soft: #ece3fb;
  --danger: #b3261e;
  --shadow: 0 1px 2px rgba(20, 37, 35, 0.06), 0 6px 20px -8px rgba(20, 37, 35, 0.12);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b1615;
    --surface: #101f1d;
    --surface-sunken: #0d1a18;
    --border: #21332f;
    --border-strong: #2c423c;
    --text: #eaf4f2;
    --text-muted: #9ab5af;
    --text-faint: #6c8a84;
    --accent: #2dd4bf;
    --accent-dark: #5eead4;
    --accent-darker: #99f6e4;
    --accent-soft: #123230;
    --accent-soft-strong: #164340;
    --gold: #f1c56b;
    --gold-soft: #2c2412;
    --gold-line: #6b551f;
    --cat-employment: #7fa8ff;
    --cat-employment-soft: #172440;
    --cat-transfer: #f2a75c;
    --cat-transfer-soft: #33230f;
    --cat-services: #b79bf2;
    --cat-services-soft: #251a3d;
    --danger: #ff6b60;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 10px 28px -10px rgba(0, 0, 0, 0.5);
  }
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body.listing-public {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
.listing-public h1, .listing-public h2, .listing-public h3 { text-wrap: balance; margin: 0; }
.listing-public img { max-width: 100%; }
.listing-public button, .listing-public input, .listing-public select, .listing-public textarea { font-family: inherit; font-size: inherit; color: inherit; }
.listing-public a { color: inherit; text-decoration: none; }

/* ---------- Top nav ---------- */
.lp-nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 24px; border-bottom: 1px solid var(--border);
  background: var(--surface);
  position: sticky; top: 0; z-index: 20;
}
.lp-brand { display: flex; align-items: center; gap: 9px; font-weight: 800; font-size: 16px; letter-spacing: -0.01em; }
.lp-brand .mark {
  width: 26px; height: 26px; border-radius: 7px;
  background: linear-gradient(155deg, var(--accent), var(--accent-darker));
  display: flex; align-items: center; justify-content: center; color: #fff; font-size: 13px; font-weight: 800;
}
.lp-nav-actions { display: flex; align-items: center; gap: 10px; }

.lp-btn {
  display: inline-flex; align-items: center; gap: 6px;
  border-radius: 8px; padding: 9px 16px; font-weight: 600; font-size: 13.5px;
  border: 1px solid transparent; cursor: pointer; white-space: nowrap;
  transition: filter 0.12s ease, background 0.12s ease;
}
.lp-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.lp-btn-primary { background: var(--accent); color: #fff; }
.lp-btn-primary:hover { filter: brightness(0.94); }
.lp-btn-ghost { background: transparent; color: var(--text-muted); border-color: var(--border-strong); }
.lp-btn-ghost:hover { background: var(--surface-sunken); }
.lp-btn-sm { padding: 6px 12px; font-size: 12.5px; }

/* ---------- Hero + filters ---------- */
.lp-hero {
  padding: 34px 24px 22px;
  background: linear-gradient(180deg, var(--accent-soft) 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--border);
}
.lp-hero-inner { max-width: 1120px; margin: 0 auto; }
.lp-hero h1 { font-size: 24px; font-weight: 800; letter-spacing: -0.015em; max-width: 640px; }
.lp-hero p { font-size: 13.5px; color: var(--text-muted); margin-top: 8px; max-width: 560px; }

.lp-filter-bar {
  max-width: 1120px; margin: 18px auto 0;
  display: flex; flex-wrap: wrap; gap: 10px; align-items: center;
  padding: 16px 24px; border: 1px solid var(--border); border-radius: 12px;
  background: var(--surface); box-shadow: var(--shadow);
}
.lp-chip-group { display: flex; gap: 6px; flex-wrap: wrap; }
.lp-chip {
  font-size: 12.5px; font-weight: 600; padding: 7px 13px; border-radius: 999px;
  border: 1px solid var(--border-strong); color: var(--text-muted); background: var(--surface);
  cursor: pointer;
}
.lp-chip.active { background: var(--accent); border-color: var(--accent); color: #fff; }
.lp-filter-bar select, .lp-filter-bar input[type="search"] {
  border: 1px solid var(--border-strong); border-radius: 8px; padding: 8px 11px; font-size: 12.5px; background: var(--surface);
}
.lp-search { flex: 1; min-width: 180px; }
.lp-search input { width: 100%; }

/* ---------- Board body ---------- */
.lp-body { max-width: 1120px; margin: 0 auto; padding: 24px 24px 48px; }
.lp-section-label {
  font-size: 12px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--text-faint); margin-bottom: 12px; display: flex; align-items: center; gap: 8px;
}
.lp-featured-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 30px; }
.lp-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.lp-empty { text-align: center; padding: 60px 20px; color: var(--text-muted); }

/* ---------- Cards ---------- */
.lp-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 16px;
  display: flex; flex-direction: column; gap: 10px; position: relative;
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}
.lp-card:hover { box-shadow: var(--shadow); transform: translateY(-1px); }
.lp-card.featured { border-color: var(--gold-line); background: linear-gradient(180deg, var(--gold-soft) 0%, var(--surface) 90px); }
.lp-cat-pill { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 999px; width: fit-content; }
.lp-cat-pill.employment { color: var(--cat-employment); background: var(--cat-employment-soft); }
.lp-cat-pill.business_transfer { color: var(--cat-transfer); background: var(--cat-transfer-soft); }
.lp-cat-pill.services { color: var(--cat-services); background: var(--cat-services-soft); }
.lp-featured-ribbon { position: absolute; top: 14px; right: 14px; display: flex; align-items: center; gap: 4px; font-size: 10.5px; font-weight: 700; color: var(--gold); }
.lp-card-title { font-size: 15px; font-weight: 700; letter-spacing: -0.005em; }
.lp-card-meta { display: flex; flex-wrap: wrap; gap: 10px; font-size: 12px; color: var(--text-muted); }
.lp-card-meta .item { display: flex; align-items: center; gap: 4px; }
.lp-card-desc { font-size: 13px; color: var(--text-muted); line-height: 1.5; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.lp-card-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 4px; gap: 10px; }
.lp-price { font-size: 13.5px; font-weight: 700; color: var(--text); font-variant-numeric: tabular-nums; }
.lp-price span { font-weight: 500; color: var(--text-faint); font-size: 11.5px; }
.lp-company-line { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--text-muted); }
.lp-report-link { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; color: var(--text-faint); background: none; border: none; cursor: pointer; padding: 2px; }
.lp-report-link:hover { color: var(--danger); }

/* ---------- Pagination (KnpPaginator's bootstrap-v4 template) ---------- */
.lp-body nav { display: flex; justify-content: center; margin-top: 36px; }
.lp-body .pagination { display: flex; gap: 6px; list-style: none; padding: 0; margin: 0; flex-wrap: wrap; }
.lp-body .page-item .page-link {
  min-width: 34px; height: 34px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 8px; font-size: 13px; font-weight: 600; border: 1px solid var(--border-strong);
  color: var(--text-muted); background: var(--surface); text-decoration: none; padding: 0 10px;
}
.lp-body .page-item .page-link:hover { background: var(--surface-sunken); }
.lp-body .page-item.active .page-link { background: var(--accent); border-color: var(--accent); color: #fff; }
.lp-body .page-item.disabled .page-link { opacity: 0.4; pointer-events: none; }

/* ---------- Detail page ---------- */
.lp-detail { max-width: 760px; margin: 0 auto; padding: 32px 24px 60px; }
.lp-back { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--text-muted); margin-bottom: 18px; }
.lp-detail-card { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 28px; }
.lp-detail-card.featured { border-color: var(--gold-line); }
.lp-detail h1 { font-size: 22px; font-weight: 800; margin: 10px 0 6px; }
.lp-detail-images { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; margin: 18px 0; }
.lp-detail-images img { width: 100%; height: 110px; object-fit: cover; border-radius: 10px; border: 1px solid var(--border); }
.lp-detail-desc { white-space: pre-wrap; color: var(--text-muted); line-height: 1.65; margin: 18px 0; }
.lp-detail-actions { display: flex; gap: 10px; margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--border); flex-wrap: wrap; }

/* ---------- Modal (vanilla) ---------- */
.lp-modal-backdrop {
  display: none; position: fixed; inset: 0; background: rgba(10, 20, 19, 0.5); z-index: 100;
  align-items: center; justify-content: center; padding: 16px;
}
.lp-modal-backdrop.open { display: flex; }
.lp-modal {
  background: var(--surface); border-radius: 14px; border: 1px solid var(--border);
  width: 100%; max-width: 420px; padding: 22px; box-shadow: var(--shadow);
}
.lp-modal h3 { font-size: 16px; font-weight: 700; margin-bottom: 14px; }
.lp-modal-reasons { display: flex; flex-direction: column; gap: 9px; margin-bottom: 18px; }
.lp-modal-reasons label { display: flex; align-items: center; gap: 9px; font-size: 13.5px; cursor: pointer; }
.lp-modal textarea {
  width: 100%; border: 1px solid var(--border-strong); border-radius: 8px; padding: 10px 12px;
  font-size: 13.5px; background: var(--surface); resize: vertical; min-height: 100px; margin-bottom: 16px;
}
.lp-modal-actions { display: flex; justify-content: flex-end; gap: 8px; }

/* ---------- Toast (vanilla) ---------- */
.lp-toast {
  position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%) translateY(20px);
  background: var(--text); color: var(--bg); padding: 12px 20px; border-radius: 10px;
  font-size: 13.5px; font-weight: 600; box-shadow: var(--shadow); z-index: 200;
  opacity: 0; transition: opacity 0.2s ease, transform 0.2s ease; pointer-events: none;
}
.lp-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

.lp-footer { padding: 22px 24px; border-top: 1px solid var(--border); font-size: 12px; color: var(--text-faint); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; max-width: 1120px; margin: 0 auto; }

@media (max-width: 900px) {
  .lp-featured-row, .lp-grid { grid-template-columns: 1fr; }
}

/* ---- Contact block on the listing detail (#447) ---- */
.lp-contact-block {
    margin-top: 20px;
    padding: 16px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: #f8fafc;
}

.lp-contact-title {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: #64748b;
    margin-bottom: 12px;
}

.lp-contact-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    padding: 6px 0;
}

.lp-contact-channel {
    font-size: 14px;
    font-weight: 600;
    color: #1e293b;
}

.lp-contact-hint {
    font-size: 12px;
    color: #64748b;
    margin: 4px 0 10px;
}

.lp-contact-revealed {
    margin-top: 10px;
    border-top: 1px dashed #cbd5e1;
    padding-top: 10px;
}

.lp-contact-line {
    display: flex;
    align-items: baseline;
    gap: 8px;
    padding: 4px 0;
    font-size: 14px;
}

.lp-contact-line-label {
    min-width: 96px;
    color: #64748b;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .03em;
}

.lp-contact-line a {
    color: #0f766e;
    font-weight: 600;
    text-decoration: none;
}

.lp-contact-line a:hover {
    text-decoration: underline;
}

.lp-contact-thread-link {
    text-align: center;
    font-size: 13px;
    margin-top: 12px;
}

.lp-modal-note {
    font-size: 12px;
    color: #64748b;
    margin: -6px 0 12px;
}

/* ---- Card cover, gallery and viewer (#447) ---- */
.lp-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding: 0;
}

.lp-card-cover {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    background: #f1f5f9;
    overflow: hidden;
}

.lp-card-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.lp-card-cover.empty {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

.lp-card-cover-placeholder {
    font-size: 34px;
    opacity: .35;
}

.lp-card-cover-count {
    position: absolute;
    right: 8px;
    bottom: 8px;
    background: rgba(15, 23, 42, .78);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 7px;
    border-radius: 999px;
}

.lp-card-body {
    padding: 14px 16px 16px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
}

.lp-card-cta {
    font-size: 12px;
    font-weight: 700;
    color: #0f766e;
}

.lp-age-group {
    width: 100%;
    margin-top: 4px;
}

/* Gallery on the detail page */
.lp-gallery {
    margin: 16px 0;
}

.lp-gallery-main {
    position: relative;
    display: block;
    width: 100%;
    border: 0;
    padding: 0;
    background: #0f172a;
    border-radius: 12px;
    overflow: hidden;
    cursor: zoom-in;
}

.lp-gallery-main img {
    width: 100%;
    max-height: 460px;
    object-fit: contain;
    display: block;
    background: #0f172a;
}

.lp-gallery-zoom {
    position: absolute;
    right: 10px;
    bottom: 10px;
    background: rgba(15, 23, 42, .78);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 999px;
}

.lp-gallery-thumbs {
    display: flex;
    gap: 8px;
    margin-top: 8px;
    overflow-x: auto;
    padding-bottom: 4px;
}

.lp-gallery-thumb {
    flex: 0 0 auto;
    width: 78px;
    height: 60px;
    border: 2px solid transparent;
    border-radius: 8px;
    overflow: hidden;
    padding: 0;
    background: #f1f5f9;
    cursor: pointer;
}

.lp-gallery-thumb.active {
    border-color: #0f766e;
}

.lp-gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Full-size viewer */
.lp-viewer {
    position: fixed;
    inset: 0;
    z-index: 60;
    background: rgba(2, 6, 23, .93);
    display: flex;
    align-items: center;
    justify-content: center;
}

.lp-viewer[hidden] {
    display: none;
}

.lp-viewer-image {
    max-width: 92vw;
    max-height: 88vh;
    object-fit: contain;
    border-radius: 6px;
}

.lp-viewer-close,
.lp-viewer-prev,
.lp-viewer-next {
    position: absolute;
    background: rgba(248, 250, 252, .12);
    color: #fff;
    border: 0;
    cursor: pointer;
    border-radius: 999px;
    line-height: 1;
}

.lp-viewer-close {
    top: 16px;
    right: 16px;
    font-size: 20px;
    width: 40px;
    height: 40px;
}

.lp-viewer-prev,
.lp-viewer-next {
    top: 50%;
    transform: translateY(-50%);
    font-size: 34px;
    width: 46px;
    height: 46px;
}

.lp-viewer-prev { left: 12px; }
.lp-viewer-next { right: 12px; }

.lp-viewer-close:hover,
.lp-viewer-prev:hover,
.lp-viewer-next:hover {
    background: rgba(248, 250, 252, .26);
}

.lp-viewer-counter {
    position: absolute;
    bottom: 18px;
    left: 50%;
    transform: translateX(-50%);
    color: #cbd5e1;
    font-size: 13px;
}

body.lp-no-scroll {
    overflow: hidden;
}

@media (max-width: 640px) {
    .lp-gallery-main img { max-height: 280px; }
    .lp-viewer-prev, .lp-viewer-next { width: 38px; height: 38px; font-size: 26px; }
}

/* The report link sits inside the card body now, and something later in this file was winning
   over its 11px: pinned here so it stays a discreet link and not a second call to action. */
.lp-card-body .lp-report-link {
    align-self: flex-start;
    display: inline-flex;
    font-size: 11px;
    color: var(--text-faint);
    margin-top: 2px;
}

/* The rest of the gallery, below the text (#447): bigger than the old strip, because down here
   there is room and these are the photos people came to look at. */
.lp-gallery-rest {
    margin: 18px 0 4px;
    padding-top: 14px;
    border-top: 1px solid #e2e8f0;
}

.lp-gallery-rest-title {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: #64748b;
    margin-bottom: 8px;
}

.lp-gallery-rest .lp-gallery-thumbs {
    flex-wrap: wrap;
    overflow: visible;
}

.lp-gallery-rest .lp-gallery-thumb {
    width: 132px;
    height: 96px;
    cursor: zoom-in;
}

@media (max-width: 640px) {
    .lp-gallery-rest .lp-gallery-thumb { width: 104px; height: 78px; }
}

/* El logo de la cabecera del tablon (#447).
   Medidas explicitas y no `width:auto`: la cabecera es un flex y ahi un `auto` con el alto fijo
   colapsaba el ancho a 0 — el logo cargaba y no se veia. 126x30 es la proporcion real del
   fichero (1322x315). */
.lp-brand img {
    display: block;
    flex: 0 0 auto;
    height: 30px;
    width: 126px;
    object-fit: contain;
}

@media (max-width: 640px) {
    .lp-brand img { height: 24px; width: 101px; }
}

/* ======================================================================
   Laterales y pie de tinta del tablón (#447)

   Ambiente de marca en los píxeles que sobran a los lados. Todo es CSS y SVG en
   línea: ni librerías, ni imágenes, ni una petición más. Los colores son los del
   logo, muestreados del PNG que ya usa la app.
   ====================================================================== */
:root {
  --lp-brand-teal: #00A0A0;
  --lp-brand-blue: #204090;
  --lp-brand-red: #E04030;
  --lp-brand-amber: #F0A010;
  --lp-rail-ink: #0B1220;
  --lp-rail-ink-2: #101828;

  /* Un solo mando de intensidad para rótulo, icono y cinta. */
  --lp-ink-text: .42;
  --lp-ink-icon: .085;
  --lp-ink-tape: .55;
}

.lp-shell {
  display: grid;
  grid-template-columns: 168px minmax(0, 1fr) 168px;
  align-items: stretch;
}

.lp-shell-main { min-width: 0; }

/* ---------------------------------------------------------------- el lateral */
.lp-rail {
  position: relative;
  overflow: hidden;
  background: var(--lp-rail-ink);
  isolation: isolate;
}

/* Retícula finísima, como la perforación de una bandeja de horno. */
.lp-rail::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(232, 236, 244, .07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(232, 236, 244, .07) 1px, transparent 1px);
  background-size: 22px 22px;
  z-index: 0;
}

/* Resplandor de marca muy bajo, para que el negro no sea plano. */
.lp-rail::after {
  content: "";
  position: absolute;
  inset: -20% -60%;
  background:
    radial-gradient(38% 26% at 30% 16%, color-mix(in srgb, var(--lp-brand-teal) 26%, transparent), transparent 70%),
    radial-gradient(34% 24% at 70% 78%, color-mix(in srgb, var(--lp-brand-blue) 30%, transparent), transparent 72%);
  filter: blur(6px);
  opacity: .5;
  z-index: 0;
  pointer-events: none;
}

.lp-rail-inner { position: relative; z-index: 1; height: 100%; }

/* ---- instrumentos: es una columna, así los grandes desplazan a los pequeños ---- */
.lp-rail-icons {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-evenly;
  padding: 18px 6px 46px;
}

.lp-rail-icons svg {
  position: relative;
  flex: 0 0 auto;
  stroke: #E8ECF4;
  stroke-width: 1.4;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: var(--lp-ink-icon);
  width: var(--w, 46px);
  transform: translateX(var(--x, 0)) rotate(var(--r, 0deg));
  animation: lp-float var(--t, 52s) ease-in-out infinite alternate;
}

.lp-rail-icons svg:nth-child(1) { --w: 52px; --x: -26px; --r: -9deg;  --t: 46s; }
.lp-rail-icons svg:nth-child(2) { --w: 44px; --x: 30px;  --r: 14deg;  --t: 61s; }
.lp-rail-icons svg:nth-child(3) { --w: 48px; --x: -34px; --r: 6deg;   --t: 55s; }
.lp-rail-icons svg:nth-child(4) { --w: 46px; --x: 24px;  --r: -17deg; --t: 68s; }
.lp-rail-icons svg:nth-child(5) { --w: 50px; --x: -20px; --r: 8deg;   --t: 49s; }
.lp-rail-icons svg:nth-child(6) { --w: 44px; --x: 32px;  --r: -6deg;  --t: 64s; }
.lp-rail-icons svg:nth-child(7) { --w: 48px; --x: -28px; --r: 11deg;  --t: 57s; }
.lp-rail-icons svg:nth-child(8) { --w: 46px; --x: 26px;  --r: -10deg; --t: 53s; }
.lp-rail-icons svg:nth-child(9) { --w: 44px; --x: -22px; --r: 13deg;  --t: 60s; }

/* Los dos anclas: crecimiento y cumplimiento. Trazo más fino a propósito — a igual
   opacidad, una figura grande con el mismo grosor de línea pesa más a la vista. */
.lp-rail-icons svg.big {
  --w: 96px;
  --t: 78s;
  stroke-width: 1.05;
  margin: 4px 0;
}

.lp-rail-icons svg.big.growth { --x: 14px;  --r: -6deg; }
.lp-rail-icons svg.big.check  { --x: -16px; --r: 7deg; }
.lp-rail-right .lp-rail-icons svg.big.growth { --x: -18px; --r: 6deg; }
.lp-rail-right .lp-rail-icons svg.big.check  { --x: 16px;  --r: -8deg; }

@keyframes lp-float {
  from { translate: 0 0; }
  to { translate: 4px -10px; }
}

/* ---- cintas: sin canto, los extremos se disuelven con una máscara ---- */
.lp-rail-tapes { position: absolute; inset: -30% -40%; z-index: 2; }

.lp-tape {
  position: absolute;
  left: -20%;
  width: 140%;
  padding: 8px 0;
  overflow: hidden;
  opacity: var(--lp-ink-tape);
  background: linear-gradient(
    to bottom,
    transparent,
    color-mix(in srgb, var(--lp-rail-ink-2) 55%, transparent) 22%,
    color-mix(in srgb, var(--lp-rail-ink-2) 55%, transparent) 78%,
    transparent
  );
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent);
}

.lp-tape-1 { top: 20%; transform: rotate(-64deg); }
.lp-tape-2 { top: 47%; transform: rotate(-64deg); }
.lp-tape-3 { top: 74%; transform: rotate(-64deg); }
.lp-rail-right .lp-tape { transform: rotate(64deg); }

.lp-tape-run {
  display: flex;
  width: max-content;
  gap: 24px;
  animation: lp-run 30s linear infinite;
}

.lp-tape-2 .lp-tape-run { animation-duration: 42s; animation-direction: reverse; }
.lp-tape-3 .lp-tape-run { animation-duration: 36s; }

.lp-tape-run span {
  font-weight: 600;
  font-size: 13px;
  letter-spacing: .17em;
  text-transform: uppercase;
  white-space: nowrap;
}

/* Cada rótulo con un color del logo. El azul va más alto: sobre tinta oscura se hunde antes. */
.lp-tape-run span:nth-child(4n+1) { color: color-mix(in srgb, var(--lp-brand-teal)  calc(var(--lp-ink-text) * 100%), transparent); }
.lp-tape-run span:nth-child(4n+2) { color: color-mix(in srgb, var(--lp-brand-amber) calc(var(--lp-ink-text) * 100%), transparent); }
.lp-tape-run span:nth-child(4n+3) { color: color-mix(in srgb, var(--lp-brand-red)   calc(var(--lp-ink-text) * 100%), transparent); }
.lp-tape-run span:nth-child(4n+4) { color: color-mix(in srgb, var(--lp-brand-blue)  calc(var(--lp-ink-text) * 130%), transparent); }

@keyframes lp-run {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.lp-rail-sign {
  position: absolute;
  bottom: 14px; left: 0; right: 0;
  margin: 0;
  text-align: center;
  z-index: 4;
  font-size: 10px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(232, 236, 244, .34);
}

.lp-rail-sign b { color: rgba(232, 236, 244, .72); font-weight: 600; letter-spacing: .1em; }

.lp-pips { display: inline-flex; gap: 3px; vertical-align: 1px; margin-right: 7px; }
.lp-pips i { width: 5px; height: 5px; display: block; border-radius: 1px; }
.lp-pips i:nth-child(1) { background: var(--lp-brand-red); }
.lp-pips i:nth-child(2) { background: var(--lp-brand-blue); }
.lp-pips i:nth-child(3) { background: var(--lp-brand-teal); }
.lp-pips i:nth-child(4) { background: var(--lp-brand-amber); }

/* ---------------------------------------------------------------- pie de tinta */
.lp-band {
  position: relative;
  overflow: hidden;
  background: var(--lp-rail-ink);
  padding: 30px 26px 26px;
  border-top: 1px solid rgba(232, 236, 244, .07);
}

.lp-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(232, 236, 244, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(232, 236, 244, .05) 1px, transparent 1px);
  background-size: 22px 22px;
}

.lp-band::after {
  content: "";
  position: absolute;
  inset: -80% -10% auto;
  height: 220%;
  background: radial-gradient(50% 40% at 50% 50%, color-mix(in srgb, var(--lp-brand-teal) 22%, transparent), transparent 70%);
  filter: blur(10px);
  pointer-events: none;
}

.lp-band-inner {
  position: relative;
  z-index: 1;
  max-width: 780px;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
}

.lp-band-claim {
  margin: 0;
  font-size: 21px;
  font-weight: 600;
  line-height: 1.3;
  text-wrap: balance;
  color: rgba(232, 236, 244, .90);
}

.lp-band-claim b { color: #fff; font-weight: 700; }
.lp-band-claim em { font-style: normal; font-weight: 700; color: var(--lp-brand-teal); }

.lp-band-counters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px 0;
  width: 100%;
}

.lp-band-counters div {
  flex: 1 1 130px;
  min-width: 120px;
  padding: 0 14px;
  border-left: 1px solid rgba(232, 236, 244, .12);
  text-align: center;
}

.lp-band-counters div:first-child { border-left: 0; }

.lp-band-counters .n {
  display: block;
  font-variant-numeric: tabular-nums;
  font-size: 21px;
  font-weight: 600;
  line-height: 1.15;
  color: #fff;
}

.lp-band-counters .l {
  display: block;
  margin-top: 4px;
  font-size: 10.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
  line-height: 1.35;
  color: rgba(232, 236, 244, .44);
}

.lp-live {
  display: inline-block;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--lp-brand-teal);
  vertical-align: 2px;
  margin-right: 5px;
  animation: lp-pulse 3.4s ease-in-out infinite;
}

@keyframes lp-pulse {
  0%, 100% { opacity: .35; }
  50% { opacity: 1; }
}

.lp-band-legal {
  margin: 0;
  font-size: 11.5px;
  color: rgba(232, 236, 244, .34);
}

/* ---------------------------------------------------------------- sin sitio, sin laterales */
@media (max-width: 1100px) {
  .lp-shell { grid-template-columns: 110px minmax(0, 1fr) 110px; }
  .lp-rail-icons svg.big { --w: 76px; }
}

@media (max-width: 860px) {
  .lp-shell { grid-template-columns: minmax(0, 1fr); }
  .lp-rail { display: none; }
  .lp-band { padding: 24px 18px 22px; }
  .lp-band-claim { font-size: 18px; }
}

/* Quien pide menos movimiento, no lo tiene. */
@media (prefers-reduced-motion: reduce) {
  .lp-tape-run, .lp-rail-icons svg, .lp-live { animation: none !important; }
}

/* Enlaces internos y vuelta al tablón (#447).

   Los enlaces existen para dos cosas: que un buscador encuentre las páginas por categoría y
   provincia, y que quien no encontró lo suyo tenga algo que pulsar. Van al final, en gris, para
   no competir con los anuncios. */
.lp-hero-back {
  display: inline-block;
  margin-top: 12px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--accent-dark);
  text-decoration: none;
}
.lp-hero-back:hover { text-decoration: underline; }

.lp-seo-links {
  margin: 28px 0 4px;
  padding: 18px 20px;
  background: var(--surface-sunken);
  border: 1px solid var(--border);
  border-radius: 12px;
}
.lp-seo-links-title {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 12px;
}
.lp-seo-links ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.lp-seo-links a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 11px;
  font-size: 12.5px;
  color: var(--text-muted);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  text-decoration: none;
}
.lp-seo-links a:hover {
  color: var(--text);
  border-color: var(--border-strong);
}
.lp-seo-count {
  font-size: 11px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--text-faint);
}

/* Aviso de que el tablón se ha abierto a todos los países (#447).

   Sale cuando el país de la cuenta todavía no tiene anuncios. Es información, no un error: tono
   neutro, sin icono de alarma. */
.lp-country-note {
  margin: 0 0 14px;
  padding: 10px 14px;
  font-size: 12.5px;
  color: var(--text-muted);
  background: var(--accent-soft);
  border: 1px solid var(--accent-soft-strong);
  border-radius: 10px;
}

/* ---- Guardar y compartir (#447) ---- */
.lp-fav-btn { display: inline-flex; align-items: center; gap: 7px; }
.lp-fav-btn .lp-fav-icon { font-size: 15px; line-height: 1; }
.lp-fav-btn.is-fav { border-color: #f59e0b; color: #b45309; background: #fffbeb; }
.lp-fav-btn.is-fav .lp-fav-icon { color: #f59e0b; }

.lp-share-native { width: 100%; margin-bottom: 14px; }

.lp-share-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 8px;
    margin-bottom: 16px;
}
.lp-share-item {
    display: flex; align-items: center; gap: 9px;
    padding: 10px 12px;
    border: 1px solid var(--border); border-radius: 10px;
    font-size: 13.5px; font-weight: 600; color: var(--text);
    background: var(--surface);
}
.lp-share-item:hover { border-color: var(--border-strong, #cbd5e1); }
.lp-share-icon {
    width: 26px; height: 26px; border-radius: 7px; flex: 0 0 auto;
    display: inline-flex; align-items: center; justify-content: center;
    color: #fff; font-size: 13px; font-weight: 700; line-height: 1;
}

.lp-share-link { display: flex; gap: 8px; align-items: center; }
.lp-share-link input {
    flex: 1; min-width: 0;
    padding: 9px 11px;
    border: 1px solid var(--border); border-radius: 8px;
    font-size: 12.5px; color: var(--text-muted); background: var(--surface);
}
