@import url("bootstrap-icons-local.css");

/* =======================
   Estilos Globales y Utilitarios
   ======================= */

/* Fondo muy oscuro para el header, si lo necesitas */
.custom-header {
    background-color: #222222;
}

.header-main,
.header-brand-nav,
.header-actions,
.site-nav .nav {
    min-width: 0;
}

.site-logo-link {
    flex: 0 0 auto;
}

.skip-link {
    position: absolute;
    top: 0.5rem;
    left: 0.5rem;
    z-index: 10000;
    padding: 0.5rem 0.75rem;
    background: #ffffff;
    color: #111111;
    border-radius: 0.25rem;
    transform: translateY(-140%);
    transition: transform 0.15s ease;
}

.skip-link:focus {
    transform: translateY(0);
}

.site-logo-img {
    display: block;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.28));
}

/* Estilo para los enlaces de categorías */
.categoria-link {
    font-size: 1.2rem;
    font-weight: bold;
    transition: color 0.3s ease;
    cursor: pointer;
}

.categoria-link:hover {
    color: #ffcc00;
    text-decoration: underline;
}

.header-search {
    position: relative;
    display: flex;
    align-items: center;
}

.header-search__toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border: 1px solid rgba(255, 255, 255, 0.55);
    border-radius: 50%;
    background: transparent;
    color: #ffffff;
    transition: background-color 0.18s ease, border-color 0.18s ease;
}

.header-search__toggle:hover,
.header-search__toggle:focus-visible {
    border-color: #ffffff;
    background: rgba(255, 255, 255, 0.12);
}

.header-search__form {
    position: absolute;
    top: calc(100% + 0.55rem);
    right: 0;
    z-index: 20;
    width: min(78vw, 20rem);
    opacity: 0;
    transform: translateY(-0.35rem);
    pointer-events: none;
    transition: opacity 0.18s ease, transform 0.18s ease;
}

.header-search__form.is-open,
.header-search__form:focus-within {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.header-search__input {
    width: 100%;
    height: 2.45rem;
    padding: 0.45rem 0.8rem;
    border: 1px solid #cfd8e3;
    border-radius: 8px;
    background: #ffffff;
    color: #1f2933;
    box-shadow: 0 14px 30px rgba(16, 24, 40, 0.2);
    outline: none;
}

.header-search__input:focus {
    border-color: #45c985;
    box-shadow: 0 0 0 0.2rem rgba(69, 201, 133, 0.2), 0 14px 30px rgba(16, 24, 40, 0.2);
}

/* Forzar que la imagen se recorte a 16:9 */
.object-fit-cover {
    object-fit: cover;
    width: 100%;
    height: 100%;
}

/* Limitar títulos a 2 líneas */
.title-clamp {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Limitar títulos a 2 líneas */
.title-clamp-column {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Limitar títulos a 2 líneas */
.title-clamp-lasts {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Estilos para la información del autor y fecha */
.meta-info {
    font-size: 0.8rem;
}

.news-card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    width: 100%;
    font-size: 0.72rem;
    line-height: 1.15;
}

.news-card-meta > span {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.comment-count-link {
    position: relative;
    z-index: 3;
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 0.25rem;
    color: #465666;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
    font-size: 0.72rem;
}

.comment-count-link:hover,
.comment-count-link:focus-visible {
    color: #0f9f62;
}

.comment-count-link svg {
    width: 1rem;
    height: 1rem;
}

.clickable-title {
    color: #111111;
    font-weight: 600;
}

.comparador-page {
    color: #263238;
}

.comparador-hero {
    display: flex;
    align-items: center;
    min-height: 12rem;
    padding: 2rem;
    border-radius: 8px;
    background:
        linear-gradient(90deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.82)),
        url("/images/cocheverdeelectrico-seoimage.jpg") center / cover no-repeat;
    border: 1px solid #d7e2dc;
}

.comparador-hero > div {
    max-width: 44rem;
}

.comparador-quicklinks {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.comparador-quicklinks a {
    display: inline-flex;
    align-items: center;
    min-height: 2.25rem;
    padding: 0.35rem 0.75rem;
    border: 1px solid #b9d5ca;
    border-radius: 999px;
    color: #146c43;
    background: #f3fbf7;
    font-weight: 700;
    text-decoration: none;
}

.comparador-quicklinks a:hover,
.comparador-quicklinks a:focus-visible {
    border-color: #0f9f62;
    color: #0b5d38;
    background: #e6f7ee;
}

.comparador-length-filter {
    padding: 1rem;
    border: 1px solid #d7e2dc;
    border-radius: 8px;
    background: #ffffff;
}

.comparador-length-filter__value {
    flex: 0 0 auto;
    padding: 0.35rem 0.65rem;
    border-radius: 8px;
    background: #e6f7ee;
    color: #0b5d38;
    white-space: nowrap;
}

.comparador-length-filter__range {
    margin: 0.25rem 0 0.45rem;
}

.comparador-length-filter__labels {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.5rem;
    color: #52635b;
    font-size: 0.85rem;
    font-weight: 700;
}

.comparador-length-filter__labels span {
    min-width: 0;
}

.comparador-ranking {
    padding: 1rem;
    border: 1px solid #d7e2dc;
    border-radius: 8px;
    background: #ffffff;
}

.comparador-ranking__list {
    display: grid;
    gap: 0.7rem;
    margin: 0;
    padding-left: 1.25rem;
}

.comparador-ranking__list li {
    padding-left: 0.25rem;
}

.comparador-ranking__list a {
    display: block;
    color: #1d2b24;
    font-weight: 700;
    text-decoration: none;
}

.comparador-ranking__list a:hover,
.comparador-ranking__list a:focus-visible {
    color: #0f9f62;
    text-decoration: underline;
}

.comparador-ranking__list span {
    color: #52635b;
}

.comparador-table-wrap {
    border: 1px solid #d7e2dc;
    border-radius: 8px;
}

.comparador-table {
    min-width: 58rem;
    margin-bottom: 0;
}

.comparador-table th:first-child {
    min-width: 18rem;
}

@media (max-width: 575.98px) {
    .comparador-length-filter .d-flex {
        align-items: stretch !important;
        flex-direction: column;
    }

    .comparador-length-filter__value {
        align-self: flex-start;
    }

    .comparador-length-filter__labels {
        font-size: 0.75rem;
    }
}

/* Contenedor que posiciona el texto en la parte inferior de la imagen principal */
.overlay-container {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 2;
    padding: 0 0.1rem;
}

/* Fondo opaco solo detrás del texto */
.overlay-text {
    background-color: rgba(0, 0, 0, 0.7);
    color: #fff;
    padding: 0.2rem 1.5rem;
    border-radius: 0.25rem;
    display: inline-block;
    max-width: calc(100% - 0.1rem);
    z-index: 3;
}

/* Forzar 2 líneas también al contenido (siempre que sea texto simple) */
.content-clamp {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Evitar márgenes en el contenido HTML de Quill (p, h1, etc.) dentro del overlay */
.overlay-text * {
    margin: 0 !important;
}

/* Fuentes globales */
body {
    font-family: 'Roboto', sans-serif;
    background-color: #ffffff;  /* Fondo claro por defecto */
    color: #333333;             /* Texto oscuro por defecto */
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
}

.text-muted {
    color: #546170 !important;
}

.category-label {
    color: #0f9f62 !important;
    letter-spacing: 0.02em;
}

/* =======================
   Modo Oscuro
   ======================= */
.dark-mode {
    background-color: #111111;  /* Fondo del body en modo oscuro */
    color: #f0f0f0;             /* Texto en modo oscuro */
}

.dark-mode .clickable-title {
    color: #f0f0f0;
}

/* Cambiar el header en modo oscuro */
.dark-mode .custom-header {
    background-color: #111111;
}

/* Cambiar enlaces en modo oscuro */
.dark-mode .categoria-link {
    color: #f0f0f0;
}

/* Ajustar el overlay si lo deseas (opcional) */
.dark-mode .overlay-text {
    background-color: rgba(23, 23, 23, 0.7);
    color: #fff;
    padding: 0.2rem 1.5rem;
    border-radius: 0.25rem;
    display: inline-block;
    max-width: calc(100% - 0.1rem);
    z-index: 3;
}


.dark-mode .text-muted {
    color: #c4ccd4 !important; /* O el color claro que prefieras */
}
/* Si tienes más elementos globales que deban cambiar, añádelos aquí */


:root {
    --footer-bg: #f8f9fa;
    --footer-text: #333333;
    --footer-link: #0056b3;
}

.dark-mode {
    --footer-bg: #222222;
    --footer-text: #f8f9fa;
    --footer-link: #66b2ff;
}

.footer-social-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
}

.footer-social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border: 1px solid currentColor;
    border-radius: 50%;
    color: var(--footer-link);
    font-size: 1rem;
    text-decoration: none;
    transition: background-color 0.18s ease, color 0.18s ease;
}

.footer-social-link:hover,
.footer-social-link:focus-visible {
    background: var(--footer-link);
    color: var(--footer-bg);
}

.article-detail-page {
    margin-top: 0.75rem;
    margin-bottom: 3rem;
}

.article-detail {
    max-width: 100%;
}

.article-hero {
    margin-bottom: 1.5rem;
}

.article-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    color: #0d6efd;
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-decoration: none;
    text-transform: uppercase;
}

.article-kicker::before {
    content: "";
    width: 2.2rem;
    height: 3px;
    border-radius: 999px;
    background: linear-gradient(to right, #45f39b, #234ced);
}

.article-kicker:hover {
    color: #0a58ca;
}

.article-title {
    max-width: 100%;
    margin: 0.35rem 0 0.85rem;
    color: #1b1f24;
    font-size: clamp(1.6rem, 2.05vw, 2.1rem);
    font-weight: 800;
    line-height: 1.16;
}

.article-standfirst {
    max-width: 48rem;
    margin: 0 0 1.15rem;
    padding-left: 1rem;
    border-left: 3px solid #45c985;
    color: #344054;
    font-size: 1.12rem;
    font-weight: 500;
    line-height: 1.58;
    overflow-wrap: anywhere;
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem 0.75rem;
    margin-bottom: 1.25rem;
    color: #667085;
    font-size: 0.94rem;
}

.article-meta > span:not(:last-child) {
    position: relative;
}

.article-meta > span:not(:last-child)::after {
    content: "";
    display: inline-block;
    width: 4px;
    height: 4px;
    margin-left: 0.75rem;
    border-radius: 50%;
    background: #c9d2dc;
    vertical-align: middle;
}

.article-share-label {
    font-weight: 700;
    color: #344054;
}

.share-buttons {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.share-buttons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border: 1px solid #d8e3ef;
    border-radius: 50%;
    background: #ffffff;
    color: #0d6efd;
    text-decoration: none;
    transition: background-color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.share-buttons a:hover {
    border-color: #0d6efd;
    background: #eef5ff;
    transform: translateY(-1px);
}

.share-buttons i {
    font-size: 1.05rem;
    line-height: 1;
}

.article-main-media {
    position: relative;
    overflow: hidden;
    margin: 0 0 1.75rem;
    border: 1px solid rgba(17, 24, 39, 0.08);
    border-radius: 10px;
    background: #eef2f6;
    box-shadow: 0 16px 38px rgba(16, 24, 40, 0.1);
}

.article-main-media::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 28%;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.16));
    pointer-events: none;
}

.article-main-media img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    cursor: zoom-in;
    transition: transform 0.24s ease;
}

.article-main-media:hover img,
.article-main-media:focus-within img {
    transform: scale(1.01);
}

.article-vehicle-panel {
    margin: 0 0 2rem;
    padding: 1rem;
    border: 1px solid #dbe7f0;
    border-radius: 8px;
    background: linear-gradient(180deg, #f8fbfd 0%, #ffffff 100%);
    box-shadow: 0 10px 26px rgba(16, 24, 40, 0.06);
}

.article-content {
    max-width: 46rem;
    color: #111111;
    font-size: 1.08rem;
    line-height: 1.78;
    overflow-wrap: anywhere;
}

.article-content > * + * {
    margin-top: 1.15rem;
}

.article-content p {
    margin-bottom: 0;
}

.article-content h2,
.article-content h3,
.article-content h4 {
    margin-top: 2rem;
    margin-bottom: 0.75rem;
    color: #1b1f24;
    font-weight: 800;
    line-height: 1.18;
}

.article-content a {
    color: #0645ad;
    font-weight: 700;
    text-decoration-thickness: 0.08em;
    text-underline-offset: 0.18em;
}

.article-detail .badge.bg-primary {
    background-color: #0645ad !important;
    color: #ffffff;
}

.news-discussion .alert a {
    color: #0645ad;
    font-weight: 700;
}

.news-discussion .alert a:hover,
.news-discussion .alert a:focus-visible {
    color: #04357f;
}

.article-content figure {
    position: relative;
    width: fit-content;
    max-width: 100%;
    margin: 2.25rem auto;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.article-content figure.captioned-video {
    width: 100%;
}

.article-content img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 2rem auto 0.45rem;
    border: 0;
    border-radius: 7px;
    background: transparent;
    box-shadow: none;
    cursor: zoom-in;
    transition: filter 0.2s ease, opacity 0.2s ease;
}

.article-content img:hover,
.article-content img:focus {
    filter: brightness(0.97);
}

.article-content figure img {
    margin-top: 0;
    border: 0;
    border-radius: 7px;
    box-shadow: none;
}

.article-inline-image-frame {
    position: relative;
    display: block;
    width: fit-content;
    max-width: 100%;
    margin: 2.25rem auto 0.65rem;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.article-content .article-inline-image-frame img {
    margin: 0;
    border: 0;
    border-radius: 7px;
    box-shadow: none;
}

.article-content figure:hover,
.article-content figure:focus-within,
.article-inline-image-frame:hover,
.article-inline-image-frame:focus-within {
    box-shadow: none;
}

.article-content figcaption,
.article-content em:has(+ br) {
    position: relative;
    color: #5f6c7b;
    font-size: 0.92rem;
    line-height: 1.45;
    margin-top: 0.55rem;
    padding-bottom: 0.72rem;
    text-align: center;
}

.article-content figcaption::after {
    content: "";
    display: block;
    width: min(18rem, 72%);
    height: 1px;
    margin: 0.62rem auto 0;
    background: linear-gradient(to right, rgba(17, 17, 17, 0), rgba(17, 17, 17, 0.28), rgba(17, 17, 17, 0));
}

.article-image-lightbox {
    position: fixed;
    inset: 0;
    z-index: 1080;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
    background: rgba(5, 10, 8, 0.88);
}

.article-image-lightbox.is-open {
    display: flex;
}

.article-image-lightbox__frame {
    position: relative;
    max-width: min(1180px, 96vw);
    max-height: 92vh;
}

.article-image-lightbox__image {
    display: block;
    max-width: 100%;
    max-height: 84vh;
    width: auto;
    height: auto;
    margin: 0 auto;
    border-radius: 8px;
    background: #111111;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.45);
}

.article-image-lightbox__caption {
    max-width: 60rem;
    margin: 0.75rem auto 0;
    color: #eef7f1;
    font-size: 0.95rem;
    line-height: 1.45;
    text-align: center;
}

.article-image-lightbox__caption:empty {
    display: none;
}

.article-image-lightbox__close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.55rem;
    height: 2.55rem;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.48);
    color: #ffffff;
    font-size: 1.65rem;
    line-height: 1;
}

.article-image-lightbox__close:hover,
.article-image-lightbox__close:focus {
    background: rgba(15, 159, 98, 0.92);
    border-color: rgba(255, 255, 255, 0.42);
}

body.image-lightbox-open {
    overflow: hidden;
}

.article-content blockquote {
    margin: 1.75rem 0;
    padding: 0.35rem 0 0.35rem 1.25rem;
    border-left: 4px solid #45c985;
    color: #344054;
    font-size: 1.18rem;
    font-weight: 600;
    line-height: 1.55;
}

.article-content .twitter-embed {
    display: flex;
    justify-content: center;
    max-width: 100%;
    margin: 2rem 0;
    overflow-x: auto;
}

.article-content .twitter-embed .twitter-tweet {
    margin: 0 !important;
}

.article-content iframe[src*="youtube.com/embed"],
.article-content iframe[src*="youtube-nocookie.com/embed"] {
    display: block;
    width: 100%;
    max-width: 100%;
    aspect-ratio: 16 / 9;
    height: auto;
    margin: 2rem auto;
    border: 0;
    border-radius: 8px;
    background: #000000;
}

.article-content figure.captioned-video iframe[src*="youtube.com/embed"],
.article-content figure.captioned-video iframe[src*="youtube-nocookie.com/embed"] {
    margin: 0 auto;
}

.article-sidebar {
    position: sticky;
    top: 1.25rem;
}

.ad-slot {
    width: 100%;
}

.ad-slot--top-menu {
    max-width: 1320px;
    margin: 0.75rem auto 0;
    padding: 0 0.75rem;
}

.ad-slot--leaderboard,
.ad-slot--in-feed,
.ad-slot--article-inline,
.ad-slot--sidebar {
    margin-top: 1rem;
    margin-bottom: 1rem;
}

.ad-slot--top-menu .direct-ad {
    aspect-ratio: 8 / 1;
    min-height: 110px;
    max-height: 190px;
}

.ad-slot--leaderboard .direct-ad,
.ad-slot--in-feed .direct-ad,
.ad-slot--article-inline .direct-ad {
    aspect-ratio: 4.8 / 1;
    min-height: 120px;
    max-height: 260px;
}

.ad-slot--sidebar .direct-ad {
    aspect-ratio: 6 / 5;
    min-height: 250px;
    max-height: 420px;
}

.direct-ad-slot {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.direct-ad {
    position: relative;
    display: block;
    overflow: hidden;
    border: 1px solid rgba(15, 23, 42, 0.12);
    border-radius: 8px;
    background: #f8fafc;
    text-decoration: none;
}

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

.ad-label {
    position: absolute;
    top: 0.35rem;
    right: 0.45rem;
    z-index: 1;
    padding: 0.1rem 0.35rem;
    border-radius: 4px;
    background: rgba(15, 23, 42, 0.72);
    color: #fff;
    font-size: 0.65rem;
    line-height: 1.2;
    text-transform: uppercase;
}

.adsense-ad-slot {
    position: relative;
    min-height: 90px;
    overflow: hidden;
    border: 1px dashed rgba(15, 23, 42, 0.16);
    border-radius: 8px;
    background: #f8fafc;
}

.adsense-ad-slot .ad-label {
    position: static;
    display: inline-block;
    margin: 0.35rem 0.45rem;
}

.admin-ad-thumb {
    width: 120px;
    max-height: 60px;
    object-fit: contain;
    border: 1px solid rgba(15, 23, 42, 0.12);
    border-radius: 6px;
    background: #f8fafc;
}

.sidebar-news-section {
    padding: 0.95rem 0 0;
    border-top: 1px solid #dbe4ee;
}

.sidebar-news-section + .sidebar-news-section {
    margin-top: 1.35rem;
}

.sidebar-section-title {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    margin: 0 0 0.75rem;
    color: #20252b;
    font-size: 1.25rem;
    font-weight: 800;
    line-height: 1.2;
}

.sidebar-section-title::after {
    content: "";
    flex: 1;
    height: 3px;
    border-radius: 999px;
    background: linear-gradient(to right, #45f39b, #234ced);
}

.sidebar-news-list {
    display: grid;
    gap: 0.15rem;
}

.sidebar-news-item {
    display: grid;
    grid-template-columns: 0.35rem minmax(0, 1fr);
    gap: 0.5rem;
    padding: 0.85rem 0;
    border-bottom: 1px solid #e4eaf0;
}

.sidebar-news-rank {
    color: #425466;
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    font-weight: 800;
    line-height: 1;
}

.sidebar-news-body {
    display: grid;
    grid-template-columns: minmax(112px, 38%) minmax(0, 1fr);
    gap: 0.75rem;
    align-items: start;
}

.sidebar-news-media {
    overflow: hidden;
    border-radius: 8px;
    background: #edf2f7;
}

.sidebar-news-copy {
    min-width: 0;
}

.sidebar-news-title {
    margin: 0 0 0.55rem;
    color: #20252b;
    font-size: 0.98rem;
    font-weight: 800;
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.sidebar-news-meta {
    color: #667085;
    line-height: 1.35;
}

.sidebar-news-item:hover .sidebar-news-title {
    color: #0645ad;
}

.sidebar-news-item-compact {
    grid-template-columns: 0.35rem minmax(0, 1fr);
    padding: 0.68rem 0;
}

.sidebar-news-item-compact .sidebar-news-body {
    grid-template-columns: 86px minmax(0, 1fr);
    gap: 0.68rem;
}

.sidebar-news-item-compact .sidebar-news-title {
    margin-bottom: 0.35rem;
    font-size: 0.9rem;
    line-height: 1.24;
}

.sidebar-news-item-compact .sidebar-news-rank {
    font-size: 0.88rem;
}

.search-page__header {
    max-width: 52rem;
    margin-bottom: 1.4rem;
}

.search-page__eyebrow {
    margin: 0 0 0.35rem;
    color: #0d6efd;
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.search-page__title {
    margin: 0 0 0.45rem;
    color: #1b1f24;
    font-size: clamp(1.7rem, 2.2vw, 2.25rem);
    font-weight: 800;
    line-height: 1.16;
}

.search-page__summary {
    margin: 0;
    color: #5f6c7b;
    font-size: 1.02rem;
}

.search-page__form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.65rem;
    max-width: 42rem;
    margin-bottom: 1.4rem;
}

.search-results {
    display: grid;
    gap: 0;
    border-top: 1px solid #e4eaf0;
}

.search-result-item {
    display: grid;
    grid-template-columns: minmax(130px, 15rem) minmax(0, 1fr);
    gap: 1rem;
    padding: 1.1rem 0;
    border-bottom: 1px solid #e4eaf0;
}

.search-result-item__media {
    display: block;
    overflow: hidden;
    border-radius: 8px;
    background: #edf2f7;
    aspect-ratio: 16 / 9;
}

.search-result-item__media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.search-result-item__category {
    color: #0d6efd;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-decoration: none;
    text-transform: uppercase;
}

.search-result-item__title {
    margin: 0.25rem 0 0.45rem;
    font-size: 1.2rem;
    font-weight: 800;
    line-height: 1.25;
}

.search-result-item__title a {
    color: #20252b;
    text-decoration: none;
}

.search-result-item__title a:hover {
    color: #0d6efd;
}

.search-result-item__subtitle {
    margin: 0 0 0.55rem;
    color: #4b5563;
    line-height: 1.55;
}

.search-result-item__meta {
    color: #667085;
    font-size: 0.9rem;
}

.search-result-item__tags a {
    color: inherit;
    text-decoration: none;
}

.search-result-item__tags a:hover {
    color: #0d6efd;
}

.search-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.9rem;
    margin-top: 1.5rem;
}

.search-pagination .btn-outline-secondary {
    border-color: rgba(15, 159, 98, 0.38);
    color: #0f7f4f;
    transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.search-pagination .btn-outline-secondary:not(.disabled):hover,
.search-pagination .btn-outline-secondary:not(.disabled):focus {
    background-color: #0f9f62;
    border-color: #0f9f62;
    color: #ffffff;
    box-shadow: 0 0.35rem 0.9rem rgba(15, 159, 98, 0.18);
}

.search-pagination .btn-outline-secondary.disabled {
    border-color: #dde5e0;
    color: #8a978f;
    opacity: 1;
}

.dark-mode .article-title,
.dark-mode .article-content,
.dark-mode .article-content h2,
.dark-mode .article-content h3,
.dark-mode .article-content h4,
.dark-mode .sidebar-section-title,
.dark-mode .sidebar-news-title,
.dark-mode .article-share-label {
    color: #f4f6f8;
}

.dark-mode .article-standfirst,
.dark-mode .article-content blockquote {
    color: #c9d2dc;
}

.dark-mode .article-standfirst {
    border-left-color: #66d19e;
}

.dark-mode .share-buttons a {
    border-color: #3a3a3a;
    background: #1b1b1b;
}

.dark-mode .share-buttons a:hover {
    border-color: #66b2ff;
    background: #202a35;
}

.dark-mode .article-main-media,
.dark-mode .article-content img {
    background: #1f252c;
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.36);
}

.dark-mode .article-content figure {
    background: transparent;
    box-shadow: none;
}

.dark-mode .article-inline-image-frame {
    background: transparent;
    box-shadow: none;
}

.dark-mode .article-content figcaption,
.dark-mode .article-content em:has(+ br) {
    color: #aeb8c2;
}

.dark-mode .article-content figcaption::after {
    background: linear-gradient(to right, rgba(244, 246, 248, 0), rgba(244, 246, 248, 0.28), rgba(244, 246, 248, 0));
}

.dark-mode .article-vehicle-panel {
    border-color: #3a3a3a;
    background: linear-gradient(180deg, #1a1d20 0%, #141414 100%);
}

.dark-mode .sidebar-news-section,
.dark-mode .sidebar-news-item {
    border-color: #333940;
}

.dark-mode .sidebar-news-rank {
    color: #c9d2dc;
}

.dark-mode .search-page__title,
.dark-mode .search-result-item__title a {
    color: #f4f6f8;
}

.dark-mode .search-page__summary,
.dark-mode .search-result-item__subtitle,
.dark-mode .search-result-item__meta {
    color: #c9d2dc;
}

.dark-mode .comment-count-link {
    color: #c9d2dc;
}

.dark-mode .comment-count-link:hover,
.dark-mode .comment-count-link:focus-visible {
    color: #55e39f;
}

.dark-mode .search-results,
.dark-mode .search-result-item {
    border-color: #333940;
}

.dark-mode .search-result-item__media {
    background: #1f252c;
}

@media (max-width: 991.98px) {
    .custom-header {
        padding: 0.35rem 0;
    }

    .header-main {
        flex-wrap: wrap;
        gap: 0.35rem 0.5rem;
    }

    .header-brand-nav {
        display: contents !important;
    }

    .site-logo-link {
        order: 1;
    }

    .site-logo-img {
        max-width: clamp(116px, 42vw, 176px) !important;
    }

    .header-actions {
        order: 2;
        margin-left: auto;
        gap: 0.35rem !important;
    }

    .site-nav {
        order: 3;
        flex: 0 0 100%;
        width: 100%;
        margin-left: 0 !important;
        overflow-x: auto;
        scrollbar-width: thin;
        -webkit-overflow-scrolling: touch;
    }

    .site-nav .nav {
        flex-wrap: nowrap;
        gap: 0.15rem;
        padding: 0.15rem 0 0.05rem;
        white-space: nowrap;
    }

    .categoria-link {
        padding: 0.35rem 0.55rem;
        font-size: 0.95rem;
        line-height: 1.15;
    }

    #themeToggleBtn {
        min-width: 2.55rem;
        padding-inline: 0.55rem;
        font-size: 0;
    }

    #themeToggleBtn::before {
        content: "Tema";
        font-size: 0.78rem;
        font-weight: 700;
    }

    .header-search__toggle {
        width: 2rem;
        height: 2rem;
    }

    .header-search__form {
        position: fixed;
        top: 4.9rem;
        left: 0.75rem;
        right: 0.75rem;
        width: auto;
    }

    .article-title {
        max-width: 100%;
    }

    .article-sidebar {
        position: static;
        margin-top: 1rem;
    }
}

@media (max-width: 576px) {
    .custom-header .container {
        padding-left: 0.55rem;
        padding-right: 0.55rem;
    }

    .header-actions .btn {
        padding-inline: 0.48rem;
    }

    .header-actions .btn-outline-light {
        font-size: 0.78rem;
    }

    .site-nav {
        margin-left: -0.1rem !important;
        margin-right: -0.1rem;
    }

    .categoria-link {
        font-size: 0.86rem;
    }

    .article-detail-page {
        margin-top: 0.85rem;
    }

    .article-title {
        max-width: none;
        font-size: 1.48rem;
        line-height: 1.16;
    }

    .article-standfirst {
        padding-left: 0.8rem;
        font-size: 1rem;
        line-height: 1.55;
    }

    .search-page__form,
    .search-result-item {
        grid-template-columns: 1fr;
    }

    .search-result-item__media {
        max-width: none;
    }

    .article-meta {
        gap: 0.35rem 0.55rem;
    }

    .article-main-media {
        border-radius: 6px;
        margin-left: -0.75rem;
        margin-right: -0.75rem;
    }

    .article-main-media img {
        aspect-ratio: auto;
        height: auto;
        object-fit: contain;
    }

    .article-vehicle-panel {
        margin-left: -0.25rem;
        margin-right: -0.25rem;
        padding: 0.75rem;
    }

    .article-content {
        font-size: 1rem;
        line-height: 1.7;
    }

    .sidebar-news-item {
        grid-template-columns: 0.35rem minmax(0, 1fr);
    }

    .sidebar-news-body {
        grid-template-columns: 112px minmax(0, 1fr);
    }

    .sidebar-news-item-compact .sidebar-news-body {
        grid-template-columns: 96px minmax(0, 1fr);
    }
}

.news-discussion {
    border-top: 1px solid #dee2e6;
    padding-top: 1.25rem;
}

.forum-page-header {
    padding-bottom: 0.35rem;
}

.forum-page-heading {
    max-width: 43rem;
}

.forum-page-kicker {
    margin-bottom: 0.35rem;
    color: #15664c;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}

.forum-page-heading h1 {
    margin-bottom: 0.4rem;
    color: #132a22;
    font-size: 1.8rem;
    font-weight: 800;
    line-height: 1.08;
}

.forum-page-line {
    height: 3px;
    margin-top: 0.9rem;
    width: 100%;
    background: linear-gradient(to right, #22e58d, rgba(34, 229, 141, 0));
}

.forum-thread-list,
.forum-messages,
.forum-admin-list {
    display: grid;
    gap: 0.75rem;
}

.forum-page .forum-thread-list {
    gap: 0.55rem;
}

.forum-thread-board {
    display: grid;
    gap: 0.85rem;
}

.forum-thread-board-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) max-content;
    gap: 1rem;
    align-items: end;
    border-bottom: 1px solid rgba(30, 64, 50, 0.1);
    padding-bottom: 0.65rem;
}

.forum-thread-board-header h2 {
    margin: 0;
    color: #132a22;
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: 0;
}

.forum-thread-board-header span {
    color: #6c757d;
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0;
    line-height: 1.2;
    text-transform: uppercase;
}

.forum-thread-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) max-content;
    align-items: center;
    gap: 1rem;
    border: 1px solid rgba(30, 64, 50, 0.12);
    border-left: 3px solid transparent;
    border-radius: 0.35rem;
    background: #ffffff;
    padding: 0.8rem 0.9rem;
    transition: border-color 0.18s ease, background-color 0.18s ease;
}

.forum-thread-row:hover,
.forum-thread-row:focus-within {
    border-color: rgba(25, 135, 84, 0.35);
    border-left-color: #198754;
    background: rgba(25, 135, 84, 0.035);
}

.forum-thread-main {
    min-width: 0;
}

.forum-thread-title {
    color: #132a22;
    display: inline-block;
    max-width: 100%;
    font-size: 1.02rem;
    font-weight: 800;
    line-height: 1.25;
    text-decoration: none;
    overflow-wrap: anywhere;
}

.forum-thread-time {
    min-width: 6.25rem;
    color: #51655c !important;
    font-weight: 700;
    text-align: right;
    white-space: nowrap;
}

.forum-thread-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.2rem 0.45rem;
    margin-top: 0.28rem;
}

.forum-thread-meta a:hover,
.forum-thread-meta a:focus-visible {
    color: #198754 !important;
}

.forum-thread-category {
    line-height: 1.25;
}

.forum-thread-row .small {
    font-size: 0.82rem;
    line-height: 1.25;
}

.forum-thread-title:hover {
    color: #0d6efd;
    text-decoration: underline;
}

.forum-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 1.1rem;
}

.forum-thread-empty {
    border: 1px solid rgba(30, 64, 50, 0.14);
    border-radius: 0.35rem;
    background: rgba(25, 135, 84, 0.045);
    color: #52685f;
    padding: 1.1rem;
}

.forum-message,
.forum-admin-item {
    border: 1px solid #dee2e6;
    border-radius: 0.5rem;
    padding: 0.9rem;
    background: #ffffff;
}

.forum-message-reply {
    border-left: 4px solid #198754;
}

.forum-message-depth-1 {
    margin-left: 1.25rem;
}

.forum-message-depth-2 {
    margin-left: 2.5rem;
    border-left-color: #20c997;
}

.forum-message-depth-3 {
    margin-left: 3.75rem;
    border-left-color: #0dcaf0;
}

.forum-message-depth-overflow {
    border-left-style: dashed;
}

.forum-message-pending {
    border-left: 4px solid #ffc107;
    background: #fff8e1;
}

.forum-message-head {
    align-items: flex-start;
    display: flex;
    gap: 0.75rem;
    justify-content: space-between;
}

.forum-message-meta {
    color: #6c757d;
    font-size: 0.85rem;
    margin-bottom: 0.35rem;
}

.forum-message-content {
    margin-bottom: 0.25rem;
    white-space: pre-wrap;
}

.forum-edit-form {
    display: grid;
    gap: 0.5rem;
    margin-bottom: 0.35rem;
}

.forum-edit-controls {
    align-items: center;
    display: flex;
    gap: 0.5rem;
}

.forum-message-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.forum-message-report {
    align-items: center;
    background: transparent;
    border: 0;
    border-radius: 999px;
    color: #dc3545;
    display: inline-flex;
    flex: 0 0 auto;
    font-size: 0.78rem;
    font-weight: 700;
    height: 1.45rem;
    justify-content: center;
    line-height: 1;
    opacity: 0.72;
    padding: 0;
    width: 1.45rem;
}

.forum-message-report::before {
    content: "!";
}

.forum-message-report:hover,
.forum-message-report:focus {
    background: rgba(220, 53, 69, 0.1);
    opacity: 1;
}

.forum-message-report-done {
    color: #198754;
    opacity: 1;
}

.forum-message-report-done::before {
    content: "OK";
    font-size: 0.62rem;
}

.forum-auth-required-active {
    animation: forum-auth-required-pulse 1.3s ease-in-out 2;
    border-color: #198754 !important;
    box-shadow: 0 0 0 0.2rem rgba(25, 135, 84, 0.16);
}

.forum-inline-auth-required {
    font-size: 0.9rem;
    margin: 0.65rem 0 0;
    padding: 0.55rem 0.75rem;
}

@keyframes forum-auth-required-pulse {
    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(25, 135, 84, 0);
    }

    45% {
        box-shadow: 0 0 0 0.28rem rgba(25, 135, 84, 0.2);
    }
}

.dark-mode .forum-message,
.dark-mode .forum-admin-item {
    background: #1b1b1b;
    border-color: #3a3a3a;
}

.dark-mode .forum-message-pending {
    background: #2a2615;
}

.dark-mode .forum-thread-row,
.dark-mode .news-discussion {
    border-color: #3a3a3a;
}

.dark-mode .forum-thread-board-header {
    border-color: #3a3a3a;
}

.dark-mode .forum-page-heading h1,
.dark-mode .forum-thread-board-header h2,
.dark-mode .forum-thread-title {
    color: #f0f4f2;
}

.dark-mode .forum-page-kicker {
    color: #75d7ad;
}

.dark-mode .forum-thread-empty {
    background: rgba(69, 201, 133, 0.1);
}

.dark-mode .forum-thread-empty {
    color: #c4ccd4;
}

.dark-mode .forum-thread-row {
    background: #1b1b1b;
}

.dark-mode .forum-thread-row:hover,
.dark-mode .forum-thread-row:focus-within {
    border-left-color: #45c985;
    border-color: rgba(69, 201, 133, 0.42);
    background: rgba(69, 201, 133, 0.08);
}

@media (max-width: 576px) {
    .forum-thread-row {
        grid-template-columns: minmax(0, 1fr);
        align-items: start;
        gap: 0.45rem;
    }

    .forum-thread-board-header {
        grid-template-columns: minmax(0, 1fr);
        gap: 0.25rem;
    }

    .forum-thread-time {
        min-width: 0;
        padding-top: 0.1rem;
        font-size: 0.8rem;
    }

    .forum-message-depth-1 {
        margin-left: 0.65rem;
    }

    .forum-message-depth-2 {
        margin-left: 1.15rem;
    }

    .forum-message-depth-3 {
        margin-left: 1.65rem;
    }
}

.autonomy-trip {
    --trip-car-color: #39ff14;
    position: relative;
    width: 100%;
    min-width: 0;
    height: 156px;
    overflow: hidden;
    border: 1px solid #d6e3ee;
    border-radius: 8px;
    background: #eaf6ff;
}

.autonomy-trip__sky {
    position: absolute;
    inset: 0 0 48px;
    background: linear-gradient(180deg, #dff2ff 0%, #f5fbff 100%);
}

.autonomy-trip__sky::before {
    content: "";
    position: absolute;
    top: 16px;
    left: 18px;
    width: 34px;
    height: 12px;
    border-radius: 999px;
    background: #ffffff;
    box-shadow: 56px 14px 0 -2px #ffffff, 106px 6px 0 -1px #ffffff;
    opacity: 0.95;
    animation: autonomyClouds 9s linear infinite;
}

.autonomy-trip__road {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 58px;
    background: #56616a;
}

.autonomy-trip__road::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 30px;
    height: 3px;
    background: repeating-linear-gradient(90deg, #ffffff 0 18px, transparent 18px 32px);
    opacity: 0.85;
}

.autonomy-trip__city {
    position: absolute;
    bottom: 0;
    width: 128px;
    height: 60px;
    color: #2d3d4a;
    font-size: 0.72rem;
    font-weight: 700;
    line-height: 1.1;
    text-align: center;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.8);
}

.autonomy-trip__place {
    position: absolute;
    bottom: -2px;
    width: clamp(90px, 19vw, 136px);
    height: auto;
    filter: drop-shadow(0 5px 8px rgba(46, 70, 86, 0.16));
    z-index: 1;
}

.autonomy-trip__place--origin {
    left: 12px;
}

.autonomy-trip__place--destination {
    right: 12px;
}

.autonomy-trip__distance {
    position: absolute;
    left: clamp(122px, 26%, 210px);
    right: clamp(122px, 26%, 210px);
    top: 42px;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 0.55rem;
    color: #31576c;
    font-size: 0.82rem;
    font-weight: 700;
    white-space: nowrap;
}

.autonomy-trip__distance::before,
.autonomy-trip__distance::after {
    content: "";
    flex: 1;
    min-width: 18px;
    border-top: 2px dashed rgba(49, 87, 108, 0.55);
}

.autonomy-trip__distance span {
    padding: 0.18rem 0.55rem;
    border: 1px solid rgba(49, 87, 108, 0.2);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.82);
    box-shadow: 0 2px 5px rgba(49, 87, 108, 0.12);
}

.autonomy-trip__city::before {
    content: "";
    display: block;
    position: absolute;
    left: 50%;
    bottom: 16px;
    width: 82px;
    height: 38px;
    transform: translateX(-50%);
    border-radius: 5px 5px 1px 1px;
    background:
        linear-gradient(90deg, transparent 0 8px, rgba(255,255,255,0.85) 8px 14px, transparent 14px 24px) 0 8px / 28px 12px repeat-x,
        linear-gradient(180deg, #9bb8ca 0%, #6f8fa3 100%);
    box-shadow:
        -38px 14px 0 -9px #7898aa,
        40px 8px 0 -7px #87a8ba,
        18px -8px 0 -14px #67889d;
}

.autonomy-trip__city::after {
    content: "";
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 0;
    height: 14px;
    border-radius: 10px 10px 0 0;
    background: rgba(233, 246, 255, 0.9);
}

.autonomy-trip__city--origin {
    left: 14px;
}

.autonomy-trip__city--destination {
    right: 14px;
}

.autonomy-trip__station {
    position: absolute;
    top: -28px;
    width: 26px;
    height: 34px;
    border: 2px solid #087f5b;
    border-radius: 6px 6px 3px 3px;
    background:
        linear-gradient(180deg, #e9fff4 0 38%, #20c997 38% 100%);
    box-shadow: 0 3px 7px rgba(8, 127, 91, 0.28);
    opacity: 0;
    z-index: 3;
}

.autonomy-trip__station::after {
    content: "";
    position: absolute;
    right: -12px;
    top: 9px;
    width: 11px;
    height: 17px;
    border-top: 3px solid #087f5b;
    border-right: 3px solid #087f5b;
    border-radius: 0 8px 0 0;
}

.autonomy-trip__station::before {
    content: "⚡";
    position: absolute;
    left: 4px;
    top: 1px;
    width: 14px;
    height: 14px;
    color: #087f5b;
    font-size: 0.82rem;
    line-height: 1;
    text-align: center;
    animation: autonomyChargePulse 1.2s ease-in-out infinite;
}

.autonomy-trip__station--one {
    left: 40%;
}

.autonomy-trip__station--two {
    left: 62%;
}

.autonomy-trip__station--three {
    display: none;
}

.autonomy-trip__car {
    position: absolute;
    left: 18px;
    bottom: 16px;
    width: 34px;
    height: 18px;
    animation: autonomyDriveLow 7s ease-in-out infinite;
    z-index: 4;
}

.autonomy-trip__car::after {
    content: "⚡";
    position: absolute;
    left: 9px;
    top: -28px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgba(255, 245, 157, 0.95);
    color: #087f5b;
    font-size: 0.95rem;
    line-height: 20px;
    text-align: center;
    box-shadow: 0 0 0 4px rgba(57, 255, 20, 0.18), 0 4px 10px rgba(8, 127, 91, 0.25);
    opacity: 0;
    transform: translateY(4px) scale(0.82);
    animation: autonomyChargingLow 7s ease-in-out infinite;
}

.autonomy-trip__car-body {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 12px;
    border-radius: 8px 10px 4px 4px;
    background: var(--trip-car-color);
}

.autonomy-trip__car-body::before,
.autonomy-trip__car-body::after {
    content: "";
    position: absolute;
    bottom: -4px;
    width: 8px;
    height: 8px;
    border: 2px solid #28323b;
    border-radius: 50%;
    background: #ffffff;
}

.autonomy-trip__car-body::before {
    left: 5px;
}

.autonomy-trip__car-body::after {
    right: 5px;
}

.autonomy-trip__car-window {
    position: absolute;
    left: 9px;
    bottom: 10px;
    width: 15px;
    height: 8px;
    border-radius: 8px 8px 2px 2px;
    background: #d8f3ff;
}

.autonomy-trip--low {
    --trip-car-color: #39ff14;
}

.autonomy-trip--medium {
    --trip-car-color: #39ff14;
}

.autonomy-trip--high {
    --trip-car-color: #39ff14;
}

.autonomy-trip--max {
    --trip-car-color: #39ff14;
}

.autonomy-trip--low .autonomy-trip__station--one,
.autonomy-trip--low .autonomy-trip__station--two {
    opacity: 1;
}

.autonomy-trip--medium .autonomy-trip__station--one {
    opacity: 1;
    left: 50%;
}

.autonomy-trip--high .autonomy-trip__station--two {
    opacity: 1;
    left: auto;
    right: clamp(96px, 18%, 150px);
}

.autonomy-trip--medium .autonomy-trip__car {
    animation-name: autonomyDriveMedium;
}

.autonomy-trip--medium .autonomy-trip__car::after {
    animation-name: autonomyChargingMedium;
}

.autonomy-trip--high .autonomy-trip__car {
    animation-name: autonomyDriveHigh;
}

.autonomy-trip--high .autonomy-trip__car::after {
    animation-name: autonomyChargingHigh;
}

.autonomy-trip--max .autonomy-trip__car {
    animation-name: autonomyDriveMax;
    animation-duration: 8s;
}

.autonomy-trip--max .autonomy-trip__car::after {
    animation: none;
}

.autonomy-trip--max .autonomy-trip__city--origin::after {
    content: "";
    position: absolute;
    left: 50%;
    right: auto;
    bottom: 1px;
    width: 18px;
    height: 18px;
    transform: translateX(-50%);
    border: 2px solid #0d6efd;
    border-left-color: transparent;
    border-radius: 50%;
}

.autonomy-trip--max .autonomy-trip__city--origin {
    color: #0d6efd;
}

.autonomy-trip--max .autonomy-trip__place--origin {
    filter: drop-shadow(0 0 0 rgba(0, 0, 0, 0)) drop-shadow(0 5px 8px rgba(13, 110, 253, 0.22));
}

.autonomy-trip__estimate {
    display: grid;
    gap: 0.15rem;
    padding: 0.75rem 0.9rem;
    border: 1px solid #d6e3ee;
    border-radius: 8px;
    background: #f8fbfd;
    color: #4c5d6b;
}

.autonomy-trip__estimate-note {
    font-size: 0.68rem;
    line-height: 1.25;
    color: #7a8792;
}

.vehicle-side-visual {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
    min-width: 165px;
}

.autonomy-range-image {
    width: 165px;
    aspect-ratio: 3 / 2;
    object-fit: cover;
    border: 1px solid #d6e3ee;
    border-radius: 8px;
    background: #f8fbfd;
    box-shadow: 0 2px 8px rgba(46, 70, 86, 0.08);
}

.autonomy-range-illustration {
    --range-accent: #2f9e44;
    position: relative;
    width: 165px;
    height: 112px;
    overflow: hidden;
    border: 1px solid #d6e3ee;
    border-radius: 8px;
    background: linear-gradient(180deg, #e8f7ff 0%, #f8fff7 100%);
    box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.7);
}

.autonomy-range-illustration__sun {
    position: absolute;
    top: 13px;
    right: 16px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #ffd166;
}

.autonomy-range-illustration__backdrop {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 26px;
    height: 44px;
    background: #a8ddb5;
    clip-path: polygon(0 70%, 14% 58%, 27% 62%, 43% 42%, 58% 55%, 75% 28%, 100% 45%, 100% 100%, 0 100%);
}

.autonomy-range-illustration__road {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 31px;
    background: #58646d;
}

.autonomy-range-illustration__road::before {
    content: "";
    position: absolute;
    left: 11px;
    right: 11px;
    top: 13px;
    height: 2px;
    background: repeating-linear-gradient(90deg, #ffffff 0 18px, transparent 18px 30px);
    opacity: 0.8;
}

.autonomy-range-illustration__car {
    position: absolute;
    left: 63px;
    bottom: 17px;
    width: 32px;
    height: 13px;
    border-radius: 8px 10px 3px 3px;
    background: #39ff14;
    box-shadow: inset 9px -8px 0 rgba(0, 0, 0, 0.08);
}

.autonomy-range-illustration__car::before,
.autonomy-range-illustration__car::after {
    content: "";
    position: absolute;
    bottom: -5px;
    width: 8px;
    height: 8px;
    border: 2px solid #263238;
    border-radius: 50%;
    background: #ffffff;
}

.autonomy-range-illustration__car::before {
    left: 5px;
}

.autonomy-range-illustration__car::after {
    right: 5px;
}

.autonomy-range-illustration__detail {
    position: absolute;
    z-index: 2;
}

.autonomy-trip--low.autonomy-range-illustration {
    --range-accent: #2f9e44;
}

.autonomy-trip--low .autonomy-range-illustration__backdrop {
    height: 34px;
    background: #b7dfb4;
    clip-path: polygon(0 60%, 18% 42%, 35% 54%, 50% 36%, 65% 50%, 100% 38%, 100% 100%, 0 100%);
}

.autonomy-trip--low .autonomy-range-illustration__detail--one {
    left: 18px;
    bottom: 31px;
    width: 24px;
    height: 32px;
    border-radius: 3px 3px 0 0;
    background: #7898aa;
    box-shadow: 30px -12px 0 4px #8fb3c8, 58px 0 0 -2px #6f8fa3;
}

.autonomy-trip--low .autonomy-range-illustration__detail--two {
    left: 23px;
    bottom: 44px;
    width: 5px;
    height: 5px;
    background: #edf8ff;
    box-shadow: 10px 0 #edf8ff, 30px -8px #edf8ff, 42px -8px #edf8ff, 60px 2px #edf8ff;
}

.autonomy-trip--medium.autonomy-range-illustration {
    background: linear-gradient(180deg, #e9f7ff 0%, #fffaf0 100%);
}

.autonomy-trip--medium .autonomy-range-illustration__detail--one {
    left: 18px;
    bottom: 31px;
    width: 38px;
    height: 24px;
    border-radius: 3px;
    background: #fff3d6;
    box-shadow: 70px -2px 0 0 #fff7e8;
}

.autonomy-trip--medium .autonomy-range-illustration__detail--one::before,
.autonomy-trip--medium .autonomy-range-illustration__detail--one::after {
    content: "";
    position: absolute;
    top: -13px;
    width: 42px;
    height: 18px;
    background: #c96f4a;
    clip-path: polygon(0 100%, 50% 0, 100% 100%);
}

.autonomy-trip--medium .autonomy-range-illustration__detail--one::before {
    left: -2px;
}

.autonomy-trip--medium .autonomy-range-illustration__detail--one::after {
    left: 70px;
    background: #d08a48;
}

.autonomy-trip--medium .autonomy-range-illustration__detail--two {
    left: 71px;
    bottom: 48px;
    width: 18px;
    height: 24px;
    border-radius: 999px 999px 2px 2px;
    background: #6ab04c;
    box-shadow: -8px 8px 0 -3px #4f8f3a, 9px 8px 0 -3px #4f8f3a;
}

.autonomy-trip--high.autonomy-range-illustration .autonomy-range-illustration__backdrop,
.autonomy-trip--max.autonomy-range-illustration .autonomy-range-illustration__backdrop {
    height: 52px;
    background: #8fc58b;
    clip-path: polygon(0 62%, 15% 35%, 30% 50%, 45% 18%, 62% 47%, 78% 24%, 100% 45%, 100% 100%, 0 100%);
}

.autonomy-trip--high .autonomy-range-illustration__detail--one {
    left: 18px;
    bottom: 55px;
    width: 48px;
    height: 32px;
    border-left: 7px solid transparent;
    border-right: 7px solid transparent;
    border-bottom: 32px solid #8fb3c8;
}

.autonomy-trip--high .autonomy-range-illustration__detail--two {
    right: 18px;
    bottom: 31px;
    width: 42px;
    height: 26px;
    border-radius: 3px;
    background: #fff3d6;
}

.autonomy-trip--high .autonomy-range-illustration__detail--two::before {
    content: "";
    position: absolute;
    top: -15px;
    left: -3px;
    width: 48px;
    height: 19px;
    background: #c96f4a;
    clip-path: polygon(0 100%, 50% 0, 100% 100%);
}

.autonomy-trip--max.autonomy-range-illustration {
    background: linear-gradient(180deg, #e8f7ff 0%, #edf9f1 100%);
}

.autonomy-trip--max .autonomy-range-illustration__detail--one {
    left: 22px;
    bottom: 55px;
    width: 46px;
    height: 31px;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 31px solid #7fa6c1;
    filter: drop-shadow(55px 7px 0 #9abf83);
}

.autonomy-trip--max .autonomy-range-illustration__detail--two {
    right: 20px;
    bottom: 37px;
    width: 28px;
    height: 28px;
    border: 3px solid rgba(47, 158, 68, 0.88);
    border-left-color: transparent;
    border-radius: 50%;
}

.autonomy-trip--max .autonomy-range-illustration__detail--two::after {
    content: "";
    position: absolute;
    right: -3px;
    top: 1px;
    width: 7px;
    height: 7px;
    border-top: 3px solid rgba(47, 158, 68, 0.88);
    border-right: 3px solid rgba(47, 158, 68, 0.88);
    transform: rotate(45deg);
}

.dark-mode .autonomy-trip {
    border-color: #3a3a3a;
    background: #142232;
}

.dark-mode .autonomy-trip__sky {
    background: linear-gradient(180deg, #12253a 0%, #1e344a 100%);
}

.dark-mode .autonomy-trip__city {
    color: #e9ecef;
}

.dark-mode .autonomy-trip__place {
    filter: saturate(0.9) brightness(0.82) drop-shadow(0 5px 8px rgba(0, 0, 0, 0.35));
}

.dark-mode .autonomy-trip__distance {
    color: #dcecff;
}

.dark-mode .autonomy-trip__distance::before,
.dark-mode .autonomy-trip__distance::after {
    border-color: rgba(220, 236, 255, 0.55);
}

.dark-mode .autonomy-trip__distance span {
    border-color: rgba(220, 236, 255, 0.18);
    background: rgba(20, 34, 50, 0.86);
}

.dark-mode .autonomy-trip__estimate {
    border-color: #3a3a3a;
    background: #171f27;
    color: #c8d2dc;
}

@keyframes autonomyClouds {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(18px);
    }
}

@keyframes autonomyChargePulse {
    0%, 100% {
        opacity: 0.4;
        transform: scale(0.8);
    }
    50% {
        opacity: 1;
        transform: scale(1.15);
    }
}

@keyframes autonomyDriveLow {
    0% { left: 18px; }
    20%, 32% { left: 40%; }
    52%, 64% { left: 62%; }
    92%, 100% { left: calc(100% - 54px); }
}

@keyframes autonomyDriveMedium {
    0% { left: 18px; }
    42%, 58% { left: 50%; }
    92%, 100% { left: calc(100% - 54px); }
}

@keyframes autonomyDriveHigh {
    0% { left: 18px; }
    76%, 90% { left: calc(82% - 34px); }
    100% { left: calc(100% - 54px); }
}

@keyframes autonomyDriveMax {
    0% { left: 18px; transform: scaleX(1); }
    45% { left: calc(100% - 54px); transform: scaleX(1); }
    50% { left: calc(100% - 54px); transform: scaleX(-1); }
    95% { left: 18px; transform: scaleX(-1); }
    100% { left: 18px; transform: scaleX(1); }
}

@keyframes autonomyChargingLow {
    0%, 18%, 34%, 50%, 66%, 100% {
        opacity: 0;
        transform: translateY(4px) scale(0.82);
    }
    22%, 28%, 54%, 60% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
    25%, 57% {
        opacity: 0.72;
        transform: translateY(-2px) scale(1.12);
    }
}

@keyframes autonomyChargingMedium {
    0%, 40%, 60%, 100% {
        opacity: 0;
        transform: translateY(4px) scale(0.82);
    }
    45%, 55% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
    50% {
        opacity: 0.72;
        transform: translateY(-2px) scale(1.12);
    }
}

@keyframes autonomyChargingHigh {
    0%, 74%, 92%, 100% {
        opacity: 0;
        transform: translateY(4px) scale(0.82);
    }
    80%, 88% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
    84% {
        opacity: 0.72;
        transform: translateY(-2px) scale(1.12);
    }
}

@media (prefers-reduced-motion: reduce) {
    .autonomy-trip__sky::before,
    .autonomy-trip__station::before,
    .autonomy-trip__car,
    .autonomy-trip__car::after {
        animation: none;
    }

    .autonomy-trip--low .autonomy-trip__car,
    .autonomy-trip--medium .autonomy-trip__car,
    .autonomy-trip--high .autonomy-trip__car,
    .autonomy-trip--max .autonomy-trip__car {
        left: 50%;
        transform: none;
    }
}

/* =======================
   Administración
   ======================= */
.admin-shell {
    background: #f3f6f8;
    color: #1f2933;
}

.admin-shell .custom-header {
    background: #17212b !important;
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.08);
}

.admin-hero,
.admin-page-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.admin-hero {
    min-height: 170px;
    border-radius: 8px;
    padding: 2rem;
    background: #174c62;
    color: #ffffff;
}

.admin-page-title {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #d7dee6;
}

.admin-hero h1,
.admin-page-title h1 {
    margin: 0 0 0.35rem;
    font-size: clamp(1.85rem, 3vw, 2.6rem);
    letter-spacing: 0;
}

.admin-kicker {
    margin-bottom: 0.35rem;
    color: #d9edf4;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.admin-page-title .admin-kicker {
    color: #537183;
}

.admin-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: flex-end;
}

.admin-metrics {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
}

.admin-metric,
.admin-panel,
.admin-config-section {
    border: 1px solid #d9e1e8;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 10px 24px rgba(31, 41, 51, 0.06);
}

.admin-metric {
    display: block;
    min-height: 128px;
    padding: 1rem;
    color: inherit;
    text-decoration: none;
}

.admin-metric:hover {
    border-color: #6ca4ba;
    color: inherit;
    transform: translateY(-1px);
}

.admin-metric span {
    color: #587083;
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
}

.admin-metric strong {
    display: block;
    margin: 0.35rem 0 0.25rem;
    font-size: 2rem;
    line-height: 1;
}

.admin-metric small {
    color: #66788a;
}

.admin-metric-warning {
    border-color: #efd28a;
    background: #fffaf0;
}

.admin-panel {
    padding: 1rem;
}

.admin-panel-head,
.admin-config-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.9rem;
}

.admin-panel-head h2,
.admin-config-head h2 {
    margin: 0;
    font-size: 1.05rem;
}

.admin-panel-head p {
    margin: 0.15rem 0 0;
    color: #657789;
    font-size: 0.9rem;
}

.admin-panel-head a,
.admin-config-actions a {
    color: #0b5f7a;
    font-weight: 700;
    text-decoration: none;
}

.admin-panel-head a:hover,
.admin-config-actions a:hover {
    text-decoration: underline;
}

.admin-list {
    display: grid;
    gap: 0.65rem;
}

.admin-list-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.75rem 0;
    border-top: 1px solid #edf1f5;
}

.admin-list-row:first-child {
    border-top: 0;
}

.admin-list-row-stack {
    display: block;
}

.admin-list-title {
    color: #1d3442;
    font-weight: 700;
    text-decoration: none;
}

.admin-list-title:hover {
    color: #0b5f7a;
    text-decoration: underline;
}

.admin-list-meta {
    color: #6b7c8d;
    font-size: 0.82rem;
}

.admin-message-excerpt {
    margin: 0.45rem 0;
    color: #354957;
    font-size: 0.92rem;
}

.admin-empty {
    padding: 1rem;
    border: 1px dashed #cad4df;
    border-radius: 8px;
    color: #6b7c8d;
    background: #f8fafc;
}

.admin-shortcuts {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 0.75rem;
}

.admin-shortcuts a,
.admin-shortcuts div {
    display: block;
    min-height: 92px;
    padding: 0.9rem;
    border: 1px solid #dce4eb;
    border-radius: 8px;
    color: inherit;
    background: #f9fbfc;
    text-decoration: none;
}

.admin-shortcuts a:hover {
    border-color: #6ca4ba;
}

.admin-shortcuts strong,
.admin-shortcuts span {
    display: block;
}

.admin-shortcuts span {
    margin-top: 0.35rem;
    color: #647687;
    font-size: 0.86rem;
}

.admin-config-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.admin-config-section {
    padding: 1rem;
}

.admin-settings {
    margin: 0;
}

.admin-settings div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.65rem 0;
    border-top: 1px solid #edf1f5;
}

.admin-settings dt {
    color: #5d6f80;
    font-weight: 600;
}

.admin-settings dd {
    margin: 0;
    max-width: 60%;
    overflow-wrap: anywhere;
    color: #1f2933;
    font-weight: 700;
    text-align: right;
}

.admin-config-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1rem;
}

.admin-note {
    margin-top: 1rem;
    padding: 0.8rem;
    border-radius: 8px;
    background: #f3f6f8;
    color: #657789;
    font-size: 0.9rem;
}

.admin-table {
    margin-bottom: 0;
}

.admin-table th {
    color: #5d6f80;
    font-size: 0.78rem;
    text-transform: uppercase;
}

.admin-form-section {
    padding: 1rem;
    border: 1px solid #dce4eb;
    border-radius: 8px;
    background: #f9fbfc;
}

.admin-form-section h2 {
    margin: 0 0 1rem;
    font-size: 1.05rem;
}

.admin-role-list {
    display: grid;
    gap: 0.75rem;
}

.admin-role-list .form-check {
    display: flex;
    gap: 0.65rem;
    margin: 0;
    padding: 0.75rem 0.75rem 0.75rem 2.25rem;
    border: 1px solid #dce4eb;
    border-radius: 8px;
    background: #ffffff;
}

.admin-role-list .form-check-input {
    margin-left: -1.45rem;
}

.admin-role-list small {
    display: block;
    color: #647687;
}

.header-notifications {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.1rem;
    height: 2.1rem;
    border: 1px solid rgba(255, 255, 255, 0.45);
    border-radius: 999px;
    color: #ffffff;
    text-decoration: none;
}

.header-notifications:hover,
.header-notifications:focus {
    color: #ffffff;
    border-color: #ffffff;
    background: rgba(255, 255, 255, 0.12);
}

.header-notifications__count {
    position: absolute;
    top: -0.35rem;
    right: -0.35rem;
    min-width: 1.15rem;
    height: 1.15rem;
    padding: 0 0.25rem;
    border-radius: 999px;
    background: #dc3545;
    color: #ffffff;
    font-size: 0.72rem;
    font-weight: 700;
    line-height: 1.15rem;
    text-align: center;
}

.notifications-list {
    display: grid;
    gap: 0.75rem;
}

.notification-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem;
    border: 1px solid #dce4eb;
    border-radius: 8px;
    background: #ffffff;
}

.notification-item-unread {
    border-left: 4px solid #0d6efd;
}

.notification-item-read {
    opacity: 0.76;
}

.notification-item__body {
    min-width: 0;
}

.notification-item__meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.2rem;
    color: #647687;
    font-size: 0.82rem;
}

.notification-item__status {
    padding: 0.1rem 0.4rem;
    border-radius: 999px;
    background: #e8f1ff;
    color: #0d6efd;
    font-weight: 700;
}

.notification-item__title {
    margin: 0 0 0.25rem;
    font-size: 1rem;
}

.notification-item__text {
    display: -webkit-box;
    overflow: hidden;
    color: #1f2933;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.notification-item__context {
    font-size: 0.9rem;
}

.forum-message-target {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.14);
}

.cookie-consent-open {
    overflow: hidden;
}

.cookie-consent-layer {
    position: fixed;
    inset: 0;
    z-index: 11000;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 1rem;
    background: rgba(15, 23, 42, 0.34);
}

.cookie-consent-dialog {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 1rem;
    width: min(100%, 58rem);
    padding: 1.1rem;
    border: 1px solid #cfe3d6;
    border-radius: 8px;
    background: #ffffff;
    color: #1f2933;
    box-shadow: 0 20px 60px rgba(15, 23, 42, 0.22);
}

.cookie-consent-dialog__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 8px;
    background: #e7f6ed;
    color: #16834f;
    font-size: 1.35rem;
}

.cookie-consent-dialog__body {
    min-width: 0;
}

.cookie-consent-dialog__eyebrow {
    margin: 0 0 0.2rem;
    color: #16834f;
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}

.cookie-consent-dialog h2 {
    margin: 0 0 0.35rem;
    color: #111827;
    font-size: 1.15rem;
    font-weight: 800;
}

.cookie-consent-dialog p {
    margin: 0;
    color: #4b5f6d;
    font-size: 0.92rem;
    line-height: 1.45;
}

.cookie-consent-dialog__link {
    display: inline-flex;
    margin-top: 0.45rem;
    color: #16834f;
    font-size: 0.86rem;
    font-weight: 700;
    text-decoration: none;
}

.cookie-consent-dialog__link:hover,
.cookie-consent-dialog__link:focus-visible {
    color: #0f6c40;
    text-decoration: underline;
}

.cookie-consent-dialog__actions {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.cookie-consent-btn {
    min-height: 2.5rem;
    padding: 0.55rem 0.9rem;
    border: 1px solid transparent;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 800;
    white-space: nowrap;
}

.cookie-consent-btn--ghost {
    border-color: #cfd8e3;
    background: #ffffff;
    color: #334155;
}

.cookie-consent-btn--ghost:hover,
.cookie-consent-btn--ghost:focus-visible {
    border-color: #94a3b8;
    background: #f8fafc;
}

.cookie-consent-btn--primary {
    background: #16834f;
    color: #ffffff;
    box-shadow: 0 10px 20px rgba(22, 131, 79, 0.18);
}

.cookie-consent-btn--primary:hover,
.cookie-consent-btn--primary:focus-visible {
    background: #0f6c40;
}

.dark-mode .cookie-consent-layer {
    background: rgba(2, 6, 23, 0.58);
}

.dark-mode .cookie-consent-dialog {
    border-color: #294738;
    background: #111827;
    color: #e5edf0;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
}

.dark-mode .cookie-consent-dialog__icon {
    background: rgba(45, 212, 121, 0.12);
    color: #68d391;
}

.dark-mode .cookie-consent-dialog__eyebrow,
.dark-mode .cookie-consent-dialog__link {
    color: #68d391;
}

.dark-mode .cookie-consent-dialog h2 {
    color: #f8fafc;
}

.dark-mode .cookie-consent-dialog p {
    color: #cbd5e1;
}

.dark-mode .cookie-consent-btn--ghost {
    border-color: #475569;
    background: #111827;
    color: #e5edf0;
}

.dark-mode .cookie-consent-btn--ghost:hover,
.dark-mode .cookie-consent-btn--ghost:focus-visible {
    border-color: #64748b;
    background: #1f2937;
}

@media (max-width: 767.98px) {
    .cookie-consent-layer {
        align-items: flex-end;
        padding: 0.75rem;
    }

    .cookie-consent-dialog {
        grid-template-columns: 1fr;
        gap: 0.85rem;
    }

    .cookie-consent-dialog__actions {
        align-items: stretch;
        flex-direction: column-reverse;
    }

    .cookie-consent-btn {
        width: 100%;
    }
}

@media (max-width: 991.98px) {
    .admin-metrics,
    .admin-config-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .admin-shortcuts {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767.98px) {
    .admin-hero,
    .admin-page-title {
        align-items: stretch;
        flex-direction: column;
    }

    .admin-hero-actions {
        justify-content: flex-start;
    }

    .admin-metrics,
    .admin-config-grid,
    .admin-shortcuts {
        grid-template-columns: 1fr;
    }

    .notification-item {
        align-items: stretch;
        flex-direction: column;
    }
}
