/* ============================================================
   Loggix · Blog público — estilos específicos
   ============================================================ */

/* ── Hero unificado (igual que contacto) ─────────────────── */
.page-hero {
    position: relative;
    min-height: 55vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 120px 0 4rem;
    overflow: hidden;
    background: #000;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-bg .hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #000 0%, #0a0a0a 70%, rgba(21,101,192,0.2) 100%);
}

.hero-noise {
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.04'/%3E%3C/svg%3E");
    background-size: 200px;
    opacity: 0.5;
    pointer-events: none;
}

.page-hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, var(--salmon) 50%, transparent 100%);
    opacity: 0.4;
}

.hero-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.2rem;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 94, 77, 0.4);
    border-radius: 100px;
    padding: 0.7rem 1.6rem;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.3px;
    color: var(--salmon, #ff5e4d);
    margin-bottom: 0.5rem;
}

.hero-badge i {
    font-size: 0.9rem;
}

.hero-content h1 {
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 800;
    color: #fff;
    line-height: 1.2;
    margin: 0;
}

.hero-content h1 .highlight {
    color: var(--salmon, #ff5e4d);
}

.hero-content p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.7);
    max-width: 550px;
    margin: 0;
    line-height: 1.5;
}

/* ── Buscador unificado ─────────────────────────────────── */
.hero-search {
    display: flex;
    align-items: center;
    max-width: 480px;
    margin: 1.2rem auto 0;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(231, 109, 87, 0.25);
    border-radius: 50px;
    padding: 0.4rem 0.4rem 0.4rem 1.2rem;
    gap: 0.6rem;
    transition: border-color 0.3s;
}

.hero-search:focus-within {
    border-color: var(--salmon);
}

.hero-search i {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
}

.hero-search input {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text-light);
    font-size: 0.9rem;
    outline: none;
}

.hero-search input::placeholder {
    color: rgba(248, 243, 232, 0.3);
}

.hero-search button {
    background: var(--salmon);
    border: none;
    border-radius: 40px;
    padding: 0.5rem 1rem;
    color: #fff;
    font-weight: 600;
    font-size: 0.8rem;
    cursor: pointer;
    transition: background 0.2s;
}

.hero-search button:hover {
    background: var(--salmon-dark);
}

.clear-filter {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 40px;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.8rem;
    transition: all 0.2s;
}

.clear-filter:hover {
    background: rgba(231, 109, 87, 0.15);
    color: var(--salmon);
}

/* ── Filtro categorías ────────────────────────────────────── */
.cat-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    padding: 2rem 0 1rem;
    margin-bottom: 3rem;
    justify-content: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.cat-pill-link {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1.2rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 40px;
    font-size: 0.85rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all 0.3s ease;
    background: transparent;
}

.cat-pill-link:hover,
.cat-pill-link.active {
    color: var(--salmon);
    border-color: var(--salmon);
    background: rgba(231, 109, 87, 0.1);
    transform: translateY(-2px);
}

.cat-pill-link.active {
    background: rgba(231, 109, 87, 0.15);
    font-weight: 600;
}

/* ── Artículo destacado (con borde marcado) ───────────────── */
.featured-card {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    border-radius: 24px;
    overflow: hidden;
    text-decoration: none;
    margin-bottom: 4rem;
    background: #0a0a0f;
    border: 2px solid rgba(231, 109, 87, 0.25);
    transition: all 0.4s cubic-bezier(0.2, 0.9, 0.4, 1.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.featured-card:hover {
    border-color: var(--salmon);
    transform: translateY(-5px);
    box-shadow: 0 25px 45px rgba(0, 0, 0, 0.4);
}

.featured-img {
    min-height: 380px;
    position: relative;
    overflow: hidden;
}

.featured-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.featured-card:hover .featured-img img {
    transform: scale(1.05);
}

.featured-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    font-size: 4rem;
    color: rgba(255, 255, 255, 0.15);
    background: linear-gradient(135deg, rgba(231, 109, 87, 0.1), rgba(231, 109, 87, 0.05));
}

.featured-body {
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.post-cat-badge {
    display: inline-block;
    width: fit-content;
    padding: 0.3rem 1rem;
    border-radius: 30px;
    border: 1px solid;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 1.2rem;
    backdrop-filter: blur(4px);
}

.featured-title {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text-light);
    line-height: 1.25;
    margin-bottom: 1rem;
}

.featured-extracto {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 1.2rem;
}

.featured-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.2rem;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 1.5rem;
}

.featured-meta i {
    color: var(--salmon);
    margin-right: 0.4rem;
}

.btn-blog {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.7rem 1.5rem;
    background: rgba(231, 109, 87, 0.12);
    border: 1px solid rgba(231, 109, 87, 0.3);
    border-radius: 40px;
    color: var(--salmon);
    font-weight: 600;
    font-size: 0.85rem;
    text-decoration: none;
    transition: all 0.3s ease;
    align-self: flex-start;
}

.btn-blog:hover {
    background: var(--salmon);
    color: #000;
    border-color: var(--salmon);
    transform: translateX(6px);
    gap: 0.8rem;
}

/* ── Grid de posts (cada artículo es una caja bien marcada) ── */
.posts-public-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 1rem;
    margin-bottom: 4rem;
}

/* Cada tarjeta es una caja con borde definido */
.post-public-card {
    background: #0a0a0f;
    border: 2px solid rgba(231, 109, 87, 0.2);
    border-radius: 24px;
    overflow: hidden;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    transition: all 0.4s cubic-bezier(0.2, 0.9, 0.4, 1.1);
    position: relative;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    height: 100%;
    min-height: 450px;
    transform: translateZ(0);
    will-change: transform;
}

/* Línea decorativa superior al hacer hover */
.post-public-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--salmon), #ff8a6f, var(--salmon));
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 24px 24px 0 0;
}

.post-public-card:hover {
    border-color: var(--salmon);
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.post-public-card:hover::before {
    opacity: 1;
}

/* Imagen de la tarjeta */
.ppc-img {
    height: 220px;
    min-height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
    background: #111;
    flex-shrink: 0;
}

.ppc-img img {
    width: 100%;
    height: 100%;
    min-height: 220px;
    object-fit: cover;
    transition: transform 0.5s ease;
    display: block;
}

.post-public-card:hover .ppc-img img {
    transform: scale(1.05);
}

.ppc-img i {
    font-size: 3rem;
    color: rgba(231, 109, 87, 0.3);
}

/* Badge de tiempo de lectura en la imagen */
.read-time-badge {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(4px);
    padding: 0.3rem 0.8rem;
    border-radius: 30px;
    font-size: 0.7rem;
    font-weight: 500;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    border: 1px solid rgba(231, 109, 87, 0.3);
}

.read-time-badge i {
    font-size: 0.65rem;
    color: var(--salmon);
    margin: 0;
}

/* Cuerpo de la tarjeta */
.ppc-body {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Categoría */
.ppc-cat {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.8rem;
    display: inline-block;
    width: fit-content;
    padding: 0.3rem 0.9rem;
    border-radius: 30px;
    background: rgba(231, 109, 87, 0.1);
    border: 1px solid rgba(231, 109, 87, 0.2);
}

/* Título del artículo */
.ppc-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-light);
    line-height: 1.4;
    margin-bottom: 0.8rem;
    transition: color 0.2s ease;
}

.post-public-card:hover .ppc-title {
    color: var(--salmon);
}

/* Extracto */
.ppc-extracto {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.65;
    flex: 1;
    margin-bottom: 1rem;
}

/* Meta información (vistas y fecha) */
.ppc-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.45);
    padding-top: 0.8rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    margin-top: 0.5rem;
}

.ppc-meta span {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.ppc-meta i {
    color: var(--salmon);
    font-size: 0.7rem;
}

/* Botón leer más */
.card-read-more {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--salmon);
    margin-top: 1rem;
    transition: all 0.2s ease;
    width: fit-content;
    padding: 0.4rem 0;
}

.card-read-more i {
    font-size: 0.7rem;
    transition: transform 0.2s ease;
}

.post-public-card:hover .card-read-more i {
    transform: translateX(5px);
}

.post-public-card:hover .card-read-more {
    gap: 0.7rem;
}

/* ── Post individual (se mantiene igual) ─────────────────── */
.post-hero {
    position: relative;
    min-height: 55vh;
    display: flex;
    align-items: flex-end;
    padding-bottom: 3.5rem;
    padding-top: 100px;
    overflow: hidden;
}

.post-hero-img {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    filter: brightness(0.5);
}

.post-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, transparent 60%);
}

.post-hero-content {
    position: relative;
    z-index: 1;
    max-width: 780px;
    margin: 0 auto;
    padding: 0 1rem;
}

.post-hero-meta {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.post-read-badge {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.7);
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.post-hero-title {
    font-size: 2.8rem;
    font-weight: 800;
    color: #fff;
    line-height: 1.15;
    margin-bottom: 1rem;
}

.post-hero-extracto {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    max-width: 650px;
}

.post-hero-author {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.author-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--salmon), #0a2a44);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    font-weight: 700;
    color: #fff;
}

.author-name {
    display: block;
    font-weight: 600;
    color: #fff;
    font-size: 0.9rem;
}

.post-date {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.6);
}

.post-article {
    width: 100%;
    overflow-x: auto;
    overflow-y: visible;
    padding: 2rem 0 4rem;
    background: #0a0a0a;
}

.post-canvas-wrapper {
    display: flex;
    justify-content: center;
    min-width: min-content;
    padding: 1rem;
}

.post-canvas {
    background: rgba(20, 20, 30, 0.5);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    position: relative;
}

.post-block {
    box-sizing: border-box;
    word-break: break-word;
    overflow: visible;
}

/* ── Bloques de contenido ─────────────────────────────────── */
.pb-heading {
    font-weight: 800;
    color: var(--text-light);
    line-height: 1.2;
}

.pb-subheading {
    font-weight: 700;
    color: var(--text-light);
    line-height: 1.3;
}

.pb-text {
    color: rgba(248, 243, 232, 0.85);
    line-height: 1.75;
}

.pb-quote {
    background: var(--salmon-light);
    border-left: 4px solid var(--salmon);
    font-style: italic;
    color: rgba(248, 243, 232, 0.85);
}

.pb-callout {
    background: var(--salmon-light);
    border: 1px solid var(--salmon-glow);
    border-radius: 12px;
}

.pb-callout i {
    color: var(--salmon);
}

.pb-code {
    background: #0a0a0a;
    border: 1px solid var(--border);
    border-radius: 12px;
}

.pb-code code {
    font-family: 'Fira Code', 'Courier New', monospace;
    color: #a8ff78;
}

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

.pb-divider hr {
    border: none;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--salmon-glow), transparent);
}

.pb-box {
    border: 1px solid var(--salmon-glow);
}

.pb-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.pb-col {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 0.8rem;
    color: rgba(248, 243, 232, 0.8);
    line-height: 1.6;
}

/* ── Posts relacionados ───────────────────────────────────── */
.related-posts {
    padding: 3rem 0 5rem;
    max-width: 1200px;
    margin: 0 auto;
    width: 90%;
}

.related-title {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--text-light);
    margin-bottom: 2rem;
    position: relative;
    display: inline-block;
}

.related-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--salmon);
    border-radius: 3px;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.5rem;
}

.related-card {
    background: #0a0a0f;
    border: 1px solid rgba(231, 109, 87, 0.2);
    border-radius: 20px;
    overflow: hidden;
    text-decoration: none;
    transition: all 0.3s ease;
}

.related-card:hover {
    border-color: rgba(231, 109, 87, 0.5);
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.related-cover {
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.related-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.related-card:hover .related-cover img {
    transform: scale(1.05);
}

.related-body {
    padding: 1rem 1.2rem 1.2rem;
}

.related-body h3 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-light);
    line-height: 1.35;
    margin-bottom: 0.5rem;
}

.related-body span {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.5);
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.related-body span i {
    color: var(--salmon);
    font-size: 0.65rem;
}

/* ── Estado vacío ────────────────────────────────────────── */
.blog-empty {
    text-align: center;
    padding: 5rem 2rem;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.blog-empty i {
    font-size: 4rem;
    color: rgba(231, 109, 87, 0.3);
    margin-bottom: 1rem;
    display: block;
}

.blog-empty p {
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 1.5rem;
}

/* ── Espaciado entre posts y footer ───────────────────────── */
.blog-main {
    padding-bottom: 3rem;
    margin-bottom: 2rem;
}

footer {
    margin-top: 2rem;
    position: relative;
    z-index: 1;
}

/* ── Responsive Blog ──────────────────────────────────────── */
@media (max-width: 900px) {
    .featured-card {
        grid-template-columns: 1fr;
    }
    
    .featured-img {
        min-height: 260px;
    }
    
    .post-hero-title {
        font-size: 2rem;
    }
    
    .posts-public-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .page-hero {
        min-height: 45vh;
        padding: 100px 0 3rem;
    }
    
    .hero-content {
        padding: 0 1rem;
    }
    
    .hero-badge {
        padding: 0.5rem 1.2rem;
        font-size: 0.8rem;
    }
    
    .hero-content h1 {
        font-size: clamp(1.8rem, 8vw, 2.8rem);
    }
    
    .hero-content p {
        font-size: 0.95rem;
    }
    
    .hero-search {
        flex-direction: column;
        background: transparent;
        border: none;
        gap: 0.8rem;
    }
    
    .hero-search input {
        background: rgba(255, 255, 255, 0.06);
        border: 1px solid rgba(231, 109, 87, 0.25);
        border-radius: 40px;
        padding: 0.8rem 1rem;
        width: 100%;
    }
    
    .hero-search i {
        display: none;
    }
    
    .cat-filters {
        gap: 0.5rem;
        margin-bottom: 2rem;
    }
    
    .cat-pill-link {
        padding: 0.4rem 1rem;
        font-size: 0.75rem;
    }
    
    .featured-body {
        padding: 1.5rem;
    }
    
    .featured-title {
        font-size: 1.4rem;
    }
    
    .posts-public-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin-bottom: 3rem;
    }
    
    .post-canvas-wrapper {
        justify-content: flex-start;
        overflow-x: hidden;
        padding: 0;
    }
    
    .ppc-img {
        height: 200px;
        min-height: 200px;
    }
    
    .ppc-img img {
        min-height: 200px;
    }
    
    .post-public-card {
        min-height: 420px;
    }
}

@media (max-width: 600px) {
    .page-hero {
        padding: 80px 0 2.5rem;
    }
    
    .hero-badge {
        padding: 0.4rem 1rem;
        font-size: 0.75rem;
    }
    
    .post-hero-title {
        font-size: 1.6rem;
    }
    
    .ppc-body {
        padding: 1.2rem;
    }
    
    .ppc-title {
        font-size: 1.1rem;
    }
    
    .post-public-card {
        border-width: 1px;
        min-height: 400px;
    }
    
    .ppc-img {
        height: 180px;
        min-height: 180px;
    }
    
    .ppc-img img {
        min-height: 180px;
    }
    
    .posts-public-grid {
        margin-bottom: 2.5rem;
    }
}

/* ── Post individual - mejoras móvil ─────────────────────── */
@media (max-width: 768px) {
    .post-hero {
        min-height: 55vh;
        padding-top: 80px;
        padding-bottom: 2.5rem;
    }

    .post-hero-title {
        font-size: 2rem;
    }

    .post-hero-extracto {
        font-size: 0.95rem;
    }

    .related-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 1rem;
    }

    .post-article {
        padding: 1.5rem 0 3rem;
    }
}

@media (max-width: 480px) {
    .post-hero-title {
        font-size: 1.7rem;
    }

    .post-hero-extracto {
        font-size: 0.9rem;
    }

    .author-avatar {
        width: 34px;
        height: 34px;
        font-size: 0.8rem;
    }

    .author-name {
        font-size: 0.85rem;
    }

    .related-grid {
        grid-template-columns: 1fr 1fr;
        gap: 0.8rem;
    }

    .related-cover {
        height: 100px;
    }

    .related-body h3 {
        font-size: 0.8rem;
    }
}

/* ── Canvas reflow en móvil ──────────────────────────────────
   Los bloques del editor usan position:absolute con coordenadas
   en píxeles (inline style). Con !important los forzamos a un
   flujo vertical normal en pantallas pequeñas.
   ─────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
    .post-article {
        overflow-x: hidden;
        padding: 1.5rem 0 3rem;
    }

    .post-canvas-wrapper {
        min-width: 0;
        overflow: hidden;
        padding: 0;
        display: block;
    }

    /* Cambiar el canvas de contenedor absoluto a flex vertical */
    .post-canvas {
        position: static !important;
        width: 100% !important;
        min-height: auto !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 1.2rem !important;
        padding: 0 1rem !important;
        background: transparent !important;
        box-shadow: none !important;
    }

    /* Cada bloque: anular posición absoluta y tamaño fijo */
    .post-block {
        position: static !important;
        left: auto !important;
        top: auto !important;
        width: 100% !important;
        height: auto !important;
        transform: none !important;
        z-index: auto !important;
    }

    /* Imágenes: altura fija razonable, object-fit mantiene la proporción */
    .post-block-image {
        height: 220px !important;
        border-radius: 12px;
        overflow: hidden;
    }

    .post-block-image img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
    }

    /* Divisores y cajas decorativas */
    .post-block-divider {
        height: 24px !important;
    }

    .post-block-box {
        height: 60px !important;
        border-radius: 10px;
    }

    /* Columnas: de 2 columnas a una sola */
    .post-block-columns .pb-columns {
        grid-template-columns: 1fr !important;
        height: auto !important;
    }

    .post-block-columns .pb-col {
        height: auto !important;
    }

    /* Code blocks: scroll horizontal contenido, limitar altura */
    .post-block-code pre {
        height: auto !important;
        max-height: 300px;
        overflow-y: auto;
        font-size: 0.78rem !important;
    }

    /* Callout: altura auto */
    .post-block-callout > div {
        height: auto !important;
    }

    /* Textos: asegurar wrapping */
    .pb-heading,
    .pb-subheading,
    .pb-text,
    .pb-quote {
        overflow-wrap: break-word;
        word-break: break-word;
        white-space: normal !important;
    }
}

@media (max-width: 480px) {
    .post-canvas {
        padding: 0 0.8rem !important;
        gap: 1rem !important;
    }

    .post-block-image {
        height: 180px !important;
    }
}