:root {
    color-scheme: light;
    --accent: #f5a300;
    --accent-strong: #d88d00;
    --accent-text: #171717;
    --background: #ffffff;
    --surface: #ffffff;
    --surface-soft: #f7f7f5;
    --text: #171717;
    --muted: #66645f;
    --border: #deddd9;
    --shadow: 0 14px 34px rgba(20, 20, 18, 0.08);
    --topbar-height: 78px;
    --sidebar-width: 238px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    min-height: 100vh;
    color: var(--text);
    background: var(--background);
    font-family: "Segoe UI", Arial, sans-serif;
    transition: color .25s ease, background .25s ease;
}

body.dark-theme {
    color-scheme: dark;
    --accent-text: #f5a300;
    --background: #11110f;
    --surface: #1b1b18;
    --surface-soft: #24241f;
    --text: #f7f6f1;
    --muted: #b5b2a9;
    --border: #35352f;
    --shadow: 0 14px 34px rgba(0, 0, 0, .28);
}

a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
img { display: block; max-width: 100%; }

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.topbar {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 1000;
    height: var(--topbar-height);
    display: grid;
    grid-template-columns: minmax(225px, 1fr) minmax(320px, 540px) minmax(180px, 1fr);
    align-items: center;
    gap: 24px;
    padding: 0 28px;
    background: color-mix(in srgb, var(--surface) 96%, transparent);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 3px 18px rgba(15, 15, 12, .05);
    backdrop-filter: blur(14px);
}

.topbar__brand,
.topbar__actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.topbar__actions { justify-content: flex-end; }

.icon-button {
    width: 42px;
    height: 42px;
    display: inline-grid;
    place-items: center;
    border: 0;
    border-radius: 50%;
    color: var(--text);
    background: transparent;
    cursor: pointer;
    transition: color .2s ease, background .2s ease;
}

.icon-button:hover,
.icon-button:focus-visible {
    color: #111;
    background: var(--accent);
    outline: none;
}

.site-logo { width: 212px; height: 58px; object-fit: contain; object-position: left center; }
.site-logo--dark { display: none; }
.dark-theme .site-logo--light { display: none; }
.dark-theme .site-logo--dark { display: block; }

.topbar-search {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    overflow: hidden;
    border-radius: 999px;
    background: var(--surface-soft);
    border: 1px solid var(--border);
}

.topbar-search input {
    min-width: 0;
    padding: 12px 18px;
    border: 0;
    outline: none;
    color: var(--text);
    background: transparent;
}

.topbar-search button,
.access-button {
    border: 0;
    color: #fff;
    background: #111;
    cursor: pointer;
    font-weight: 700;
}

.topbar-search button { padding: 0 24px; }
.access-button { padding: 11px 20px; border-radius: 999px; }
.topbar-search button:hover,
.access-button:hover { color: #111; background: var(--accent); }

.sidebar {
    position: fixed;
    z-index: 900;
    inset: var(--topbar-height) auto 0 0;
    width: var(--sidebar-width);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow-y: auto;
    padding: 18px 18px 24px;
    background: var(--surface);
    border-right: 1px solid var(--border);
    visibility: hidden;
    transform: translateX(-101%);
    transition: transform .28s ease, visibility .28s ease;
}

.sidebar.is-open { visibility: visible; transform: translateX(0); box-shadow: 12px 0 28px rgba(0, 0, 0, .14); }

.sidebar-list { list-style: none; margin: 0; padding: 0; }
.sidebar-list li + li { margin-top: 2px; }

.sidebar-list a,
.sidebar-footer a {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 42px;
    padding: 9px 11px;
    border-radius: 9px;
    font-family: Georgia, "Times New Roman", serif;
    transition: color .2s ease, background .2s ease, transform .2s ease;
}

.sidebar-list a:hover,
.sidebar-footer a:hover {
    color: #fff;
    background: #111;
    transform: translateX(2px);
}

.sidebar-list i,
.sidebar-footer i { width: 20px; color: var(--text); text-align: center; transition: color .2s ease; }

.sidebar-list a:hover i,
.sidebar-footer a:hover i { color: var(--accent); }
.sidebar-list a:focus-visible,
.sidebar-footer a:focus-visible { color: #fff; background: #111; }
.sidebar-list a:focus-visible i,
.sidebar-footer a:focus-visible i { color: var(--accent); }
.dark-theme .sidebar a:hover,
.dark-theme .sidebar a:focus-visible,
.dark-theme .sidebar a:hover i,
.dark-theme .sidebar a:focus-visible i { color: #111; }
.dark-theme .sidebar a:hover,
.dark-theme .sidebar a:focus-visible { background: #fff; }

.sidebar-footer {
    padding-top: 16px;
    border-top: 1px solid var(--border);
    color: var(--muted);
    font-size: 12px;
}

.page-overlay {
    display: none;
    position: fixed;
    z-index: 850;
    inset: var(--topbar-height) 0 0;
    background: rgba(0, 0, 0, .42);
}

.page-overlay.is-visible { display: block; }

.site-main { margin-right: auto; margin-left: auto; }
.site-footer { margin-left: 0; }

.site-main {
    width: min(1250px, 100%);
    min-height: calc(100vh - var(--topbar-height));
    padding: calc(var(--topbar-height) + 28px) 34px 80px;
}

.hero-slider {
    position: relative;
    border: 10px solid var(--surface);
    background: var(--surface);
    box-shadow: var(--shadow);
}

.hero-slider__viewport { position: relative; aspect-ratio: 16 / 7.25; overflow: hidden; }

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity .55s ease, visibility .55s ease;
}

.hero-slide.is-active { opacity: 1; visibility: visible; }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; }

.hero-slide__shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0, 0, 0, .72) 0%, rgba(0, 0, 0, .15) 60%, transparent 100%);
}

.hero-slide__content {
    position: absolute;
    left: clamp(28px, 5vw, 72px);
    bottom: clamp(42px, 7vw, 84px);
    width: min(620px, 78%);
    color: #fff;
}

.hero-slide__content span:not(.sponsored-badge),
.section-kicker,
.article-category {
    color: var(--accent-text);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.hero-slide__content span:not(.sponsored-badge) { color: var(--accent); }

.hero-slide__content h1 {
    margin: 12px 0 20px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(28px, 3vw, 44px);
    line-height: 1.1;
}

.hero-slide__content a {
    display: inline-flex;
    padding: 11px 18px;
    border: 1px solid rgba(255, 255, 255, .6);
    border-radius: 999px;
    font-weight: 700;
}

.hero-slide__content a:hover { color: #111; background: var(--accent); border-color: var(--accent); }

.slider-control {
    position: absolute;
    z-index: 5;
    top: 50%;
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 50%;
    color: var(--accent-text);
    background: var(--surface);
    box-shadow: 0 8px 20px rgba(0, 0, 0, .18);
    cursor: pointer;
    transform: translateY(-50%);
}

.slider-control--previous { left: -28px; }
.slider-control--next { right: -28px; }

.slider-dots {
    position: absolute;
    z-index: 5;
    left: 50%;
    bottom: 24px;
    display: flex;
    gap: 9px;
    transform: translateX(-50%);
}

.slider-dot {
    width: 10px;
    height: 10px;
    padding: 0;
    border: 2px solid #fff;
    border-radius: 50%;
    background: transparent;
    cursor: pointer;
}

.slider-dot.is-active { border-color: var(--accent); background: var(--accent); }

.featured-story {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(340px, .95fr);
    gap: 42px;
    align-items: center;
    margin: 44px 0 70px;
    padding: 24px;
    background: var(--surface);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

.featured-story__image { overflow: hidden; aspect-ratio: 16 / 10; }
.featured-story__image img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.featured-story__image:hover img { transform: scale(1.025); }

.featured-story__copy h2,
.section-heading h2,
.archive-header h1,
.article-page h1 {
    font-family: Georgia, "Times New Roman", serif;
}

.featured-story__copy h2 { margin: 12px 0 18px; font-size: clamp(28px, 2.7vw, 40px); line-height: 1.12; }
.featured-story__copy p { color: var(--muted); font-size: 17px; line-height: 1.7; }

.article-meta { color: var(--muted); font-size: 13px; }

.latest-section { padding-top: 4px; }

.section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 26px;
}

.section-heading h2 { margin: 7px 0 0; font-size: clamp(28px, 3vw, 38px); line-height: 1.12; }
.section-heading > a { color: var(--accent-text); font-weight: 800; }

.article-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 22px;
}

.article-card {
    overflow: hidden;
    background: var(--surface);
    border: 1px solid var(--border);
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.article-card:hover { transform: translateY(-4px); border-color: var(--accent); box-shadow: var(--shadow); }
.article-card__image { display: block; overflow: hidden; aspect-ratio: 4 / 3; }
.article-card__image img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.article-card:hover .article-card__image img { transform: scale(1.035); }
.article-card__body { padding: 20px; }
.article-card h2,
.article-card h3 { margin: 10px 0 12px; font-family: Georgia, "Times New Roman", serif; font-size: 20px; line-height: 1.25; }
.article-card p { color: var(--muted); line-height: 1.6; }

.site-main--inner { padding-top: calc(var(--topbar-height) + 58px); }
.archive-header { max-width: 780px; margin: 0 0 42px; }
.archive-header h1 { margin: 10px 0 14px; font-size: clamp(38px, 5vw, 66px); }
.archive-header p { color: var(--muted); font-size: 18px; line-height: 1.7; }
.article-grid--archive { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.empty-state {
    max-width: 720px;
    margin: 40px auto;
    padding: 60px 28px;
    text-align: center;
    background: var(--surface);
    border: 1px solid var(--border);
}
.empty-state i { color: var(--accent); font-size: 42px; }
.empty-state p { color: var(--muted); }
.empty-state a { display: inline-flex; margin-top: 10px; padding: 11px 18px; border-radius: 999px; color: #111; background: var(--accent); font-weight: 800; }

.article-page { max-width: 1180px; margin: 0 auto; }
.article-page__header { margin: 0 0 32px; }
.article-page h1 { max-width: 900px; margin: 14px 0 16px; text-wrap: balance; font-size: clamp(34px, 4.2vw, 54px); line-height: 1.08; }
.article-page__lead { max-width: 760px; margin: 0 0 24px; color: var(--muted); font-size: 20px; line-height: 1.65; }
.article-page__hero { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; object-position: center 62%; border: 10px solid var(--surface); box-shadow: var(--shadow); }
.article-page__hero,
.hero-slider { outline: 1px solid var(--border); }
.article-page__figure { margin: 0; }
.article-page__figure figcaption { padding-top: 10px; color: var(--muted); font-size: 14px; line-height: 1.5; }
.article-page__layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 320px);
    gap: 40px;
    align-items: start;
    width: 100%;
    margin: 0 auto;
}
.article-page__primary { min-width: 0; }
.article-page__body { max-width: 680px; margin: 32px 0 0; font-family: "Source Serif 4", Cambria, Georgia, serif; font-size: 20px; font-weight: 330; line-height: 1.75; color: color-mix(in srgb, var(--text) 88%, var(--background)); }
.article-page__body h2,
.article-page__body h3 { color: var(--text); }
.article-page__body strong { font-weight: 600; }
.article-page__primary .article-page__body { max-width: none; }
.article-page__primary .article-page__body > p,
.article-page__body li { text-align: justify; hyphens: auto; }
.article-page__body > p { margin: 0 0 1.05em; }
.article-page__primary .article-page__body > p:first-child::first-letter { float: left; margin: .06em .1em 0 0; color: var(--accent); font-family: Georgia, "Times New Roman", serif; font-size: 3.9em; font-weight: 700; line-height: .78; }
.article-page__body h2,
.article-page__body h3,
.article-page__body blockquote p,
.body-facts dd { font-family: Georgia, "Times New Roman", serif; }
.article-page__body p:first-child { margin-top: 0; }

.article-page__body h2,
.article-page__body h3 { margin: 1.35em 0 .5em; line-height: 1.25; }
.article-page__body h2 { font-size: 28px; }
.article-page__body h3 { font-size: 23px; }
.article-page__body a { color: var(--text); text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.article-page__body blockquote { margin: 1.4em 0; padding: 4px 0 4px 26px; border-left: 4px solid var(--accent); font-size: 26px; font-style: italic; line-height: 1.4; }
.article-page__body img { height: auto; }

.article-page__body ul,
.article-page__body ol { padding-left: 1.2em; }
.article-page__body li { margin-bottom: .5em; }
.article-page__body li::marker { color: var(--accent); }
.article-page__body blockquote p { margin: 0; }
.article-page__body cite { display: block; margin-top: 10px; color: var(--muted); font-family: "Segoe UI", Arial, sans-serif; font-size: 14px; font-style: normal; }
.article-page__body figure { margin: 0; }
.article-page__body figcaption { padding-top: 10px; color: var(--muted); font-family: "Segoe UI", Arial, sans-serif; font-size: 14px; line-height: 1.5; }
.article-page__body .body-figure { margin: 30px 0; }
.body-figure img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.body-gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 30px 0; }
.body-gallery img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.body-video-gallery { margin: 34px 0; padding: 22px 0; border-block: 1px solid var(--border); outline: none; }
.body-video-gallery__header { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 18px; }
.article-page__body .body-video-gallery h3 { margin: 0 0 6px; }
.article-page__body .body-video-gallery__intro { margin: 0; color: var(--muted); font-family: "Segoe UI", Arial, sans-serif; font-size: 15px; line-height: 1.55; text-align: left; }
.body-video-gallery__count { flex: 0 0 auto; min-width: 58px; padding: 6px 10px; border: 1px solid var(--border); border-radius: 4px; color: var(--muted); font-family: "Segoe UI", Arial, sans-serif; font-size: 13px; line-height: 1; text-align: center; }
.body-video-gallery__count b { color: var(--text); }
.body-video-gallery__stage { position: relative; overflow: hidden; background: #0d0d0e; }
.body-video-gallery__track { display: flex; transition: transform .38s ease; }
.body-video-gallery__slide { flex: 0 0 100%; min-width: 0; }
.body-video-gallery__slide video { display: block; width: min(100%, 420px); margin: 0 auto; aspect-ratio: 9 / 16; background: #000; object-fit: contain; }
.article-page__body .body-video-gallery__slide figcaption { min-height: 48px; padding: 13px 72px; color: #e9e9e9; background: #171719; font-size: 13px; text-align: center; }
.body-video-gallery__arrow { position: absolute; top: 50%; z-index: 2; display: grid; place-items: center; width: 42px; height: 42px; padding: 0; border: 0; border-radius: 50%; color: #111; background: var(--accent); cursor: pointer; transform: translateY(-50%); transition: background .18s, transform .18s; }
.body-video-gallery__arrow:hover { background: #ffb51f; transform: translateY(-50%) scale(1.06); }
.body-video-gallery__arrow:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.body-video-gallery__arrow--prev { left: 14px; }
.body-video-gallery__arrow--next { right: 14px; }
.body-video-gallery__dots { display: flex; justify-content: center; gap: 8px; margin-top: 13px; }
.body-video-gallery__dots button { width: 9px; height: 9px; padding: 0; border: 0; border-radius: 50%; background: var(--border); cursor: pointer; transition: width .18s, border-radius .18s, background .18s; }
.body-video-gallery__dots button.is-active { width: 25px; border-radius: 99px; background: var(--accent); }
.body-video-gallery__dots button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.article-page__body .body-video-gallery__source { margin: 13px 0 0; color: var(--muted); font-family: "Segoe UI", Arial, sans-serif; font-size: 13px; line-height: 1.5; text-align: center; }
@media (prefers-reduced-motion: reduce) { .body-video-gallery__track { transition: none; } }
@media (max-width: 700px) {
    .body-video-gallery__header { gap: 12px; }
    .body-video-gallery__slide video { width: 100%; }
    .article-page__body .body-video-gallery__slide figcaption { padding-inline: 54px; }
    .body-video-gallery__arrow { width: 38px; height: 38px; }
    .body-video-gallery__arrow--prev { left: 8px; }
    .body-video-gallery__arrow--next { right: 8px; }
}
.body-facts { margin: 30px 0; padding: 24px 0; border-block: 1px solid var(--border); }
.article-page__body .body-facts h3 { margin: 0 0 18px; }
.body-facts dl { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin: 0; }
.body-facts dl div { display: flex; flex-direction: column-reverse; justify-content: flex-end; }
.body-facts dt { color: var(--muted); font-family: "Segoe UI", Arial, sans-serif; font-size: 15px; line-height: 1.4; }
.body-facts dd { margin: 0; color: var(--accent-text); font-size: 44px; font-weight: 700; line-height: 1.2; }
.body-sources { margin: 1.45em 0 1.7em; padding: 15px 18px; border: 1px solid var(--border); border-left: 4px solid var(--accent); background: color-mix(in srgb, var(--accent) 7%, var(--surface)); font-family: "Segoe UI", Arial, sans-serif; font-size: 14px; line-height: 1.65; }
.article-page__body .body-sources p { margin: 0; text-align: left; }
.article-page__body .body-sources strong { margin-right: 4px; color: var(--text); font-weight: 700; }
.article-page__body .body-sources a { color: var(--muted); text-decoration-thickness: 1px; text-underline-offset: 3px; }
.article-page__body .body-sources a:hover { color: var(--text); }
.body-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 24px; margin: 36px 0; padding: 26px; background: var(--surface); border-top: 4px solid var(--accent); box-shadow: var(--shadow); }
.article-page__body .body-cta h3,
.article-page__body .sponsor-card h3 { margin: 0 0 4px; }
.article-page__body .body-cta p { margin: 0; font-size: 16px; line-height: 1.5; }
.article-page__body .pauta-button { color: #111; font-family: "Segoe UI", Arial, sans-serif; font-size: 16px; text-decoration: none; }
.article-page__body .pauta-button:hover { color: var(--background); }
.sponsor-card { display: flex; gap: 22px; align-items: flex-start; padding: 26px 0; border-top: 1px solid var(--border); font-family: "Segoe UI", Arial, sans-serif; font-size: 16px; line-height: 1.55; }
.sponsor-card img { flex: none; width: 88px; }
.sponsor-card h3 { font-family: Georgia, "Times New Roman", serif; font-size: 22px; }
.article-page__body .sponsor-card p { margin: 0 0 8px; }
.sponsor-card .sponsor-card__label { color: var(--muted); font-size: 14px; }
.article-page__body .sponsor-note { margin: 0; padding-top: 16px; border-top: 1px solid var(--border); color: var(--muted); font-family: "Segoe UI", Arial, sans-serif; font-size: 14px; line-height: 1.5; }
@media (max-width: 640px) {
    .body-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .body-gallery figure:first-child { grid-column: 1 / -1; }
    .body-gallery figure:first-child img { aspect-ratio: 1; object-position: center 12%; }
    .body-facts dl { gap: 12px; }
    .body-facts dd { font-size: 34px; }
    .sponsor-card img { width: 64px; }
}

.breadcrumbs { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 13px; }
.breadcrumbs i { font-size: 9px; }
.breadcrumbs a:hover { color: var(--text); }

.article-byline { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px; padding: 14px 0; border-block: 1px solid var(--border); }
.article-author { margin-bottom: 4px; font-size: 15px; }
.article-share { position: relative; }
.article-share { display: flex; flex-wrap: wrap; gap: 8px; }
.article-share a,
.article-share button {
    width: 42px;
    height: 42px;
    display: inline-grid;
    place-items: center;
    border: 1px solid var(--border);
    border-radius: 50%;
    color: var(--text);
    background: var(--surface);
    cursor: pointer;
    transition: color .2s ease, background .2s ease;
}
.article-share a:hover,
.article-share button:hover { color: #111; background: var(--accent); }
.article-share__status { position: absolute; top: calc(100% + 4px); right: 0; padding: 4px 10px; border-radius: 6px; color: var(--background); background: var(--text); font-size: 12px; white-space: nowrap; }
.article-share__status:empty { display: none; }
a:focus-visible,
button:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

.search-toggle { display: none; }

.article-recommended {
    position: sticky;
    top: calc(var(--topbar-height) + 24px);
    padding: 20px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-top: 4px solid var(--accent);
    box-shadow: var(--shadow);
}
.article-recommended__heading { padding-bottom: 18px; border-bottom: 1px solid var(--border); }
.article-recommended__heading h2 {
    margin: 7px 0 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 26px;
    line-height: 1.15;
}
.article-recommended__list { display: grid; gap: 0; }
.article-recommended__item {
    display: grid;
    grid-template-columns: 104px minmax(0, 1fr);
    gap: 14px;
    padding: 18px 0;
    border-bottom: 1px solid var(--border);
}
.article-recommended__item:last-child { padding-bottom: 0; border-bottom: 0; }
.article-recommended__image { display: block; overflow: hidden; aspect-ratio: 4 / 3; }
.article-recommended__image img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.article-recommended__item:hover .article-recommended__image img { transform: scale(1.04); }
.article-recommended__copy > span:not(.sponsored-badge) { color: var(--accent-text); font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.article-recommended__copy h3 { margin: 6px 0 8px; font-family: Georgia, "Times New Roman", serif; font-size: 17px; line-height: 1.22; }
.article-recommended__copy h3 a:hover { color: var(--accent-text); }

.sponsored-badge { display: table; margin-top: 10px; padding: 4px 9px; color: #111; background: var(--accent); font-size: 12px; font-weight: 700; line-height: 1.3; }

.article-sidebar { align-self: stretch; min-width: 0; }
.article-recommended:has(+ .ad-slot) { position: static; }
.ad-slot { text-align: center; }
.ad-slot__label { display: block; margin-bottom: 6px; color: var(--muted); font-size: 12px; }
.ad-slot img { height: auto; margin: 0 auto; }
.ad-slot__empty { display: grid; place-items: center; margin: 0 auto; border: 1px dashed var(--muted); color: var(--muted); background: var(--surface); }
.ad-slot--portada { max-width: 970px; margin: 0 auto 56px; }
.ad-slot--portada .ad-slot__empty { aspect-ratio: 970 / 250; }
.ad-slot--articulo { position: sticky; top: calc(var(--topbar-height) + 24px); max-width: 300px; margin: 32px auto 0; }
.ad-slot--articulo .ad-slot__empty { aspect-ratio: 300 / 250; }
@media (max-width: 900px) {
    .ad-slot--articulo { position: static; }
}
@media (max-width: 640px) {
    .ad-slot--portada { max-width: 320px; }
    .ad-slot--portada .ad-slot__empty { aspect-ratio: 320 / 100; }
}

.pauta-button { display: inline-flex; align-items: center; gap: 10px; min-height: 46px; padding: 11px 22px; border: 1px solid var(--accent); border-radius: 999px; color: #111; background: var(--accent); font-weight: 700; overflow-wrap: anywhere; }
.pauta-button:hover { color: var(--background); background: var(--text); border-color: var(--text); }
.pauta-note { margin: 22px 0 0; color: var(--muted); font-size: 14px; line-height: 1.6; }

.site-footer {
    padding: 42px 34px;
    text-align: center;
    color: var(--muted);
    background: var(--surface);
    border-top: 1px solid var(--border);
}
.site-footer__home { display: block; width: fit-content; margin: 0 auto 18px; }
.site-footer img { width: 180px; margin: 0; }
.site-footer__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 24px; max-width: 760px; margin: 22px auto 14px; }
.site-footer__links a { padding: 6px 0; color: var(--text); font-family: Georgia, "Times New Roman", serif; font-size: 15px; }
.site-footer__links a:hover,
.site-footer__legal a:hover { color: var(--accent-text); text-decoration: underline; text-underline-offset: 4px; }
.site-footer__social { display: flex; justify-content: center; gap: 4px; margin-bottom: 14px; }
.site-footer__social a { width: 42px; height: 42px; display: inline-grid; place-items: center; border-radius: 50%; transition: color .2s ease, background .2s ease; }
.site-footer__social a:hover { color: #111; background: var(--accent); }
.site-footer__legal { display: flex; flex-wrap: wrap; justify-content: center; gap: 2px 20px; font-size: 13px; }
.site-footer__legal a { padding: 6px 0; }


@media (max-width: 1180px) {
    .topbar { grid-template-columns: minmax(210px, auto) minmax(250px, 1fr) auto; }
    .article-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
    :root { --topbar-height: 68px; }
    .topbar { grid-template-columns: 1fr auto; gap: 12px; padding: 0 16px; }
    .topbar-search { position: absolute; top: calc(100% + 10px); left: 16px; right: 16px; display: none; background: var(--surface); box-shadow: var(--shadow); }
    .topbar-search.is-open { display: grid; }
    .search-toggle { display: inline-grid; }
    .topbar__actions { gap: 4px; }
    .site-logo { width: 176px; height: 48px; }
    .site-main { margin-right: auto; margin-left: auto; }
    .site-footer { margin-left: 0; }
    .site-main { width: 100%; padding-inline: 22px; }
    .featured-story { grid-template-columns: 1fr; gap: 26px; }
    .article-grid--archive { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .article-page__layout { grid-template-columns: 1fr; gap: 38px; }
    .article-recommended { position: static; }
    .article-recommended__list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
    .article-recommended__item { display: block; padding: 18px 0 0; border-bottom: 0; }
    .article-recommended__copy { padding-top: 12px; }
}

@media (max-width: 640px) {
    .topbar__actions .access-button { display: none; }
    .site-logo { width: 158px; }
    .site-main { padding: calc(var(--topbar-height) + 18px) 14px 56px; }
    .hero-slider { border-width: 5px; }
    .hero-slider__viewport { aspect-ratio: 4 / 5; }
    .hero-slide__shade { background: linear-gradient(0deg, rgba(0, 0, 0, .82) 0%, rgba(0, 0, 0, .1) 78%); }
    .hero-slide__content { left: 22px; right: 22px; bottom: 54px; width: auto; }
    .hero-slide__content h1 { font-size: 28px; line-height: 1.12; }
    .slider-control { width: 38px; height: 38px; }
    .slider-control--previous { left: -12px; }
    .slider-control--next { right: -12px; }
    .featured-story { margin: 30px 0 50px; padding: 14px; }
    .featured-story__copy h2 { font-size: 28px; }
    .topbar__brand { gap: 6px; }
    .article-grid,
    .article-grid--archive { grid-template-columns: 1fr; }
    .section-heading { align-items: flex-start; }
    .article-page h1 { font-size: 32px; line-height: 1.1; }
    .article-page__lead { font-size: 18px; }
    .article-page__hero { border-width: 5px; }
    .article-page__body { font-size: 17px; line-height: 1.65; }
    .article-page__primary .article-page__body > p:first-child::first-letter { font-size: 3.5em; }
    .article-page__primary .article-page__body > p,
    .article-page__body li { text-align: left; hyphens: manual; }
    .article-page__body h2 { font-size: 23px; }
    .article-page__body h3 { font-size: 20px; }
    .article-page__body blockquote { padding-left: 18px; font-size: 20px; }
    .article-recommended { padding: 18px; }
    .article-recommended__list { grid-template-columns: 1fr; gap: 0; }
    .article-recommended__item { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--border); }
    .article-recommended__item:last-child { padding-bottom: 0; border-bottom: 0; }
    .article-recommended__copy { padding-top: 0; }
}

/* Naranja de marca como subrayado: el texto queda legible sin oscurecer el color. */
.article-category,
.section-kicker,
.section-heading > a,
.article-recommended__copy > span:not(.sponsored-badge) {
    text-decoration: underline;
    text-decoration-color: var(--accent);
    text-decoration-thickness: 2px;
    text-underline-offset: 5px;
}

.article-related { max-width: 1180px; margin: 64px auto 0; padding-top: 40px; border-top: 1px solid var(--border); }
.article-related .article-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 640px) {
    .article-related { margin-top: 44px; padding-top: 32px; }
    .article-related .article-grid { grid-template-columns: 1fr; }
}
.section-heading > a { flex: none; white-space: nowrap; }
.article-card__image img { object-position: center 15%; }

/* Al pasar el cursor, la tarjeta toma los colores del modo contrario. */
.featured-story,
.featured-story p,
.featured-story .article-meta,
.featured-story .article-category,
.article-card,
.article-card p,
.article-card .article-meta,
.article-card .article-category { transition: color .25s ease, background .25s ease, transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.featured-story:hover,
.featured-story:focus-within,
.article-card:hover,
.article-card:focus-within {
    --surface: #111111;
    --text: #f7f6f1;
    --muted: #b5b2a9;
    --accent-text: #f5a300;
    color: var(--text);
}
.dark-theme .featured-story:hover,
.dark-theme .featured-story:focus-within,
.dark-theme .article-card:hover,
.dark-theme .article-card:focus-within {
    --surface: #ffffff;
    --text: #171717;
    --muted: #66645f;
    --accent-text: #171717;
}
.featured-story:hover { border-color: var(--accent); }

/* Paute con nosotros */
.pauta-hero { position: relative; display: grid; align-items: end; min-height: 500px; overflow: hidden; color: #fff; background: #111; }
.pauta-hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 40%; }
.pauta-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0, 0, 0, .86) 0%, rgba(0, 0, 0, .5) 55%, rgba(0, 0, 0, .12) 100%); }
.pauta-hero__copy { position: relative; z-index: 1; max-width: 800px; padding: clamp(24px, 4.5vw, 56px); }
.pauta-hero .breadcrumbs,
.pauta-hero .breadcrumbs a:hover { color: #fff; }
.article-page .pauta-hero h1 { font-size: clamp(36px, 5vw, 64px); line-height: 1.05; }
.pauta-hero p { max-width: 540px; margin: 0 0 26px; font-size: 20px; line-height: 1.5; }
.pauta-hero .pauta-button:hover { color: #111; background: #fff; border-color: #fff; }

.pauta-formats { padding: 72px 0 16px; }
.pauta-formats h2,
.pauta-format h3,
.pauta-close h2 { margin: 0; font-family: Georgia, "Times New Roman", serif; line-height: 1.12; }
.pauta-formats h2 { font-size: clamp(30px, 3.4vw, 42px); }
.pauta-format { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: center; padding: 48px 0; }
.pauta-format + .pauta-format { border-top: 1px solid var(--border); }
.pauta-format:nth-of-type(even) { grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); }
.pauta-format:nth-of-type(even) .mock { order: 2; }
.pauta-format h3 { font-size: clamp(25px, 2.6vw, 32px); }
.pauta-format__copy > p { margin: 14px 0 24px; color: var(--muted); font-size: 18px; line-height: 1.6; }
.pauta-format dl { margin: 0; }
.pauta-format dl div { display: grid; grid-template-columns: 116px minmax(0, 1fr); gap: 16px; padding: 11px 0; border-top: 1px solid var(--border); line-height: 1.45; }
.pauta-format dt { color: var(--muted); }
.pauta-format dd { margin: 0; font-weight: 700; }

.mock { display: flex; flex-direction: column; gap: 12px; aspect-ratio: 4 / 3; overflow: hidden; padding: 0 20px; color: #171717; background: #fff; border: 1px solid var(--border); box-shadow: 0 22px 50px rgba(20, 20, 18, .16); }
.mock__bar { flex: none; margin: 0 -20px; padding: 11px 20px; border-bottom: 1px solid #deddd9; }
.mock__bar img { width: 104px; }
.mock b { font-family: Georgia, "Times New Roman", serif; font-size: clamp(15px, 1.7vw, 22px); line-height: 1.18; }
.mock img { object-fit: cover; }
.mock i { flex: none; display: block; height: 8px; background: #e6e5e1; }
.mock i + i { margin-right: 8%; }
.mock i:last-child { margin-right: 34%; }
.mock__ad { display: grid; place-items: center; color: #111; background: #f5a300; font-family: Georgia, "Times New Roman", serif; font-size: clamp(16px, 2vw, 26px); text-align: center; }
.mock__lead { flex: 1.5; min-height: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: center; }
.mock__lead img { width: 100%; height: 100%; min-height: 0; object-position: center 62%; }
.mock--home .mock__ad { flex: 1; min-height: 0; }
.mock__row { flex: 1; min-height: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; padding-bottom: 18px; }
.mock__row img { width: 100%; height: 100%; min-height: 0; object-position: center 15%; }
.mock__cols { flex: 1; min-height: 0; display: grid; grid-template-columns: 1.9fr 1fr; gap: 18px; padding: 6px 0 20px; }
.mock__cols > div:first-child,
.mock__story { display: flex; flex-direction: column; gap: 11px; min-height: 0; }
.mock__cols img,
.mock__story > img { flex: 1; width: 100%; min-height: 0; }
.mock__cols .mock__ad { align-self: start; aspect-ratio: 6 / 7; width: 100%; padding: 8px; }
.mock__story { flex: 1; padding: 2px 0 20px; }
.mock__story .sponsored-badge { align-self: start; margin: 0; background: #f5a300; }
.mock__story small { color: #66645f; font-size: 13px; }
.mock__story > img { object-position: center 45%; }

.pauta-close { display: grid; grid-template-columns: 1.1fr 1fr; margin-top: 40px; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow); scroll-margin-top: calc(var(--topbar-height) + 24px); }
.pauta-close__photo { position: relative; isolation: isolate; display: flex; flex-direction: column; justify-content: flex-end; min-height: 460px; padding: clamp(26px, 4vw, 48px); overflow: hidden; color: #fff; background: #111; }
.pauta-close__photo > img { position: absolute; z-index: -2; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 45%; }
.pauta-close__photo::after { content: ""; position: absolute; z-index: -1; inset: 0; background: linear-gradient(0deg, rgba(0, 0, 0, .9) 0%, rgba(0, 0, 0, .62) 45%, rgba(0, 0, 0, .05) 100%); }
.pauta-close h2 { font-size: clamp(30px, 3.4vw, 44px); }
.pauta-close__photo p { max-width: 440px; margin: 14px 0 0; font-size: 18px; line-height: 1.5; }
.pauta-close__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.pauta-close .pauta-button--line { color: #fff; background: rgba(0, 0, 0, .35); border-color: #fff; }
.pauta-close .pauta-button:hover { color: #111; background: #fff; border-color: #fff; }
.pauta-close__steps { display: flex; flex-direction: column; justify-content: center; padding: clamp(26px, 4vw, 48px); border-top: 4px solid var(--accent); }
.pauta-close h3 { margin: 0 0 26px; font-family: Georgia, "Times New Roman", serif; font-size: 26px; line-height: 1.2; }
.pauta-close ol { display: grid; gap: 30px; margin: 0; padding: 0; list-style: none; counter-reset: paso; }
.pauta-close li { position: relative; min-height: 48px; padding-left: 68px; color: var(--muted); font-size: 17px; line-height: 1.5; counter-increment: paso; }
.pauta-close li::before { content: counter(paso); position: absolute; top: 0; left: 0; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; color: #111; background: var(--accent); font-family: Georgia, "Times New Roman", serif; font-size: 21px; font-weight: 700; }
.pauta-close li:not(:last-child)::after { content: ""; position: absolute; top: 54px; bottom: -22px; left: 22px; width: 2px; background: var(--border); }
.pauta-close li strong { display: block; color: var(--text); font-size: 18px; }

@media (max-width: 800px) {
    .pauta-hero { min-height: 440px; }
    .pauta-hero p { font-size: 18px; }
    .pauta-formats { padding-top: 48px; }
    .pauta-format,
    .pauta-format:nth-of-type(even),
    .pauta-close { grid-template-columns: 1fr; }
    .pauta-format { gap: 26px; padding: 34px 0; }
    .pauta-format:nth-of-type(even) .mock { order: 0; }
    .pauta-format__copy > p { font-size: 17px; }
    .pauta-close__photo { min-height: 380px; }
}

.preview-note { max-width: 1180px; margin: 0 auto 24px; padding: 10px 14px; color: #111; background: var(--accent); font-weight: 700; }

.live-preview { background: #fff; }
.live-preview .site-main { width: min(920px, 100%); min-height: 0; margin: 0 auto; padding: 34px 30px 80px; }
.live-preview .article-page__layout { display: block; }
@media (max-width: 640px) {
    .live-preview .site-main { padding: 18px 14px 60px; }
}

/* Video de YouTube en la cabecera del artículo. */
.article-video { position: relative; box-sizing: content-box; width: calc(100% - 20px); display: grid; place-items: center; aspect-ratio: 16 / 9; overflow: hidden; background: #111; border: 10px solid var(--surface); outline: 1px solid var(--border); box-shadow: var(--shadow); }
.article-video img, .article-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; object-fit: cover; }
.article-video__play { position: relative; display: grid; place-items: center; width: 82px; height: 82px; border-radius: 50%; color: #111; background: var(--accent); font-size: 28px; transition: transform .2s; }
.article-video__play i { margin-left: 5px; }
a.article-video:hover .article-video__play { transform: scale(1.08); }
.article-video:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
@media (max-width: 700px) { .article-video { width: calc(100% - 10px); border-width: 5px; } .article-video__play { width: 64px; height: 64px; font-size: 22px; } }

/* Etiquetas al final del artículo. */
.article-tags { margin-top: 32px; padding: 17px 0 2px; border-top: 1px solid var(--border); }
.article-tags__label { display: flex; align-items: center; gap: 8px; margin-bottom: 11px; color: var(--muted); font-size: 12px; font-weight: 700; letter-spacing: .08em; line-height: 1.2; text-transform: uppercase; }
.article-tags__label i { color: var(--accent-text); font-size: 13px; }
.article-tags__links { display: flex; flex-wrap: wrap; gap: 8px; }
.article-tags__links a { display: inline-flex; align-items: center; gap: 4px; padding: 7px 11px; border: 1px solid var(--border); border-radius: 5px; background: color-mix(in srgb, var(--surface) 82%, var(--accent) 18%); font-size: 13px; font-weight: 600; line-height: 1.2; transition: color .18s, background .18s, border-color .18s, transform .18s; }
.article-tags__links a::before { content: "#"; color: var(--accent-text); font-weight: 800; }
.article-tags__links a:hover { color: #111; background: var(--accent); border-color: var(--accent); transform: translateY(-1px); }
.article-tags__links a:hover::before { color: #111; }
.article-tags__links a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Texto justificado y formatos del editor. */
.article-page__body > p { text-align: justify; hyphens: auto; -webkit-hyphens: auto; }
.article-page__body > p.al-left, .article-page__primary .article-page__body > p.al-left { text-align: left; }
.article-page__body > p.al-center, .article-page__primary .article-page__body > p.al-center { text-align: center; }
.article-page__body > p.al-right, .article-page__primary .article-page__body > p.al-right { text-align: right; }
.tx-negro { color: #16191f; } .tx-gris { color: #6b7280; } .tx-naranja { color: #c98a00; } .tx-azul { color: #2563c9; } .tx-verde { color: #18794e; } .tx-rojo { color: #c62828; }
.bg-amarillo { background: #fff1b8; } .bg-naranja { background: #ffe3c2; } .bg-azul { background: #dbe7fb; } .bg-verde { background: #d7f2e3; } .bg-rojo { background: #fde1de; } .bg-gris { background: #e6e9ee; }
[class*="bg-"] { padding: 0 .15em; border-radius: 3px; color: #16191f; }
.body-table { margin: 30px 0; overflow-x: auto; }
.body-table table { width: 100%; border-collapse: collapse; font-family: system-ui, sans-serif; font-size: 16px; line-height: 1.45; }
.body-table th, .body-table td { padding: 10px 12px; border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; }
.body-table th { border-bottom: 2px solid var(--accent); font-weight: 700; }

/* Título y resumen del artículo a todo el ancho. */
.article-page h1 { max-width: none; font-size: clamp(32px, 3.3vw, 48px); line-height: 1.12; text-wrap: pretty; }
.article-page__lead { max-width: none; font-size: 21px; line-height: 1.6; }
@media (max-width: 700px) { .article-page h1 { font-size: 30px; } .article-page__lead { font-size: 18px; } }
/* Aviso de vista previa, discreto. */
.preview-note { display: flex; align-items: center; gap: 10px; padding: 10px 16px; border-left: 3px solid var(--accent); border-radius: 6px; color: var(--muted); background: color-mix(in srgb, var(--text) 5%, var(--background)); font-size: 14px; font-weight: 400; }
.preview-note::before { content: "\f06e"; font: var(--fa-font-solid); color: var(--accent); }
.preview-note { color: #5c4a1f; background: #fbf1d9; }
:root[data-theme="dark"] .preview-note, .dark-theme .preview-note { color: #e9dcb8; background: #3a3220; }

/* Clasificados. */
.ads-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 26px; }
.ads-head h1 { margin: 10px 0 8px; font-family: Georgia, "Times New Roman", serif; font-size: clamp(34px, 4vw, 52px); }
.ads-head p { margin: 0; color: var(--muted); font-size: 17px; }
.ads-button { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 46px; padding: 0 22px; border: 0; border-radius: 999px; color: #111; background: var(--accent); font: inherit; font-weight: 800; cursor: pointer; }
.ads-button:hover { filter: brightness(.95); }
.ads-button--whatsapp { width: 100%; color: #fff; background: #1f8f4e; }
.ads-cats { display: flex; gap: 8px; margin-bottom: 18px; overflow-x: auto; padding-bottom: 4px; }
.ads-cats a { display: inline-flex; flex: none; align-items: center; gap: 8px; padding: 9px 16px; border: 1px solid var(--border); border-radius: 999px; font-size: 15px; font-weight: 600; }
.ads-cats a:hover { border-color: var(--accent); }
.ads-cats a[aria-current] { color: #111; background: var(--accent); border-color: var(--accent); }
.ads-cats span { color: inherit; opacity: .65; font-size: 13px; }
.ads-filter { display: flex; gap: 10px; margin-bottom: 22px; }
.ads-filter input, .ads-filter select { min-height: 46px; padding: 0 16px; border: 1px solid var(--border); border-radius: 999px; color: var(--text); background: var(--surface); font: inherit; }
.ads-filter input { flex: 1; min-width: 0; }
.ads-filter button { padding: 0 22px; border: 0; border-radius: 999px; color: #fff; background: #16191f; font: inherit; font-weight: 700; cursor: pointer; }
.ads-total { margin: 0 0 14px; color: var(--muted); font-size: 14px; }
.ads-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 20px; }
.ad-card { display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); }
.ad-card.is-featured { border-color: var(--accent); box-shadow: inset 0 3px 0 var(--accent); }
.ad-card__image { position: relative; display: grid; place-items: center; aspect-ratio: 4 / 3; color: var(--muted); background: color-mix(in srgb, var(--text) 6%, var(--background)); font-size: 34px; }
.ad-card__image img { width: 100%; height: 100%; object-fit: cover; }
.ad-badge { position: absolute; top: 10px; left: 10px; padding: 4px 10px; border-radius: 6px; color: #111; background: var(--accent); font-size: 12px; font-weight: 800; }
.ad-page__box .ad-badge { position: static; display: inline-block; margin-bottom: 10px; }
.ad-card__body { display: flex; flex: 1; flex-direction: column; gap: 6px; padding: 14px 16px 16px; }
.ad-card__price { font-size: 20px; }
.ad-card__body h2 { margin: 0; font-size: 16px; line-height: 1.35; }
.ad-card__body p { margin: 0; color: var(--muted); font-size: 13.5px; }
.ad-card__whatsapp { display: inline-flex; align-items: center; gap: 7px; margin-top: auto; padding-top: 8px; color: #1f8f4e; font-weight: 700; }
.ads-pages { display: flex; align-items: center; justify-content: center; gap: 18px; margin-top: 28px; }
.ads-pages a { padding: 8px 16px; border: 1px solid var(--border); border-radius: 999px; }
.ad-page__grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; align-items: start; gap: 34px; margin-top: 18px; }
.ad-page h1 { margin: 22px 0 14px; font-family: Georgia, "Times New Roman", serif; font-size: clamp(28px, 3vw, 40px); line-height: 1.15; }
.ad-page__photo { margin: 0; overflow: hidden; border-radius: 10px; background: #111; }
.ad-page__photo img { display: block; width: 100%; max-height: 560px; object-fit: contain; }
.ad-page__thumbs { display: flex; gap: 8px; margin-top: 8px; overflow-x: auto; }
.ad-page__thumbs img { width: 110px; height: 82px; border-radius: 6px; object-fit: cover; }
.ad-page__text { font-size: 18px; line-height: 1.7; }
.ad-page__box { position: sticky; top: 100px; display: grid; gap: 10px; padding: 22px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); }
.ad-page__box p { display: flex; gap: 10px; margin: 0; color: var(--muted); }
.ad-page__box p i { width: 18px; color: var(--accent); text-align: center; }
.ad-page__price { font-size: 30px; }
.ad-page__box small { color: var(--muted); font-size: 12.5px; line-height: 1.5; }
.ads-form { max-width: 860px; }
.ads-form__card { display: grid; gap: 16px; padding: 28px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); }
.ads-form__card h2 { margin: 6px 0 0; font-size: 20px; }
.ads-form__row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.ads-field { display: grid; gap: 7px; font-weight: 700; font-size: 14.5px; }
.ads-field small { color: var(--muted); font-weight: 400; }
.ads-field input, .ads-field select, .ads-field textarea { width: 100%; min-height: 46px; padding: 10px 14px; border: 1px solid var(--border); border-radius: 8px; color: var(--text); background: var(--background); font: inherit; font-weight: 400; }
.ads-field textarea { line-height: 1.6; resize: vertical; }
.ads-check { display: flex; align-items: flex-start; gap: 10px; color: var(--muted); font-size: 14.5px; line-height: 1.5; }
.ads-check input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--accent); }
.ads-form__card > .ads-button { justify-self: start; }
.ads-form__trap { position: absolute; left: -9999px; }
.ads-form__error { padding: 12px 16px; border-left: 3px solid #c62828; border-radius: 6px; color: #8c1d18; background: #fde7e5; }
@media (max-width: 900px) {
    .ad-page__grid, .ads-form__row { grid-template-columns: minmax(0, 1fr); }
    .ad-page__box { position: static; }
    .ads-filter { flex-wrap: wrap; }
    .ads-filter select, .ads-filter button { flex: 1; }
}
@media (max-width: 900px) { .ads-filter input { flex: 1 1 100%; } }

/* Página del aviso clasificado. */
.ad-page__head { margin: 14px 0 22px; }
.ad-page__head h1 { margin: 10px 0 12px; font-size: clamp(30px, 3.2vw, 46px); line-height: 1.12; text-wrap: pretty; }
.ad-tag { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 6px; color: #5c4a1f; background: #fbf1d9; font-size: 13px; font-weight: 700; }
.ad-tag i { color: var(--accent); }
.ad-page__facts { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 22px; margin: 0; color: var(--muted); }
.ad-page__facts strong { color: var(--text); font-size: 26px; }
.ad-page__facts i { margin-right: 4px; color: var(--accent); }
.ad-page__grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; align-items: start; gap: 28px; }
.ad-page__main { display: grid; gap: 22px; }
.ad-gallery__stage { position: relative; aspect-ratio: 16 / 10; overflow: hidden; border-radius: 12px; background: #111; }
.ad-gallery__stage > img, .ad-gallery__video img { width: 100%; height: 100%; object-fit: cover; }
.ad-gallery__video { position: absolute; inset: 0; display: grid; place-items: center; }
.ad-gallery__video img { position: absolute; inset: 0; }
.ad-gallery__player, .ad-gallery__player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.ad-gallery__thumbs { display: flex; gap: 10px; margin-top: 10px; overflow-x: auto; padding-bottom: 2px; }
.ad-gallery__thumbs button { position: relative; flex: none; width: 104px; height: 74px; padding: 0; overflow: hidden; border: 2px solid transparent; border-radius: 8px; background: #111; cursor: pointer; opacity: .7; }
.ad-gallery__thumbs button:hover, .ad-gallery__thumbs button[aria-pressed="true"] { border-color: var(--accent); opacity: 1; }
.ad-gallery__thumbs img { width: 100%; height: 100%; object-fit: cover; }
.ad-gallery__thumbs .is-video i { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; background: rgb(0 0 0 / .35); font-size: 18px; }
.ad-box { padding: 24px 26px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); }
.ad-box h2 { margin: 0 0 12px; font-size: 20px; }
.ad-page__text { font-size: 17.5px; line-height: 1.75; }
.ad-details { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin: 0; }
.ad-details dt { color: var(--muted); font-size: 13px; }
.ad-details dd { margin: 3px 0 0; font-weight: 700; }
.ad-side { position: sticky; top: 100px; display: grid; gap: 16px; }
.ad-seller { display: grid; gap: 18px; }
.ad-price { font-size: 32px; font-weight: 800; line-height: 1.1; }
.ad-seller__who { display: flex; align-items: center; gap: 12px; padding: 14px 0; border-block: 1px solid var(--border); }
.ad-seller__who small, .ad-seller__who strong { display: block; }
.ad-seller__who small { color: var(--muted); font-size: 12.5px; }
.ad-avatar { display: grid; flex: none; place-items: center; width: 44px; height: 44px; border-radius: 50%; color: #111; background: var(--accent); font-weight: 800; font-size: 18px; }
.ad-share { display: flex; align-items: center; justify-content: space-between; gap: 12px; color: var(--muted); font-size: 14px; }
.ad-safe { display: flex; gap: 12px; padding: 16px 18px; border-left: 3px solid var(--accent); border-radius: 8px; color: #5c4a1f; background: #fbf1d9; }
.ad-safe i { margin-top: 3px; color: var(--accent); font-size: 18px; }
.ad-safe p { margin: 4px 0 0; font-size: 13.5px; line-height: 1.5; }
.ad-more { margin-top: 48px; padding-top: 30px; border-top: 1px solid var(--border); }
.ad-more__head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.ad-more__head h2 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: 28px; }
.ad-more__head a { color: var(--muted); font-weight: 700; }
.ad-card__body h3 { margin: 0; font-size: 16px; line-height: 1.35; }
.ad-card__video { display: inline-flex; align-items: center; gap: 6px; color: #c62828; font-size: 13px; font-weight: 700; }
.dark-theme .ad-tag, .dark-theme .ad-safe { color: #e9dcb8; background: #3a3220; }
@media (max-width: 900px) {
    .ad-page__grid { grid-template-columns: minmax(0, 1fr); }
    .ad-side { position: static; }
    .ad-details { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ad-box { padding: 20px; }
}
.ad-page__main { grid-template-columns: minmax(0, 1fr); min-width: 0; }
/* Clasificados: tarjetas compactas y parejas. */
.ads-grid { grid-template-columns: repeat(auto-fill, minmax(205px, 1fr)); gap: 16px; align-items: start; }
.ad-card { border-radius: 10px; transition: border-color .15s, transform .15s; }
.ad-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.ad-card__image { aspect-ratio: 4 / 3; overflow: hidden; color: color-mix(in srgb, var(--text) 35%, transparent); background: color-mix(in srgb, var(--accent) 10%, var(--background)); font-size: 30px; }
.ad-card__image img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ad-card__play { position: absolute; right: 10px; bottom: 10px; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; color: #111; background: var(--accent); font-size: 11px; }
.ad-card__play i { margin-left: 2px; }
.ad-card__body { gap: 4px; padding: 12px 14px 14px; }
.ad-card__body h2, .ad-card__body h3 { display: -webkit-box; overflow: hidden; min-height: 2.7em; -webkit-line-clamp: 2; -webkit-box-orient: vertical; font-size: 15px; line-height: 1.35; }
.ad-card__body p { font-size: 13px; }
.ad-card__foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 8px; padding-top: 10px; border-top: 1px solid var(--border); }
.ad-card__foot .ad-card__price { font-size: 18px; }
.ad-card__foot .ad-card__whatsapp { display: grid; place-items: center; width: 36px; height: 36px; margin: 0; padding: 0; border-radius: 50%; color: #fff; background: #1f8f4e; font-size: 18px; }
.ad-card__foot .ad-card__whatsapp:hover { background: #18794e; }
.ad-card.is-featured { box-shadow: none; }
@media (max-width: 600px) {
    .ads-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .ad-card__body { padding: 10px 10px 12px; }
    .ad-card__body h2, .ad-card__body h3 { font-size: 14px; }
    .ad-card__foot .ad-card__price { font-size: 15px; }
    .ad-card__foot .ad-card__whatsapp { width: 32px; height: 32px; font-size: 16px; }
    .ad-badge { top: 6px; left: 6px; padding: 2px 7px; font-size: 11px; }
}
/* WhatsApp de la tarjeta: discreto. */
.ad-card__foot .ad-card__whatsapp { width: 34px; height: 34px; border-radius: 8px; color: #1f8f4e; background: #e3f5ea; font-size: 18px; transition: background .15s, color .15s; }
.ad-card__foot .ad-card__whatsapp:hover { color: #fff; background: #1f8f4e; }
.dark-theme .ad-card__foot .ad-card__whatsapp { color: #8fe3b6; background: #1d3d2f; }
.dark-theme .ad-card__foot .ad-card__whatsapp:hover { color: #fff; background: #1f8f4e; }
/* Tarjeta de clasificado, al estilo del panel: foto con margen, categoría, título, fecha y precio. */
.ad-card { display: flex; flex-direction: column; padding: 10px; color: inherit; text-decoration: none; }
.ad-card .ad-card__image { border-radius: 8px; }
.ad-badge i { margin-right: 3px; font-size: 10px; }
.ad-card__media { position: absolute; right: 6px; bottom: 6px; display: flex; gap: 4px; }
.ad-card__media b { padding: 2px 7px; border-radius: 6px; color: #fff; background: rgb(22 25 31 / .78); font-size: 11.5px; font-weight: 600; }
.ad-card .ad-card__body { display: flex; flex: 1; flex-direction: column; gap: 4px; padding: 12px 4px 4px; }
.ad-card__cat { color: var(--muted); font-size: 12.5px; }
.ad-card__cat i { margin-right: 3px; color: var(--accent); }
.ad-card__title { display: -webkit-box; overflow: hidden; min-height: 2.7em; -webkit-line-clamp: 2; -webkit-box-orient: vertical; font-size: 15.5px; line-height: 1.35; }
.ad-card__age { color: var(--muted); font-size: 12.5px; }
.ad-card__age i { margin-right: 3px; }
.ad-card .ad-card__price { margin-top: auto; padding-top: 10px; border-top: 1px solid var(--border); font-size: 19px; }
.ad-card:hover .ad-card__title { text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 3px; }
@media (max-width: 600px) { .ad-card { padding: 7px; } .ad-card__title { font-size: 14px; } .ad-card .ad-card__price { font-size: 16px; } }
/* Clasificados: versión liviana, al estilo del panel. */
.ads-list { font-family: "Plus Jakarta Sans", "Segoe UI", Arial, sans-serif; }
.ads-list .ads-head { align-items: center; margin-bottom: 22px; }
.ads-list .ads-head h1 { margin: 0 0 4px; font-family: inherit; font-size: 28px; font-weight: 700; letter-spacing: -.02em; }
.ads-list .ads-head p { font-size: 15px; }
.ads-publish { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 16px; border: 1px solid var(--border); border-radius: 8px; color: var(--text); background: var(--surface); font-size: 14px; font-weight: 600; transition: border-color .15s; }
.ads-publish i { color: var(--accent); }
.ads-publish:hover { border-color: var(--accent); }
.ads-list .ads-cats { gap: 4px; margin-bottom: 16px; }
.ads-list .ads-cats a { gap: 7px; padding: 8px 14px; border: 0; border-radius: 8px; color: var(--muted); font-size: 14px; font-weight: 500; }
.ads-list .ads-cats a i { font-size: 13px; opacity: .8; }
.ads-list .ads-cats a:hover { color: var(--text); background: color-mix(in srgb, var(--text) 6%, var(--background)); }
.ads-list .ads-cats a[aria-current] { color: #fff; background: #16191f; font-weight: 600; }
.dark-theme .ads-list .ads-cats a[aria-current] { color: #111; background: var(--accent); }
.ads-list .ads-filter input, .ads-list .ads-filter select { min-height: 42px; border-radius: 8px; font-size: 14px; }
.ads-list .ads-filter button { min-height: 42px; border-radius: 8px; font-size: 14px; font-weight: 600; }
.ads-list .ads-filter input:focus, .ads-list .ads-filter select:focus { outline: 0; border-color: var(--accent); }
.ads-list .ads-total { font-size: 13px; }
.ads-list .ad-card { border-radius: 10px; }
.ads-list .ad-badge { font-weight: 600; }
.ads-list .ad-card__title { font-size: 15px; font-weight: 600; }
.ads-list .ad-card .ad-card__price { font-size: 17px; font-weight: 700; }
.ads-list .ad-card__image { background: color-mix(in srgb, var(--text) 5%, var(--background)); color: color-mix(in srgb, var(--text) 40%, transparent); }

/* Clasificados: publicar visible, ciudades, vistas y formulario liviano. */
.ads-publish { color: #fff; background: #16191f; border-color: #16191f; }
.ads-publish i { color: var(--accent); }
.ads-publish:hover { background: #2a2f38; }
.dark-theme .ads-publish { color: #111; background: var(--accent); border-color: var(--accent); }
.dark-theme .ads-publish i { color: #111; }
.ads-tools { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.ads-tools .ads-total { margin: 0 auto 0 0; }
.ads-menu { position: relative; }
.ads-menu summary { display: flex; align-items: center; gap: 8px; min-height: 38px; padding: 0 14px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); font-size: 14px; cursor: pointer; list-style: none; }
.ads-menu summary::-webkit-details-marker { display: none; }
.ads-menu summary .fa-location-dot { color: var(--accent); }
.ads-menu summary .fa-chevron-down { color: var(--muted); font-size: 11px; }
.ads-menu[open] summary, .ads-menu summary:hover { border-color: var(--accent); }
.ads-menu__panel { position: absolute; z-index: 20; top: calc(100% + 6px); right: 0; display: grid; min-width: 220px; max-height: 320px; padding: 6px; overflow-y: auto; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); box-shadow: 0 10px 30px rgb(0 0 0 / .08); }
.ads-menu__panel a { padding: 9px 12px; border-radius: 6px; font-size: 14px; }
.ads-menu__panel a:hover { background: color-mix(in srgb, var(--text) 6%, var(--background)); }
.ads-menu__panel a[aria-current] { font-weight: 700; color: var(--text); background: color-mix(in srgb, var(--accent) 16%, var(--background)); }
.ads-view { display: flex; padding: 3px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); }
.ads-view button { display: grid; place-items: center; width: 34px; height: 30px; border: 0; border-radius: 6px; color: var(--muted); background: none; cursor: pointer; }
.ads-view button[aria-pressed="true"] { color: #fff; background: #16191f; }
.dark-theme .ads-view button[aria-pressed="true"] { color: #111; background: var(--accent); }
.ad-card__text { display: none; }
.ads-grid.is-list { grid-template-columns: minmax(0, 1fr); gap: 10px; }
.ads-grid.is-list .ad-card { flex-direction: row; align-items: stretch; gap: 18px; }
.ads-grid.is-list .ad-card__image { flex: none; width: 220px; aspect-ratio: 4 / 3; }
.ads-grid.is-list .ad-card .ad-card__body { padding: 4px 8px 4px 0; }
.ads-grid.is-list .ad-card__title { min-height: 0; font-size: 17px; }
.ads-grid.is-list .ad-card__text { display: -webkit-box; overflow: hidden; -webkit-line-clamp: 2; -webkit-box-orient: vertical; color: var(--muted); font-size: 14px; line-height: 1.5; }
.ads-grid.is-list .ad-card .ad-card__price { margin-top: auto; padding-top: 8px; border: 0; font-size: 19px; }
.ads-form { max-width: 820px; margin-inline: auto; }
.ads-form__head { margin-bottom: 20px; }
.ads-form__head h1 { margin: 10px 0 6px; font-size: 28px; font-weight: 700; letter-spacing: -.02em; }
.ads-form__head p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.6; }
.ads-back { display: inline-flex; align-items: center; gap: 7px; color: var(--muted); font-size: 14px; }
.ads-back:hover { color: var(--text); }
.ads-list .ads-form__card { gap: 14px; padding: 26px; border-radius: 12px; }
.ads-list .ads-form__card h2 { margin: 4px 0 0; padding-bottom: 8px; border-bottom: 1px solid var(--border); font-size: 16px; font-weight: 700; }
.ads-list .ads-field { font-size: 13.5px; font-weight: 600; }
.ads-list .ads-field input, .ads-list .ads-field select, .ads-list .ads-field textarea { min-height: 42px; font-size: 14.5px; }
.ads-list .ads-field input:focus, .ads-list .ads-field select:focus, .ads-list .ads-field textarea:focus { outline: 0; border-color: var(--accent); }
.ads-submit { justify-self: start; display: inline-flex; align-items: center; gap: 9px; min-height: 44px; padding: 0 22px; border: 0; border-radius: 8px; color: #fff; background: #16191f; font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; }
.ads-submit i { color: var(--accent); }
.ads-submit:hover { background: #2a2f38; }
.dark-theme .ads-submit { color: #111; background: var(--accent); }
.dark-theme .ads-submit i { color: #111; }
@media (max-width: 700px) {
    .ads-tools { flex-wrap: wrap; }
    .ads-tools .ads-total { width: 100%; }
    .ads-menu { flex: 1; }
    .ads-menu__panel { left: 0; right: auto; }
    .ads-grid.is-list .ad-card__image { width: 120px; }
    .ads-grid.is-list .ad-card__text { display: none; }
    .ads-grid.is-list .ad-card__title { font-size: 14.5px; }
    .ads-grid.is-list .ad-card { gap: 12px; }
    .ads-list .ads-form__card { padding: 18px; }
}

/* Formulario de clasificados con la identidad del periódico. */
.ads-form { max-width: 1120px; }
.ads-form__head { margin-bottom: 26px; }
.ads-form__head .ads-back { display: flex; margin-bottom: 18px; }
.ads-form__head h1 { margin: 10px 0 8px; font-family: Georgia, "Times New Roman", serif; font-size: clamp(30px, 3vw, 40px); font-weight: 700; letter-spacing: -.01em; }
.ads-form__head p { max-width: 640px; font-size: 16px; }
.ads-form__grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; align-items: start; gap: 26px; }
.ads-list .ads-form__card { gap: 16px; padding: 28px 30px; border-top: 3px solid var(--accent); }
.ads-list .ads-form__card h2 { display: flex; align-items: center; gap: 10px; margin-top: 8px; padding-bottom: 10px; font-family: Georgia, "Times New Roman", serif; font-size: 20px; }
.ads-list .ads-form__card h2:first-of-type { margin-top: 0; }
.ads-list .ads-form__card h2 span { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; color: #111; background: var(--accent); font-family: "Segoe UI", Arial, sans-serif; font-size: 14px; font-weight: 800; }
.ads-drop { position: relative; display: grid; justify-items: center; gap: 4px; padding: 22px; border: 2px dashed var(--border); border-radius: 10px; text-align: center; cursor: pointer; transition: border-color .15s, background .15s; }
.ads-drop:hover, .ads-drop:focus-within { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 6%, var(--background)); }
.ads-drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.ads-drop i { color: var(--accent); font-size: 26px; }
.ads-drop strong { font-size: 15px; }
.ads-drop small { color: var(--muted); font-size: 13px; font-weight: 400; }
.ads-help { position: sticky; top: 100px; display: grid; gap: 16px; }
.ads-help h2 { margin: 0 0 14px; font-family: Georgia, "Times New Roman", serif; font-size: 20px; }
.ads-help__box { padding: 24px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); }
.ads-help__box ol { display: grid; gap: 16px; margin: 0; padding: 0; list-style: none; counter-reset: paso; }
.ads-help__box li { position: relative; display: grid; gap: 2px; padding-left: 42px; counter-increment: paso; }
.ads-help__box li::before { content: counter(paso); position: absolute; top: 0; left: 0; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; color: #111; background: var(--accent); font-size: 14px; font-weight: 800; }
.ads-help__box li span { color: var(--muted); font-size: 14px; line-height: 1.45; }
.ads-help__tips { padding: 20px 22px; border-left: 3px solid var(--accent); border-radius: 8px; color: #5c4a1f; background: #fbf1d9; }
.ads-help__tips h2 { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; font-size: 17px; }
.ads-help__tips h2 i { color: var(--accent); }
.ads-help__tips ul { display: grid; gap: 6px; margin: 0; padding-left: 18px; font-size: 14px; line-height: 1.5; }
.dark-theme .ads-help__tips { color: #e9dcb8; background: #3a3220; }
@media (max-width: 960px) {
    .ads-form__grid { grid-template-columns: minmax(0, 1fr); }
    .ads-help { position: static; order: -1; }
    .ads-help__tips { display: none; }
}
@media (max-width: 960px) { .ads-help { order: 2; } .ads-help__tips { display: block; } }
/* Formulario de clasificados: recuadro gris clarito, casillas blancas. */
.ads-list .ads-form__card { background: #f4f5f7; border-color: #e3e5e9; }
.ads-list .ads-form__card .ads-field input, .ads-list .ads-form__card .ads-field select, .ads-list .ads-form__card .ads-field textarea, .ads-list .ads-form__card .ads-drop { background: #fff; }
.ads-list .ads-form__card h2 { border-bottom-color: #e3e5e9; }
.dark-theme .ads-list .ads-form__card { background: #1b1b18; border-color: #2c2c28; }
.dark-theme .ads-list .ads-form__card .ads-field input, .dark-theme .ads-list .ads-form__card .ads-field select, .dark-theme .ads-list .ads-form__card .ads-field textarea, .dark-theme .ads-list .ads-form__card .ads-drop { background: #11110f; }
.ads-list .ads-form__card { border-top: 3px solid var(--accent); }

/* Clasificados: identidad del periódico y bloque de búsqueda. */
.ads-list .ads-head { align-items: flex-end; margin-bottom: 20px; }
.ads-list .ads-head h1 { margin: 10px 0 6px; font-family: Georgia, "Times New Roman", serif; font-size: clamp(30px, 3vw, 40px); font-weight: 700; letter-spacing: -.01em; }
.ads-finder { display: grid; gap: 14px; margin-bottom: 24px; padding: 20px 22px; border: 1px solid #e3e5e9; border-top: 3px solid var(--accent); border-radius: 12px; background: #f4f5f7; }
.ads-finder .ads-filter { margin: 0; }
.ads-filter__field { position: relative; display: flex; flex: 1; align-items: center; min-width: 0; }
.ads-filter__field i { position: absolute; left: 15px; color: var(--accent); font-size: 15px; }
.ads-list .ads-finder .ads-filter input { width: 100%; padding-left: 42px; background: #fff; font-size: 15px; }
.ads-list .ads-finder .ads-cats { margin: 0; }
.ads-list .ads-finder .ads-cats a:hover { background: #fff; }
.ad-card__empty { display: grid; justify-items: center; gap: 6px; }
.ad-card__empty i { color: var(--accent); font-size: 30px; }
.ad-card__empty small { color: #8a6a1c; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.ads-list .ad-card__image { background: #fbf4e3; }
.dark-theme .ads-finder { border-color: #2c2c28; background: #1b1b18; }
.dark-theme .ads-list .ads-finder .ads-filter input { background: #11110f; }
.dark-theme .ads-list .ads-finder .ads-cats a:hover { background: #11110f; }
.dark-theme .ads-list .ad-card__image { background: #2a2518; }
.dark-theme .ad-card__empty small { color: #e9dcb8; }
@media (max-width: 700px) { .ads-finder { padding: 14px; } .ads-filter__field { flex-basis: 100%; } }
.ads-list .ad-card.is-featured, .ad-card.is-featured { border-color: var(--border); box-shadow: none; }
/* Al pasar el mouse: borde gris discreto, sin amarillo. */
.ad-card:hover, .ads-list .ad-card:hover { border-color: color-mix(in srgb, var(--text) 28%, var(--background)); }
/* Tarjetas públicas de clasificados con el diseño de las del panel. */
.ads-list .ads-grid { grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 18px; }
.ads-list .ad-card { padding: 12px; border-radius: 12px; }
.ads-list .ad-card:hover { transform: none; }
.ads-list .ad-card__image { aspect-ratio: 16 / 10; border-radius: 8px; }
.ads-list .ad-card .ad-card__body { gap: 6px; padding: 14px 4px 2px; }
.ads-list .ad-card__cat { font-size: 13px; }
.ads-list .ad-card__title { min-height: 2.6em; font-size: 16.5px; font-weight: 600; line-height: 1.3; color: var(--text); }
.ad-card__meta { display: flex; flex-wrap: wrap; gap: 4px 14px; color: var(--muted); font-size: 13px; }
.ad-card__meta i { margin-right: 4px; }
.ad-card__foot2 { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 8px; padding-top: 12px; border-top: 1px solid var(--border); }
.ads-list .ad-card .ad-card__foot2 .ad-card__price { margin: 0; padding: 0; border: 0; font-size: 20px; font-weight: 700; }
.ad-card__more { display: inline-flex; align-items: center; gap: 7px; padding: 7px 12px; border: 1px solid var(--border); border-radius: 8px; color: var(--text); font-size: 13.5px; font-weight: 600; white-space: nowrap; transition: background .15s, color .15s, border-color .15s; }
.ad-card__more i { font-size: 11px; color: var(--accent); }
.ads-list .ad-card:hover .ad-card__more { color: #fff; background: #16191f; border-color: #16191f; }
.ads-list .ad-card:hover .ad-card__title { text-decoration: none; }
.dark-theme .ads-list .ad-card:hover .ad-card__more { color: #111; background: var(--accent); border-color: var(--accent); }
.ads-grid.is-list .ad-card__foot2 { margin-top: auto; }
.ads-grid.is-list .ad-card__image { aspect-ratio: 4 / 3; }
@media (max-width: 600px) {
    .ads-list .ads-grid { grid-template-columns: minmax(0, 1fr); }
    .ads-grid.is-list .ad-card__more { display: none; }
}
.ads-list .ads-grid.is-list { grid-template-columns: minmax(0, 1fr); gap: 12px; } .ads-list .ads-grid.is-list .ad-card__image { width: 260px; aspect-ratio: 16 / 10; }
/* Destacado en verde y cambio claro al pasar el mouse. */
.ads-list .ad-badge, .ad-page__head .ad-tag { color: #fff; background: #18794e; }
.ads-list .ad-badge i, .ad-page__head .ad-tag i { color: #ffd66b; }
.ads-list .ad-card { transition: border-color .2s; }
.ads-list .ad-card__image img { transition: transform .35s ease; }
.ads-list .ad-card:hover { border-color: #16191f; }
.ads-list .ad-card:hover .ad-card__image img { transform: scale(1.06); }
.ads-list .ad-card:hover .ad-card__empty i { transform: scale(1.12); }
.ad-card__empty i { transition: transform .3s ease; }
.dark-theme .ads-list .ad-card:hover { border-color: var(--accent); }
@media (prefers-reduced-motion: reduce) { .ads-list .ad-card__image img, .ad-card__empty i { transition: none; } }
/* Tarjeta pública igual a la del panel: precio en su línea y botón debajo. */
.ads-list .ad-card { padding: 12px; border-color: #e6e9ee; border-radius: 8px; }
.ads-list .ad-card__image { border-radius: 6px; }
.ads-list .ad-card .ad-card__body { gap: 8px; padding: 14px 2px 2px; }
.ads-list .ad-card__title { min-height: 2.6em; font-size: 17px; }
.ads-list .ad-card__foot2 { display: grid; gap: 14px; margin-top: 10px; padding-top: 14px; }
.ads-list .ad-card .ad-card__foot2 .ad-card__price { font-size: 21px; }
.ads-list .ad-card__more { justify-content: center; gap: 8px; width: 100%; min-height: 38px; padding: 0 12px; border-color: #e6e9ee; font-size: 14px; }
.ads-list .ad-card__more i { color: inherit; font-size: 14px; }
.ads-grid.is-list .ad-card__foot2 { grid-template-columns: 1fr auto; align-items: center; }
.ads-grid.is-list .ad-card__more { width: auto; }
.ads-list .ad-card__image { background: #e6e9ee; }
.ads-list .ad-card__empty i { color: #4b5563; font-size: 34px; }
.ads-list .ad-card__empty small { display: none; }
.dark-theme .ads-list .ad-card__image { background: #2a2a26; }
.dark-theme .ads-list .ad-card__empty i { color: #9ca3af; }
.ads-list .ads-grid:not(.is-list) .ad-card__more { display: flex; justify-self: stretch; }
.ads-list .ads-grid:not(.is-list) .ad-card__foot2 { grid-template-columns: minmax(0, 1fr); width: 100%; }
/* Avisos sin foto: vuelve el icono naranja sobre crema con la categoría. */
.ads-list .ad-card__image { background: #fbf4e3; }
.ads-list .ad-card__empty i { color: var(--accent); font-size: 30px; }
.ads-list .ad-card__empty small { display: block; }
.dark-theme .ads-list .ad-card__image { background: #2a2518; }
.dark-theme .ads-list .ad-card__empty i { color: var(--accent); }
/* Tarjetas de clasificados con fondo gris clarito, como el formulario. */
.ads-list .ad-card { background: #f4f5f7; border-color: #e3e5e9; }
.ads-list .ad-card__foot2 { border-top-color: #e3e5e9; }
.ads-list .ad-card__more { background: #fff; }
.dark-theme .ads-list .ad-card { background: #1b1b18; border-color: #2c2c28; }
.dark-theme .ads-list .ad-card__more { background: #11110f; }
/* Aviso destacado: tarjeta negra. */
.ads-list .ad-card.is-featured { background: #16191f; border-color: #16191f; }
.ads-list .ad-card.is-featured .ad-card__title, .ads-list .ad-card.is-featured .ad-card__price { color: #fff; }
.ads-list .ad-card.is-featured .ad-card__cat, .ads-list .ad-card.is-featured .ad-card__meta { color: #b8bec8; }
.ads-list .ad-card.is-featured .ad-card__foot2 { border-top-color: #2f343d; }
.ads-list .ad-card.is-featured .ad-card__more { color: #111; background: #f5a300; border-color: #f5a300; }
.ads-list .ad-card.is-featured:hover { border-color: #f5a300; }
.ads-list .ad-card.is-featured:hover .ad-card__more { color: #111; background: #fff; border-color: #fff; }
/* Sin línea negra al pasar el mouse; textos legibles en el destacado del listado. */
.ads-list .ad-card:not(.is-featured):hover { border-color: #e3e5e9; }
.dark-theme .ads-list .ad-card:not(.is-featured):hover { border-color: #2c2c28; }
.ads-list .ad-card.is-featured .ad-card__text { color: #d5d9e0; }
/* Tarjetas vivas al pasar el mouse. */
.ads-list .ad-card { transition: transform .22s ease, background-color .22s ease; will-change: transform; }
.ads-list .ad-card:hover { transform: translateY(-5px); }
.ads-list .ad-card:not(.is-featured):hover { background: #eceef2; }
.ads-list .ad-card.is-featured:hover { background: #0f1115; }
.ads-list .ad-card__more { transition: background .2s, color .2s, border-color .2s; }
.dark-theme .ads-list .ad-card:not(.is-featured):hover { background: #22221e; }
@media (prefers-reduced-motion: reduce) { .ads-list .ad-card, .ads-list .ad-card:hover { transition: none; transform: none; } }
/* Modo oscuro: el destacado en tostado oscuro para que se distinga. */
.dark-theme .ads-list .ad-card.is-featured { background: #3a2e12; border-color: #3a2e12; }
.dark-theme .ads-list .ad-card.is-featured:hover { background: #45371a; }
.dark-theme .ads-list .ad-card.is-featured .ad-card__foot2 { border-top-color: #5a4825; }
.dark-theme .ads-list .ad-card.is-featured .ad-card__cat, .dark-theme .ads-list .ad-card.is-featured .ad-card__meta { color: #e2d3ae; }

/* Tarjeta: enlace que cubre toda la tarjeta, favoritos y visitas. */
.ads-list .ad-card { position: relative; cursor: pointer; }
.ad-card__link { color: inherit; }
.ad-card__link::after { content: ""; position: absolute; z-index: 1; inset: 0; border-radius: inherit; }
.ads-list .ad-card__actions { position: relative; z-index: 2; display: flex; gap: 8px; align-items: stretch; }
.ads-list .ad-card__actions .ad-card__more { flex: 1; }
.ad-card__fav { display: grid; place-items: center; width: 40px; min-height: 38px; border: 1px solid #e3e5e9; border-radius: 8px; color: #6b7280; background: #fff; font-size: 16px; cursor: pointer; transition: color .15s, transform .15s; }
.ad-card__fav:hover { color: #e0245e; }
.ad-card__fav[aria-pressed="true"] { color: #e0245e; border-color: #f6c1d0; background: #fdecef; }
.ad-card__fav:active { transform: scale(.9); }
.ad-card__views { display: inline-flex; align-items: center; gap: 6px; padding: 0 10px; border: 1px solid #e3e5e9; border-radius: 8px; color: #6b7280; background: #fff; font-size: 13px; font-weight: 600; white-space: nowrap; }
.ads-list .ad-card.is-featured .ad-card__fav, .ads-list .ad-card.is-featured .ad-card__views { border-color: #2f343d; color: #d5d9e0; background: #22262d; }
.ads-list .ad-card.is-featured .ad-card__fav[aria-pressed="true"] { color: #ff6b93; }
.ads-favs { display: inline-flex; align-items: center; gap: 7px; min-height: 38px; padding: 0 14px; border: 1px solid var(--border); border-radius: 8px; color: var(--text); background: var(--surface); font: inherit; font-size: 14px; cursor: pointer; }
.ads-favs i { color: #e0245e; }
.ads-favs b { min-width: 20px; padding: 0 6px; border-radius: 99px; background: color-mix(in srgb, var(--text) 8%, var(--background)); font-size: 12px; text-align: center; }
.ads-favs[aria-pressed="true"] { border-color: #e0245e; }
.ad-card[hidden] { display: none !important; }
.ads-grid.is-list .ad-card__actions { width: auto; }

/* Modo oscuro de clasificados con los grises del panel. */
.dark-theme .ads-finder { border-color: #2d323a; background: #1d2026; }
.dark-theme .ads-list .ads-finder .ads-filter input { border-color: #353b45; background: #14161a; }
.dark-theme .ads-list .ad-card { border-color: #2d323a; background: #1d2026; }
.dark-theme .ads-list .ad-card:not(.is-featured):hover { border-color: #2d323a; background: #232730; }
.dark-theme .ads-list .ad-card__image { background: #2a2f38; }
.dark-theme .ads-list .ad-card__empty small { color: #c9ced6; }
.dark-theme .ads-list .ad-card__foot2 { border-top-color: #2d323a; }
.dark-theme .ads-list .ad-card__title, .dark-theme .ads-list .ad-card__price { color: #f1f3f6; }
.dark-theme .ads-list .ad-card__more, .dark-theme .ad-card__fav, .dark-theme .ad-card__views { border-color: #353b45; color: #e6e9ee; background: #14161a; }
.dark-theme .ads-list .ad-card:not(.is-featured):hover .ad-card__more { color: #111; background: #f5a300; border-color: #f5a300; }
.dark-theme .ads-list .ad-card.is-featured { background: #2c323c; border-color: #f5a300; }
.dark-theme .ads-list .ad-card.is-featured:hover { background: #333a45; }
.dark-theme .ads-list .ad-card.is-featured .ad-card__foot2 { border-top-color: #404755; }
.dark-theme .ads-list .ad-card.is-featured .ad-card__cat, .dark-theme .ads-list .ad-card.is-featured .ad-card__meta { color: #c9ced6; }
.dark-theme .ads-list .ad-card.is-featured .ad-card__fav, .dark-theme .ads-list .ad-card.is-featured .ad-card__views { border-color: #404755; background: #1d2026; }
.dark-theme .ads-list .ad-card.is-featured { border-color: #3a414d; background: #343b47; } .dark-theme .ads-list .ad-card.is-featured:hover { border-color: #3a414d; background: #3b4350; }
/* Modo oscuro: el destacado se invierte y va en blanco. */
.dark-theme .ads-list .ad-card.is-featured, .dark-theme .ads-list .ad-card.is-featured:hover { border-color: #fff; background: #fff; }
.dark-theme .ads-list .ad-card.is-featured .ad-card__title, .dark-theme .ads-list .ad-card.is-featured .ad-card__price, .dark-theme .ads-list .ad-card.is-featured .ad-card__text { color: #16191f; }
.dark-theme .ads-list .ad-card.is-featured .ad-card__cat, .dark-theme .ads-list .ad-card.is-featured .ad-card__meta { color: #5b6270; }
.dark-theme .ads-list .ad-card.is-featured .ad-card__foot2 { border-top-color: #e3e5e9; }
.dark-theme .ads-list .ad-card.is-featured .ad-card__fav, .dark-theme .ads-list .ad-card.is-featured .ad-card__views { border-color: #e3e5e9; color: #4b5563; background: #f4f5f7; }
.dark-theme .ads-list .ad-card.is-featured .ad-card__more { color: #111; background: #f5a300; border-color: #f5a300; }
/* Corazón rosado y visitas en verde, en claro y oscuro. */
.ad-card__fav[aria-pressed="true"], .dark-theme .ads-list .ad-card .ad-card__fav[aria-pressed="true"] { color: #e0245e; border-color: #f6c1d0; background: #fdecef; }
.dark-theme .ads-list .ad-card:not(.is-featured) .ad-card__fav[aria-pressed="true"] { color: #ff6b93; border-color: #6b2a3c; background: #3a1f28; }
.dark-theme .ads-list .ad-card .ad-card__fav:hover { color: #ff6b93; }
.ad-card__views, .ads-list .ad-card .ad-card__views { color: #18794e; border-color: #c9ead8; background: #e8f6ee; }
.dark-theme .ads-list .ad-card:not(.is-featured) .ad-card__views { color: #8fe3b6; border-color: #24503c; background: #1d3d2f; }
.dark-theme .ads-list .ad-card.is-featured .ad-card__views { color: #18794e; border-color: #c9ead8; background: #e8f6ee; }
.ads-list .ad-card.is-featured .ad-card__views { color: #8fe3b6; border-color: #24503c; background: #1d3d2f; }
.dark-theme .ads-list .ad-card.is-featured .ad-card__views { color: #18794e; border-color: #c9ead8; background: #e8f6ee; }
/* Botón del destacado: blanco normal, amarillo al pasar el mouse. */
.ads-list .ad-card.is-featured .ad-card__more, .dark-theme .ads-list .ad-card.is-featured .ad-card__more { color: #111; background: #fff; border-color: #fff; }
.dark-theme .ads-list .ad-card.is-featured .ad-card__more { border-color: #d5d9e0; }
.ads-list .ad-card.is-featured:hover .ad-card__more, .dark-theme .ads-list .ad-card.is-featured:hover .ad-card__more { color: #111; background: #f5a300; border-color: #f5a300; }

/* Cuentas de lectores y contacto protegido. */
.reader { max-width: 620px; margin-inline: auto; }
.reader__tabs { display: flex; gap: 4px; margin-bottom: 14px; }
.reader__tabs a { padding: 8px 16px; border-radius: 8px; color: var(--muted); font-size: 14.5px; font-weight: 600; }
.reader__tabs a[aria-current] { color: #fff; background: #16191f; }
.dark-theme .reader__tabs a[aria-current] { color: #111; background: var(--accent); }
.reader__form { gap: 16px; }
.reader__team { margin-top: 18px; color: var(--muted); font-size: 14px; text-align: center; }
.reader__team a, .ads-check a { color: var(--text); text-decoration: underline; text-decoration-color: var(--accent); }
.reader__box { padding: 24px; border: 1px solid #e3e5e9; border-top: 3px solid var(--accent); border-radius: 12px; background: #f4f5f7; }
.reader__box h2 { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; font-family: Georgia, serif; font-size: 22px; }
.reader__box h2 i { color: #e0245e; }
.reader__box h2 small { padding: 2px 9px; border-radius: 99px; background: #fff; font-family: inherit; font-size: 13px; }
.reader__empty { margin: 0; color: var(--muted); }
.reader__favs { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.reader__favs a { display: grid; grid-template-columns: 84px minmax(0, 1fr); grid-template-rows: auto auto; gap: 2px 14px; align-items: center; padding: 10px; border-radius: 8px; background: #fff; }
.reader__favs img, .reader__favs a > span { grid-row: 1 / 3; width: 84px; height: 62px; border-radius: 6px; object-fit: cover; }
.reader__favs a > span { display: grid; place-items: center; color: var(--accent); background: #fbf4e3; font-size: 20px; }
.reader__favs small { color: var(--muted); }
.reader__out { display: flex; align-items: center; gap: 18px; margin-top: 20px; }
.reader__out a { color: var(--muted); }
.dark-theme .reader__box { border-color: #2d323a; background: #1d2026; }
.dark-theme .reader__box h2 small, .dark-theme .reader__favs a { background: #14161a; }
.ad-locked { display: grid; justify-items: center; gap: 10px; padding: 18px; border-radius: 10px; background: #f4f5f7; text-align: center; }
.ad-locked > i { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; color: #18794e; background: #e8f6ee; font-size: 18px; }
.ad-locked p { margin: 0; color: var(--muted); font-size: 13.5px; line-height: 1.5; }
.ad-locked p strong { display: block; color: var(--text); font-size: 15px; }
.ad-locked .ads-submit { justify-self: stretch; justify-content: center; }
.ad-locked__new { color: var(--text); font-size: 14px; font-weight: 600; text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 3px; }
.dark-theme .ad-locked { background: #1d2026; }
.ads-safe-note { display: flex; gap: 12px; margin: 0; padding: 14px 16px; border-left: 3px solid #18794e; border-radius: 8px; color: #1f4d36; background: #e8f6ee; font-size: 14px; line-height: 1.5; }
.ads-safe-note i { margin-top: 3px; color: #18794e; }
.dark-theme .ads-safe-note { color: #c8f0da; background: #1d3d2f; }
a.ads-favs { text-decoration: none; }
/* Visitas en verde solo en el destacado; en las demás, neutras como el corazón. */
.ads-list .ad-card:not(.is-featured) .ad-card__views { color: #6b7280; border-color: #e3e5e9; background: #fff; }
.dark-theme .ads-list .ad-card:not(.is-featured) .ad-card__views { color: #e6e9ee; border-color: #353b45; background: #14161a; }
/* Formularios en modo oscuro con los grises del panel. */
.dark-theme .ads-list .ads-form__card { border-color: #2d323a; border-top-color: var(--accent); background: #1d2026; }
.dark-theme .ads-list .ads-form__card h2 { border-bottom-color: #2d323a; }
.dark-theme .ads-list .ads-form__card .ads-field input, .dark-theme .ads-list .ads-form__card .ads-field select, .dark-theme .ads-list .ads-form__card .ads-field textarea { border-color: #3a414d; color: #f1f3f6; background: #2a2f38; }
.dark-theme .ads-list .ads-form__card .ads-field input:focus, .dark-theme .ads-list .ads-form__card .ads-field select:focus, .dark-theme .ads-list .ads-form__card .ads-field textarea:focus { border-color: var(--accent); }
.dark-theme .ads-list .ads-form__card .ads-field input::placeholder, .dark-theme .ads-list .ads-form__card .ads-field textarea::placeholder { color: #8a919c; }
.dark-theme .ads-list .ads-form__card .ads-drop { border-color: #3a414d; background: #2a2f38; }
.dark-theme .ads-list .ads-form__card .ads-field > span { color: #e6e9ee; }
.dark-theme .ads-help__box { border-color: #2d323a; background: #1d2026; }
.dark-theme .reader__tabs a { color: #b8bec8; }
/* Enlaces de los formularios sin subrayado naranja: en negrita y subrayado solo al pasar el mouse. */
.reader__team a, .ads-check a, .ad-locked__new { color: var(--text); font-weight: 700; text-decoration: none; }
.reader__team a:hover, .ads-check a:hover, .ad-locked__new:hover { text-decoration: underline; text-decoration-color: currentColor; text-decoration-thickness: 1px; }
/* Política de privacidad. */
.policy h2 { margin: 1.6em 0 .5em; font-family: Georgia, serif; font-size: 24px; }
.policy ul { padding-left: 1.2em; }
.policy li { margin-bottom: .4em; }
.policy__date { color: var(--muted); font-size: 15px; }
.policy-missing { padding: 1px 6px; border-radius: 4px; color: #8c1d18; background: #fde1de; font-size: .85em; }

/* Detalle del aviso en modo oscuro con los grises del panel. */
.dark-theme .ad-box, .dark-theme .ad-gallery__thumbs button { border-color: #2d323a; background: #1d2026; }
.dark-theme .ad-locked { background: #2a2f38; }
.dark-theme .ad-locked > i { color: #8fe3b6; background: #1d3d2f; }
.dark-theme .ad-seller__who { border-color: #2d323a; }
.dark-theme .ad-safe { color: #e9dcb8; background: #2a2618; }
.dark-theme .ad-more { border-top-color: #2d323a; }
.ads-grid--more { grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); }
/* "Compre con cuidado" en modo oscuro: gris del panel con raya naranja. */
.dark-theme .ad-safe, .dark-theme .ads-help__tips { color: #c9ced6; background: #1d2026; border: 1px solid #2d323a; border-left: 3px solid var(--accent); }
.dark-theme .ad-safe strong, .dark-theme .ads-help__tips h2 { color: #f1f3f6; }
/* Título del aviso más moderado. */
.ad-page__head h1 { max-width: 900px; margin: 8px 0 10px; font-size: clamp(24px, 2.1vw, 31px); font-weight: 700; line-height: 1.22; }
.ad-page__facts strong { font-size: 22px; }
.ad-page__facts { font-size: 15px; }
@media (max-width: 700px) { .ad-page__head h1 { font-size: 23px; } }
.ad-page__head h1 { max-width: none; text-wrap: pretty; }

/* Fotos del aviso en grande. */
.ad-gallery { position: relative; }
.ad-gallery__zoom { position: absolute; z-index: 3; top: 12px; right: 12px; display: inline-flex; align-items: center; gap: 7px; padding: 7px 12px; border: 0; border-radius: 8px; color: #fff; background: rgb(22 25 31 / .72); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.ad-gallery__zoom:hover { background: #16191f; }
.ad-gallery__stage > img { cursor: zoom-in; }
.lightbox { width: 100vw; max-width: 100vw; height: 100vh; max-height: 100vh; margin: 0; padding: 0; border: 0; background: rgb(8 9 11 / .96); }
.lightbox[open] { display: grid; place-items: center; }
.lightbox::backdrop { background: rgb(0 0 0 / .8); }
.lightbox img { max-width: calc(100vw - 140px); max-height: calc(100vh - 100px); object-fit: contain; border-radius: 6px; user-select: none; }
.lightbox__close, .lightbox__nav { position: fixed; display: grid; place-items: center; width: 48px; height: 48px; border: 0; border-radius: 50%; color: #fff; background: rgb(255 255 255 / .12); font-size: 20px; cursor: pointer; }
.lightbox__close:hover, .lightbox__nav:hover { color: #111; background: #f5a300; }
.lightbox__close { top: 18px; right: 18px; }
.lightbox__nav--prev { top: 50%; left: 20px; transform: translateY(-50%); }
.lightbox__nav--next { top: 50%; right: 20px; transform: translateY(-50%); }
.lightbox.is-single .lightbox__nav, .lightbox.is-single .lightbox__count { display: none; }
.lightbox__count { position: fixed; bottom: 20px; left: 50%; padding: 5px 12px; border-radius: 99px; color: #fff; background: rgb(255 255 255 / .12); font-size: 14px; transform: translateX(-50%); }
@media (max-width: 700px) {
    .lightbox img { max-width: 100vw; max-height: calc(100vh - 140px); border-radius: 0; }
    .lightbox__nav { top: auto; bottom: 14px; transform: none; }
    .ad-gallery__zoom span { display: none; }
}

/* Fotos en grande, dentro del aviso: se ve la página detrás, barra con el aviso y miniaturas. */
.lightbox { display: none; grid-template-rows: auto minmax(0, 1fr) auto; background: rgb(17 19 23 / .82); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.lightbox[open] { display: grid; place-items: stretch; }
.lightbox::backdrop { background: transparent; }
.lightbox__bar { display: flex; align-items: center; gap: 18px; padding: 14px 22px; color: #fff; background: rgb(0 0 0 / .35); }
.lightbox__bar > div { display: grid; flex: 1; min-width: 0; }
.lightbox__bar strong { overflow: hidden; font-family: Georgia, serif; font-size: 18px; text-overflow: ellipsis; white-space: nowrap; }
.lightbox__bar > div span { color: #c9ced6; font-size: 14px; }
.lightbox .lightbox__count { position: static; transform: none; }
.lightbox .lightbox__close { position: static; width: auto; height: 40px; padding: 0 16px; gap: 8px; display: inline-flex; border-radius: 8px; font: inherit; font-size: 14px; font-weight: 600; }
.lightbox > img { place-self: center; max-width: calc(100vw - 160px); max-height: calc(100vh - 210px); box-shadow: 0 20px 60px rgb(0 0 0 / .45); }
.lightbox__thumbs { display: flex; justify-content: center; gap: 8px; padding: 12px 16px 16px; overflow-x: auto; }
.lightbox__thumbs button { flex: none; width: 76px; height: 54px; padding: 0; overflow: hidden; border: 2px solid transparent; border-radius: 6px; background: #000; opacity: .55; cursor: pointer; }
.lightbox__thumbs button[aria-pressed="true"], .lightbox__thumbs button:hover { border-color: #f5a300; opacity: 1; }
.lightbox__thumbs img { width: 100%; height: 100%; object-fit: cover; box-shadow: none; border-radius: 0; max-width: none; max-height: none; }
.lightbox.is-single .lightbox__thumbs { display: none; }
@media (max-width: 700px) {
    .lightbox__bar { padding: 10px 12px; gap: 10px; }
    .lightbox__bar strong { font-size: 15px; }
    .lightbox .lightbox__close span { display: none; }
    .lightbox > img { max-width: 100vw; max-height: calc(100vh - 200px); }
    .lightbox__nav { bottom: 84px; }
}

/* Video en grande. */
.lightbox > img[hidden] { display: none; }
.lightbox__video { place-self: center; width: min(calc(100vw - 160px), calc((100vh - 210px) * 16 / 9)); aspect-ratio: 16 / 9; overflow: hidden; border-radius: 6px; background: #000; box-shadow: 0 20px 60px rgb(0 0 0 / .45); }
.lightbox__video[hidden] { display: none; }
.lightbox__video iframe { width: 100%; height: 100%; border: 0; }
.lightbox__thumbs button { position: relative; }
.lightbox__thumbs .is-video i { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; background: rgb(0 0 0 / .35); font-size: 15px; }
@media (max-width: 700px) { .lightbox__video { width: 100vw; border-radius: 0; } }
/* Botón de Clasificados en la barra superior. */
.topbar-ads { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 16px; border: 1px solid var(--border); border-radius: 999px; color: var(--text); font-size: 14.5px; font-weight: 700; transition: border-color .15s, background .15s; }
.topbar-ads i { color: var(--accent); }
.topbar-ads:hover, .topbar-ads[aria-current] { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, var(--background)); }
@media (max-width: 700px) { .topbar-ads { width: 40px; padding: 0; justify-content: center; } .topbar-ads span { display: none; } }
@media (max-width: 700px) { .topbar-ads { border-color: transparent; background: none; } .topbar-ads i { font-size: 18px; } }
/* Botón Clasificados de la barra: limpio, como un enlace de menú. */
.topbar-ads { min-height: 42px; padding: 0 14px; border: 0; border-radius: 999px; color: var(--text); background: transparent; font-size: 15px; font-weight: 800; }
.topbar-ads i { font-size: 15px; }
.topbar-ads:hover, .topbar-ads[aria-current] { border: 0; background: color-mix(in srgb, var(--text) 7%, var(--background)); }

/* Pago de clasificados con Wompi: elegir plan y resultado del pago. */
.ads-plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.ads-plan { position: relative; cursor: pointer; }
.ads-plan input { position: absolute; opacity: 0; pointer-events: none; }
.ads-plan__box { display: grid; gap: 4px; height: 100%; padding: 16px 18px; border: 2px solid #e3e5e9; border-radius: 8px; background: #fff; transition: border-color .15s; }
.ads-plan__box i { display: grid; place-items: center; width: 34px; height: 34px; margin-bottom: 4px; border-radius: 50%; color: var(--muted); background: #f4f5f7; }
.ads-plan--featured .ads-plan__box i { color: #fff; background: #1aa260; }
.ads-plan__box strong { font-size: 15px; }
.ads-plan__box b { font-size: 24px; font-variant-numeric: tabular-nums; }
.ads-plan__box small { color: var(--muted); font-size: 13px; line-height: 1.45; }
.ads-plan:hover .ads-plan__box { border-color: #c5c9d1; }
.ads-plan input:checked + .ads-plan__box { border-color: #16191f; }
.ads-plan input:focus-visible + .ads-plan__box { box-shadow: 0 0 0 3px #c5c9d1; }
.ads-pay-note { display: flex; gap: 12px; margin: 0; padding: 14px 16px; border-radius: 8px; color: var(--muted); background: #f4f5f7; font-size: 13.5px; line-height: 1.5; }
.ads-pay-note i { margin-top: 3px; color: #18794e; }
.ads-pay-note strong { color: var(--text); }
.pay-result { max-width: 620px; margin-inline: auto; }
.pay-result--ok > i { color: #18794e; }
.pay-result--wait > i { color: var(--accent); }
.pay-result--failed > i, .pay-result--unknown > i { color: #c0362c; }
.pay-result__data { display: grid; gap: 0; margin: 18px 0 4px; padding: 6px 18px; border-radius: 8px; background: #f4f5f7; text-align: left; }
.pay-result__data div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid #e3e5e9; font-size: 14.5px; }
.pay-result__data div:last-child { border-bottom: 0; }
.pay-result__data dt { color: var(--muted); }
.pay-result__data dd { margin: 0; font-weight: 700; word-break: break-all; text-align: right; }
.pay-result__actions { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 14px; margin-top: 12px; }
.pay-result__actions .ads-submit { margin: 0; }
.pay-result__actions > a:not(.ads-submit) { margin: 0; padding: 0; color: var(--text); background: none; font-weight: 600; text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 3px; }
@media (max-width: 560px) { .ads-plans { grid-template-columns: minmax(0, 1fr); } }
.dark-theme .ads-plan__box { border-color: #2d323a; background: #14161a; }
.dark-theme .ads-plan__box i { background: #1d2026; }
.dark-theme .ads-plan:hover .ads-plan__box { border-color: #4a515c; }
.dark-theme .ads-plan input:checked + .ads-plan__box { border-color: #eceef2; }
.dark-theme .ads-plan--featured .ads-plan__box i { background: #1aa260; }
.dark-theme .ads-pay-note, .dark-theme .pay-result__data { background: #1d2026; }
.dark-theme .ads-pay-note i, .dark-theme .pay-result--ok > i { color: #5fd39a; }
.dark-theme .pay-result__data div { border-bottom-color: #2d323a; }
.pay-result .ads-submit { padding: 0 22px; border-radius: 8px; color: #fff; background: #16191f; font-weight: 600; }
.dark-theme .pay-result .ads-submit { color: #111; background: var(--accent); }

/* Buscar por departamento y municipio. */
.ads-filter__place { display: flex; flex: 0 1 460px; gap: 10px; min-width: 0; }
.ads-filter__select { position: relative; display: flex; flex: 1; align-items: center; min-width: 0; }
.ads-filter__select i { position: absolute; left: 14px; z-index: 1; color: var(--muted); font-size: 13px; pointer-events: none; }
.ads-list .ads-finder .ads-filter select { width: 100%; padding-left: 36px; background: #fff; text-overflow: ellipsis; cursor: pointer; }
.ads-list .ads-finder .ads-filter select:disabled { color: var(--muted); cursor: default; opacity: .7; }
.ads-head h1 small { color: var(--muted); font-size: .62em; font-weight: 400; }
.ads-place-chip { display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; border-radius: 8px; color: #fff; background: #16191f; font-size: 13.5px; font-weight: 600; }
.ads-place-chip .fa-xmark { opacity: .7; }
.ads-place-chip:hover .fa-xmark { opacity: 1; }
.ads-form__row--two, .ads-place { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 700px) { .ads-form__row--two, .ads-place { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 900px) { .ads-filter__place { flex: 1 1 100%; } }
@media (max-width: 560px) { .ads-filter__place { flex-direction: column; } }
.dark-theme .ads-list .ads-finder .ads-filter select { border-color: #353b45; background: #14161a; }
.dark-theme .ads-place-chip { color: #111; background: var(--accent); }
/* 15 categorías: en computador caben en dos filas; en celular se deslizan sin barra. */
.ads-list .ads-finder .ads-cats { flex-wrap: wrap; overflow: visible; padding-bottom: 0; }
@media (max-width: 700px) {
    .ads-list .ads-finder .ads-cats { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
    .ads-list .ads-finder .ads-cats::-webkit-scrollbar { display: none; }
}
/* Categoría: en computador, botones; en celular, una lista desplegable fácil de usar. */
.ads-filter__cat { display: none; }
@media (max-width: 700px) {
    .ads-filter__cat { display: flex; flex: 1 1 100%; order: 1; }
    .ads-filter__place { order: 2; }
    .ads-filter button { order: 3; }
    .ads-list .ads-finder .ads-cats { display: none; }
}

/* Listas desplegables propias de los filtros. */
.ads-filter__select.is-nice { position: relative; }
.ads-list .ads-finder .ads-filter select.nice__native { position: absolute; width: 1px; height: 1px; min-height: 0; padding: 0; border: 0; opacity: 0; pointer-events: none; }
.nice__button { display: flex; align-items: center; width: 100%; min-height: 42px; padding: 0 36px 0 36px; border: 1px solid var(--border); border-radius: 8px; color: var(--text); background: #fff; font: inherit; font-size: 14px; text-align: left; cursor: pointer; }
.nice__button span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nice__button::after { content: ""; position: absolute; right: 14px; top: 50%; width: 7px; height: 7px; margin-top: -6px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); transition: transform .15s; }
.is-open .nice__button { border-color: #9aa1ad; }
.is-open .nice__button::after { margin-top: -2px; transform: rotate(-135deg); }
.nice__button:disabled { color: var(--muted); cursor: default; opacity: .7; }
.ads-filter__select.is-empty .nice__button { color: var(--muted); }
.nice__panel { position: absolute; top: calc(100% + 6px); left: 0; z-index: 30; width: max(100%, 260px); padding: 6px; border: 1px solid #e3e5e9; border-radius: 8px; background: #fff; box-shadow: 0 12px 30px rgb(22 25 31 / .12); }
.nice__search { width: 100%; min-height: 38px !important; margin-bottom: 6px; padding: 0 12px !important; border: 1px solid #e3e5e9 !important; border-radius: 6px !important; background: #f4f5f7 !important; font-size: 14px !important; }
.nice__search:focus { outline: 0; border-color: #9aa1ad !important; background: #fff !important; }
.nice__list { display: grid; gap: 1px; max-height: 300px; overflow-y: auto; overscroll-behavior: contain; }
.nice__option { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; padding: 9px 12px; border: 0; border-radius: 6px; color: var(--text); background: transparent; font: inherit; font-size: 14px; text-align: left; cursor: pointer; }
.nice__option:hover, .nice__option:focus-visible { outline: 0; background: #f4f5f7; }
.nice__option small { padding: 1px 8px; border-radius: 99px; color: var(--muted); background: #f4f5f7; font-size: 12px; font-weight: 600; }
.nice__option:hover small { background: #fff; }
.nice__option[aria-selected="true"] { font-weight: 700; }
.nice__option[aria-selected="true"]::after { content: "✓"; margin-left: auto; color: #18794e; font-weight: 700; }
.nice__option[aria-selected="true"] small { margin-left: auto; }
.nice__option[aria-selected="true"] small + * { margin-left: 0; }
.nice__none { margin: 0; padding: 10px 12px; color: var(--muted); font-size: 14px; }
.dark-theme .nice__button { border-color: #353b45; background: #14161a; }
.dark-theme .nice__panel { border-color: #2d323a; background: #1d2026; box-shadow: 0 12px 30px rgb(0 0 0 / .4); }
.dark-theme .nice__search { border-color: #353b45 !important; background: #14161a !important; color: var(--text); }
.dark-theme .nice__option:hover, .dark-theme .nice__option:focus-visible, .dark-theme .nice__option small { background: #14161a; }
.dark-theme .nice__option:hover small { background: #1d2026; }
.dark-theme .nice__option[aria-selected="true"]::after { color: #5fd39a; }
/* Celular: buscar → departamento → municipio → categoría → botón. */
@media (max-width: 700px) {
    .ads-filter__place { order: 1; }
    .ads-filter__cat { order: 2; }
    .ads-filter button[type="submit"] { order: 3; }
    .nice__panel { width: 100%; }
}
/* Que el estilo del botón "Buscar" no se aplique a las listas propias. */
.ads-list .ads-filter .nice__button { min-height: 42px; padding: 0 36px; border: 1px solid var(--border); border-radius: 8px; color: var(--text); background: #fff; font-size: 14px; font-weight: 400; }
.ads-list .ads-filter .is-empty .nice__button, .ads-list .ads-filter .nice__button:disabled { color: var(--muted); }
.ads-list .ads-filter .is-open .nice__button { border-color: #9aa1ad; }
.ads-list .ads-filter .nice__option { min-height: 0; padding: 9px 12px; border: 0; border-radius: 6px; color: var(--text); background: transparent; font-size: 14px; font-weight: 400; }
.ads-list .ads-filter .nice__option:hover, .ads-list .ads-filter .nice__option:focus-visible { background: #f4f5f7; }
.ads-list .ads-filter .nice__option[aria-selected="true"] { font-weight: 700; }
.dark-theme .ads-list .ads-filter .nice__button { border-color: #353b45; background: #14161a; }
.dark-theme .ads-list .ads-filter .nice__option:hover, .dark-theme .ads-list .ads-filter .nice__option:focus-visible { background: #14161a; }
/* Computador también: categoría en lista desplegable, en la misma línea del buscador. */
.ads-filter__cat { display: flex; flex: 0 1 230px; order: 2; }
.ads-filter__field { order: 0; }
.ads-filter__place { order: 1; }
.ads-filter > button[type="submit"] { order: 3; }
.ads-list .ads-finder .ads-cats { display: none; }
.ads-filter__place { flex-basis: 440px; }
@media (max-width: 1100px) { .ads-filter { flex-wrap: wrap; } .ads-filter__field { flex: 1 1 100%; } .ads-filter__place { flex: 2 1 400px; } .ads-filter__cat { flex: 1 1 200px; } }
@media (max-width: 700px) { .ads-filter__cat, .ads-filter__place { flex: 1 1 100%; } }
/* Limpiar filtros y ampliar la búsqueda. */
.ads-clear { display: inline-flex; align-items: center; gap: 7px; order: 4; padding: 0 14px; border-radius: 8px; color: var(--muted); font-size: 14px; font-weight: 600; white-space: nowrap; }
.ads-clear:hover { color: var(--text); background: #fff; }
.ads-empty__wider { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 6px 0 4px; }
.ads-list .ads-empty .ads-empty__wider a { display: inline-flex; align-items: center; gap: 8px; margin: 0; padding: 10px 16px; border: 1px solid #e3e5e9; border-radius: 8px; color: var(--text); background: #f4f5f7; font-weight: 600; }
.ads-list .ads-empty .ads-empty__wider a:hover { border-color: #c5c9d1; background: #fff; }
.ads-empty__wider i { color: var(--muted); }
.ads-empty__actions { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 16px; }
.ads-list .ads-empty .ads-empty__actions .ads-empty__clear { padding: 0; color: var(--muted); background: none; font-weight: 600; }
.ads-list .ads-empty .ads-empty__actions .ads-empty__clear:hover { color: var(--text); }
@media (max-width: 700px) { .ads-clear { flex: 1 1 100%; justify-content: center; min-height: 40px; } }
.dark-theme .ads-clear:hover { background: #14161a; }
.dark-theme .ads-list .ads-empty .ads-empty__wider a { border-color: #2d323a; background: #1d2026; }
.dark-theme .ads-list .ads-empty .ads-empty__wider a:hover { background: #14161a; }
.ads-list .ads-empty .ads-empty__wider i, .ads-list .ads-empty .ads-empty__clear i { color: var(--muted); font-size: 14px; }
/* Computador: arriba la búsqueda grande con Buscar; abajo los filtros. */
.ads-finder .ads-filter { flex-wrap: wrap; row-gap: 12px; }
.ads-finder .ads-filter__field { order: 0; flex: 1 1 calc(100% - 140px); }
.ads-finder .ads-filter > button[type="submit"] { order: 1; flex: 0 0 auto; min-width: 120px; }
.ads-finder .ads-filter__place { order: 2; flex: 2 1 0; }
.ads-finder .ads-filter__cat { order: 3; flex: 1 1 0; }
.ads-finder .ads-clear { order: 4; flex: 0 0 auto; }
.ads-list .ads-finder .ads-filter input[type="search"]#ads-q { min-height: 48px; font-size: 16px; }
/* Celular: todo en columna y Buscar después de los filtros. */
@media (max-width: 700px) {
    .ads-finder .ads-filter__field { flex: 1 1 100%; }
    .ads-finder .ads-filter__place { order: 1; flex: 1 1 100%; }
    .ads-finder .ads-filter__cat { order: 2; flex: 1 1 100%; }
    .ads-finder .ads-filter > button[type="submit"] { order: 3; flex: 1 1 100%; }
    .ads-finder .ads-clear { order: 4; flex: 1 1 100%; }
}
/* Cuadrícula fija: fila 1 = búsqueda + Buscar; fila 2 = departamento, municipio, categoría + Limpiar. */
.ads-finder .ads-filter { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) auto; gap: 12px 10px; }
.ads-finder .ads-filter__field { grid-column: 1 / 4; grid-row: 1; }
.ads-finder .ads-filter > button[type="submit"] { grid-column: 4; grid-row: 1; min-width: 130px; }
.ads-finder .ads-filter__place { grid-column: 1 / 3; grid-row: 2; }
.ads-finder .ads-filter__cat { grid-column: 3; grid-row: 2; }
.ads-finder .ads-clear { grid-column: 4; grid-row: 2; justify-content: center; }
@media (max-width: 700px) {
    .ads-finder .ads-filter { grid-template-columns: minmax(0, 1fr); }
    .ads-finder .ads-filter__field { grid-column: 1; grid-row: 1; }
    .ads-finder .ads-filter__place { grid-column: 1; grid-row: 2; }
    .ads-finder .ads-filter__cat { grid-column: 1; grid-row: 3; }
    .ads-finder .ads-filter > button[type="submit"] { grid-column: 1; grid-row: 4; }
    .ads-finder .ads-clear { grid-column: 1; grid-row: 5; }
}
/* Limpiar: en el amarillo claro de los avisos, para que se note. */
.ads-list .ads-finder .ads-clear { align-self: stretch; min-height: 42px; padding: 0 16px; border: 1px solid #f1dfb4; border-radius: 8px; color: #6b4e0f; background: #fbf4e3; }
.ads-list .ads-finder .ads-clear:hover { border-color: #e9c977; color: #3d2c06; background: #f8ead0; }
.ads-list .ads-finder .ads-clear i { color: #b07a00; }
.ads-list .ads-empty .ads-empty__actions .ads-empty__clear { padding: 10px 16px; border: 1px solid #f1dfb4; border-radius: 8px; color: #6b4e0f; background: #fbf4e3; }
.ads-list .ads-empty .ads-empty__actions .ads-empty__clear:hover { color: #3d2c06; background: #f8ead0; }
.ads-list .ads-empty .ads-empty__clear i { color: #b07a00; }
.dark-theme .ads-list .ads-finder .ads-clear, .dark-theme .ads-list .ads-empty .ads-empty__actions .ads-empty__clear { border-color: #3a3f48; color: var(--accent); background: #2a2f38; }
.dark-theme .ads-list .ads-finder .ads-clear:hover, .dark-theme .ads-list .ads-empty .ads-empty__actions .ads-empty__clear:hover { color: #ffd27a; background: #323845; }
.dark-theme .ads-list .ads-finder .ads-clear i, .dark-theme .ads-list .ads-empty .ads-empty__clear i { color: var(--accent); }
.ads-list .ads-empty .ads-empty__actions .ads-empty__clear { display: inline-flex; align-items: center; gap: 7px; margin: 0; }
/* Mensaje sin resultados: los dos botones con la misma forma y el mismo alto. */
.ads-list .ads-empty .ads-empty__actions > a { display: inline-flex; align-items: center; gap: 7px; min-height: 44px; margin: 0; padding: 0 18px; border: 1px solid transparent; border-radius: 8px; font-size: 15px; line-height: 1; }
.ads-list .ads-empty .ads-empty__actions > a:first-child { border-color: var(--accent); }
.ads-list .ads-empty .ads-empty__actions > a.ads-empty__clear { border-color: #f1dfb4; font-weight: 700; }
.dark-theme .ads-list .ads-empty .ads-empty__actions > a.ads-empty__clear { border-color: #3a3f48; }
.ads-list .ads-empty .ads-empty__actions { margin-top: 22px; }
.ads-list .ads-empty .ads-empty__wider { margin-bottom: 0; }
.ads-list .ads-empty .ads-empty__actions { margin-top: 10px; }
.ads-plan__vat { min-height: 1em; color: var(--muted); font-size: 12.5px; font-style: normal; }

/* Oferta especial en publicar. */
.ads-offer { display: flex; gap: 10px; align-items: flex-start; margin: 0 0 12px; padding: 12px 14px; border-radius: 10px; color: #14532d; background: #e8f7ee; border: 1px solid #b7e4c7; font-size: 14px; }
.ads-offer > i { margin-top: 3px; color: #1aa260; }
.ads-offer em { display: block; font-style: normal; font-weight: 700; font-variant-numeric: tabular-nums; }
.dark-theme .ads-offer { color: #c9f2da; background: #12301f; border-color: #1f5a37; }
/* Tipo de aviso en publicar: igual a la vista previa del panel (ícono a la izquierda, amarillo / verde). */
.ads-plan__box { grid-template-columns: auto minmax(0, 1fr); align-content: start; gap: 2px 12px; padding: 18px 16px; border-width: 1px; }
.ads-plan__box i { grid-row: 1 / 5; align-self: center; width: 38px; height: 38px; margin: 0; color: #fff; background: #f5a300; }
.ads-plan--featured .ads-plan__box i { color: #fff; background: #1aa260; }
.ads-plan__box b { font-size: 22px; }
.ads-plan input:checked + .ads-plan__box { border-color: #18794e; box-shadow: 0 0 0 1px #18794e; }
.dark-theme .ads-plan__box i { color: #111; background: #f5a300; }
.dark-theme .ads-plan--featured .ads-plan__box i { color: #fff; background: #1aa260; }
.dark-theme .ads-plan input:checked + .ads-plan__box { border-color: #5fd39a; box-shadow: 0 0 0 1px #5fd39a; }
/* Hemeroteca (blog.php): mismo buscador de Clasificados. Fila 1: búsqueda + Buscar; fila 2: categoría, fecha, orden, Limpiar. */
.news-finder { margin-bottom: 18px; }
.ads-finder .news-filter { grid-template-columns: minmax(0, 1fr) auto; }
.ads-finder .news-filter .ads-filter__field { grid-column: 1; grid-row: 1; }
.ads-finder .news-filter > button[type="submit"] { grid-column: 2; grid-row: 1; }
.news-filter__row { display: flex; grid-column: 1 / -1; flex-wrap: wrap; gap: 10px; }
.news-filter__row > .ads-filter__select { flex: 1 1 200px; }
.news-filter__row > .ads-clear { flex: 0 0 auto; }
.news-filter__dates { display: flex; flex: 2 1 340px; gap: 10px; }
.news-filter__dates[hidden] { display: none; }
.news-filter__date { position: relative; display: flex; flex: 1; align-items: center; min-width: 0; }
.news-filter__date span { position: absolute; left: 12px; color: var(--muted); font-size: 12px; font-weight: 700; pointer-events: none; }
.ads-list .ads-finder .news-filter .news-filter__date input { width: 100%; padding-left: 58px; background: #fff; }
.dark-theme .ads-list .ads-finder .news-filter .news-filter__date input { border-color: #353b45; background: #14161a; color-scheme: dark; }
.news-count { display: flex; flex-wrap: wrap; gap: 6px; align-items: baseline; margin: 0 0 22px; color: var(--muted); font-size: 14px; }
.news-count strong { color: var(--text); font-size: 15px; }
.news-pages { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 36px 0 10px; }
.news-pages a, .news-pages span { display: inline-grid; place-items: center; min-width: 40px; height: 40px; padding: 0 10px; border: 1px solid var(--border); border-radius: 8px; color: var(--text); background: var(--surface); font-weight: 600; }
.news-pages span { border-color: transparent; background: transparent; color: var(--muted); }
.news-pages a:hover { border-color: #9aa1ad; }
.news-pages a[aria-current="page"] { border-color: #16191f; color: #fff; background: #16191f; }
.dark-theme .news-pages a[aria-current="page"] { border-color: #eceef2; color: #16191f; background: #eceef2; }
@media (max-width: 700px) {
    .ads-finder .news-filter { grid-template-columns: minmax(0, 1fr); }
    .ads-finder .news-filter > button[type="submit"] { grid-column: 1; grid-row: 3; }
    .news-filter__row { grid-row: 2; }
    .news-filter__row > *, .news-filter__dates { flex: 1 1 100%; }
}
/* Hemeroteca: título más moderado. */
.archive-header--news h1 { font-size: clamp(30px, 3.2vw, 42px); margin: 8px 0 10px; }

/* Casilla del autor al final de cada noticia. */
.author-box { display: flex; gap: 22px; align-items: flex-start; max-width: 680px; margin: 40px 0 0; padding: 26px; border: 1px solid var(--border); border-radius: 16px; background: color-mix(in srgb, var(--accent) 7%, var(--surface)); }
.author-box__mark { display: grid; flex: none; place-items: center; width: 76px; height: 76px; border-radius: 50%; color: #fff; background: var(--accent); font-family: Georgia, "Times New Roman", serif; font-size: 32px; font-weight: 700; box-shadow: 0 0 0 4px var(--surface); }
.author-box__label { margin: 0; color: var(--muted); font-size: 13px; }
.author-box__name { margin: 2px 0 8px; font-family: Georgia, "Times New Roman", serif; font-size: 24px; line-height: 1.2; }
.author-box__bio { margin: 0 0 14px; color: var(--muted); font-size: 15.5px; line-height: 1.6; }
.author-box__more { display: inline-flex; align-items: center; gap: 10px; padding: 10px 20px; border-radius: 999px; color: #fff; background: #16191f; font-size: 14.5px; font-weight: 700; transition: background .2s ease, color .2s ease; }
.author-box__more i { color: var(--accent); transition: transform .2s ease, color .2s ease; }
.author-box__more:hover, .author-box__more:focus-visible { color: #16191f; background: var(--accent); }
.author-box__more:hover i, .author-box__more:focus-visible i { color: #16191f; transform: translateX(4px); }
.dark-theme .author-box__more { color: #16191f; background: #f7f6f1; }
@media (max-width: 640px) { .author-box { flex-direction: column; gap: 14px; padding: 20px; } .author-box__mark { width: 64px; height: 64px; font-size: 26px; } }
@media (prefers-reduced-motion: reduce) { .author-box__more, .author-box__more i { transition: none; } }
/* Galería de 2 fotos: ocupa todo el ancho en dos columnas, sin dejar un hueco. */
.body-gallery:has(> :nth-child(2):last-child) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.body-gallery:has(> :nth-child(2):last-child) img { aspect-ratio: 4 / 3; }
/* Casilla del autor: del mismo ancho del texto, botón más pequeño y a la derecha. */
.author-box { max-width: none; width: 100%; }
.author-box__copy { flex: 1; min-width: 0; }
.author-box__more { display: flex; width: fit-content; margin-left: auto; padding: 8px 16px; font-size: 13.5px; }
/* Flecha del botón «Ver todas sus notas» centrada con el texto. */
.author-box__more { align-items: center; line-height: 1; }
.author-box__more i { display: block; font-size: 12px; line-height: 1; }
/* La flecha se ve un poco alta frente a las minúsculas: se baja 1,5 px. */
.author-box__more i { position: relative; top: 1.5px; }
/* Un poco más alto: no tan delgado. */
.author-box__more { padding: 11px 18px; }

/* Botones flotantes: volver arriba y servicio al cliente (copiados del proyecto luisgermangil, con los colores del periódico). */
.floating-actions { position: fixed; right: 24px; bottom: 24px; z-index: 950; display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.floating-actions__top, .floating-actions__support { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; border: 0; font: inherit; font-weight: 800; cursor: pointer; transition: background .2s ease, color .2s ease, opacity .25s ease, transform .25s ease; }
.floating-actions__top { width: 46px; height: 46px; border-radius: 50%; color: #16191f; background: var(--accent); font-size: 16px; opacity: 0; transform: translateY(8px); pointer-events: none; }
.floating-actions__top.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.floating-actions__support { gap: 9px; padding: 0 18px; border-radius: 23px; color: #fff; background: #16191f; font-size: 13.5px; box-shadow: 0 8px 22px rgba(0, 0, 0, .18); }
.floating-actions__support i { color: var(--accent); }
.floating-actions__top:hover, .floating-actions__top:focus-visible { background: #e09500; }
.floating-actions__support:hover, .floating-actions__support:focus-visible { color: #16191f; background: var(--accent); }
.floating-actions__support:hover i, .floating-actions__support:focus-visible i { color: #16191f; }
.dark-theme .floating-actions__support { color: #16191f; background: #f7f6f1; }
.dark-theme .floating-actions__support i { color: #16191f; }

.support-modal { position: fixed; inset: 0; z-index: 1100; display: flex; align-items: center; justify-content: center; padding: 24px; opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .25s ease, visibility .25s ease; }
.support-modal.is-open { opacity: 1; visibility: visible; pointer-events: auto; }
.support-modal__backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, .45); backdrop-filter: blur(4px); }
.support-modal__dialog { position: relative; z-index: 1; width: min(480px, 100%); padding: 28px 26px 24px; border: 1px solid var(--border); border-radius: 18px; background: var(--surface); box-shadow: 0 30px 60px rgba(0, 0, 0, .2); }
.support-modal__close { position: absolute; top: 14px; right: 14px; display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid var(--border); border-radius: 50%; color: var(--muted); background: transparent; cursor: pointer; }
.support-modal__close:hover { color: var(--text); border-color: var(--text); }
.support-modal__dialog h2 { margin: 0 0 6px; font-family: Georgia, "Times New Roman", serif; font-size: 26px; line-height: 1.15; }
.support-modal__dialog > p { margin: 0 0 20px; color: var(--muted); }
.support-modal__options { display: grid; gap: 10px; }
.support-modal__option { display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: center; padding: 14px 16px; border: 1px solid var(--border); border-radius: 14px; transition: border-color .2s ease, background .2s ease; }
.support-modal__option:hover, .support-modal__option:focus-visible { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 8%, var(--surface)); }
.support-modal__icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; color: #16191f; background: var(--accent); font-size: 18px; }
.support-modal__copy { display: grid; gap: 3px; }
.support-modal__copy strong { font-size: 15.5px; }
.support-modal__copy small { color: var(--muted); font-size: 13.5px; line-height: 1.45; }
@media (max-width: 700px) {
    .floating-actions { right: 14px; bottom: 14px; }
    .floating-actions__support span { display: none; }
    .floating-actions__support { width: 46px; padding: 0; border-radius: 50%; }
    .support-modal { align-items: flex-end; padding: 12px; }
}
@media (prefers-reduced-motion: reduce) { .floating-actions__top, .floating-actions__support, .support-modal { transition: none; } }
/* Flecha «volver arriba» en negro, como el botón de servicio al cliente (sin amarillo). */
.floating-actions__top { color: #fff; background: #16191f; box-shadow: 0 8px 22px rgba(0, 0, 0, .18); }
.floating-actions__top:hover, .floating-actions__top:focus-visible { color: #fff; background: #3a3f48; }
.dark-theme .floating-actions__top { color: #16191f; background: #f7f6f1; }

/* Submenú de la barra lateral (por ejemplo, Salud > Psicología) */
.sidebar-group__row { display: flex; align-items: center; gap: 2px; }
.sidebar-group__row > a { flex: 1; min-width: 0; }
.sidebar-group__toggle {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    flex: none;
    padding: 0;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--muted);
    cursor: pointer;
}
.sidebar-group__toggle:hover,
.sidebar-group__toggle:focus-visible { color: var(--text); background: var(--border); }
.sidebar-group__toggle i { font-size: 12px; transition: transform .2s ease; }
.sidebar-group.is-open .sidebar-group__toggle i { transform: rotate(180deg); }
.sidebar-sublist { list-style: none; margin: 2px 0 0; padding: 0 0 0 43px; }
.sidebar-sublist[hidden] { display: none; }
.sidebar-list .sidebar-sublist a { min-height: 36px; padding: 7px 11px; font-size: .95em; }
/* La barra lateral se desplaza con la rueda o el dedo, sin barra visible que le quite ancho a los nombres. */
.sidebar { scrollbar-width: none; }
.sidebar::-webkit-scrollbar { display: none; }
