/* ============================================
   PROFE GATO - ESTILOS PRINCIPALES
   Réplica del blog de Blogger para Neocities
   ============================================ */

/* Reset y variables */
:root {
    --bg-primary: #000000;
    --bg-secondary: #0a0a0a;
    --text-primary: #ffff;
    --text-secondary: #b0b0b0;
    --accent-color: #ff6b6b;
    --accent-hover: #ff8585;
    --border-color: #333333;
    --link-color: #ff6b6b;
    --link-hover: #ff8585;
    --header-bg: rgba(0, 0, 0, 0.95);
    --toc-bg: #111111;
    --font-heading: 'Cardo', Georgia, serif;
    --font-body: 'Source Serif Pro', Georgia, serif;
    /* Inter eliminado - Solo usar Cardo y Source Serif Pro */
    /* Tamaños normalizados */
    --h1-size: 36px;
    --h2-size: 28px;
    --h3-size: 24px;
    --h4-size: 18px;
    --h5-size: 16px;
    --h6-size: 14px;
    --body-size: 16px;
    --caption-size: 12px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.7;
    font-size: var(--body-size);
    min-height: 100vh;
}

/* ============================================
   BARRA DE PROGRESO DE LECTURA
   ============================================ */
.reading-progress-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: transparent;
    z-index: 1001;
}

.reading-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-color), var(--accent-hover));
    width: 0%;
    transition: width 0.1s ease-out;
}

/* ============================================
   HEADER
   ============================================ */
.header {
    background: var(--header-bg);
    border-bottom: 1px solid var(--border-color);
    padding: 20px 0;
    position: relative;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.header-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
    color: inherit;
}

/* ============================================
   FLECHA DE RETROCESO ANIMADA
   From Uiverse.io by xopc333
   ============================================ */
.back-arrow-button {
    display: block;
    position: relative;
    width: 56px;
    height: 56px;
    margin: 0;
    margin-right: 10px;
    overflow: hidden;
    outline: none;
    background-color: transparent;
    border: 0;
    cursor: pointer;
}

.back-arrow-button:before,
.back-arrow-button:after {
    content: "";
    position: absolute;
    border-radius: 50%;
    inset: 7px;
}

.back-arrow-button:before {
    border: 4px solid #f7f7f7;
    transition: opacity .4s cubic-bezier(.77, 0, .175, 1) 80ms, transform .5s cubic-bezier(.455, .03, .515, .955) 80ms;
}

.back-arrow-button:after {
    border: 4px solid var(--accent-color);
    transform: scale(1.3);
    transition: opacity .4s cubic-bezier(.165, .84, .44, 1), transform .5s cubic-bezier(.25, .46, .45, .94);
    opacity: 0;
}

.back-arrow-button:hover:before,
.back-arrow-button:focus:before {
    opacity: 0;
    transform: scale(0.7);
    transition: opacity .4s cubic-bezier(.165, .84, .44, 1), transform .5s cubic-bezier(.25, .46, .45, .94);
}

.back-arrow-button:hover:after,
.back-arrow-button:focus:after {
    opacity: 1;
    transform: scale(1);
    transition: opacity .4s cubic-bezier(.77, 0, .175, 1) 80ms, transform .5s cubic-bezier(.455, .03, .515, .955) 80ms;
}

.button-box {
    display: flex;
    position: absolute;
    top: 0;
    left: 0;
}

.button-elem {
    display: block;
    width: 20px;
    height: 20px;
    margin: 17px 18px 0 18px;
    transform: rotate(180deg);
    fill: #f7f7f7;
}

.back-arrow-button:hover .button-box,
.back-arrow-button:focus .button-box {
    transition: .4s;
    transform: translateX(-56px);
}

.back-arrow-button:hover .button-elem,
.back-arrow-button:focus .button-elem {
    fill: var(--accent-color);
}

.logo-text h1 {
    font-family: var(--font-heading);
    font-size: 32px;
    font-weight: 400;
    color: #f7f7f7;
    margin: 0;
    letter-spacing: -0.5px;
}

.tagline {
    font-family: var(--font-body);
    font-size: 13px;
    color: var(--text-secondary);
    margin: 3px 0 0 0;
    font-weight: 400;
}

/* ============================================
   BOTÓN DE BÚSQUEDA ANIMADO
   From Uiverse.io by krlozCJ
   ============================================ */
.search-container {
    position: relative;
    --size-button: 40px;
    color: white;
}

.search-input {
    padding-left: var(--size-button);
    height: var(--size-button);
    font-size: 15px;
    border: none;
    color: #fff;
    outline: none;
    width: var(--size-button);
    transition: all ease 0.3s;
    background-color: #191A1E;
    box-shadow: 1.5px 1.5px 3px #0e0e0e, -1.5px -1.5px 3px rgb(95 94 94 / 25%), inset 0px 0px 0px #0e0e0e, inset 0px -0px 0px #5f5e5e;
    border-radius: 50px;
    cursor: pointer;
    font-family: var(--font-body);
}

.search-input:focus,
.search-input:not(:invalid) {
    width: clamp(140px, 45vw, 200px);
    cursor: text;
    box-shadow: 0px 0px 0px #0e0e0e, 0px 0px 0px rgb(95 94 94 / 25%), inset 1.5px 1.5px 3px #0e0e0e, inset -1.5px -1.5px 3px #5f5e5e;
}

.search-input:focus+.search-icon,
.search-input:not(:invalid)+.search-icon {
    pointer-events: all;
    cursor: pointer;
}

.search-icon {
    position: absolute;
    width: var(--size-button);
    height: var(--size-button);
    top: 0;
    left: 0;
    padding: 8px;
    pointer-events: none;
    color: var(--accent-color);
}

.search-icon svg {
    width: 100%;
    height: 100%;
}

/* Dropdown de resultados (busqueda inline) */
.search-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: min(90vw, 360px);
    background: rgba(10, 10, 10, 0.98);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    padding: 10px;
    display: none;
    z-index: 1200;
}

.search-dropdown.active {
    display: block;
}

.search-dropdown-results {
    max-height: 360px;
    overflow-y: auto;
}

.search-dropdown-item {
    display: block;
    padding: 10px 12px;
    border-radius: 8px;
    text-decoration: none;
    color: var(--text-primary);
    transition: background 0.2s ease;
}

.search-dropdown-item:hover {
    background: rgba(255, 255, 255, 0.06);
}

.search-dropdown-item h4 {
    font-size: 14px;
    margin-bottom: 6px;
    font-weight: 600;
    color: var(--accent-color);
}

.search-dropdown-item p {
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.4;
}

/* Navegación - Estilo del antiguo blog con separadores · */
.main-nav {
    display: flex;
    gap: 0;
    flex-wrap: wrap;
    align-items: center;
}

.main-nav a {
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 200;
    color: #ffff;
    text-decoration: none;
    transition: color 0.3s ease;
    text-transform: uppercase;
}

.main-nav a:not(:first-child)::before {
    content: " · ";
    color: var(--text-secondary);
    font-weight: 400;
}

.main-nav a:hover {
    color: var(--accent-color);
}

/* ============================================
   MODAL DE BÚSQUEDA
   ============================================ */
.search-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 2000;
    justify-content: center;
    align-items: flex-start;
    padding-top: 100px;
}

.search-modal.active {
    display: flex;
}

.search-content {
    width: 90%;
    max-width: 600px;
    position: relative;
}

.close-search {
    position: absolute;
    top: -50px;
    right: 0;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 36px;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close-search:hover {
    color: var(--accent-color);
}

.search-content input {
    width: 100%;
    padding: 20px;
    font-size: 24px;
    background: var(--bg-secondary);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-family: var(--font-sans);
    outline: none;
    transition: border-color 0.3s ease;
}

.search-content input:focus {
    border-color: var(--accent-color);
}

.search-results {
    margin-top: 20px;
    max-height: 400px;
    overflow-y: auto;
}

.search-result-item {
    padding: 15px;
    border-bottom: 1px solid var(--border-color);
    cursor: pointer;
    transition: background 0.3s ease;
}

.search-result-item:hover {
    background: var(--bg-secondary);
}

.search-result-item h4 {
    color: var(--accent-color);
    margin-bottom: 5px;
}

.search-result-item p {
    color: var(--text-secondary);
    font-size: 14px;
}

/* ============================================
   CONTENIDO PRINCIPAL
   ============================================ */
.main-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px 20px;
    display: flex;
    gap: 40px;
}

#homePage {
    width: 100%;
}

#postPage {
    width: 100%;
    display: flex;
    gap: 40px;
}

.hidden {
    display: none !important;
}

/* ============================================
   SECCIONES
   ============================================ */
.section-title {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 1000;
    text-transform: none;
    letter-spacing: .3px;
    color: #ffff;
    margin-bottom: 20px;
}

.section-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.section-title a:hover {
    color: var(--accent-color);
}

/* ============================================
   PÁGINAS DE CATEGORÍA
   ============================================ */
#categoryPage {
    width: 100%;
}

.category-section {
    margin-bottom: 80px;
}

.category-section .section-title {
    font-size: 24px;
    margin-bottom: 10px;
}

.featured-section {
    margin-bottom: 60px;
}

/* ============================================
   ENTRADA DESTACADA
   ============================================ */
.featured-post {
    margin-bottom: 60px;
}

.featured-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

.featured-image-link {
    display: block;
    overflow: hidden;
    border-radius: 4px;
}

.featured-image-link img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.featured-image-link:hover img {
    transform: scale(1.03);
}

.featured-content h3 {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 700;
    letter-spacing: .2px;
    margin-bottom: 15px;
}

.featured-content h3 a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.featured-content h3 a:hover {
    color: var(--accent-color);
}

.divider {
    width: 30px;
    height: 1px;
    background: var(--border-color);
    margin: 15px 0;
}

.featured-content p {
    color: var(--text-secondary);
    margin-bottom: 15px;
    text-align: justify;
    font-size: 17px;
}

.featured-content em {
    font-style: italic;
}

.read-more {
    color: var(--accent-color);
    text-decoration: none;
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    transition: color 0.3s ease;
}

.read-more:hover {
    color: var(--accent-hover);
}

/* ============================================
   ÚLTIMAS ENTRADAS
   ============================================ */
.recent-posts {
    margin-top: 40px;
}

.posts-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.post-item {
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding-bottom: 0;
    border-bottom: none;
}

.post-item:last-child {
    border-bottom: none;
}

@media (max-width: 768px) {
    .posts-list {
        grid-template-columns: 1fr;
    }
}

.post-image-link {
    display: block;
    overflow: hidden;
    border-radius: 4px;
    aspect-ratio: 16/9;
}

.post-image-link img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.post-image-link:hover img {
    transform: scale(1.05);
}

.post-content h3 {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 700;
    line-height: 1.4;
}

.post-content h3 a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.post-content h3 a:hover {
    color: var(--accent-color);
}

/* ============================================
   SIDEBAR
   ============================================ */
.sidebar {
    width: 200px;
    flex-shrink: 0;
}

.sidebar-section {
    margin-bottom: 30px;
}

.sidebar-section h4 {
    font-family: var(--font-sans);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-primary);
    margin-bottom: 15px;
}

.tags {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.tag {
    color: var(--accent-color);
    text-decoration: none;
    font-family: var(--font-sans);
    font-size: 13px;
    transition: color 0.3s ease;
}

.tag:hover {
    color: var(--accent-hover);
}

/* ============================================
   ARTÍCULO INDIVIDUAL
   ============================================ */
.article {
    flex: 1;
    max-width: 700px;
}

/* Breadcrumbs */
.breadcrumbs {
    font-family: var(--font-sans);
    font-size: 13px;
    margin-bottom: 20px;
    color: var(--text-secondary);
}

.breadcrumbs a {
    color: var(--accent-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumbs a:hover {
    color: var(--accent-hover);
}

.separator {
    margin: 0 8px;
    color: var(--text-secondary);
}

/* Título */
.article-title {
    font-family: 'Cardo', serif;
    font-size: 32px;
    font-weight: 600;
    margin-bottom: 15px;
    line-height: 1.3;
}

/* Tiempo de lectura */
.reading-time {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-sans);
    font-size: 14px;
    color: var(--accent-color);
    margin-bottom: 25px;
}

.clock-icon {
    font-size: 16px;
}

/* Imagen del artículo */
.article-image {
    margin-bottom: 30px;
    border-radius: 4px;
    overflow: hidden;
}

.article-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* ============================================
   TABLA DE CONTENIDOS
   ============================================ */
.toc-container {
    margin-bottom: 30px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-left: 4px solid #ff5757;
    border-radius: 8px;
    margin: 2rem 0;
    overflow: hidden;
}

.toc-toggle {
    width: 100%;
    padding: 15px 20px;
    background: transparent;
    border: none;
    color: var(--accent-color);
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.3s ease;
}

.toc-toggle:hover {
    background: rgba(255, 255, 255, 0.05);
}

.toc-arrow {
    transition: transform 0.3s ease;
    color: var(--accent-color);
}

.toc-container.open .toc-arrow {
    transform: rotate(180deg);
}

.toc {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.toc-container.open .toc {
    max-height: 500px;
}

.toc ul {
    list-style: none;
    padding: 0 20px 20px;
}

.toc li {
    margin-bottom: 8px;
}

.toc a {
    color: var(--text-secondary);
    text-decoration: none;
    font-family: var(--font-body);
    font-size: 14px;
    transition: color 0.3s ease, padding-left 0.3s ease;
    display: block;
    padding: 5px 0;
}

.toc a:hover {
    color: var(--accent-color);
    padding-left: 10px;
}

/* ============================================
   CONTENIDO DEL ARTÍCULO
   ============================================ */
.article-content {
    font-size: 18px;
    line-height: 1.8;
}

.article-content p {
    margin-bottom: 0.1em;
    text-indent: 0.75cm;
    text-align: justify;
}

/* Primer párrafo sin sangría */
.article-content>p:first-of-type {
    text-indent: 0;
}

/* Párrafo después de subtítulo sin sangría */
.article-content h2+p,
.article-content h3+p,
.article-content h4+p {
    text-indent: 0;
}

.article-content h2 {
    font-family: var(--font-serif);
    font-size: 26px;
    font-weight: 600;
    margin: 40px 0 20px;
    color: var(--text-primary);
}

.article-content h3 {
    font-family: var(--font-serif);
    font-size: 22px;
    font-weight: 600;
    margin: 30px 0 15px;
    color: var(--text-primary);
}

.article-content a {
    color: var(--link-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.article-content a:hover {
    color: var(--link-hover);
    text-decoration: underline;
}

.article-content em {
    font-style: italic;
}

.article-content strong {
    font-weight: 600;
}

.article-content blockquote {
    border-left: 3px solid var(--accent-color);
    padding-left: 20px;
    margin: 25px 0;
    color: var(--text-secondary);
    font-style: italic;
}

.article-content ul,
.article-content ol {
    margin: 20px 0;
    padding-left: 30px;
}

.article-content li {
    margin-bottom: 10px;
}

.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    margin: 20px 0;
}

/* Enlaces a autores */
.author-link {
    color: var(--accent-color);
    font-weight: 500;
}

/* Citas de libros */
.book-title {
    font-style: italic;
}

/* ============================================
   BOTÓN VOLVER ARRIBA
   From Uiverse.io by vinodjangid07
   ============================================ */
.back-to-top-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: rgb(20, 20, 20);
    border: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0px 0px 0px 4px rgba(255, 107, 107, 0.253);
    cursor: pointer;
    transition-duration: 0.3s;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    z-index: 999;
}

.back-to-top-btn.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top-icon {
    width: 12px;
    transition-duration: 0.3s;
}

.back-to-top-icon path {
    fill: white;
}

.back-to-top-btn:hover {
    width: 140px;
    border-radius: 50px;
    transition-duration: 0.3s;
    background-color: var(--accent-color);
    align-items: center;
}

.back-to-top-btn:hover .back-to-top-icon {
    transition-duration: 0.3s;
    transform: translateY(-200%);
}

.back-to-top-btn::before {
    position: absolute;
    bottom: -20px;
    content: "Volver arriba";
    color: white;
    font-size: 0px;
    font-family: var(--font-body);
}

.back-to-top-btn:hover::before {
    font-size: 13px;
    opacity: 1;
    bottom: unset;
    transition-duration: 0.3s;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    border-top: 1px solid var(--border-color);
    padding: 40px 20px;
    margin-top: 60px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.footer-content p {
    font-family: var(--font-sans);
    font-size: 13px;
    color: var(--text-secondary);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 900px) {
    #postPage {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        order: 2;
    }

    .tags {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .article {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .header-main {
        display: grid;
        grid-template-columns: 1fr auto;
        align-items: center;
        gap: 12px;
    }

    .logo {
        min-width: 0;
    }

    .logo-text h1 {
        font-size: 26px;
    }

    .main-nav {
        gap: 15px;
    }

    .featured-card {
        grid-template-columns: 1fr;
    }

    .post-item {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .post-image-link {
        aspect-ratio: 16/9;
    }

    .article-title {
        font-size: 26px;
    }

    .article-content {
        font-size: 16px;
    }

    .article-content h2 {
        font-size: 22px;
    }

    .article-content h3 {
        font-size: 19px;
    }
}

@media (max-width: 480px) {
    .main-content {
        padding: 20px 15px;
    }

    .logo-text h1 {
        font-size: 22px;
    }

    .tagline {
        font-size: 11px;
    }

    .main-nav a {
        font-size: 12px;
    }

    .featured-content h3 {
        font-size: 22px;
    }

    .post-content h3 {
        font-size: 18px;
    }
}

/* ============================================
   ANIMACIONES
   ============================================ */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.post-item,
.featured-card {
    animation: fadeIn 0.6s ease forwards;
}

/* Scrollbar personalizada */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-color);
}

/* Selección de texto */
::selection {
    background: var(--accent-color);
    color: var(--bg-primary);
}

/* ============================================
   TIPOGRAFÍA NORMALIZADA
   ============================================ */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 400;
    line-height: 1.3;
}

h1 {
    font-size: var(--h1-size);
}

h2 {
    font-size: var(--h2-size);
}

h3 {
    font-size: var(--h3-size);
}

h4 {
    font-size: var(--h4-size);
}

h5 {
    font-size: var(--h5-size);
}

h6 {
    font-size: var(--h6-size);
}

.caption,
figcaption,
small {
    font-size: var(--caption-size);
}

/* ============================================
   HERO BANNER
   ============================================ */
.hero-banner {
    width: 100%;
    overflow: hidden;
    margin-bottom: 15px;
}

.hero-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* ============================================
   POSTS RELACIONADOS
   ============================================ */
.related-posts {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid var(--border-color);
}

.related-posts .section-title {
    font-size: var(--h2-size);
    margin-bottom: 25px;
}

.related-posts-grid {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.related-post-item {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.related-post-link {
    display: block;
    overflow: hidden;
    border-radius: 4px;
    aspect-ratio: 16/9;
}

.related-post-link img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.related-post-link:hover img {
    transform: scale(1.05);
}

.related-post-item h3 {
    font-size: var(--body-size);
    font-weight: 400;
}

.related-post-item h3 a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.related-post-item h3 a:hover {
    color: var(--accent-color);
}

.placeholder-image {
    width: 100%;
    aspect-ratio: 16/9;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 4px;
}

/* ============================================
   ARTÍCULO CENTRADO (sin sidebar)
   ============================================ */
#postPage {
    width: 100%;
    display: flex;
    justify-content: center;
}

#postPage .article {
    flex: 1;
    max-width: 700px;
    margin: 0 auto;
}

/* ============================================
   BLOG SLIDER (Swiper.js)
   ============================================ */
.blog-slider-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

.blog-slider-container .section-header {
    text-align: center;
    margin-bottom: 40px;
}

.blog-slider-container .section-header h2 {
    font-size: 2rem;
    color: var(--text-primary);
    margin-bottom: 10px;
    font-family: var(--font-heading);
}

.blog-slider-container .section-header p {
    color: var(--text-secondary);
    font-size: 1rem;
}

.blog-slider {
    width: 100%;
    padding: 40px 0;
    overflow: hidden;
    position: relative;
}

.blog-slider .swiper-wrapper {
    align-items: center;
}

/* Todos los slides: base invisible */
.blog-slider .swiper-slide {
    width: auto;
    opacity: 0;
    transform: scale(0.6);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

/* Slide activo (centro): VISIBLE completo */
.blog-slider .swiper-slide-active {
    opacity: 1;
    transform: scale(1);
    z-index: 10;
    pointer-events: auto;
}

/* Slides adyacentes: VISIBLES pero atenuados */
.blog-slider .swiper-slide-prev,
.blog-slider .swiper-slide-next {
    opacity: 0.5;
    transform: scale(0.9);
    z-index: 5;
    pointer-events: auto;
}

/* Card Interior - reducido para mejor visualización */
.blog-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.7);
    background: var(--bg-secondary);
    max-width: 800px;
    margin: 0 auto;
}

.blog-card a {
    text-decoration: none;
    color: inherit;
    display: block;
}

.blog-card .image-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.blog-card .image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: all 0.5s ease;
}

/* Slide activo: imagen brillante - sin escala para evitar corte */
.blog-slider .swiper-slide-active .image-wrapper img {
    filter: brightness(1);
    transform: scale(1);
}

/* Slides laterales: imagen más oscura - sin escala */
.blog-slider .swiper-slide-prev .image-wrapper img,
.blog-slider .swiper-slide-next .image-wrapper img {
    filter: brightness(0.5) grayscale(0.3);
    transform: scale(1);
}

/* Overlay de información - solo visible en activo */
.blog-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.95), transparent);
    color: white;
    padding: 40px 24px 24px;
    transform: translateY(100%);
    opacity: 0;
    transition: all 0.4s ease 0.1s;
}

.blog-slider .swiper-slide-active .blog-info {
    transform: translateY(0);
    opacity: 1;
}

.blog-category {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.75rem;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.blog-title {
    font-size: 1.3rem;
    font-weight: 600;
    line-height: 1.4;
    margin: 0;
    font-family: var(--font-heading);
}

/* Flechas de navegación */
.blog-slider .swiper-button-next,
.blog-slider .swiper-button-prev {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    opacity: 0;
}

.blog-slider .swiper-button-next::after,
.blog-slider .swiper-button-prev::after {
    font-size: 18px;
}

.blog-slider-container:hover .swiper-button-next,
.blog-slider-container:hover .swiper-button-prev {
    opacity: 1;
}

.blog-slider .swiper-button-next:hover,
.blog-slider .swiper-button-prev:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Paginación */
.blog-slider .swiper-pagination {
    bottom: 0 !important;
}

.blog-slider .swiper-pagination-bullet {
    width: 8px;
    height: 8px;
    background: var(--border-color);
    opacity: 1;
    transition: all 0.3s ease;
}

.blog-slider .swiper-pagination-bullet-active {
    background: var(--accent-color);
    width: 30px;
    border-radius: 4px;
}

/* Responsive */
@media (max-width: 768px) {
    .blog-slider-container .section-header h2 {
        font-size: 1.5rem;
    }

    .blog-slider .swiper-slide {
        width: 90%;
    }

    /* En móvil: solo el activo visible */
    .blog-slider .swiper-slide-prev,
    .blog-slider .swiper-slide-next {
        opacity: 0 !important;
    }

    .blog-slider .swiper-button-next,
    .blog-slider .swiper-button-prev {
        display: none;
    }

    .blog-slider {
        padding: 40px 0;
    }
}

/* ============================================
   PÁGINAS TERCIARIAS (SUBSECCIÓN)
   ============================================ */
#subsectionPage {
    width: 100%;
}

.period-section {
    margin-bottom: 80px;
}

.period-section .section-title {
    font-size: 22px;
    margin-bottom: 15px;
}

.no-content {
    color: var(--text-secondary);
    font-style: italic;
    padding: 20px 0;
}

/* ============================================
   CITAS ALEATORIAS
   ============================================ */
.rand-quote {
    margin: 2em auto 1em;
    max-width: 760px;
    padding: 1em 1.2em;
    background: var(--bg-secondary);
    border-left: 4px solid var(--accent-color);
    border-radius: 8px;
    font-style: italic;
    line-height: 1.6;
    color: var(--text-secondary);
}

.rand-quote .by {
    display: block;
    text-align: right;
    margin-top: 0.6em;
    color: var(--text-muted, #888);
    font-style: normal;
}