@font-face {
    font-family: Vloonk;
    src: url("../fonts/vloonk.ttf") format("truetype");
    font-display: swap;
}

@font-face {
    font-family: Title;
    src: url("../fonts/title.woff2") format("woff2");
    font-display: swap;
}

@font-face {
    font-family: News;
    src: url("../fonts/news.woff2") format("woff2");
    font-display: swap;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: #fff;
    color: #18181b;
    font-family: News, sans-serif;
    font-size: 14px;
    line-height: 1.4;
    transition: background .2s ease, color .2s ease;
}

body.authenticated-page {
    display: flex;
    min-height: 100vh;
    flex-direction: column;
}

body.authenticated-page > main {
    flex: 1 0 auto;
}

body.authenticated-page > .site-footer {
    margin-top: auto;
}

a {
    color: inherit;
    text-decoration: none;
}

.vloonk-logo {
    font-family: Vloonk, sans-serif;
    font-size: 76px;
    font-weight: normal;
    line-height: 1;
}

.news-title {
    margin: 0;
    font-family: Title, serif;
    font-size: 28px;
    font-weight: normal;
    line-height: 1.08;
}

.news-image-frame {
    position: relative;
}

.site-footer {
    margin-top: 64px;
    border-top: 1px solid #d4d4d8;
}

.site-footer-inner {
    display: flex;
    width: min(100% - 40px, 1440px);
    min-height: 76px;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin: 0 auto;
    padding: 20px 0;
}

.site-footer-links,
.site-footer-socials {
    display: flex;
    align-items: center;
}

.site-footer-links {
    flex-wrap: wrap;
    gap: 8px 22px;
    color: #71717a;
    font-size: 14px;
    line-height: 1.35;
}

.site-footer-links a {
    min-height: 36px;
    display: inline-flex;
    align-items: center;
}

.site-footer-links a:hover {
    color: #18181b;
}

.site-footer-socials {
    gap: 6px;
}

.site-footer-socials a,
.site-footer-socials img {
    display: block;
}

.site-footer-socials a {
    display: inline-flex;
    width: 32px;
    height: 32px;
    align-items: center;
    justify-content: center;
}

.site-footer-socials img {
    width: 22px;
    height: 22px;
}

.site-footer-socials a {
    transition: opacity .2s ease;
}

.site-footer-socials a:hover {
    opacity: .55;
}

html.dark .site-footer {
    border-color: #3f3f46;
}

html.dark .site-footer-links {
    color: #a1a1aa;
}

html.dark .site-footer-links a:hover {
    color: #f4f4f5;
}

html.dark .site-footer-socials img {
    filter: invert(1);
}

.article-header-logo {
    font-size: 44px;
}

.article-header-mobile-logo {
    font-size: 34px;
}

.article-reading-progress {
    position: fixed;
    z-index: 100;
    top: 0;
    right: 0;
    left: 0;
    height: 3px;
    overflow: hidden;
    pointer-events: none;
    opacity: 0;
    background: rgb(24 24 27 / 12%);
    transition: opacity 180ms ease;
}

.article-reading-progress.is-visible {
    opacity: 1;
}

.article-reading-progress span {
    display: block;
    width: 100%;
    height: 100%;
    transform: scaleX(0);
    transform-origin: left center;
    background: #18181b;
    transition: transform 80ms linear;
}

html.dark .article-reading-progress {
    background: rgb(244 244 245 / 16%);
}

html.dark .article-reading-progress span {
    background: #f4f4f5;
}

@media (prefers-reduced-motion: reduce) {
    .article-reading-progress,
    .article-reading-progress span {
        transition: none;
    }
}
.news-category {
    position: absolute;
    bottom: 12px;
    left: 12px;
    z-index: 1;
    display: flex;
    align-items: center;
    min-height: 25px;
    padding: 0 8px;
    border: 1px solid rgba(255, 255, 255, .9);
    background: rgba(10, 10, 10, .12);
    color: #fff;
    font-family: News, sans-serif;
    font-size: 10px;
    font-weight: 600;
    line-height: 1;
    text-shadow: 0 1px 4px rgba(0, 0, 0, .75);
    text-transform: uppercase;
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
}

.nav-category-link {
    transition: opacity .2s ease;
}

.nav-category-link:hover,
.nav-category-link:focus-visible {
    color: inherit;
    opacity: .55;
    outline: none;
}

.news-subtitle {
    margin: 9px 0 0;
    color: #52525b;
    font-family: News, sans-serif;
    font-size: 16px;
    font-weight: normal;
    line-height: 1.35;
}

.news-ui {
    font-family: News, sans-serif;
    font-size: 14px;
    font-weight: normal;
    line-height: 1.35;
}

.news-author {
    font-family: News, sans-serif;
    font-size: 13px;
    font-weight: normal;
    line-height: 1.3;
    text-transform: uppercase;
}

.section-title {
    margin: 0 0 24px;
    font-family: Title, serif;
    font-size: 30px;
    font-weight: normal;
    line-height: 1;
}

/* AUTENTICACIÓN */
.auth-button {
    display: inline-flex;
    height: 34px;
    align-items: center;
    justify-content: center;
    padding: 0 9px;
    border-radius: 0;
    font-family: News, sans-serif;
    font-size: 11px;
    font-weight: normal;
    line-height: 1;
    white-space: nowrap;
    cursor: pointer;
    transition: background .2s ease, border-color .2s ease, color .2s ease;
}

header .auth-login,
header .auth-register {
    display: none;
}

.theme-toggle,
[data-search-theme],
[data-category-theme],
[data-author-theme],
[data-community-theme] {
    display: none !important;
}

body.home-page .theme-toggle {
    display: inline-flex !important;
}

body.authenticated-page .theme-toggle,
body.authenticated-page [data-search-theme],
body.authenticated-page [data-category-theme],
body.authenticated-page [data-author-theme],
body.authenticated-page [data-community-theme] {
    display: inline-flex !important;
}

.auth-form {
    display: inline-flex;
    margin: 0;
}

.auth-session-button {
    gap: 6px;
    max-width: 180px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.auth-session-button > i {
    flex: 0 0 auto;
}

.auth-session-label {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}

.auth-login {
    border: 1px solid #a1a1aa;
    background: #fff;
    color: #18181b;
}

.auth-login:hover {
    border-color: #18181b;
    background: #f4f4f5;
}

.auth-register {
    border: 1px solid #18181b;
    background: #18181b;
    color: #fff;
}

.auth-register:hover {
    background: #27272a;
}

/* BUSCADOR */
.site-search {
    position: relative;
}

.search-box {
    width: 220px;
    height: 38px;
    padding: 0 38px 0 12px;
    border: 1px solid #d4d4d8;
    border-radius: 0;
    background: #fff;
    color: #18181b;
    caret-color: #18181b;
    font-family: News, sans-serif;
    font-size: 13px;
    outline: none;
    box-shadow: none;
    -webkit-appearance: none;
    appearance: none;
    transition: border-color .2s ease, background .2s ease, color .2s ease;
}

.search-box:focus,
.search-box:focus-visible {
    border-color: #18181b;
    outline: none;
    box-shadow: none;
}

.search-box::placeholder {
    color: #a1a1aa;
}

.search-box::-webkit-search-cancel-button {
    display: none;
    -webkit-appearance: none;
}

.search-icon {
    color: #18181b;
    transition: color .2s ease;
}

.site-search-submit {
    position: absolute;
    top: 0;
    right: 0;
    display: grid;
    width: 38px;
    height: 38px;
    cursor: pointer;
    place-items: center;
    border: 0;
    background: transparent;
}

.site-search-submit .lucide {
    width: 16px;
    height: 16px;
}

.search-suggestions {
    position: absolute;
    z-index: 60;
    top: calc(100% + 7px);
    right: 0;
    width: min(380px, calc(100vw - 32px));
    border: 1px solid #d4d4d8;
    background: #fff;
    box-shadow: 0 12px 28px rgb(0 0 0 / 12%);
}

.search-suggestion {
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr);
    align-items: center;
    gap: 11px;
    min-height: 60px;
    padding: 7px;
    border-bottom: 1px solid #e4e4e7;
}

.search-suggestion:last-child {
    border-bottom: 0;
}

.search-suggestion:hover,
.search-suggestion[aria-selected="true"] {
    background: #f4f4f5;
}

.search-suggestion-image {
    width: 46px;
    height: 46px;
    object-fit: cover;
    background: #e4e4e7;
}

.search-suggestion-copy {
    min-width: 0;
}

.search-suggestion-copy strong,
.search-suggestion-copy small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.search-suggestion-copy strong {
    font-family: Title, serif;
    font-size: 14px;
    font-weight: normal;
}

.search-suggestion-copy small {
    margin-top: 3px;
    color: #71717a;
    font-size: 9px;
    text-transform: uppercase;
}

/* MODO CLARO / OSCURO */
.theme-button {
    display: inline-flex;
    width: 34px;
    height: 34px;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 1px solid #d4d4d8;
    border-radius: 0;
    background: #fff;
    color: #18181b;
    cursor: pointer;
    font-size: 12px;
    line-height: 1;
    transition: background .2s ease, border-color .2s ease, color .2s ease;
}

.theme-button:hover {
    border-color: #18181b;
    background: #f4f4f5;
}

.news-image {
    display: block;
    width: 100%;
    object-fit: cover;
    transition: transform .3s ease, opacity .3s ease;
}

.news-link:hover .news-image {
    transform: scale(1.015);
}

.news-link:hover .news-title {
    opacity: .72;
}

.opinion-section {
    border-color: #18181b;
}

::selection {
    background: #18181b;
    color: #fff;
}

::-moz-selection {
    background: #18181b;
    color: #fff;
}

html.dark ::selection {
    background: #f4f4f5;
    color: #18181b;
}

html.dark ::-moz-selection {
    background: #f4f4f5;
    color: #18181b;
}

/* MODO OSCURO */
html.dark body {
    background: #0a0a0a;
    color: #f4f4f5;
}

html.dark header,
html.dark footer,
html.dark .bg-white {
    background: #0a0a0a !important;
}

html.dark .bg-zinc-100 {
    background: #18181b !important;
}

html.dark .border-zinc-100,
html.dark .border-zinc-200,
html.dark .border-zinc-400 {
    border-color: #3f3f46 !important;
}

html.dark .text-zinc-500,
html.dark .text-zinc-600 {
    color: #a1a1aa !important;
}

html.dark .vloonk-logo,
html.dark .news-title,
html.dark .news-ui,
html.dark .section-title {
    color: #f4f4f5;
}

html.dark .news-subtitle {
    color: #a1a1aa;
}

html.dark .search-box {
    border-color: #3f3f46;
    background: #18181b;
    color: #f4f4f5;
    caret-color: #f4f4f5;
}

html.dark .search-box:focus,
html.dark .search-box:focus-visible {
    border-color: #f4f4f5;
    outline: none;
    box-shadow: none;
}

html.dark .search-box::placeholder {
    color: #71717a;
}

html.dark .search-icon {
    color: #f4f4f5;
}

html.dark .search-suggestions {
    border-color: #3f3f46;
    background: #09090b;
    box-shadow: 0 12px 28px rgb(0 0 0 / 45%);
}

html.dark .search-suggestion {
    border-color: #27272a;
}

html.dark .search-suggestion:hover,
html.dark .search-suggestion[aria-selected="true"] {
    background: #18181b;
}

html.dark .search-suggestion-image {
    background: #27272a;
}

html.dark .theme-button {
    border-color: #52525b;
    background: #18181b;
    color: #f4f4f5;
}

html.dark .theme-button:hover {
    border-color: #f4f4f5;
    background: #27272a;
}

html.dark .auth-login {
    border-color: #52525b;
    background: #0a0a0a;
    color: #f4f4f5;
}

html.dark .auth-login:hover {
    border-color: #f4f4f5;
    background: #18181b;
}

html.dark .auth-register {
    border-color: #f4f4f5;
    background: #f4f4f5;
    color: #18181b;
}

html.dark .auth-register:hover {
    border-color: #d4d4d8;
    background: #d4d4d8;
}

html.dark .opinion-section {
    border-color: #f4f4f5;
}

html.dark footer a {
    color: #a1a1aa;
}

@media (max-width: 640px) {
    .site-footer-inner {
        width: calc(100% - 32px);
        min-height: 0;
        align-items: center;
        flex-direction: column;
        justify-content: center;
        gap: 8px;
        padding: 18px 0;
    }

    .site-footer-links {
        justify-content: center;
        text-align: center;
        gap: 2px 16px;
        font-size: 13px;
    }

    .site-footer-socials {
        justify-content: center;
        gap: 6px;
    }

    .auth-session-button {
        max-width: 132px;
    }

    .auth-admin-alias {
        max-width: 88px;
    }

    .mobile-vloonk-logo {
        font-size: 34px;
        line-height: 1;
    }

    .news-title {
        font-size: 24px;
    }

    .news-subtitle {
        font-size: 15px;
    }

    .section-title {
        font-size: 28px;
    }

    .news-ui {
        font-size: 12px;
    }

    .news-author {
        font-size: 12px;
    }

    .mobile-search {
        width: 100%;
    }
}

@media (max-width: 390px) {
    .mobile-vloonk-logo {
        font-size: 34px;
    }
}

.article-google-preference {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-top: 14px;
    padding: 14px 0;
    border-top: 1px solid #e4e4e7;
    border-bottom: 1px solid #d4d4d8;
}

.article-google-preference p {
    margin: 0;
    color: #71717a;
    font-family: News, sans-serif;
    font-size: 12px;
    line-height: 1.35;
}

.article-google-source {
    display: inline-flex;
    min-height: 36px;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 0;
    padding: 0 11px;
    border: 1px solid #d4d4d8;
    color: #18181b;
    font-family: News, sans-serif;
    font-size: 12px;
    line-height: 1;
    white-space: nowrap;
    transition: color .2s ease, background .2s ease;
}

.article-google-source:hover {
    border-color: #18181b;
    color: #18181b;
    background: #f4f4f5;
}

.article-google-source:focus-visible {
    outline: 2px solid #18181b;
    outline-offset: 2px;
}

.article-google-source .simple-brand-icon {
    width: 15px;
    height: 15px;
    flex-basis: 15px;
}

.article-google-source > .lucide {
    width: 14px;
    height: 14px;
    flex: 0 0 14px;
    color: #71717a;
    stroke-width: 1.6;
}

html.dark .article-google-source {
    border-color: #52525b;
    color: #f4f4f5;
}

html.dark .article-google-source:hover {
    border-color: #f4f4f5;
    color: #f4f4f5;
    background: #27272a;
}

html.dark .article-google-source:focus-visible {
    outline-color: #f4f4f5;
}

html.dark .article-google-preference {
    border-color: #3f3f46;
}

html.dark .article-google-preference p {
    color: #a1a1aa;
}

@media (max-width: 760px) {
    .article-google-preference {
        align-items: stretch;
        flex-direction: column;
        gap: 10px;
    }

    .article-google-preference p {
        display: none;
    }

    .article-google-source {
        width: 100%;
    }
}

.simple-brand-icon {
    display: block;
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    object-fit: contain;
}

html.dark .simple-brand-icon {
    filter: invert(1);
}
