/*
Theme Name: Fotonovelas
Theme URI:
Author:
Description: Tema personalizado para Fotonovelas.
Version: 1.0
*/


/* =========================================================
   VARIABLES
   ========================================================= */

:root {

    --color-black: #000000;
    --color-bg: #0b0b0b;
    --color-surface: #151515;
    --color-surface-light: #1b1b1b;

    --color-white: #f5f5f5;
    --color-gray-100: #eeeeee;
    --color-gray-200: #242424;
    --color-gray-300: #303030;
    --color-gray-400: #777777;
    --color-gray-500: #999999;
    --color-gray-700: #c4c4c4;

    --color-red: #b5122b;
    --color-red-light: #d21d3b;

    --font-display: Georgia, "Times New Roman", serif;
    --font-body: Arial, Helvetica, sans-serif;

    --content-width: 1200px;
    --sidebar-width: 300px;
    --content-gap: 40px;
}


/* =========================================================
   RESET
   ========================================================= */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    margin: 0;
    padding: 0;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;

    background: var(--color-bg);
    color: var(--color-white);

    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
select,
textarea {
    font: inherit;
}


/* =========================================================
   ACCESIBILIDAD
   ========================================================= */

.screen-reader-text {
    position: absolute !important;

    width: 1px;
    height: 1px;

    padding: 0;
    margin: -1px;

    overflow: hidden;
    clip: rect(0, 0, 0, 0);

    white-space: nowrap;

    border: 0;
}


/* =========================================================
   TIPOGRAFÍA
   ========================================================= */

h1,
h2,
h3,
h4,
h5,
h6 {
    margin-top: 0;

    color: var(--color-white);

    font-family: var(--font-display);
    font-weight: 700;

    line-height: 1.15;
}

h1 {
    font-size: 48px;
}

h2 {
    font-size: 34px;
}

h3 {
    font-size: 24px;
}

p {
    margin-top: 0;
}


/* =========================================================
   CONTENEDOR
   ========================================================= */

.site-container {
    width: min(
        calc(100% - 40px),
        var(--content-width)
    );

    margin: 0 auto;
}


/* =========================================================
   HEADER
   ========================================================= */

.site-header {
    position: relative;

    background: var(--color-black);

    border-bottom:
        1px solid var(--color-gray-200);
}

.header-inner {
    min-height: 76px;

    display: flex;
    align-items: center;

    gap: 24px;
}


/* =========================================================
   LOGO
   ========================================================= */

.site-logo-desktop {
    display: block;
    text-decoration: none;
}

.site-logo-desktop img {
    display: block;
    width: auto;
    max-width: 380px;
    height: auto;
}

.site-logo-mobile {
    display: none;
    text-decoration: none;
}

.site-logo-mobile img {
    display: block;

    height: auto;
    margin: 0 auto;
}

.site-logo-mobile span {
    display: block;

    color: var(--color-gray-500);

    font-family: var(--font-body);
    font-size: 14px;
    text-align: center;
    line-height: 1;
    letter-spacing: 0.4px;

    white-space: nowrap;
}


/* =========================================================
   LOGO PERSONALIZADO
   ========================================================= */

.custom-logo-link {
    display: block;

    width: fit-content;
    max-width: 180px;
}

.custom-logo {
    display: block;

    width: auto !important;
    max-width: 180px !important;

    height: auto !important;
    max-height: 55px;
}


/* =========================================================
   MENÚ PRINCIPAL
   ========================================================= */

.main-navigation {
    margin-left: auto;

    min-width: 0;
}

.main-navigation > div {
    display: block;
}

.main-navigation ul {
    display: flex;
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;

    margin: 0;
    padding: 0;

    list-style: none;

    gap: 19px;
}

.main-navigation li {
    display: block;

    margin: 0;
    padding: 0;
}

.main-navigation a {
    position: relative;

    display: inline-flex;
    align-items: center;

    padding: 8px 0;

    color: var(--color-gray-700);

    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 600;

    white-space: nowrap;

    transition: color 0.2s ease;
}

.main-navigation a::after {
    content: "";

    position: absolute;

    left: 0;
    bottom: 0;

    width: 0;
    height: 2px;

    background: var(--color-red);

    transition: width 0.2s ease;
}

.main-navigation a:hover,
.main-navigation .current-menu-item > a,
.main-navigation .current_page_item > a {
    color: var(--color-white);
}

.main-navigation a:hover::after,
.main-navigation .current-menu-item > a::after,
.main-navigation .current_page_item > a::after {
    width: 100%;
}


/* =========================================================
   BUSCADOR DESKTOP
   ========================================================= */

.header-search {
    flex-shrink: 0;
}

.header-search form {
    display: flex;
    align-items: center;

    width: 190px;
    height: 36px;

    background: #111;
    border: 1px solid #222;
}

.header-search input {
    width: 100%;
    height: 100%;

    padding: 0 10px;

    background: transparent;
    border: 0;
    outline: none;

    color: var(--color-white);

    font-size: 13px;
}

.header-search input::placeholder {
    color: var(--color-gray-700);
}

.header-search button {
    flex-shrink: 0;

    width: 36px;
    height: 36px;

    padding: 0;

    background: transparent;
    border: 0;

    color: var(--color-gray-700);

    font-size: 20px;

    cursor: pointer;
}

.header-search button:hover {
    color: var(--color-white);
}


/* =========================================================
   IDIOMA
   ========================================================= */

.language-selector {
    flex-shrink: 0;
}

.language-selector select {
    appearance: none;

    min-width: 105px;

    padding: 7px 28px 7px 10px;

    border:
        1px solid var(--color-gray-300);

    background: var(--color-surface);

    color: var(--color-gray-700);

    font-size: 12px;

    cursor: pointer;
}

.language-selector select:hover {
    border-color: var(--color-gray-400);
}

.language-icon {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    color: var(--color-gray-700);

    line-height: 0;

    flex-shrink: 0;
}

.language-icon svg {
    display: block;
}


/* =========================================================
   INTRO
   ========================================================= */

.site-intro {
    padding: 55px 0 45px;
}

.site-intro-label {
    margin-bottom: 12px;

    color: var(--color-red-light);

    font-size: 11px;
    font-weight: 700;

    letter-spacing: 2px;
    text-transform: uppercase;
}

.site-intro h1 {
    max-width: 750px;

    margin-bottom: 12px;

    color: var(--color-white);

    font-size: 30px;
}

.site-intro p {
    max-width: 650px;

    margin-bottom: 0;

    color: var(--color-gray-500);

    font-size: 17px;
}


/* =========================================================
   ESTRUCTURA PRINCIPAL
   ========================================================= */

.main-layout {
    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        var(--sidebar-width);

    gap: var(--content-gap);

    align-items: start;
}

.main-content {
    min-width: 0;
}


/* =========================================================
   SECCIONES
   ========================================================= */

.section-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;

    gap: 20px;

    margin-bottom: 18px;
}

.section-title {
    position: relative;

    margin: 0;
    padding-bottom: 10px;

    color: var(--color-white);

    font-family: var(--font-display);
    font-size: 30px;
    font-weight: 700;

    line-height: 1.15;
}

.section-title::after {
    content: "";

    position: absolute;

    left: 0;
    bottom: 0;

    width: 34px;
    height: 3px;

    background: var(--color-red);
}


/* =========================================================
   CATÁLOGO
   ========================================================= */

.catalog-grid {
    display: grid;

    grid-template-columns:
        repeat(4, minmax(0, 1fr));

    gap: 32px 20px;
}

.catalog-toolbar {
    display: flex;
    align-items: center;
    justify-content: flex-end;

    margin-bottom: 20px;
}

.catalog-filters {
    display: flex;
    align-items: center;

    gap: 22px;
}

.catalog-filter {
    position: relative;

    padding: 0 0 5px;

    background: transparent;
    border: 0;

    color: var(--color-gray-700);

    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 600;

    line-height: 1.3;

    cursor: pointer;

    transition: color 0.2s ease;
}

.catalog-filter::after {
    content: "";

    position: absolute;

    left: 0;
    bottom: 0;

    width: 0;
    height: 2px;

    background: var(--color-red);

    transition: width 0.2s ease;
}

.catalog-filter:hover,
.catalog-filter.is-active {
    color: var(--color-white);
}

.catalog-filter:hover::after,
.catalog-filter.is-active::after {
    width: 100%;
}

.catalog-intro {
    max-width: 760px;

    margin: 0 0 22px;
}

.catalog-intro p {
    margin: 0;

    color: var(--color-gray-700);

    font-size: 14px;
    line-height: 1.6;
}


/* =========================================================
   TARJETAS DE FOTONOVELAS
   ========================================================= */

.fotonovela-card {
    min-width: 0;
}


/* PORTADA */

.fotonovela-card-cover {
    display: block;

    position: relative;

    overflow: hidden;

    background: #111;
}

.fotonovela-card-cover img {
    display: block;

    width: 100%;
    height: auto;

    transition: transform 0.3s ease;
}

.fotonovela-card-cover:hover img {
    transform: scale(1.025);
}


/* TÍTULO */

.fotonovela-card-title {
    margin: 12px 0 0;
    padding: 0;

    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 600;

    line-height: 1.35;
}

.fotonovela-card-title a {
    display: block;

    color: var(--color-white);

    text-decoration: none;

    transition: color 0.2s ease;
}

.fotonovela-card-title a:hover {
    color: var(--color-red);
}


/* PLACEHOLDER */

.fotonovela-card-placeholder {
    display: flex;

    align-items: center;
    justify-content: center;

    aspect-ratio: 250 / 348;

    background: #111;

    color: var(--color-gray-700);

    font-size: 13px;
}


/* =========================================================
   SIDEBAR
   ========================================================= */

.sidebar {
    width: 100%;
    min-width: 0;
    padding: 0;
    background: transparent;
    border: 0;
}

.sidebar-section {
    margin: 0;
}

.sidebar-section + .sidebar-section {
    margin-top: 32px;
    padding-top: 28px;
    border-top: 1px solid #181818;
}

.sidebar-title {
    position: relative;

    margin: 0 0 16px;
    padding-bottom: 9px;

    color: var(--color-white);

    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 700;

    line-height: 1.2;
}

.sidebar-title::after {
    content: "";

    position: absolute;

    left: 0;
    bottom: 0;

    width: 28px;
    height: 2px;

    background: var(--color-red);
}

.sidebar-list {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    column-gap: 18px;

    margin: 0;
    padding: 0;

    list-style: none;
}

.sidebar-list li {
    margin: 0;
    padding: 0;
}

.sidebar-list a {
    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 10px;

    padding: 8px 0;

    border-bottom: 1px solid #181818;

    color: var(--color-gray-500);

    font-size: 13px;
    line-height: 1.35;

    transition:
        color 0.2s ease,
        padding-left 0.2s ease;
}

.sidebar-list a:hover {
    padding-left: 4px;

    color: var(--color-white);
}

.sidebar-list a span:last-child {
    flex-shrink: 0;

    color: var(--color-gray-400);

    font-size: 11px;
}

.sidebar-ad-section {
    width: 100%;
}

.sidebar-ad-label {
    margin-bottom: 7px;

    color: #3d3d3d;

    font-size: 8px;
    font-weight: 600;

    letter-spacing: 1.5px;
    line-height: 1;

    text-transform: uppercase;
}

.sidebar-ad {
    width: 300px;
    height: 250px;
    max-width: 100%;

    margin: 0 auto;

    display: flex;

    align-items: center;
    justify-content: center;

    background: #080808;

    border: 1px solid #151515;

    color: #3d3d3d;

    font-size: 10px;
}

.sidebar-ad-section + .sidebar-section {
    margin-top: 10px;
}

.sidebar-section + .sidebar-ad-section {
    margin-top: 10px;
}


/* =========================================================
   ARCHIVE
   ========================================================= */

.archive-description {
    max-width: 700px;

    color: var(--color-gray-500);

    font-size: 16px;
}

.archive-description p:last-child {
    margin-bottom: 0;
}

.archive-intro {
    padding: 10px 0 10px;
}

.archive-intro-label {
    margin-bottom: 12px;

    color: var(--color-red-light);

    font-size: 11px;
    font-weight: 700;

    letter-spacing: 2px;

    text-transform: uppercase;
}

.archive-intro h1 {
    max-width: 100%;

    margin: 0 0 14px;

    color: var(--color-white);

    font-size: 30px;
}

.archive-intro .archive-description {
    max-width: 700px;
}


/* =========================================================
   PÁGINA INDIVIDUAL
   ========================================================= */

.fotonovela-single {
    min-width: 0;
}

.fotonovela-single-header {
    margin-bottom: 40px;

    padding-bottom: 20px;

    border-bottom:
        1px solid var(--color-gray-200);
}

.fotonovela-single-title {
    margin: 0;

    color: var(--color-white);

    font-size: 25px;
}

.fotonovela-single-content {
    max-width: 900px;

    margin: 0 auto;
}

.fotonovela-single-content img {
    display: block;

    width: auto;
    max-width: 100%;
    height: auto;

    margin: 0 auto;
}

.fotonovela-single-content br {
    display: none;
}

.fotonovela-single-content p {
    margin-bottom: 20px;
}

.fotonovela-related {
    margin-top: 60px;

    padding-top: 30px;

    border-top: 1px solid #181818;
}

.fotonovela-related .section-title {
    margin-bottom: 25px;
}

.fotonovela-comments {
    margin-top: 60px;

    padding-top: 32px;

    border-top: 1px solid #181818;
}

.fotonovela-comments .comments-title {
    position: relative;

    margin: 0 0 28px;

    padding-bottom: 10px;

    color: var(--color-white);

    font-family: var(--font-display);
    font-size: 25px;
    font-weight: 700;

    line-height: 1.2;
}

.fotonovela-comments .comments-title::after {
    content: "";

    position: absolute;

    left: 0;
    bottom: 0;

    width: 28px;
    height: 2px;

    background: var(--color-red);
}


/* LISTA DE COMENTARIOS */

.fotonovela-comments .comment-list {
    margin: 0 0 40px;

    padding: 0;

    list-style: none;
}

.fotonovela-comments .comment {
    margin: 0;

    padding: 20px 0;

    border-bottom: 1px solid #181818;
}

.fotonovela-comments .comment:first-child {
    padding-top: 0;
}

.fotonovela-comments .comment-author {
    color: var(--color-white);

    font-size: 14px;
    font-weight: 600;
}

.fotonovela-comments .comment-author .avatar {
    display: none;
}

.fotonovela-comments .comment-meta {
    margin-top: 3px;

    color: var(--color-gray-400);

    font-size: 11px;
}

.fotonovela-comments .comment-meta a {
    color: inherit;
}

.fotonovela-comments .comment-content {
    margin-top: 10px;

    color: var(--color-gray-500);

    font-size: 14px;
    line-height: 1.65;
}

.fotonovela-comments .reply {
    margin-top: 10px;
}

.fotonovela-comments .reply a {
    color: var(--color-red-light);

    font-size: 11px;
    font-weight: 600;
}


/* FORMULARIO */

.fotonovela-comments .comment-respond {
    margin-top: 40px;
}

.fotonovela-comments .comment-reply-title {
    position: relative;

    margin: 0 0 22px;

    padding-bottom: 9px;

    color: var(--color-white);

    font-family: var(--font-display);
    font-size: 21px;
    font-weight: 700;
}

.fotonovela-comments .comment-reply-title::after {
    content: "";

    position: absolute;

    left: 0;
    bottom: 0;

    width: 24px;
    height: 2px;

    background: var(--color-red);
}

.fotonovela-comments .comment-notes {
    margin-bottom: 18px;

    color: var(--color-gray-400);

    font-size: 12px;
}

.fotonovela-comments .comment-form-comment,
.fotonovela-comments .comment-form-author,
.fotonovela-comments .comment-form-email {
    margin: 0 0 16px;
}

.fotonovela-comments label {
    display: block;

    margin-bottom: 6px;

    color: var(--color-gray-500);

    font-size: 12px;
}

.fotonovela-comments textarea,
.fotonovela-comments input[type="text"],
.fotonovela-comments input[type="email"] {
    width: 100%;

    padding: 11px 12px;

    background: #080808;

    border: 1px solid #202020;
    border-radius: 0;

    outline: none;

    color: var(--color-white);

    font-family: var(--font-body);
    font-size: 14px;

    transition: border-color 0.2s ease;
}

.fotonovela-comments textarea {
    min-height: 140px;

    resize: vertical;
}

.fotonovela-comments textarea:focus,
.fotonovela-comments input[type="text"]:focus,
.fotonovela-comments input[type="email"]:focus {
    border-color: #3a3a3a;
}

.fotonovela-comments .form-submit {
    margin: 20px 0 0;
}

.fotonovela-comments .submit {
    padding: 10px 20px;

    background: var(--color-red);

    border: 0;
    border-radius: 0;

    color: var(--color-white);

    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 600;

    cursor: pointer;

    transition: background 0.2s ease;
}

.fotonovela-comments .submit:hover {
    background: var(--color-red-light);
}


/* AVISOS DE WORDPRESS */

.fotonovela-comments .logged-in-as,
.fotonovela-comments .must-log-in {
    color: var(--color-gray-400);

    font-size: 12px;
}

.fotonovela-comments .logged-in-as a,
.fotonovela-comments .must-log-in a {
    color: var(--color-red-light);
}

.fotonovela-comments .comment-awaiting-moderation {
    margin-top: 8px;

    color: var(--color-gray-400);

    font-size: 12px;
}


/* =========================================================
   PÁGINAS ESTÁTICAS
   ========================================================= */

.page-content {
    min-width: 0;
}

.page-header {
    margin-bottom: 40px;

    padding-bottom: 20px;

    border-bottom:
        1px solid var(--color-gray-200);
}

.page-title {
    margin: 0;

    color: var(--color-white);

    font-size: 42px;
}

.page-body {
    max-width: 800px;

    color: var(--color-gray-700);

    font-size: 16px;
}

.page-body h2 {
    margin-top: 45px;
}

.page-body h3 {
    margin-top: 35px;
}

.page-body img {
    margin-bottom: 25px;
}


/* =========================================================
   BÚSQUEDA
   ========================================================= */

.search-results-section {
    margin-bottom: 70px;
}


/* =========================================================
   PAGINACIÓN
   ========================================================= */

.pagination {
    display: flex;

    justify-content: center;

    gap: 6px;

    margin-top: 50px;
}

.pagination a,
.pagination span {
    min-width: 38px;
    height: 38px;

    display: inline-flex;

    align-items: center;
    justify-content: center;

    border:
        1px solid var(--color-gray-300);

    color: var(--color-gray-500);

    font-size: 13px;
}

.pagination a:hover {
    border-color: var(--color-gray-400);

    color: var(--color-white);
}

.pagination .current {
    border-color: var(--color-red);

    background: var(--color-red);

    color: var(--color-white);
}


/* =========================================================
   NAVEGACIÓN DE LA FOTONOVELA
   ========================================================= */

.fotonovela-navigation {
    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 20px;

    margin-top: 50px;
    padding-top: 25px;

    border-top:
        1px solid var(--color-gray-200);
}

.fotonovela-navigation-prev {
    text-align: left;
}

.fotonovela-navigation-next {
    text-align: right;
}

.fotonovela-navigation a {
    color: var(--color-gray-500);

    font-family: var(--font-display);
    font-size: 17px;
}

.fotonovela-navigation a:hover {
    color: var(--color-red-light);
}


/* =========================================================
   FOOTER
   ========================================================= */

.site-footer {
    margin-top: 80px;

    background: var(--color-black);

    border-top: 1px solid #181818;
}

.footer-inner {
    padding: 55px 0 28px;
}

.footer-main {
    display: grid;

    grid-template-columns:
        minmax(0, 1.8fr)
        1fr
        1fr;

    gap: 50px;
}

.footer-brand-column {
    max-width: 480px;
}

.footer-brand {
    margin-bottom: 12px;

    color: var(--color-white);

    font-family: var(--font-display);
    font-size: 27px;
    font-weight: 700;

    line-height: 1;
}

.footer-brand span {
    color: var(--color-red);
}

.footer-description {
    max-width: 430px;

    margin: 0;

    color: var(--color-gray-500);

    font-size: 13px;
    line-height: 1.7;

    text-align: justify;
}

.footer-title {
    position: relative;

    margin: 0 0 17px;

    padding-bottom: 8px;

    color: var(--color-white);

    font-family: var(--font-display);
    font-size: 17px;
    font-weight: 700;
}

.footer-title::after {
    content: "";

    position: absolute;

    left: 0;
    bottom: 0;

    width: 24px;
    height: 2px;

    background: var(--color-red);
}

.footer-links {
    display: flex;

    flex-direction: column;
    align-items: flex-start;

    gap: 9px;

    margin: 0;
}

.footer-links a {
    color: var(--color-gray-500);

    font-size: 13px;
    line-height: 1.4;

    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: var(--color-white);
}

.footer-bottom {
    display: flex;

    align-items: center;
    justify-content: space-between;

    margin-top: 45px;

    padding-top: 18px;

    border-top: 1px solid #181818;

    color: var(--color-gray-400);

    font-size: 11px;
}


/* =========================================================
   BUSCADOR MÓVIL
   ========================================================= */

.mobile-search-panel {
    display: none;
}

.mobile-search-panel form {
    display: flex;

    align-items: center;

    width: 100%;
    height: 44px;

    background: #111;

    border: 1px solid #222;
}

.mobile-search-panel input {
    width: 100%;
    height: 100%;

    padding: 0 12px;

    background: transparent;

    border: 0;
    outline: none;

    color: var(--color-white);

    font-size: 14px;
}

.mobile-search-panel input::placeholder {
    color: var(--color-gray-700);
}

.mobile-search-panel button {
    flex-shrink: 0;

    width: 44px;
    height: 44px;

    padding: 0;

    background: transparent;

    border: 0;

    color: var(--color-gray-700);

    font-size: 20px;

    cursor: pointer;
}

.mobile-search-panel.is-open {
    display: block;
}


/* =========================================================
   ICONO DE MENÚ MÓVIL
   ========================================================= */

.mobile-menu-toggle {
    display: flex;

    flex-direction: column;
    justify-content: center;
    align-items: center;

    gap: 8px;

    width: 44px;
    height: 44px;

    padding: 0;

    background: transparent;

    border: 0;

    cursor: pointer;
}

.mobile-menu-toggle span {
    display: block;

    width: 40px;
    height: 3.5px;

    background: var(--color-white);
}


/* =========================================================
   ICONO DE BÚSQUEDA MÓVIL
   ========================================================= */

.mobile-search-toggle {
    color: var(--color-white);
}

.mobile-search-toggle:hover {
    color: var(--color-white);
}

.search-icon {
    position: relative;

    display: block;

    width: 38px;
    height: 38px;

    font-size: 0;
}

.search-icon::before {
    content: "";

    position: absolute;

    width: 30px;
    height: 30px;

    top: 2px;
    left: 2px;

    border:
        5.5px solid currentColor;

    border-radius: 50%;
}

.search-icon::after {
    content: "";

    position: absolute;

    width: 15px;
    height: 5.5px;

    left: 23px;
    top: 23px;

    background: currentColor;

    transform: rotate(45deg);

    transform-origin: left center;
}


/* =========================================================
   ELEMENTOS EXCLUSIVOS DE MÓVIL
   ========================================================= */

.mobile-menu-toggle,
.mobile-search-toggle,
.mobile-search-panel {
    display: none;
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 1000px) {

    .main-layout {
        grid-template-columns:
            minmax(0, 1fr)
            300px;

        gap: 30px;
    }

    .main-navigation ul {
        gap: 18px;
    }

    .header-inner {
        gap: 18px;
    }

}


/* =========================================================
   TABLET PEQUEÑA
   ========================================================= */

@media (max-width: 900px) {

    .main-layout {
        grid-template-columns: 1fr;
    }

    .main-content {
        order: 1;
    }

    .sidebar {
        order: 2;
    }

    .site-logo-desktop {
        display: none;
    }

    .site-logo-mobile {
        display: block;
    }

}


/* =========================================================
   HEADER MÓVIL
   ========================================================= */

@media (max-width: 768px) {

    .site-header {
        width: 100%;
    }

    .header-inner {
        position: relative;

        min-height: 90px;
    }


    /* MENÚ MÓVIL */

    .mobile-menu-toggle {
        display: flex;

        position: relative;

        z-index: 2;
    }


    /* NAVEGACIÓN DESKTOP */

    .main-navigation {
        display: none;
    }


    /* LOGO */

    .site-branding {
        position: absolute;

        left: 50%;
        top: 50%;

        transform:
            translate(-50%, -50%);

        z-index: 1;
    }

    .site-branding img {
        max-height: 80px;

        width: auto;
    }


    /* BUSCADOR DESKTOP */

    .header-search {
        display: none;
    }


    /* BUSCADOR MÓVIL */

    .mobile-search-toggle {
        display: flex;

        align-items: center;
        justify-content: center;

        width: 44px;
        height: 44px;

        position: absolute;

        right: 0;
        top: 50%;

        transform:
            translateY(-50%);

        z-index: 2;
    }


    /* IDIOMA */

    .language-selector {
        display: flex;

        justify-content: flex-end;
        align-items: center;

        width: 100%;
        height: 34px;

        gap: 6px;

        padding: 0 16px;

        background: #080808;

        border-bottom:
            1px solid #151515;

        box-sizing: border-box;

        position: relative;

        z-index: 10;
    }

    .language-selector select {
        display: block;

        min-width: 0;

        padding: 0;

        background: transparent;

        border: 0;
        outline: none;

        color: var(--color-gray-700);

        font-size: 12px;

        cursor: pointer;
    }


    /* BUSCADOR DESPLEGABLE */

    .mobile-search-panel {
        padding: 10px 16px;

        background: #080808;

        border-top:
            1px solid #151515;
    }

}


/* =========================================================
   MÓVIL
   ========================================================= */

@media (max-width: 650px) {

    .site-container {
        width: min(
            calc(100% - 28px),
            var(--content-width)
        );
    }


    /* INTRO */

    .site-intro {
        padding: 40px 0 35px;
    }

    .site-intro h1 {
        font-size: 38px;
    }


    /* TARJETAS */

    .catalog-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        gap: 28px 15px;
    }

    .fotonovela-card-title {
        margin-top: 10px;

        font-size: 17px;

        line-height: 1.3;
    }


    /* SECCIONES */

    .section-header {
        align-items: flex-start;

        flex-direction: column;

        gap: 12px;
    }

    .section-title {
        font-size: 27px;
    }


    /* CATÁLOGO */

    .catalog-toolbar {
        align-items: flex-start;

        flex-direction: column;
    }

    .catalog-filters {
        flex-wrap: wrap;

        gap: 12px 20px;
    }


    /* PÁGINAS */

    .fotonovela-single-title,
    .page-title {
        font-size: 25px;
    }

    .fotonovela-single-header,
    .page-header {
        margin-bottom: 30px;
    }


    /* FOOTER */

    .footer-inner {
        padding-top: 40px;
    }

    .footer-main {
        grid-template-columns: 1fr 1fr;

        gap: 35px 25px;
    }

    .footer-brand-column {
        grid-column: 1 / -1;
    }

    .footer-bottom {
        margin-top: 35px;
    }

}


/* =========================================================
   MÓVIL PEQUEÑO
   ========================================================= */

@media (max-width: 480px) {

    .site-intro h1 {
        font-size: 32px;
    }

    .section-title {
        font-size: 25px;
    }

    .fotonovela-card-title {
        font-size: 16px;
    }

}


/* =========================================================
   ANUNCIO DEL CATÁLOGO
   ========================================================= */

.catalog-ad-row {
    margin-top: 32px;
}

.catalog-ad {
    width: 100%;
    min-height: 120px;

    display: flex;

    align-items: center;
    justify-content: center;

    position: relative;

    background: #080808;

    border-top: 1px solid #151515;
    border-bottom: 1px solid #151515;

    color: #444;
}

.catalog-ad-label {
    position: absolute;

    top: 7px;
    left: 0;

    color: #3a3a3a;

    font-size: 8px;
    font-weight: 600;

    letter-spacing: 1.5px;
    line-height: 1;

    text-transform: uppercase;
}


/* =========================================================
   MENÚ MÓVIL LATERAL
   ========================================================= */

@media (max-width: 900px) {

    .main-navigation {

        position: fixed;

        top: 0;
        left: 0;

        z-index: 1000;

        width: 290px;
        max-width: 82vw;
        height: 100vh;

        box-sizing: border-box;

        display: block;

        padding: 105px 28px 35px;

        background: #080808;

        border-right: 1px solid #1b1b1b;

        transform: translateX(-100%);

        transition: transform 0.28s ease;

        overflow-y: auto;
    }

    body.mobile-menu-open .main-navigation {
        transform: translateX(0);
    }


    /* ENCABEZADO DEL MENÚ */

    .main-navigation::before {
        content: "MENÚ";

        display: block;

        margin-bottom: 20px;
        margin-top: 20px;

        color: var(--color-red-light);

        font-weight: 700;

        letter-spacing: 2px;
        line-height: 1;
    }


    /* LISTA */

    .main-navigation ul {
        display: flex;

        flex-direction: column;

        gap: 0;

        margin: 0;
        padding: 0;

        list-style: none;
    }

    .main-navigation li {
        width: 100%;

        border-bottom: 1px solid #181818;
    }

    .main-navigation li:first-child {
        border-top: 1px solid #181818;
    }

    .main-navigation a {
        position: relative;

        display: flex;

        align-items: center;

        width: 100%;
        min-height: 52px;

        box-sizing: border-box;

        padding: 0 10px 0 0;

        color: var(--color-gray-500);

        font-family: var(--font-body);
        font-size: 18px;
        font-weight: 600;

        text-decoration: none;

        transition:
            color 0.2s ease,
            padding-left 0.2s ease;
    }

    .main-navigation a:hover,
    .main-navigation .current-menu-item > a {
        padding-left: 8px;

        color: var(--color-white);
    }


    /* INDICADOR CRIMSON */

    .main-navigation a::before {
        content: "";

        position: absolute;

        left: 0;
        top: 50%;

        width: 2px;
        height: 0;

        background: var(--color-red);

        transform: translateY(-50%);

        transition: height 0.2s ease;
    }

    .main-navigation a:hover::before,
    .main-navigation .current-menu-item > a::before {
        height: 20px;
    }


    /* BOTÓN MENÚ */

    .mobile-menu-toggle {
        position: relative;

        z-index: 1100;
    }

    .mobile-menu-toggle span {
        transition:
            transform 0.2s ease,
            opacity 0.2s ease;
    }

    body.mobile-menu-open .mobile-menu-toggle span:nth-child(1) {
        transform: translateY(11.5px) rotate(45deg);
    }

    body.mobile-menu-open .mobile-menu-toggle span:nth-child(2) {
        opacity: 0;
    }

    body.mobile-menu-open .mobile-menu-toggle span:nth-child(3) {
        transform: translateY(-11.5px) rotate(-45deg);
    }


    /* OSCURECER EL RESTO DE LA PÁGINA */

    body.mobile-menu-open::after {
        content: "";

        position: fixed;

        inset: 0;

        z-index: 900;

        background: rgba(0, 0, 0, 0.58);
    }

    body.mobile-menu-open {
        overflow: hidden;
    }

}


/* =========================================================
   BARRA DE DESPLAZAMIENTO
   ========================================================= */

html {
    scrollbar-color:
        var(--color-red)
        #080808;

    scrollbar-width: thin;
}

html::-webkit-scrollbar {
    width: 9px;
}

html::-webkit-scrollbar-track {
    background: #080808;
}

html::-webkit-scrollbar-thumb {
    background: var(--color-red);
}

html::-webkit-scrollbar-thumb:hover {
    background: var(--color-red-light);
}


/* =========================================================
   BUSCADOR MÓVIL
   ========================================================= */

@media (max-width: 900px) {

    .mobile-search-panel {
        position: absolute;

        top: 100%;
        left: 0;

        z-index: 1200;

        width: 100%;

        box-sizing: border-box;

        display: none;

        padding: 12px 20px;

        background: #080808;

        border-top: 1px solid #181818;
        border-bottom: 1px solid #181818;
    }

    .mobile-search-panel.is-open {
        display: block;
    }

    .mobile-search-panel form {
        display: flex;

        width: 100%;
    }

    .mobile-search-panel input {
        flex: 1;

        min-width: 0;

        padding: 11px 12px;

        background: #111;

        border: 1px solid #252525;
        border-right: 0;

        color: var(--color-white);

        font-family: var(--font-body);
        font-size: 14px;

        outline: none;
    }

    .mobile-search-panel button {
        width: 45px;

        background: var(--color-red);

        border: 0;

        color: var(--color-white);

        font-size: 20px;

        cursor: pointer;
    }

}


/* =========================================================
   AGE GATE
   ========================================================= */

.age-gate {
    position: fixed;

    inset: 0;

    z-index: 999999;

    display: flex;

    align-items: center;
    justify-content: center;

    padding: 24px;

    background:
        rgba(5, 5, 5, 0.75);

    backdrop-filter: blur(7px);
    -webkit-backdrop-filter: blur(7px);
}

.age-gate-box {
    position: relative;

    width: 100%;
    max-width: 440px;

    padding: 44px 38px 38px;

    text-align: center;

    background: var(--color-surface);

    border: 1px solid #2a2a2a;

    box-shadow:
        0 24px 80px rgba(0, 0, 0, 0.72);
}


/* Línea decorativa superior */

.age-gate-box::before {
    content: "";

    position: absolute;

    top: -1px;
    left: 50%;

    width: 70px;
    height: 3px;

    background: var(--color-red);

    transform: translateX(-50%);
}


/* MARCA 18+ */

.age-gate-logo {
    width: 68px;
    height: 68px;

    margin: 0 auto 25px;

    display: flex;

    align-items: center;
    justify-content: center;

    border: 1px solid var(--color-red);

    background: #101010;

    color: var(--color-white);
}

.age-gate-logo span {
    color: var(--color-red-light);

    font-family: var(--font-display);

    font-size: 21px;
    font-weight: 700;

    letter-spacing: 1px;
}


/* TÍTULO */

.age-gate-box h2 {
    margin: 0 0 13px;

    color: var(--color-white);

    font-family: var(--font-display);

    font-size: 27px;
    font-weight: 700;

    line-height: 1.2;
}


/* TEXTO */

.age-gate-box p {
    max-width: 350px;

    margin: 0 auto 27px;

    color: var(--color-gray-500);

    font-size: 14px;

    line-height: 1.65;
}


/* CHECKBOX */

.age-gate-check {
    display: flex;

    align-items: center;
    justify-content: center;

    gap: 10px;

    margin-bottom: 23px;

    color: var(--color-gray-700);

    font-size: 13px;

    cursor: pointer;
}

.age-gate-check input {
    appearance: none;

    width: 17px;
    height: 17px;

    flex-shrink: 0;

    margin: 0;

    background: #0d0d0d;

    border: 1px solid #444;

    border-radius: 0;

    cursor: pointer;

    position: relative;

    transition:
        background 0.2s ease,
        border-color 0.2s ease;
}

.age-gate-check input:hover {
    border-color: var(--color-red);
}

.age-gate-check input:checked {
    background: var(--color-red);

    border-color: var(--color-red);
}

.age-gate-check input:checked::after {
    content: "";

    position: absolute;

    left: 5px;
    top: 2px;

    width: 5px;
    height: 9px;

    border-right: 2px solid var(--color-white);
    border-bottom: 2px solid var(--color-white);

    transform: rotate(45deg);
}


/* BOTÓN */

#age-gate-confirm {
    width: 100%;

    padding: 13px 20px;

    background: var(--color-red);

    border: 1px solid var(--color-red);

    border-radius: 0;

    color: var(--color-white);

    font-family: var(--font-body);

    font-size: 13px;
    font-weight: 700;

    letter-spacing: 0.2px;

    cursor: pointer;

    transition:
        background 0.2s ease,
        border-color 0.2s ease,
        transform 0.2s ease;
}

#age-gate-confirm:hover:not(:disabled) {
    background: var(--color-red-light);

    border-color: var(--color-red-light);

    transform: translateY(-1px);
}

#age-gate-confirm:disabled {
    background: #292929;

    border-color: #292929;

    color: #666;

    cursor: not-allowed;
}


/* Evita que la página se desplace mientras el Age Gate está activo */

body.age-gate-active {
    overflow: hidden;
}


/* AGE GATE MÓVIL */

@media (max-width: 600px) {

    .age-gate {
        padding: 18px;
    }

    .age-gate-box {
        max-width: 430px;

        padding: 38px 24px 30px;
    }

    .age-gate-logo {
        width: 60px;
        height: 60px;

        margin-bottom: 21px;
    }

    .age-gate-logo span {
        font-size: 19px;
    }

    .age-gate-box h2 {
        font-size: 23px;
    }

    .age-gate-box p {
        font-size: 13px;
    }

    .age-gate-check {
        font-size: 12px;
    }

}


/* =========================================================
   WIDGET NATIVO
   ========================================================= */

#msg-native-widget-5854078-dYaRk.msg-native-widget .msg-native-widget-outer-container .msg-native-widget-item-container {
    overflow: hidden;

    flex-basis: calc(100% / 1);

    position: relative;

    padding-right: 0px;
    padding-bottom: 0px;
}