/* style.css - Estilo para artista breakcore, 2026 */

/* Importar fuente Press Start 2P */
@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&display=swap');

:root {
    --palette-purple-950: #3C1B53;
    --palette-purple-900: #452261;
    --palette-purple-800: #653A81;
    --palette-purple-700: #784497;
    --palette-purple-300: #9877B1;
    --palette-purple-200: #AA86C5;
    --palette-white: #FFFFFF;
    --palette-ice: #E4E4E4;
    --palette-green-900: #275D48;
    --palette-green-800: #3B7351;
    --palette-green-600: #5AA574;
    --palette-green-500: #65C092;
    --palette-green-400: #70BD7B;
    --palette-green-300: #84DD92;
    --palette-black: #000000;

    --season-olive: var(--palette-purple-200);
    --season-lime: var(--palette-ice);
    --season-leaf: var(--palette-green-300);
    --season-soft-leaf: var(--palette-green-500);
    --season-aqua: var(--palette-green-400);
    --season-white: var(--palette-white);
    --season-wheat: var(--palette-purple-300);
    --season-cream: var(--palette-ice);
    --season-barn: var(--palette-purple-900);
    --season-coral: var(--palette-green-800);
    --season-rose: var(--palette-green-400);
    --season-orange: var(--palette-purple-800);
    --season-honey: var(--palette-purple-200);
    --season-glow: var(--palette-green-300);
    --season-sage-deep: var(--palette-purple-800);
    --season-sage: var(--palette-purple-300);
    --season-sage-soft: var(--palette-purple-200);
    --season-umber: var(--palette-purple-950);
    --season-clay: var(--palette-purple-700);
    --season-amber: var(--palette-green-500);
    --season-peach: var(--palette-purple-200);
    --season-tangerine: var(--palette-green-400);
    --season-apricot: var(--palette-ice);
    --season-red: var(--palette-green-800);
    --season-olive-deep: var(--palette-purple-900);

    --bg-base: var(--palette-ice);
    --bg-panel: rgba(255, 255, 255, 0.88);
    --bg-panel-soft: rgba(170, 134, 197, 0.3);
    --bg-wash: rgba(132, 221, 146, 0.16);
    --text-main: var(--palette-purple-950);
    --text-soft: var(--palette-purple-800);
    --text-strong: var(--palette-purple-900);
    --heading: var(--palette-purple-900);
    --link: var(--palette-green-800);
    --link-strong: var(--palette-green-900);
    --accent: var(--palette-green-800);
    --accent-soft: var(--palette-green-300);
    --accent-warm: var(--palette-green-500);
    --border: var(--palette-purple-200);
    --border-strong: var(--palette-purple-900);
    --border-muted: var(--palette-purple-300);
    --shadow: var(--palette-purple-700);
    --shadow-deep: var(--palette-purple-950);
    --lollipop-heart-a: var(--palette-green-300);
    --lollipop-heart-b: var(--palette-purple-200);
    --lollipop-heart-c: var(--palette-green-500);
    --lollipop-heart-d: var(--palette-purple-700);
    --lollipop-heart-outline: var(--palette-purple-950);
}

/* Reset básico */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Press Start 2P', cursive;
    line-height: 1.6;
    color: var(--text-main);
    background-color: var(--bg-base);
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

/* Fondo SVG estatico */
#p5-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    pointer-events: none; /* para que no interfiera con clics */
}

#p5-background .static-polygon-svg {
    display: block;
    width: 100%;
    height: 100%;
}

/* Contenedor principal para el contenido */
.main-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    background-color: var(--bg-panel);
    border: 2px solid var(--border-strong);
    box-shadow: 0 0 20px rgba(120, 68, 151, 0.22);
    backdrop-filter: blur(2px); /* pequeño difuminado para dar sensación de glitch */
}

@supports (-moz-appearance: none) {
    .main-container,
    .post-completo.theme-tim-breakcore .contenido-post .tim87-post header {
        backdrop-filter: none !important;
    }
}

body.index-page .main-container {
    padding-top: 1.5rem;
}

/* Tipografías y colores de texto */
h1, h2, h3 {
    color: var(--heading);
    margin-bottom: 1rem;
    text-shadow: 2px 2px 0 rgba(69, 34, 97, 0.16);
    letter-spacing: -0.05em;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }

.main-container > header h1 a {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
}

.main-container > header h1 a::after {
    content: "";
    flex: 0 0 auto;
    width: 5px;
    height: 5px;
    margin-left: 0.1rem;
    color: var(--lollipop-heart-a);
    background: currentColor;
    box-shadow:
        5px 0 0 currentColor,
        15px 0 0 currentColor,
        20px 0 0 currentColor,
        -5px 5px 0 currentColor,
        0 5px 0 currentColor,
        5px 5px 0 currentColor,
        10px 5px 0 currentColor,
        15px 5px 0 currentColor,
        20px 5px 0 currentColor,
        25px 5px 0 currentColor,
        0 10px 0 currentColor,
        5px 10px 0 currentColor,
        10px 10px 0 currentColor,
        15px 10px 0 currentColor,
        20px 10px 0 currentColor,
        5px 15px 0 currentColor,
        10px 15px 0 currentColor,
        15px 15px 0 currentColor,
        10px 20px 0 currentColor;
    image-rendering: pixelated;
    transform: translateY(-7px);
    animation: lollipop-heart-color 6s steps(1, end) infinite;
}

@keyframes lollipop-heart-color {
    0%, 100% { color: var(--lollipop-heart-a); }
    25% { color: var(--lollipop-heart-b); }
    50% { color: var(--lollipop-heart-c); }
    75% { color: var(--lollipop-heart-d); }
}

@media (prefers-reduced-motion: reduce) {
    .main-container > header h1 a::after {
        animation: none;
    }
}

p {
    margin-bottom: 1rem;
    color: var(--text-main);
}

a {
    color: var(--link);
    text-decoration: none;
    border-bottom: 1px dashed var(--accent);
    transition: none; /* sin transición suave, cambio instantáneo */
}

/* Efectos específicos para el index */
body.index-page a:hover,
body.index-page button:hover {
    color: var(--season-white);
    background-color: var(--accent);
    border-bottom: 2px solid var(--accent-soft);
    transform: scale(1.05); /* pequeño crecimiento instantáneo */
}

/* Efectos para el resto del sitio (blog, about, etc.) */
body:not(.index-page) a:hover,
body:not(.index-page) button:hover {
    /* Inversión de colores extrema */
    color: var(--season-white) !important;
    background-color: var(--link) !important;
    border: 2px solid var(--border-strong) !important;
    box-shadow: 0 0 15px rgba(59, 115, 81, 0.18);
    text-decoration: line-through; /* toque glitch */
}

/* Parpadeo aleatorio en la biografía (about page) */
.bio p {
    animation: blink-random 3s infinite step-end;
}

@keyframes blink-random {
    0%, 100% { opacity: 1; color: var(--text-main); }
    25% { opacity: 0.3; color: var(--accent-soft); }
    50% { opacity: 1; color: var(--link); }
    75% { opacity: 0.8; color: var(--text-strong); }
}

/* Botones y elementos de formulario (si los hay) */
button, .button {
    font-family: 'Press Start 2P', cursive;
    background: var(--bg-panel-soft);
    color: var(--heading);
    border: 2px solid var(--border-muted);
    padding: 0.8rem 1.5rem;
    cursor: pointer;
    text-transform: uppercase;
    font-size: 0.8rem;
}

.boton {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 0.9rem 1.4rem;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(170, 134, 197, 0.9));
    color: var(--heading);
    border: 2px solid var(--accent);
    border-bottom: 2px solid var(--accent);
    box-shadow: 4px 4px 0 var(--shadow);
    text-transform: uppercase;
    font-size: 0.78rem;
    line-height: 1.4;
    text-align: center;
}

/* Navegación */
nav ul {
    list-style: none;
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
    border-bottom: 2px solid var(--border-muted);
    padding-bottom: 1rem;
}

nav a {
    font-size: 0.9rem;
    border-bottom: none;
    padding: 0.5rem;
}

nav a:hover {
    /* Los efectos de hover se heredan de los generales */
}

.hero {
    position: relative;
    overflow: hidden;
    margin: 2rem 0 3rem;
    padding: clamp(2rem, 4vw, 4rem);
    min-height: 58vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1.25rem;
    background:
        radial-gradient(circle at top right, rgba(170, 134, 197, 0.26), transparent 34%),
        radial-gradient(circle at bottom left, rgba(101, 192, 146, 0.3), transparent 40%),
        linear-gradient(135deg, rgba(228, 228, 228, 0.98), rgba(255, 255, 255, 0.9));
    border: 2px solid var(--border);
    box-shadow: 0 0 30px rgba(120, 68, 151, 0.18), inset 0 0 0 1px rgba(255, 255, 255, 0.55);
}

.hero::before,
.hero::after {
    content: "";
    position: absolute;
    pointer-events: none;
}

.hero::before {
    inset: 1rem;
    border: 1px solid rgba(69, 34, 97, 0.14);
}

.hero::after {
    width: 180px;
    height: 180px;
    right: -40px;
    top: -40px;
    background: radial-gradient(circle, rgba(59, 115, 81, 0.18), transparent 70%);
    filter: blur(6px);
}

.hero > * {
    position: relative;
    z-index: 1;
}

.hero-kicker {
    margin-bottom: 0;
    color: var(--accent);
    font-size: 0.72rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.hero h2 {
    max-width: 10ch;
    margin-bottom: 0;
    font-size: clamp(2.5rem, 7vw, 5rem);
    line-height: 1.05;
    text-shadow: 3px 3px 0 rgba(69, 34, 97, 0.2), 0 0 18px rgba(59, 115, 81, 0.14);
}

.destacado {
    max-width: 62ch;
    margin-bottom: 0;
    padding: 1rem 1.2rem;
    background: rgba(255, 255, 255, 0.7);
    border-left: 4px solid var(--accent);
    color: var(--text-main);
    font-size: 0.82rem;
    line-height: 1.9;
    box-shadow: 0 0 0 1px rgba(69, 34, 97, 0.08);
}

.hero-intro,
.hero-world,
.hero-story {
    max-width: 64ch;
    margin-bottom: 0;
}

.hero-intro {
    color: var(--text-main);
    font-size: 0.8rem;
    line-height: 1.9;
}

.hero-story {
    color: var(--link);
    font-size: 0.78rem;
    line-height: 1.8;
}

.hero-world {
    color: var(--text-strong);
    font-size: 0.72rem;
    line-height: 1.85;
}

.hero-release-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.hero-archive {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.hero-release-meta span {
    display: inline-flex;
    align-items: center;
    min-height: 42px;
    padding: 0.55rem 0.85rem;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid var(--border-muted);
    color: var(--heading);
    font-size: 0.68rem;
    text-transform: uppercase;
}

.hero-release-meta span:last-child {
    color: var(--accent);
    border-color: var(--link);
}

.hero-archive span {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 0.5rem 0.8rem;
    background: rgba(255, 255, 255, 0.58);
    border: 1px dashed var(--border-strong);
    color: var(--text-main);
    font-size: 0.64rem;
    text-transform: uppercase;
}

.acciones {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 0.25rem;
}

.archive-spotlight {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(260px, 0.9fr);
    gap: 1.5rem;
    align-items: center;
    margin: 0 0 3rem;
    padding: clamp(1.4rem, 3vw, 2rem);
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(170, 134, 197, 0.84)),
        radial-gradient(circle at top left, rgba(101, 192, 146, 0.14), transparent 48%);
    border: 2px solid var(--border-muted);
    box-shadow: 0 0 24px rgba(120, 68, 151, 0.18);
}

.archive-spotlight-copy p,
.archive-spotlight-copy h3 {
    margin-bottom: 0;
}

.archive-spotlight-copy {
    display: grid;
    gap: 0.85rem;
}

.archive-eyebrow {
    color: var(--accent);
    font-size: 0.68rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.archive-spotlight h3 {
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    line-height: 1.3;
}

.archive-spotlight-copy p:last-child {
    max-width: 52ch;
    color: var(--text-main);
    font-size: 0.74rem;
    line-height: 1.9;
}

.archive-link {
    display: grid;
    gap: 0.55rem;
    padding: 1.15rem 1.25rem;
    background: rgba(255, 255, 255, 0.74);
    border: 2px solid var(--accent);
    border-bottom: 2px solid var(--accent);
    box-shadow: 5px 5px 0 var(--shadow);
}

.archive-link-label {
    color: var(--heading);
    font-size: 0.72rem;
    text-transform: uppercase;
}

.archive-link-url {
    color: var(--text-main);
    font-size: 0.7rem;
    line-height: 1.8;
    word-break: break-word;
}

body.index-page .archive-link:hover {
    border-bottom: 2px solid var(--accent-soft);
    box-shadow: 5px 5px 0 var(--accent-soft);
}

/* Tarjetas para posts del blog (blog.html) */
.blog-post {
    background: rgba(101, 192, 146, 0.16);
    border-left: 4px solid var(--accent);
    padding: 1.5rem;
    margin-bottom: 2rem;
    border-radius: 0;
    box-shadow: -5px 5px 0 var(--shadow);
}

.blog-post h3 a {
    color: var(--heading);
}

.blog-post .date {
    font-size: 0.7rem;
    color: var(--text-strong);
    margin-bottom: 1rem;
}

.post-completo {
    padding: clamp(1.2rem, 2.5vw, 2rem);
    background: rgba(255, 255, 255, 0.78);
    border: 2px solid var(--border-muted);
    box-shadow: -6px 6px 0 rgba(69, 34, 97, 0.16);
}

.fecha {
    display: inline-block;
    margin-bottom: 1.2rem;
    color: var(--text-strong);
    font-size: 0.7rem;
}

.post-imagen {
    width: 100%;
    height: auto;
    display: block;
    margin: 1.5rem 0;
    border: 2px solid var(--border);
    box-shadow: 4px 4px 0 rgba(69, 34, 97, 0.16);
}

.contenido-post {
    display: grid;
    gap: 1rem;
}

.contenido-post p,
.contenido-post li,
.contenido-post figcaption,
.contenido-post blockquote,
.contenido-post td,
.contenido-post th {
    font-size: 0.76rem;
    line-height: 1.95;
}

.contenido-post .lead {
    font-size: 0.82rem;
    line-height: 1.95;
    color: var(--text-strong);
}

.contenido-post h2,
.contenido-post h3 {
    margin-top: 0.8rem;
}

.contenido-post ul,
.contenido-post ol {
    margin: 0 0 1rem 1.4rem;
}

.contenido-post li {
    margin-bottom: 0.75rem;
}

.contenido-post blockquote {
    margin: 0;
    padding: 1rem 1.2rem;
    background: rgba(255, 255, 255, 0.72);
    border-left: 4px solid var(--accent);
    box-shadow: 0 0 0 1px rgba(69, 34, 97, 0.08);
}

.contenido-post iframe,
.contenido-post img,
.contenido-post table {
    max-width: 100%;
}

.contenido-post table {
    border-collapse: collapse;
}

.contenido-post th,
.contenido-post td {
    padding: 0.7rem;
    border: 1px solid rgba(152, 119, 177, 0.52);
    background: rgba(255, 255, 255, 0.6);
    text-align: left;
}

.sample-diary-post {
    display: grid;
    gap: 1.35rem;
}

.sample-diary-intro {
    display: grid;
    gap: 0.9rem;
    padding: clamp(1.2rem, 2.4vw, 1.8rem);
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(170, 134, 197, 0.78)),
        radial-gradient(circle at top right, rgba(101, 192, 146, 0.16), transparent 40%);
    border: 2px solid var(--border);
    box-shadow: 6px 6px 0 rgba(69, 34, 97, 0.16);
}

.sample-diary-kicker {
    margin-bottom: 0;
    color: var(--accent);
    font-size: 0.68rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.sample-diary-meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0.75rem;
}

.sample-diary-meta span {
    min-height: 64px;
    padding: 0.85rem 0.95rem;
    background: rgba(255, 255, 255, 0.72);
    border: 1px dashed var(--border-strong);
    color: var(--heading);
    font-size: 0.62rem;
    line-height: 1.8;
    text-transform: uppercase;
}

.sample-diary-sections {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
}

.sample-diary-entry {
    display: grid;
    gap: 0.55rem;
    align-content: start;
    padding: 1rem 1rem 1.1rem;
    background: rgba(255, 255, 255, 0.72);
    border: 2px solid rgba(152, 119, 177, 0.38);
    box-shadow: -4px 4px 0 rgba(69, 34, 97, 0.14);
}

.sample-diary-entry h3 {
    margin: 0 0 0.25rem;
    font-size: 1rem;
    line-height: 1.35;
}

.sample-diary-entry p {
    margin-bottom: 0;
}

.sample-diary-placeholder {
    display: grid;
    gap: 0.75rem;
    margin: 0;
    padding: 1rem;
    background: rgba(101, 192, 146, 0.12);
    border: 2px dashed var(--border-strong);
}

.sample-diary-break {
    grid-column: 1 / -1;
}

.sample-diary-image-slot {
    display: grid;
    place-items: center;
    min-height: 240px;
    padding: 1.2rem;
    background:
        repeating-linear-gradient(
            135deg,
            rgba(255, 255, 255, 0.9),
            rgba(255, 255, 255, 0.9) 18px,
            rgba(170, 134, 197, 0.82) 18px,
            rgba(170, 134, 197, 0.82) 36px
        );
    border: 2px solid rgba(152, 119, 177, 0.36);
    color: var(--heading);
    font-size: 0.74rem;
    line-height: 1.9;
    text-align: center;
}

.sample-diary-photo {
    display: block;
    width: 100%;
    height: auto;
    border: 2px solid rgba(152, 119, 177, 0.36);
    background: rgba(255, 255, 255, 0.84);
    box-shadow: 4px 4px 0 rgba(69, 34, 97, 0.14);
}

.sample-diary-placeholder figcaption {
    margin-bottom: 0;
    color: var(--text-soft);
}

.sample-diary-note {
    padding: 1rem 1.1rem;
    background: rgba(255, 255, 255, 0.7);
    border-left: 4px solid var(--accent);
}

.sample-pack-custom {
    display: grid;
    gap: 1rem;
    padding: clamp(1.1rem, 2.3vw, 1.6rem);
    color: #E4E4E4;
    background:
        radial-gradient(circle at top right, rgba(59, 115, 81, 0.22), transparent 34%),
        linear-gradient(135deg, rgba(60, 27, 83, 0.98), rgba(69, 34, 97, 0.96) 54%, rgba(120, 68, 151, 0.94));
    border: 1px solid rgba(170, 134, 197, 0.34);
    box-shadow: 8px 8px 0 rgba(60, 27, 83, 0.18);
}

.sample-pack-custom .sample-diary-kicker {
    color: #9877B1;
}

.sample-pack-custom h3,
.sample-pack-custom h4 {
    margin: 0;
    color: #FFFFFF;
}

.sample-pack-custom p,
.sample-pack-custom li {
    margin-bottom: 0;
    color: rgba(228, 228, 228, 0.92);
}

.sample-pack-custom ul {
    margin: 0;
    padding-left: 1.15rem;
}

.sample-pack-custom-header {
    display: grid;
    gap: 0.7rem;
}

.sample-pack-custom-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
}

.sample-pack-custom-status {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 0.55rem 0.85rem;
    border: 1px dashed rgba(228, 228, 228, 0.32);
    background: rgba(228, 228, 228, 0.08);
    color: #E4E4E4;
    font-size: 0.66rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.sample-pack-custom-preview {
    display: grid;
    gap: 0.75rem;
    padding: 1rem;
    border: 1px solid rgba(170, 134, 197, 0.22);
    background: rgba(60, 27, 83, 0.18);
}

.sample-pack-custom-embed {
    position: relative;
    width: min(100%, 560px);
    aspect-ratio: 560 / 435;
}

.sample-pack-custom-embed iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.sample-pack-custom-meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 0.7rem;
}

.sample-pack-custom-meta span {
    min-height: 58px;
    padding: 0.8rem 0.9rem;
    border: 1px solid rgba(170, 134, 197, 0.26);
    background: rgba(228, 228, 228, 0.08);
    color: #E4E4E4;
    font-size: 0.64rem;
    line-height: 1.8;
    text-transform: uppercase;
}

.sample-pack-custom-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 0.9rem;
}

.sample-pack-custom-card {
    display: grid;
    gap: 0.7rem;
    align-content: start;
    padding: 1rem;
    border: 1px solid rgba(170, 134, 197, 0.22);
    background: rgba(60, 27, 83, 0.18);
}

.sample-pack-custom blockquote {
    background: rgba(228, 228, 228, 0.08);
    border-left-color: var(--accent);
}

.post-footer {
    padding-top: 0.5rem;
    border-top: 2px solid rgba(152, 119, 177, 0.3);
}

.post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    align-items: center;
}

.tags-label {
    color: var(--text-strong);
    font-size: 0.68rem;
    text-transform: uppercase;
}

.tag {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0.4rem 0.7rem;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.8);
    color: var(--heading);
    font-size: 0.64rem;
    line-height: 1.6;
}

/* Responsive para móviles */
@media (max-width: 768px) {
    body {
        background:
            linear-gradient(155deg, var(--season-cream), var(--season-lime) 48%, var(--season-soft-leaf));
    }

    .main-container {
        padding: 1rem;
        max-width: 100%;
        border-width: 1px;
        backdrop-filter: none;
    }

    h1 { font-size: 1.8rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.2rem; }

    nav ul {
        gap: 0.8rem;
        flex-direction: column;
        align-items: center;
    }

    nav a {
        font-size: 0.8rem;
    }

    .hero {
        min-height: auto;
        padding: 1.4rem;
        margin: 1.25rem 0 2rem;
    }

    .hero h2 {
        max-width: none;
        font-size: clamp(2rem, 10vw, 3rem);
    }

    .destacado {
        padding: 0.9rem;
        font-size: 0.72rem;
        line-height: 1.8;
    }

    .hero-intro,
    .hero-story,
    .hero-world {
        font-size: 0.7rem;
        line-height: 1.8;
    }

    .hero-release-meta span {
        width: 100%;
    }

    .hero-archive span {
        width: 100%;
    }

    .acciones {
        flex-direction: column;
    }

    .boton {
        width: 100%;
    }

    .archive-spotlight {
        grid-template-columns: 1fr;
        margin-bottom: 2rem;
    }

    .archive-link {
        width: 100%;
    }

    .post-completo {
        padding: 1rem;
    }

    .contenido-post p,
    .contenido-post li,
    .contenido-post figcaption,
    .contenido-post blockquote,
    .contenido-post td,
    .contenido-post th,
    .contenido-post .lead {
        font-size: 0.68rem;
        line-height: 1.85;
    }

    .sample-diary-meta {
        grid-template-columns: 1fr;
    }

    .sample-diary-sections {
        grid-template-columns: 1fr;
    }

    .sample-diary-entry {
        padding: 0.9rem;
    }

    .sample-diary-image-slot {
        min-height: 180px;
        font-size: 0.66rem;
        line-height: 1.75;
    }

    .sample-diary-photo {
        box-shadow: 3px 3px 0 rgba(69, 34, 97, 0.14);
    }

    .sample-pack-custom-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .sample-pack-custom-meta,
    .sample-pack-custom-grid {
        grid-template-columns: 1fr;
    }

    .post-tags {
        align-items: stretch;
    }

    /* Reducir efectos de parpadeo en móvil para rendimiento */
    .bio p {
        animation: none; /* o una versión más simple */
    }

    /* El fondo SVG ya no usa animacion */
    .glitch-text {
        animation: none;
    }
}

/* Utilidades para glitch manual */
.glitch-text {
    position: relative;
    animation: glitch 1s infinite;
}

@keyframes glitch {
    0% { transform: translate(0); }
    20% { transform: translate(-2px, 2px); }
    40% { transform: translate(2px, -2px); }
    60% { transform: translate(-1px, 1px); }
    80% { transform: translate(1px, -1px); }
    100% { transform: translate(0); }
}

/* Clase para el contenedor del blog dinámico (lo usaremos en blog.html) */
#blog-container {
    margin-top: 2rem;
}

/* Estilo para el post individual */
.single-post {
    background: rgba(255, 255, 255, 0.88);
    padding: 2rem;
    border: 2px solid var(--border);
}

.back-link {
    display: inline-block;
    margin-bottom: 2rem;
    color: var(--accent);
}
