/**
 * PROSILICONES64 - BLOG CSS
 * Estilos para el sistema de blog independiente
 * Estilo: Industrial Premium con bordes redondeados
 *
 * Colores PS64:
 * - Navy: #002244
 * - Teal: #3BAAFE
 * - Surface: #f8fafc
 * - Background: #ffffff
 */

/* ============================================
   CUSTOM PROPERTIES
   ============================================ */
:root {
    /* Colores PS64 */
    --ps64-navy: #002244;
    --ps64-navy-light: #003366;
    --ps64-teal: #3BAAFE;
    --ps64-teal-hover: #2d9aee;
    --ps64-teal-subtle: rgba(59, 170, 254, 0.08);

    /* Superficies */
    --ps64-bg: #ffffff;
    --ps64-surface: #f8fafc;
    --ps64-border: rgba(0, 34, 68, 0.08);
    --ps64-border-hover: rgba(59, 170, 254, 0.3);

    /* Texto */
    --ps64-text: #1a2a3a;
    --ps64-text-secondary: #4a5a6a;
    --ps64-text-muted: #6a7a8a;
    --ps64-text-light: #9aa5b0;

    /* Border Radius */
    --ps64-radius-sm: 6px;
    --ps64-radius-md: 8px;
    --ps64-radius-lg: 12px;
    --ps64-radius-xl: 16px;
    --ps64-radius-full: 9999px;

    /* Espaciado */
    --ps64-space-1: 0.25rem;
    --ps64-space-2: 0.5rem;
    --ps64-space-3: 0.75rem;
    --ps64-space-4: 1rem;
    --ps64-space-5: 1.25rem;
    --ps64-space-6: 1.5rem;
    --ps64-space-8: 2rem;
    --ps64-space-10: 2.5rem;
    --ps64-space-12: 3rem;

    /* Tipografía */
    --ps64-font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --ps64-text-xs: 0.75rem;
    --ps64-text-sm: 0.875rem;
    --ps64-text-base: 1rem;
    --ps64-text-lg: 1.125rem;
    --ps64-text-xl: 1.25rem;
    --ps64-text-2xl: 1.5rem;
    --ps64-text-3xl: 1.875rem;
    --ps64-text-4xl: 2.25rem;

    /* Transiciones */
    --ps64-transition: 0.2s ease;
    --ps64-transition-slow: 0.4s cubic-bezier(0.33, 1, 0.68, 1);

    /* Sombras */
    --ps64-shadow-sm: 0 1px 3px rgba(0, 34, 68, 0.06);
    --ps64-shadow-md: 0 4px 12px rgba(0, 34, 68, 0.08);
    --ps64-shadow-lg: 0 12px 40px rgba(0, 34, 68, 0.1);
}

/* ============================================
   RESET & BASE
   ============================================ */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--ps64-font);
    font-size: var(--ps64-text-base);
    line-height: 1.6;
    color: var(--ps64-text);
    background: var(--ps64-bg);
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ============================================
   CONTENEDORES
   ============================================ */
.blog-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--ps64-space-6);
}

/* ============================================
   READING PROGRESS BAR
   ============================================ */
.reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: rgba(0, 34, 68, 0.1);
    z-index: 9999;
    opacity: 0;
    transition: opacity var(--ps64-transition);
}

.reading-progress.visible {
    opacity: 1;
}

.reading-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--ps64-teal), var(--ps64-navy));
    width: 0%;
    transition: width 0.1s linear;
    border-radius: 0 2px 2px 0;
}

/* ============================================
   BLOG HERO - INDUSTRIAL TECH 2025
   ============================================ */
.blog-hero-modern {
    padding-top: var(--hp-height, 72px);
    background: var(--ps64-navy);
    position: relative;
    overflow: hidden;
    isolation: isolate;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 50vh;
}

/* Capa base - Gradiente industrial */
.blog-hero-modern::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 120% 80% at 20% 0%, rgba(59, 170, 254, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse 80% 100% at 100% 50%, rgba(0, 102, 204, 0.12) 0%, transparent 40%),
        radial-gradient(ellipse 60% 60% at 0% 100%, rgba(59, 170, 254, 0.1) 0%, transparent 50%);
    z-index: -3;
}

/* Scan lines - Efecto CRT industrial */
.blog-hero-modern::after {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        0deg,
        transparent 0px,
        transparent 2px,
        rgba(59, 170, 254, 0.015) 2px,
        rgba(59, 170, 254, 0.015) 4px
    );
    pointer-events: none;
    z-index: 10;
}

/* Línea de energía horizontal animada */
.blog-hero-modern .hero-energy-line {
    position: absolute;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(59, 170, 254, 0.3) 20%,
        var(--ps64-teal) 50%,
        rgba(59, 170, 254, 0.3) 80%,
        transparent 100%
    );
    box-shadow: 0 0 20px var(--ps64-teal), 0 0 40px rgba(59, 170, 254, 0.3);
    animation: energyScan 8s ease-in-out infinite;
    z-index: 5;
}

.blog-hero-modern .hero-energy-line:nth-child(1) {
    top: 30%;
    animation-delay: 0s;
}

.blog-hero-modern .hero-energy-line:nth-child(2) {
    top: 70%;
    animation-delay: 4s;
    opacity: 0.5;
}

@keyframes energyScan {
    0%, 100% {
        transform: translateY(0) scaleX(0.8);
        opacity: 0;
    }
    10% {
        opacity: 1;
        transform: translateY(0) scaleX(1);
    }
    90% {
        opacity: 1;
        transform: translateY(0) scaleX(1);
    }
    95% {
        opacity: 0;
        transform: translateY(0) scaleX(0.8);
    }
}

/* Noise texture overlay */
.blog-hero-modern .hero-noise {
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%' height='100%' filter='url(%23noise)'/%3E%3C/svg%3E");
    opacity: 0.03;
    mix-blend-mode: overlay;
    pointer-events: none;
    z-index: 1;
}

/* Partículas flotantes CSS */
.blog-hero-modern .hero-particles {
    position: absolute;
    inset: 0;
    overflow: hidden;
    z-index: 0;
    pointer-events: none;
}

.blog-hero-modern .particle {
    position: absolute;
    width: var(--size, 4px);
    height: var(--size, 4px);
    background: radial-gradient(circle, rgba(59, 170, 254, 0.8) 0%, transparent 70%);
    border-radius: 50%;
    animation: particleFloat var(--duration, 15s) ease-in-out infinite;
    animation-delay: var(--delay, 0s);
    opacity: var(--opacity, 0.6);
}

@keyframes particleFloat {
    0%, 100% {
        transform: translate(0, 0) scale(1);
        opacity: var(--opacity, 0.6);
    }
    25% {
        transform: translate(calc(var(--moveX, 30px)), calc(var(--moveY, -50px))) scale(1.2);
        opacity: calc(var(--opacity, 0.6) * 1.5);
    }
    50% {
        transform: translate(calc(var(--moveX, 30px) * -0.5), calc(var(--moveY, -50px) * 0.8)) scale(0.8);
        opacity: var(--opacity, 0.6);
    }
    75% {
        transform: translate(calc(var(--moveX, 30px) * 0.3), calc(var(--moveY, -50px) * -0.3)) scale(1.1);
        opacity: calc(var(--opacity, 0.6) * 0.8);
    }
}

/* Grid técnico industrial */
.blog-hero-modern .hero-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(59, 170, 254, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(59, 170, 254, 0.04) 1px, transparent 1px);
    background-size: 80px 80px;
    mask-image: radial-gradient(ellipse 90% 70% at 50% 40%, black 10%, transparent 60%);
    -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 40%, black 10%, transparent 60%);
    z-index: 0;
    animation: gridPulse 4s ease-in-out infinite;
}

@keyframes gridPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

/* Puntos en las intersecciones del grid */
.blog-hero-modern .hero-grid::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle 2px at center, rgba(59, 170, 254, 0.2) 0%, transparent 100%);
    background-size: 80px 80px;
    mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, black 10%, transparent 50%);
    -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, black 10%, transparent 50%);
}

/* Contenido Hero */
.blog-hero-modern > .blog-container {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 3rem 0;
}

.blog-hero-content-modern {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

/* Badge industrial con línea lateral */
.blog-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.5rem 1rem;
    background: rgba(59, 170, 254, 0.08);
    border-left: 3px solid var(--ps64-teal);
    border-radius: 0 4px 4px 0;
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--ps64-teal);
    margin-bottom: var(--ps64-space-6);
    backdrop-filter: blur(10px);
    animation: badgeFadeIn 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    opacity: 0;
    transform: translateY(20px);
}

.blog-hero-badge::before {
    content: '';
    width: 8px;
    height: 8px;
    background: var(--ps64-teal);
    box-shadow: 0 0 12px var(--ps64-teal), 0 0 24px rgba(59, 170, 254, 0.5);
    animation: badgePulse 2s ease-in-out infinite;
}

@keyframes badgePulse {
    0%, 100% { opacity: 1; box-shadow: 0 0 12px var(--ps64-teal), 0 0 24px rgba(59, 170, 254, 0.5); }
    50% { opacity: 0.6; box-shadow: 0 0 6px var(--ps64-teal), 0 0 12px rgba(59, 170, 254, 0.3); }
}

@keyframes badgeFadeIn {
    to { opacity: 1; transform: translateY(0); }
}

/* Título con reveal animation */
.blog-hero-title-modern {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.03em;
    line-height: 1.1;
    margin-bottom: var(--ps64-space-5);
    animation: titleReveal 1s cubic-bezier(0.22, 1, 0.36, 1) 0.2s forwards;
    opacity: 0;
    transform: translateY(30px);
    text-shadow: 0 0 60px rgba(59, 170, 254, 0.15);
}

@keyframes titleReveal {
    to { opacity: 1; transform: translateY(0); }
}

/* Texto accent con glow tech */
.blog-hero-title-modern .text-accent {
    color: var(--ps64-teal);
    text-shadow:
        0 0 20px rgba(59, 170, 254, 0.5),
        0 0 40px rgba(59, 170, 254, 0.3),
        0 0 60px rgba(59, 170, 254, 0.15);
    animation: textGlow 3s ease-in-out infinite;
}

@keyframes textGlow {
    0%, 100% {
        text-shadow:
            0 0 20px rgba(59, 170, 254, 0.5),
            0 0 40px rgba(59, 170, 254, 0.3),
            0 0 60px rgba(59, 170, 254, 0.15);
    }
    50% {
        text-shadow:
            0 0 30px rgba(59, 170, 254, 0.7),
            0 0 60px rgba(59, 170, 254, 0.4),
            0 0 90px rgba(59, 170, 254, 0.2);
    }
}

/* Subtítulo con fade elegante */
.blog-hero-subtitle-modern {
    font-size: clamp(1.0625rem, 1.8vw, 1.25rem);
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.7);
    max-width: 640px;
    margin: 0 auto;
    animation: subtitleFade 1s cubic-bezier(0.22, 1, 0.36, 1) 0.4s forwards;
    opacity: 0;
    transform: translateY(30px);
}

@keyframes subtitleFade {
    to { opacity: 1; transform: translateY(0); }
}

/* Línea decorativa inferior */
.blog-hero-modern .hero-line {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(59, 170, 254, 0.3) 20%,
        var(--ps64-teal) 50%,
        rgba(59, 170, 254, 0.3) 80%,
        transparent 100%
    );
}

.blog-hero-modern .hero-line::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 0;
    width: 200px;
    height: 1px;
    background: var(--ps64-teal);
    box-shadow: 0 0 20px var(--ps64-teal), 0 0 40px rgba(59, 170, 254, 0.3);
    animation: lineGlow 4s ease-in-out infinite;
}

@keyframes lineGlow {
    0%, 100% { opacity: 0.6; width: 200px; }
    50% { opacity: 1; width: 300px; }
}

/* Scroll indicator - Mouse icon */
.blog-hero-modern .scroll-indicator {
    position: absolute;
    bottom: 2.5rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    animation: scrollFade 1s ease 1.2s forwards;
    opacity: 0;
}

.scroll-indicator__mouse {
    width: 24px;
    height: 40px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    position: relative;
    display: flex;
    justify-content: center;
}

.scroll-indicator__wheel {
    width: 3px;
    height: 8px;
    background: var(--ps64-teal);
    border-radius: 2px;
    margin-top: 8px;
    animation: scrollWheel 2s ease-in-out infinite;
    box-shadow: 0 0 8px var(--ps64-teal);
}

@keyframes scrollWheel {
    0%, 100% {
        transform: translateY(0);
        opacity: 1;
    }
    50% {
        transform: translateY(12px);
        opacity: 0.3;
    }
}

@keyframes scrollFade {
    to { opacity: 1; }
}

/* ============================================
   BARRA DE FILTROS - INDUSTRIAL 2025
   ============================================ */
.blog-filter-bar {
    position: sticky;
    top: var(--hp-height, 72px);
    z-index: 100;
    padding: 1rem 0;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid rgba(0, 34, 68, 0.08);
    box-shadow: 0 4px 30px rgba(0, 34, 68, 0.04);
}

.filter-tabs {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.filter-tab {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1rem;
    background: rgba(248, 250, 252, 0.9);
    border: 1px solid rgba(0, 34, 68, 0.08);
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--ps64-text-secondary);
    text-decoration: none;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Línea inferior animada */
.filter-tab::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--ps64-teal);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.filter-tab:hover::after {
    transform: scaleX(1);
}

.filter-tab:hover {
    border-color: rgba(59, 170, 254, 0.3);
    color: var(--ps64-text);
    background: rgba(255, 255, 255, 1);
}

/* Estado activo - Industrial */
.filter-tab.active {
    background: var(--ps64-navy);
    border-color: var(--ps64-navy);
    color: #ffffff;
    box-shadow: 0 4px 16px rgba(0, 34, 68, 0.2);
}

.filter-tab.active::after {
    background: var(--ps64-teal);
    transform: scaleX(1);
}

/* Contador industrial */
.filter-tab-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 0.375rem;
    background: rgba(0, 34, 68, 0.08);
    border-radius: 3px;
    font-size: 0.625rem;
    font-weight: 700;
    transition: all 0.3s ease;
}

.filter-tab:hover .filter-tab-count {
    background: rgba(59, 170, 254, 0.15);
    color: var(--ps64-teal);
}

.filter-tab.active .filter-tab-count {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

/* ============================================
   LEGACY - Mantener compatibilidad
   ============================================ */
.blog-hero {
    position: relative;
    padding: clamp(4rem, 12vw, 8rem) var(--ps64-space-6);
    background: linear-gradient(135deg, var(--ps64-navy) 0%, var(--ps64-navy-light) 100%);
    overflow: hidden;
}

.blog-back-home {
    display: inline-flex;
    align-items: center;
    gap: var(--ps64-space-2);
    padding: var(--ps64-space-2) var(--ps64-space-4);
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--ps64-radius-full);
    font-size: var(--ps64-text-sm);
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: var(--ps64-space-8);
    transition: all var(--ps64-transition);
}

.blog-back-home:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

.blog-back-home svg {
    width: 16px;
    height: 16px;
}

.blog-hero-inner {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--ps64-space-8);
    max-width: 1200px;
    margin: 0 auto;
}

.blog-hero-content {
    max-width: 700px;
}

.blog-eyebrow {
    display: inline-block;
    padding: var(--ps64-space-2) var(--ps64-space-4);
    background: rgba(59, 170, 254, 0.15);
    border-radius: var(--ps64-radius-full);
    font-size: var(--ps64-text-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--ps64-teal);
    margin-bottom: var(--ps64-space-6);
}

.blog-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.03em;
    line-height: 1.1;
    margin-bottom: var(--ps64-space-4);
}

.blog-subtitle {
    font-size: clamp(1rem, 1.5vw, 1.25rem);
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.7);
    max-width: 600px;
}

.blog-hero-logo {
    width: 120px;
    height: auto;
    opacity: 0.15;
    flex-shrink: 0;
}

/* ============================================
   FILTROS / CATEGORÍAS (Legacy)
   ============================================ */
.blog-categories {
    position: sticky;
    top: 0;
    z-index: 100;
    padding: var(--ps64-space-4) 0;
    background: var(--ps64-bg);
    border-bottom: 1px solid var(--ps64-border);
    box-shadow: var(--ps64-shadow-sm);
}

.blog-filters {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--ps64-space-4);
}

.filter-categories {
    display: flex;
    gap: var(--ps64-space-2);
    flex-wrap: wrap;
    flex: 1;
}

.blog-cat-link {
    padding: var(--ps64-space-2) var(--ps64-space-4);
    background: var(--ps64-surface);
    border: 1px solid var(--ps64-border);
    border-radius: var(--ps64-radius-full);
    font-size: var(--ps64-text-sm);
    font-weight: 500;
    color: var(--ps64-text-secondary);
    transition: all var(--ps64-transition);
}

.blog-cat-link:hover {
    border-color: var(--ps64-border-hover);
    color: var(--ps64-text);
}

.blog-cat-link.active {
    background: var(--ps64-navy);
    border-color: var(--ps64-navy);
    color: #ffffff;
}

/* Búsqueda */
.filter-search {
    flex-shrink: 0;
}

.search-form {
    display: flex;
    align-items: center;
}

.search-input {
    padding: var(--ps64-space-2) var(--ps64-space-4);
    border: 1px solid var(--ps64-border);
    border-right: none;
    border-radius: var(--ps64-radius-md) 0 0 var(--ps64-radius-md);
    font-size: var(--ps64-text-sm);
    font-family: var(--ps64-font);
    width: 200px;
    background: var(--ps64-surface);
    color: var(--ps64-text);
    transition: all var(--ps64-transition);
}

.search-input:focus {
    outline: none;
    border-color: var(--ps64-teal);
    background: var(--ps64-bg);
}

.search-input::placeholder {
    color: var(--ps64-text-light);
}

.search-btn {
    padding: var(--ps64-space-2) var(--ps64-space-3);
    background: var(--ps64-navy);
    border: 1px solid var(--ps64-navy);
    border-radius: 0 var(--ps64-radius-md) var(--ps64-radius-md) 0;
    color: #ffffff;
    cursor: pointer;
    transition: all var(--ps64-transition);
}

.search-btn:hover {
    background: var(--ps64-teal);
    border-color: var(--ps64-teal);
}

.search-btn svg {
    width: 16px;
    height: 16px;
    display: block;
}

/* ============================================
   ARTÍCULO DESTACADO - FLAGSHIP 2025
   ============================================ */
.blog-featured {
    padding: clamp(3rem, 6vw, 5rem) 0;
    background: linear-gradient(180deg, var(--ps64-bg) 0%, var(--ps64-surface) 100%);
    position: relative;
}

.featured-card {
    position: relative;
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: clamp(2.5rem, 5vw, 5rem);
    align-items: center;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 28px;
    box-shadow:
        0 8px 40px rgba(0, 34, 68, 0.06),
        0 2px 8px rgba(0, 34, 68, 0.04),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    overflow: hidden;

    /* Reveal animation */
    opacity: 0;
    transform: translateY(30px);
    animation: featuredReveal 1s cubic-bezier(0.22, 1, 0.36, 1) 0.2s forwards;
}

@keyframes featuredReveal {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Efecto de luz gradiente */
.featured-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(
        circle at 30% 30%,
        rgba(59, 170, 254, 0.08) 0%,
        transparent 50%
    );
    pointer-events: none;
    animation: featureLightMove 10s ease-in-out infinite;
}

@keyframes featureLightMove {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(5%, 5%); }
}

.featured-image {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    background: linear-gradient(135deg, #e8f4fc, #f0f7ff);
    box-shadow:
        0 12px 40px rgba(0, 34, 68, 0.1),
        0 4px 12px rgba(0, 34, 68, 0.06);
}

.featured-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        transparent 0%,
        transparent 60%,
        rgba(0, 34, 68, 0.02) 100%
    );
    pointer-events: none;
    transition: opacity 0.5s ease;
}

.featured-image:hover::after {
    opacity: 0;
}

.featured-image img {
    width: 100%;
    aspect-ratio: 16/10;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1), filter 0.5s ease;
}

.featured-image:hover img {
    transform: scale(1.05);
    filter: brightness(1.02) saturate(1.05);
}

.featured-badge {
    position: absolute;
    top: 1.25rem;
    left: 1.25rem;
    padding: 0.5rem 0.875rem;
    background: var(--ps64-teal);
    border-radius: 3px;
    font-size: 0.625rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #ffffff;
    box-shadow: 0 4px 16px rgba(59, 170, 254, 0.4);
    animation: badgeGlow 3s ease-in-out infinite;
}

@keyframes badgeGlow {
    0%, 100% { box-shadow: 0 4px 16px rgba(59, 170, 254, 0.4); }
    50% { box-shadow: 0 4px 24px rgba(59, 170, 254, 0.6), 0 0 40px rgba(59, 170, 254, 0.2); }
}

.featured-content {
    position: relative;
    padding: 1rem 0;
    z-index: 1;
}

.featured-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.25rem;
    font-size: 0.8125rem;
}

.featured-category {
    position: relative;
    padding: 0.5rem 0.75rem;
    background: rgba(59, 170, 254, 0.06);
    border-left: 3px solid var(--cat-color, var(--ps64-teal));
    border-radius: 0 3px 3px 0;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-size: 0.6875rem;
    color: var(--ps64-text);
    transition: all 0.3s ease;
}

.featured-category:hover {
    background: rgba(59, 170, 254, 0.12);
    padding-left: 0.875rem;
}

.featured-date {
    color: var(--ps64-text-light);
    font-weight: 500;
}

.featured-title {
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.03em;
    margin-bottom: 1rem;
}

.featured-title a {
    color: var(--ps64-text);
    background: linear-gradient(135deg, var(--ps64-teal), #0099ff);
    background-size: 0% 3px;
    background-position: 0% 100%;
    background-repeat: no-repeat;
    transition: all 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.featured-title a:hover {
    color: var(--ps64-navy);
    background-size: 100% 3px;
}

.featured-subtitle {
    font-size: 1.0625rem;
    font-weight: 600;
    color: var(--ps64-text-secondary);
    margin-bottom: 0.875rem;
    line-height: 1.5;
}

.featured-excerpt {
    font-size: 0.9375rem;
    line-height: 1.8;
    color: var(--ps64-text-secondary);
    margin-bottom: 1.75rem;
}

.featured-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(0, 34, 68, 0.06);
}

.featured-author {
    display: flex;
    align-items: center;
    gap: 0.875rem;
}

.author-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(59, 170, 254, 0.15);
    box-shadow: 0 4px 12px rgba(0, 34, 68, 0.08);
    transition: all 0.3s ease;
}

.featured-card:hover .author-avatar {
    border-color: rgba(59, 170, 254, 0.3);
    transform: scale(1.05);
}

.author-name {
    font-weight: 600;
    color: var(--ps64-text);
    font-size: 0.9375rem;
}

.featured-reading {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    background: rgba(0, 34, 68, 0.04);
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--ps64-text-muted);
}

/* ============================================
   GRID DE ARTÍCULOS
   ============================================ */
.blog-grid-section {
    padding: clamp(2rem, 5vw, 4rem) 0;
    background: var(--ps64-surface);
}

.section-title {
    font-size: var(--ps64-text-2xl);
    font-weight: 700;
    color: var(--ps64-text);
    margin-bottom: var(--ps64-space-8);
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--ps64-space-6);
}

/* ============================================
   CARD DE ARTÍCULO - FLAGSHIP 2025
   Glass Morphism + Animaciones Escalonadas
   ============================================ */
.post-card {
    --card-delay: 0s;
    position: relative;
    display: flex;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.22, 1, 0.36, 1);
    box-shadow:
        0 4px 24px rgba(0, 34, 68, 0.06),
        0 1px 2px rgba(0, 34, 68, 0.04),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);

    /* Scroll reveal animation */
    opacity: 0;
    transform: translateY(40px);
    animation: cardReveal 0.8s cubic-bezier(0.22, 1, 0.36, 1) var(--card-delay) forwards;
}

/* Animación escalonada para cada card */
.post-card:nth-child(1) { --card-delay: 0.1s; }
.post-card:nth-child(2) { --card-delay: 0.2s; }
.post-card:nth-child(3) { --card-delay: 0.3s; }
.post-card:nth-child(4) { --card-delay: 0.4s; }
.post-card:nth-child(5) { --card-delay: 0.5s; }
.post-card:nth-child(6) { --card-delay: 0.6s; }
.post-card:nth-child(7) { --card-delay: 0.7s; }
.post-card:nth-child(8) { --card-delay: 0.8s; }
.post-card:nth-child(9) { --card-delay: 0.9s; }

@keyframes cardReveal {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Efecto de luz que sigue el mouse (via JS) */
.post-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(
        800px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
        rgba(59, 170, 254, 0.08),
        transparent 40%
    );
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
    z-index: 1;
}

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

/* Borde brillante en hover */
.post-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 20px;
    padding: 1px;
    background: linear-gradient(
        135deg,
        rgba(59, 170, 254, 0.3),
        transparent 50%,
        rgba(59, 170, 254, 0.1)
    );
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.post-card:hover::after {
    opacity: 1;
}

.post-card:hover {
    transform: translateY(-8px) scale(1.01);
    border-color: rgba(59, 170, 254, 0.2);
    box-shadow:
        0 20px 60px rgba(0, 34, 68, 0.12),
        0 8px 24px rgba(59, 170, 254, 0.08),
        0 2px 8px rgba(0, 34, 68, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

/* Imagen con overlay y efectos */
.post-card-image {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #e8f4fc, #f0f7ff);
    z-index: 2;
}

.post-card-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        transparent 0%,
        transparent 50%,
        rgba(0, 34, 68, 0.03) 100%
    );
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.post-card:hover .post-card-image::after {
    opacity: 0;
}

.post-card-image img {
    width: 100%;
    aspect-ratio: 16/10;
    object-fit: cover;
    transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1), filter 0.4s ease;
    will-change: transform;
}

.post-card:hover .post-card-image img {
    transform: scale(1.08);
    filter: brightness(1.02) saturate(1.05);
}

/* Badge flotante en la imagen - Industrial */
.post-card-image .card-badge {
    position: absolute;
    top: 0.875rem;
    right: 0.875rem;
    padding: 0.375rem 0.625rem;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 3px;
    font-size: 0.5625rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--ps64-navy);
    box-shadow: 0 2px 12px rgba(0, 34, 68, 0.1);
    opacity: 0;
    transform: translateY(-8px);
    transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.post-card:hover .post-card-image .card-badge {
    opacity: 1;
    transform: translateY(0);
}

/* Contenido */
.post-card-content {
    position: relative;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex: 1;
    z-index: 2;
}

/* Meta con diseño industrial */
.post-card-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.875rem;
    font-size: 0.6875rem;
}

.post-card-category {
    position: relative;
    padding: 0.375rem 0.625rem;
    background: rgba(59, 170, 254, 0.06);
    border-left: 3px solid var(--cat-color, var(--ps64-teal));
    border-radius: 0 3px 3px 0;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--ps64-text);
    transition: all 0.3s ease;
}

.post-card-category:hover {
    background: rgba(59, 170, 254, 0.12);
    padding-left: 0.75rem;
}

.post-card-date {
    color: var(--ps64-text-light);
    font-weight: 500;
}

/* Título con efecto hover */
.post-card-title {
    font-size: 1.125rem;
    font-weight: 700;
    line-height: 1.35;
    letter-spacing: -0.02em;
    margin-bottom: 0.625rem;
}

.post-card-title a {
    color: var(--ps64-text);
    background: linear-gradient(135deg, var(--ps64-teal), #0099ff);
    background-size: 0% 2px;
    background-position: 0% 100%;
    background-repeat: no-repeat;
    transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.post-card:hover .post-card-title a {
    color: var(--ps64-navy);
}

.post-card-title a:hover {
    background-size: 100% 2px;
}

/* Excerpt con mejor legibilidad */
.post-card-excerpt {
    font-size: 0.875rem;
    line-height: 1.7;
    color: var(--ps64-text-secondary);
    margin-bottom: 1.25rem;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Footer con diseño refinado */
.post-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid rgba(0, 34, 68, 0.06);
    font-size: 0.75rem;
    color: var(--ps64-text-muted);
}

.post-card-author {
    font-weight: 600;
    color: var(--ps64-text-secondary);
}

.post-card-reading {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.25rem 0.5rem;
    background: rgba(0, 34, 68, 0.04);
    border-radius: 3px;
    font-weight: 600;
}

/* ============================================
   CARD GRANDE - Estilo Destacado
   ============================================ */
.post-card-large {
    grid-column: span 2;
    flex-direction: row;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(248, 250, 252, 0.95));
}

.post-card-large .post-card-image {
    width: 55%;
    flex-shrink: 0;
}

.post-card-large .post-card-image img {
    aspect-ratio: 4/3;
    height: 100%;
}

.post-card-large .post-card-content {
    padding: 2rem;
    justify-content: center;
}

.post-card-large .post-card-title {
    font-size: 1.5rem;
    line-height: 1.25;
    letter-spacing: -0.03em;
}

.post-card-large .post-card-excerpt {
    font-size: 0.9375rem;
    -webkit-line-clamp: 4;
}

/* Efecto especial para card grande */
.post-card-large::before {
    background: radial-gradient(
        1000px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
        rgba(59, 170, 254, 0.06),
        transparent 40%
    );
}

/* ============================================
   PAGINACIÓN
   ============================================ */
.blog-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--ps64-space-3);
    margin-top: var(--ps64-space-12);
    padding-top: var(--ps64-space-8);
    border-top: 1px solid var(--ps64-border);
}

.pagination-prev,
.pagination-next {
    display: flex;
    align-items: center;
    gap: var(--ps64-space-2);
    padding: var(--ps64-space-2) var(--ps64-space-4);
    background: var(--ps64-bg);
    border: 1px solid var(--ps64-border);
    border-radius: var(--ps64-radius-md);
    font-size: var(--ps64-text-sm);
    font-weight: 500;
    color: var(--ps64-text);
    transition: all var(--ps64-transition);
}

.pagination-prev:hover,
.pagination-next:hover {
    border-color: var(--ps64-teal);
    color: var(--ps64-teal);
}

.pagination-numbers {
    display: flex;
    gap: var(--ps64-space-2);
}

.pagination-number {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--ps64-bg);
    border: 1px solid var(--ps64-border);
    border-radius: var(--ps64-radius-md);
    font-size: var(--ps64-text-sm);
    font-weight: 500;
    color: var(--ps64-text-secondary);
    transition: all var(--ps64-transition);
}

.pagination-number:hover:not(.active) {
    border-color: var(--ps64-teal);
    color: var(--ps64-teal);
}

.pagination-number.active {
    background: var(--ps64-navy);
    border-color: var(--ps64-navy);
    color: #ffffff;
}

/* ============================================
   TAGS POPULARES
   ============================================ */
.blog-tags-section {
    padding: clamp(2rem, 4vw, 3rem) 0;
    background: var(--ps64-bg);
    border-top: 1px solid var(--ps64-border);
}

.blog-tags-section .section-title {
    text-align: center;
    margin-bottom: var(--ps64-space-6);
}

.tags-cloud {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--ps64-space-3);
    max-width: 800px;
    margin: 0 auto;
}

.tag-link {
    display: inline-flex;
    align-items: center;
    gap: var(--ps64-space-1);
    padding: var(--ps64-space-2) var(--ps64-space-4);
    background: var(--ps64-surface);
    border: 1px solid var(--ps64-border);
    border-radius: var(--ps64-radius-full);
    font-size: var(--ps64-text-sm);
    font-weight: 500;
    color: var(--ps64-text-secondary);
    transition: all var(--ps64-transition);
}

.tag-link:hover,
.tag-link.active {
    border-color: var(--ps64-teal);
    color: var(--ps64-teal);
    background: var(--ps64-teal-subtle);
}

.tag-hash {
    color: var(--ps64-teal);
    font-weight: 600;
}

.tag-count {
    font-size: var(--ps64-text-xs);
    color: var(--ps64-text-light);
    margin-left: var(--ps64-space-1);
}

/* ============================================
   NEWSLETTER - INDUSTRIAL TECH 2025
   ============================================ */
.blog-newsletter {
    padding: clamp(4rem, 8vw, 6rem) 0;
    background: var(--ps64-navy);
    position: relative;
    overflow: hidden;
}

/* Fondo con efecto tech */
.blog-newsletter::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 100% 100% at 0% 50%, rgba(59, 170, 254, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse 80% 80% at 100% 50%, rgba(59, 170, 254, 0.06) 0%, transparent 40%);
    pointer-events: none;
}

/* Grid sutil de fondo */
.blog-newsletter::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(59, 170, 254, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(59, 170, 254, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 20%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 20%, transparent 70%);
    pointer-events: none;
}

.newsletter-card {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: clamp(2.5rem, 5vw, 5rem);
    align-items: center;
    max-width: 1100px;
    margin: 0 auto;
    padding: clamp(2rem, 4vw, 3rem);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(59, 170, 254, 0.15);
    border-radius: 4px;
    backdrop-filter: blur(10px);
}

/* Línea lateral izquierda con glow */
.newsletter-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 20%;
    height: 60%;
    width: 3px;
    background: linear-gradient(180deg, transparent, var(--ps64-teal), transparent);
    box-shadow: 0 0 20px var(--ps64-teal), 0 0 40px rgba(59, 170, 254, 0.3);
    border-radius: 0 2px 2px 0;
}

.newsletter-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.375rem 0.75rem;
    background: rgba(59, 170, 254, 0.1);
    border-left: 3px solid var(--ps64-teal);
    border-radius: 0 3px 3px 0;
    font-size: 0.625rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--ps64-teal);
    margin-bottom: 1rem;
}

.newsletter-eyebrow::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--ps64-teal);
    box-shadow: 0 0 8px var(--ps64-teal);
    animation: nlPulse 2s ease-in-out infinite;
}

@keyframes nlPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.newsletter-title {
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.02em;
    line-height: 1.15;
    margin-bottom: 1rem;
}

.newsletter-title span {
    color: var(--ps64-teal);
    text-shadow: 0 0 30px rgba(59, 170, 254, 0.4);
}

.newsletter-description {
    font-size: 0.9375rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.65);
    max-width: 400px;
}

/* Formulario */
.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.newsletter-input-group {
    display: flex;
    gap: 0.75rem;
    position: relative;
}

/* Input con estilo industrial */
.newsletter-input-group input {
    flex: 1;
    padding: 1rem 1.25rem;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    font-size: 0.9375rem;
    font-family: var(--ps64-font);
    color: #ffffff;
    transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.newsletter-input-group input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.newsletter-input-group input:focus {
    outline: none;
    border-color: var(--ps64-teal);
    background: rgba(0, 0, 0, 0.4);
    box-shadow:
        0 0 0 3px rgba(59, 170, 254, 0.1),
        inset 0 0 20px rgba(59, 170, 254, 0.05);
}

/* Botón con efecto avanzado */
.newsletter-input-group button {
    position: relative;
    padding: 1rem 2rem;
    background: var(--ps64-teal);
    border: none;
    border-radius: 4px;
    font-size: 0.875rem;
    font-weight: 700;
    font-family: var(--ps64-font);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #ffffff;
    cursor: pointer;
    white-space: nowrap;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Efecto de brillo en el botón */
.newsletter-input-group button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent
    );
    transition: left 0.6s ease;
}

.newsletter-input-group button:hover {
    background: #ffffff;
    color: var(--ps64-navy);
    box-shadow:
        0 8px 30px rgba(59, 170, 254, 0.3),
        0 4px 12px rgba(0, 0, 0, 0.2);
    transform: translateY(-2px);
}

.newsletter-input-group button:hover::before {
    left: 100%;
}

/* Icono de flecha en el botón */
.newsletter-input-group button::after {
    content: '→';
    margin-left: 0.5rem;
    display: inline-block;
    transition: transform 0.3s ease;
}

.newsletter-input-group button:hover::after {
    transform: translateX(4px);
}

.newsletter-legal {
    font-size: 0.6875rem;
    color: rgba(255, 255, 255, 0.4);
    line-height: 1.5;
}

.newsletter-legal a {
    color: rgba(59, 170, 254, 0.8);
    text-decoration: none;
}

.newsletter-legal a:hover {
    color: var(--ps64-teal);
    text-decoration: underline;
}

/* Mensajes de estado del formulario */
.newsletter-message {
    margin-top: 1rem;
    padding: 0.875rem 1.25rem;
    border-radius: 4px;
    font-size: 0.875rem;
    font-weight: 500;
    text-align: center;
    animation: messageSlideIn 0.3s ease;
    transition: opacity 0.3s ease;
}

@keyframes messageSlideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.newsletter-success {
    background: rgba(34, 197, 94, 0.15);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: #22c55e;
}

.newsletter-error {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #ef4444;
}

/* ============================================
   ESTADO VACÍO
   ============================================ */
.blog-empty {
    text-align: center;
    padding: clamp(3rem, 8vw, 6rem) var(--ps64-space-6);
}

.blog-empty p {
    font-size: var(--ps64-text-lg);
    color: var(--ps64-text-muted);
}

/* ============================================
   ARTÍCULO INDIVIDUAL - HERO
   (Estilo portocarreroweb: imagen de fondo con overlay, centrado)
   ============================================ */
.article-hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background:
        linear-gradient(to bottom, rgba(0, 34, 68, 0.75), rgba(0, 34, 68, 0.5)),
        var(--hero-image, linear-gradient(135deg, var(--ps64-navy) 0%, var(--ps64-navy-light) 100%)) center/cover no-repeat;
    color: #ffffff;
}

.article-hero .container-narrow {
    max-width: 800px;
    margin: 0 auto;
    text-align: left;
}

/* Breadcrumbs */
.article-breadcrumbs {
    font-size: var(--ps64-text-sm);
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.6);
}

.article-breadcrumbs a {
    color: rgba(255, 255, 255, 0.7);
    transition: color var(--ps64-transition);
}

.article-breadcrumbs a:hover {
    color: #ffffff;
}

.article-breadcrumbs .separator {
    margin: 0 0.5rem;
    color: rgba(255, 255, 255, 0.4);
}

.article-breadcrumbs .current {
    color: #ffffff;
}

/* Meta superior */
.article-meta-top {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.article-meta-top .category-badge {
    padding: 0.375rem 0.75rem;
    background: rgba(255, 255, 255, 0.15);
    border-left: 3px solid var(--cat-color, var(--ps64-teal));
    border-radius: 0 var(--ps64-radius-sm) var(--ps64-radius-sm) 0;
    font-size: var(--ps64-text-sm);
    font-weight: 600;
    color: #ffffff;
    transition: all var(--ps64-transition);
}

.article-meta-top .category-badge:hover {
    background: rgba(255, 255, 255, 0.25);
}

.article-meta-top .read-time {
    color: rgba(255, 255, 255, 0.8);
    font-size: var(--ps64-text-sm);
}

.meta-separator {
    color: rgba(255, 255, 255, 0.4);
}

/* Título */
.article-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.03em;
    margin-bottom: 1.5rem;
}

/* Excerpt/Subtítulo */
.article-excerpt {
    font-size: clamp(1.125rem, 1.5vw, 1.25rem);
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
}

/* Meta inferior */
.article-meta-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.author-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.author-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(59, 170, 254, 0.4);
}

.author-details {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.author-details .author-name {
    font-weight: 600;
    color: #ffffff;
}

.author-details .author-role {
    font-size: var(--ps64-text-sm);
    color: rgba(255, 255, 255, 0.7);
}

.date-info {
    display: flex;
    flex-direction: column;
    text-align: right;
    font-size: var(--ps64-text-sm);
    color: rgba(255, 255, 255, 0.8);
}

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

/* ============================================
   ARTÍCULO - LAYOUT CON SIDEBAR
   ============================================ */
.article-layout {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: var(--ps64-space-10);
    max-width: 1100px;
    margin: 0 auto;
    padding: clamp(2rem, 5vw, 4rem) var(--ps64-space-6);
}

.article-main {
    min-width: 0;
}

/* ============================================
   ARTÍCULO - CONTENIDO
   ============================================ */
.article-content {
    max-width: 720px;
}

.article-content h2 {
    font-size: clamp(1.375rem, 2.5vw, 1.75rem);
    font-weight: 700;
    color: var(--ps64-text);
    margin: var(--ps64-space-10) 0 var(--ps64-space-4);
    letter-spacing: -0.02em;
    line-height: 1.3;
}

/* Limpiar cualquier ::before/::after heredado de CSS globales */
.article-content h2::before,
.article-content h2::after,
.article-content h3::before,
.article-content h3::after,
.article h2::before,
.article h2::after,
.article h3::before,
.article h3::after,
h2::before,
h2::after,
h3::before,
h3::after {
    display: none !important;
    content: none !important;
    width: 0 !important;
    height: 0 !important;
    background: none !important;
}

.article-content > h2:first-child {
    margin-top: 0;
}

.article-content h3 {
    font-size: clamp(1.05rem, 1.8vw, 1.25rem);
    font-weight: 600;
    color: var(--ps64-text);
    margin: var(--ps64-space-6) 0 var(--ps64-space-3);
    letter-spacing: -0.015em;
    line-height: 1.4;
}

.article-content p {
    font-size: var(--ps64-text-base);
    line-height: 1.8;
    color: var(--ps64-text-secondary);
    margin-bottom: var(--ps64-space-5);
}

.article-content p.lead {
    font-size: var(--ps64-text-lg);
    font-weight: 500;
    color: var(--ps64-text);
    line-height: 1.7;
}

.article-content a {
    color: var(--ps64-teal);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.article-content a:hover {
    color: var(--ps64-navy);
}

/* Listas */
.article-content ul {
    margin: var(--ps64-space-4) 0 var(--ps64-space-6) var(--ps64-space-6);
    list-style: disc;
    padding-left: 1.2em;
}

.article-content ol {
    margin: var(--ps64-space-4) 0 var(--ps64-space-6) var(--ps64-space-6);
    list-style: decimal;
    padding-left: 1.2em;
}

.article-content li {
    font-size: var(--ps64-text-base);
    line-height: 1.7;
    color: var(--ps64-text-secondary);
    margin-bottom: var(--ps64-space-2);
    padding-left: var(--ps64-space-2);
    display: list-item;
}

.article-content li::marker {
    color: var(--ps64-teal);
}

/* Blockquotes */
.block-quote {
    margin: var(--ps64-space-8) 0;
    padding: var(--ps64-space-6);
    background: linear-gradient(90deg, var(--ps64-teal-subtle) 0%, transparent 100%);
    border-left: 4px solid var(--ps64-teal);
    border-radius: 0 var(--ps64-radius-md) var(--ps64-radius-md) 0;
}

.block-quote p {
    font-size: var(--ps64-text-lg);
    font-weight: 500;
    color: var(--ps64-text);
    line-height: 1.6;
    margin: 0;
}

.block-quote cite {
    display: block;
    margin-top: var(--ps64-space-3);
    font-size: var(--ps64-text-sm);
    font-style: normal;
    color: var(--ps64-text-muted);
}

/* Destacados */
.block-highlight {
    margin: var(--ps64-space-6) 0;
    padding: var(--ps64-space-5);
    background: var(--ps64-teal-subtle);
    border: 1px solid var(--ps64-border-hover);
    border-radius: var(--ps64-radius-md);
    font-size: var(--ps64-text-base);
    line-height: 1.7;
    color: var(--ps64-text);
}

/* Imágenes */
.block-image {
    margin: var(--ps64-space-8) 0;
}

.block-image img {
    width: 100%;
    border-radius: var(--ps64-radius-md);
    border: 1px solid var(--ps64-border);
}

.block-image figcaption {
    margin-top: var(--ps64-space-3);
    font-size: var(--ps64-text-sm);
    color: var(--ps64-text-muted);
    text-align: center;
}

/* Separador */
.block-separator {
    margin: var(--ps64-space-10) 0;
    border: none;
    border-top: 1px solid var(--ps64-border);
}

/* Tablas - Responsivas sin scroll */
.block-table-wrapper {
    margin: var(--ps64-space-8) 0;
    overflow: hidden;
}

.block-table-caption {
    font-size: var(--ps64-text-sm);
    font-weight: 600;
    color: var(--ps64-text-muted);
    margin-bottom: var(--ps64-space-3);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.block-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.8rem;
    table-layout: fixed;
}

.block-table th,
.block-table td {
    padding: 0.5rem 0.6rem;
    text-align: left;
    border: 1px solid var(--ps64-border);
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

.block-table th {
    background: var(--ps64-navy);
    color: #ffffff;
    font-weight: 600;
    font-size: 0.75rem;
    line-height: 1.3;
}

.block-table td {
    color: var(--ps64-text-secondary);
    line-height: 1.4;
}

.block-table tbody tr:nth-child(even) {
    background: var(--ps64-surface);
}

.block-table tbody tr:hover {
    background: var(--ps64-teal-subtle);
}

/* Tablas en móvil */
@media (max-width: 768px) {
    .block-table {
        font-size: 0.7rem;
    }

    .block-table th,
    .block-table td {
        padding: 0.4rem 0.35rem;
    }

    .block-table th {
        font-size: 0.65rem;
    }
}

@media (max-width: 480px) {
    .block-table {
        font-size: 0.6rem;
    }

    .block-table th,
    .block-table td {
        padding: 0.3rem 0.25rem;
    }

    .block-table th {
        font-size: 0.58rem;
    }
}

/* Notas/Callouts */
.block-note {
    margin: var(--ps64-space-6) 0;
    padding: var(--ps64-space-4) var(--ps64-space-5);
    border-radius: var(--ps64-radius-md);
    border-left: 4px solid;
}

.block-note-title {
    display: block;
    font-size: var(--ps64-text-sm);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: var(--ps64-space-2);
}

.block-note p {
    margin: 0;
    font-size: var(--ps64-text-sm);
    line-height: 1.6;
}

.block-note-info {
    background: var(--ps64-teal-subtle);
    border-left-color: var(--ps64-teal);
}

.block-note-info .block-note-title {
    color: var(--ps64-teal);
}

.block-note-warning {
    background: rgba(245, 158, 11, 0.08);
    border-left-color: #f59e0b;
}

.block-note-warning .block-note-title {
    color: #f59e0b;
}

.block-note-tip {
    background: rgba(16, 185, 129, 0.08);
    border-left-color: #10b981;
}

.block-note-tip .block-note-title {
    color: #10b981;
}

/* CTA Block */
.block-cta {
    margin: var(--ps64-space-8) 0;
    padding: var(--ps64-space-8);
    background: linear-gradient(135deg, var(--ps64-navy) 0%, var(--ps64-navy-light) 100%);
    border-radius: var(--ps64-radius-lg);
    text-align: center;
}

.block-cta .block-cta-title,
.block-cta h3.block-cta-title {
    font-size: var(--ps64-text-2xl);
    font-weight: 700;
    color: #ffffff !important;
    margin: 0 0 var(--ps64-space-3) 0;
}

.block-cta .block-cta-description,
.block-cta p.block-cta-description {
    font-size: var(--ps64-text-lg);
    color: rgba(255, 255, 255, 0.85) !important;
    margin: 0 0 var(--ps64-space-6) 0;
    line-height: 1.6;
}

.block-cta .block-cta-button,
a.block-cta-button {
    display: inline-block;
    padding: var(--ps64-space-4) var(--ps64-space-8);
    background: var(--ps64-teal);
    border-radius: var(--ps64-radius-md);
    font-size: var(--ps64-text-base);
    font-weight: 600;
    color: #ffffff !important;
    text-decoration: none;
    transition: all var(--ps64-transition);
}

.block-cta .block-cta-button:hover,
a.block-cta-button:hover {
    background: #ffffff;
    color: var(--ps64-navy) !important;
}

/* Producto / Sector / Serie blocks */
.block-product,
.block-sector,
.block-proceso,
.block-series {
    margin: var(--ps64-space-8) 0;
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: var(--ps64-space-5);
    padding: var(--ps64-space-5);
    background: var(--ps64-surface);
    border: 1px solid var(--ps64-border);
    border-radius: var(--ps64-radius-lg);
}

/* Formulacion block - compact text-only */
.block-formulacion {
    margin: var(--ps64-space-6) 0;
    padding: var(--ps64-space-4) var(--ps64-space-5);
    background: linear-gradient(135deg, var(--ps64-surface) 0%, #f8fafc 100%);
    border: 1px solid var(--ps64-border);
    border-left: 3px solid var(--ps64-teal);
    border-radius: var(--ps64-radius-md);
}

.block-product-image img,
.block-sector-image img,
.block-proceso-image img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: var(--ps64-radius-md);
}

.block-product-eyebrow,
.block-sector-eyebrow,
.block-proceso-eyebrow,
.block-formulacion-eyebrow,
.block-series-eyebrow {
    font-size: var(--ps64-text-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--ps64-teal);
    margin-bottom: var(--ps64-space-2);
}

.block-product-title,
.block-sector-title,
.block-proceso-title,
.block-formulacion-title,
.block-series-title {
    font-size: var(--ps64-text-lg);
    font-weight: 700;
    color: var(--ps64-text);
    margin-bottom: var(--ps64-space-2);
}

.block-product-description,
.block-sector-description,
.block-proceso-description,
.block-formulacion-description {
    font-size: var(--ps64-text-sm);
    color: var(--ps64-text-secondary);
    line-height: 1.6;
    margin-bottom: var(--ps64-space-4);
}

.block-product-cta,
.block-sector-cta,
.block-proceso-cta,
.block-formulacion-cta {
    font-size: var(--ps64-text-sm);
    font-weight: 600;
    color: var(--ps64-teal);
    text-decoration: none;
}

.block-product-cta:hover,
.block-sector-cta:hover,
.block-proceso-cta:hover,
.block-formulacion-cta:hover {
    color: var(--ps64-navy);
}

.block-series {
    grid-template-columns: 1fr;
}

.block-series-table {
    width: 100%;
    font-size: var(--ps64-text-sm);
    border-collapse: collapse;
}

.block-series-table th,
.block-series-table td {
    padding: var(--ps64-space-2) var(--ps64-space-3);
    text-align: left;
    border-bottom: 1px solid var(--ps64-border);
}

.block-series-table th {
    font-weight: 600;
    color: var(--ps64-text-muted);
    width: 120px;
}

.block-series-table td {
    color: var(--ps64-text);
}

/* ============================================
   SIDEBAR
   ============================================ */
.article-sidebar {
    position: relative;
}

.sidebar-sticky {
    position: sticky;
    top: 100px;
    display: flex;
    flex-direction: column;
    gap: var(--ps64-space-6);
}

/* ToC Widget */
.toc-widget,
.share-widget {
    background: var(--ps64-surface);
    border: 1px solid var(--ps64-border);
    border-radius: var(--ps64-radius-lg);
    padding: var(--ps64-space-5);
}

.toc-title {
    display: flex;
    align-items: center;
    gap: var(--ps64-space-2);
    font-size: var(--ps64-text-xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--ps64-text-muted);
    margin-bottom: var(--ps64-space-4);
    padding-bottom: var(--ps64-space-3);
    border-bottom: 1px solid var(--ps64-border);
}

/* Sin decoradores en títulos */

.toc-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.toc-list li {
    margin-bottom: var(--ps64-space-1);
}

.toc-list a {
    display: block;
    padding: var(--ps64-space-2) var(--ps64-space-3);
    font-size: var(--ps64-text-sm);
    color: var(--ps64-text-secondary);
    border-left: 2px solid transparent;
    border-radius: 0 var(--ps64-radius-sm) var(--ps64-radius-sm) 0;
    transition: all var(--ps64-transition);
}

.toc-list a:hover {
    color: var(--ps64-text);
    background: var(--ps64-bg);
    border-left-color: var(--ps64-border);
}

.toc-list a.active {
    color: var(--ps64-teal);
    background: var(--ps64-teal-subtle);
    border-left-color: var(--ps64-teal);
    font-weight: 500;
}

/* ToC Mobile */
.toc-mobile {
    display: none;
    margin-bottom: var(--ps64-space-6);
    background: var(--ps64-surface);
    border: 1px solid var(--ps64-border);
    border-radius: var(--ps64-radius-lg);
    overflow: hidden;
}

.toc-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: var(--ps64-space-4);
    background: var(--ps64-bg);
    border: none;
    font-size: var(--ps64-text-sm);
    font-weight: 600;
    color: var(--ps64-text);
    cursor: pointer;
    font-family: var(--ps64-font);
}

.toc-toggle svg {
    width: 16px;
    height: 16px;
    transition: transform var(--ps64-transition);
}

.toc-toggle[aria-expanded="true"] svg {
    transform: rotate(180deg);
}

.toc-mobile-content {
    padding: var(--ps64-space-4);
    display: none;
    border-top: 1px solid var(--ps64-border);
}

.toc-mobile-content.open {
    display: block;
}

/* ============================================
   TAGS DEL ARTÍCULO
   ============================================ */
.article-tags {
    display: flex;
    align-items: center;
    gap: var(--ps64-space-3);
    flex-wrap: wrap;
    margin-top: var(--ps64-space-10);
    padding-top: var(--ps64-space-6);
    border-top: 1px solid var(--ps64-border);
}

.tags-label {
    font-size: var(--ps64-text-sm);
    font-weight: 600;
    color: var(--ps64-text-muted);
}

.tags-list {
    display: flex;
    gap: var(--ps64-space-2);
    flex-wrap: wrap;
}

/* ============================================
   COMPARTIR
   ============================================ */
.article-share {
    display: flex;
    align-items: center;
    gap: var(--ps64-space-4);
    margin-top: var(--ps64-space-6);
    padding: var(--ps64-space-5);
    background: var(--ps64-surface);
    border-radius: var(--ps64-radius-lg);
}

.share-label {
    font-size: var(--ps64-text-sm);
    font-weight: 600;
    color: var(--ps64-text-muted);
}

.share-buttons {
    display: flex;
    gap: var(--ps64-space-2);
}

.share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--ps64-bg);
    border: 1px solid var(--ps64-border);
    border-radius: var(--ps64-radius-md);
    color: var(--ps64-text-secondary);
    cursor: pointer;
    transition: all var(--ps64-transition);
}

.share-btn:hover {
    border-color: var(--ps64-teal);
    color: var(--ps64-teal);
    background: var(--ps64-teal-subtle);
}

.share-btn svg {
    width: 18px;
    height: 18px;
}

/* Sidebar share buttons */
.share-widget .share-buttons {
    flex-direction: column;
}

.share-widget .share-btn {
    width: 100%;
    height: auto;
    padding: var(--ps64-space-3);
    gap: var(--ps64-space-2);
    justify-content: flex-start;
    font-size: var(--ps64-text-sm);
}

/* ============================================
   AUTHOR BOX
   ============================================ */
.author-box-section {
    padding: clamp(2rem, 4vw, 3rem) 0;
    background: var(--ps64-surface);
    border-top: 1px solid var(--ps64-border);
}

.author-box {
    display: flex;
    gap: var(--ps64-space-6);
    padding: var(--ps64-space-6);
    background: var(--ps64-bg);
    border: 1px solid var(--ps64-border);
    border-radius: var(--ps64-radius-lg);
    max-width: 800px;
    margin: 0 auto;
}

.author-box-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 3px solid var(--ps64-teal-subtle);
}

.author-box-content {
    flex: 1;
}

.author-box-name {
    font-size: var(--ps64-text-xl);
    font-weight: 700;
    color: var(--ps64-text);
    margin-bottom: var(--ps64-space-1);
}

.author-box-role {
    font-size: var(--ps64-text-sm);
    color: var(--ps64-teal);
    font-weight: 500;
    margin-bottom: var(--ps64-space-3);
}

.author-box-bio {
    font-size: var(--ps64-text-base);
    color: var(--ps64-text-secondary);
    line-height: 1.6;
}

/* ============================================
   NAVEGACIÓN ENTRE ARTÍCULOS
   ============================================ */
.article-navigation {
    border-top: 1px solid var(--ps64-border);
    background: var(--ps64-bg);
}

.nav-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    max-width: 1100px;
    margin: 0 auto;
}

.nav-link {
    display: flex;
    flex-direction: column;
    gap: var(--ps64-space-2);
    padding: var(--ps64-space-6);
    transition: background var(--ps64-transition);
}

.nav-link:hover:not(.disabled) {
    background: var(--ps64-surface);
}

.nav-link.disabled {
    opacity: 0;
    pointer-events: none;
}

.nav-prev {
    border-right: 1px solid var(--ps64-border);
}

.nav-next {
    text-align: right;
}

.nav-label {
    display: flex;
    align-items: center;
    gap: var(--ps64-space-2);
    font-size: var(--ps64-text-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--ps64-text-muted);
}

.nav-next .nav-label {
    justify-content: flex-end;
}

.nav-label svg {
    width: 14px;
    height: 14px;
}

.nav-title {
    font-size: var(--ps64-text-base);
    font-weight: 600;
    color: var(--ps64-text);
    line-height: 1.4;
    transition: color var(--ps64-transition);
}

.nav-link:hover .nav-title {
    color: var(--ps64-teal);
}

/* ============================================
   ARTÍCULOS RELACIONADOS
   ============================================ */
.related-articles {
    padding: clamp(2rem, 5vw, 4rem) 0;
    background: var(--ps64-bg);
    border-top: 1px solid var(--ps64-border);
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--ps64-space-6);
}

/* ============================================
   RESPONSIVE - FLAGSHIP 2025
   ============================================ */
@media (max-width: 1024px) {
    .article-layout {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .article-sidebar {
        display: none;
    }

    .toc-mobile {
        display: block;
    }

    /* Featured card tablet */
    .featured-card {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 1.5rem;
    }

    .featured-image {
        border-radius: 16px;
    }

    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.25rem;
    }

    .post-card-large {
        grid-column: span 2;
        flex-direction: column;
    }

    .post-card-large .post-card-image {
        width: 100%;
    }

    .post-card-large .post-card-image img {
        aspect-ratio: 16/9;
    }

    .newsletter-card {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 2rem 1.5rem;
    }

    .newsletter-card::before {
        left: 20%;
        right: 20%;
        top: 0;
        height: 3px;
        width: auto;
        background: linear-gradient(90deg, transparent, var(--ps64-teal), transparent);
    }

    .newsletter-description {
        max-width: 100%;
        margin: 0 auto;
    }

    .related-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    /* Hero móvil */
    .blog-hero-modern {
        min-height: 40vh;
    }

    .blog-hero-modern > .blog-container {
        padding: 2rem 1.5rem;
    }

    .blog-hero-modern .hero-grid {
        opacity: 0.4;
    }

    .blog-hero-modern .hero-noise {
        opacity: 0.02;
    }

    .blog-hero-title-modern {
        font-size: clamp(2.25rem, 10vw, 3rem) !important;
        line-height: 1.15 !important;
    }

    .blog-hero-subtitle-modern {
        font-size: 1.125rem !important;
        line-height: 1.6 !important;
        max-width: 85% !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }

    .blog-hero-modern .hero-line::before {
        width: 120px;
    }

    /* Filtros móvil */
    .filter-tabs {
        gap: 0.375rem;
    }

    .filter-tab {
        padding: 0.5rem 0.875rem;
        font-size: 0.75rem;
    }

    .filter-tab-count {
        min-width: 18px;
        height: 18px;
        font-size: 0.625rem;
    }

    /* Cards móvil */
    .blog-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .post-card {
        border-radius: 16px;
    }

    .post-card-large {
        grid-column: span 1;
        flex-direction: column;
    }

    .post-card-large .post-card-image {
        width: 100%;
    }

    .post-card-large .post-card-content {
        padding: 1.25rem;
    }

    .post-card-large .post-card-title {
        font-size: 1.25rem;
    }

    .post-card-content {
        padding: 1.25rem;
    }

    .post-card-title {
        font-size: 1rem;
    }

    /* Featured móvil */
    .featured-card {
        padding: 1rem;
        border-radius: 20px;
        gap: 1.25rem;
    }

    .featured-image {
        border-radius: 14px;
    }

    .featured-title {
        font-size: 1.5rem;
    }

    .featured-content {
        padding: 0.5rem 0;
    }

    /* Legacy */
    .blog-hero {
        padding: clamp(3rem, 8vw, 5rem) var(--ps64-space-4);
    }

    .blog-hero-inner {
        flex-direction: column;
    }

    .blog-hero-logo {
        display: none;
    }

    .blog-filters {
        flex-direction: column;
        gap: var(--ps64-space-3);
    }

    .filter-categories {
        justify-content: center;
    }

    .search-input {
        width: 100%;
    }

    .article-hero {
        min-height: 100svh;
        padding: 1.5rem;
    }

    .article-meta-bottom {
        flex-direction: column;
        gap: 1rem;
    }

    .date-info {
        text-align: center;
    }

    .author-box {
        flex-direction: column;
        text-align: center;
    }

    .author-box-avatar {
        margin: 0 auto;
    }

    .nav-grid {
        grid-template-columns: 1fr;
    }

    .nav-prev {
        border-right: none;
        border-bottom: 1px solid var(--ps64-border);
    }

    .nav-next {
        text-align: left;
    }

    .nav-next .nav-label {
        justify-content: flex-start;
    }

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

    .article-share {
        flex-direction: column;
        align-items: flex-start;
    }

    .article-tags {
        flex-direction: column;
        align-items: flex-start;
    }

    .block-product,
    .block-sector,
    .block-proceso {
        grid-template-columns: 1fr;
    }

    .pagination-numbers {
        display: none;
    }
}

@media (max-width: 480px) {
    /* Hero extra pequeño */
    .blog-hero-modern {
        padding-top: 5rem;
    }

    .blog-hero-badge {
        font-size: 0.625rem;
        padding: 0.5rem 1rem;
    }

    .blog-hero-title-modern {
        font-size: clamp(1.875rem, 9vw, 2.5rem) !important;
        letter-spacing: -0.03em;
    }

    .blog-hero-subtitle-modern {
        font-size: 1rem !important;
        max-width: 90% !important;
    }

    /* Filtros extra pequeños */
    .filter-tab {
        padding: 0.4375rem 0.75rem;
        font-size: 0.6875rem;
    }

    .filter-tab-count {
        display: none;
    }

    /* Cards extra pequeñas */
    .post-card {
        border-radius: 14px;
    }

    .post-card-content {
        padding: 1rem;
    }

    .post-card-title {
        font-size: 0.9375rem;
    }

    .post-card-excerpt {
        font-size: 0.8125rem;
        -webkit-line-clamp: 2;
    }

    /* Legacy */
    .blog-cat-link {
        padding: var(--ps64-space-1) var(--ps64-space-3);
        font-size: var(--ps64-text-xs);
    }

    .newsletter-input-group {
        flex-direction: column;
    }

    .newsletter-input-group button {
        width: 100%;
        justify-content: center;
    }

    .newsletter-eyebrow {
        margin-left: auto;
        margin-right: auto;
    }
}

/* ============================================
   SCROLL REVEAL ANIMATIONS
   ============================================ */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(30px);
}

.reveal-on-scroll.is-revealed {
    animation: cardReveal 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

/* ============================================
   FOCUS & ACCESIBILIDAD
   ============================================ */
.blog-cat-link:focus-visible,
.search-btn:focus-visible,
.pagination-prev:focus-visible,
.pagination-next:focus-visible,
.pagination-number:focus-visible,
.tag-link:focus-visible,
.share-btn:focus-visible,
.post-card:focus-within {
    outline: 2px solid var(--ps64-teal);
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        transition: none !important;
        animation: none !important;
    }
}

/* ============================================
   PRINT
   ============================================ */
@media print {
    .reading-progress,
    .blog-categories,
    .article-sidebar,
    .toc-mobile,
    .article-share,
    .article-navigation,
    .blog-newsletter,
    .blog-tags-section,
    .share-buttons {
        display: none !important;
    }

    .blog-hero,
    .article-hero {
        min-height: auto;
        background: #fff !important;
        color: #000 !important;
        padding: 2rem;
    }

    .blog-title,
    .article-title {
        color: #000 !important;
    }

    .article-breadcrumbs,
    .article-breadcrumbs a,
    .article-meta-top .category-badge,
    .article-meta-top .read-time,
    .meta-separator,
    .article-excerpt,
    .author-details .author-name,
    .author-details .author-role,
    .date-info {
        color: #333 !important;
    }

    .article-content {
        max-width: 100%;
    }
}

/* ============================================
   RESPONSIVE ADICIONAL
   ============================================ */
@media (max-width: 768px) {
    /* Hero moderno responsive */
    .blog-hero-modern {
        padding-top: clamp(5rem, 8vw, 6rem);
    }
}

@media (max-width: 480px) {
    .filter-tabs {
        gap: var(--ps64-space-1);
    }

    .filter-tab {
        padding: var(--ps64-space-1) var(--ps64-space-3);
        font-size: var(--ps64-text-xs);
    }

    .filter-tab-count {
        display: none;
    }
}
