.hero-bg {
    position: relative;
    overflow: hidden;
}

.hero-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: radial-gradient(circle at 20% 50%, rgba(156, 163, 175, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(156, 163, 175, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 40% 80%, rgba(156, 163, 175, 0.06) 0%, transparent 50%);
    background-size: 800px 600px, 600px 400px, 700px 500px;
}

.hero-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, transparent 0%, rgba(156, 163, 175, 0.03) 50%, transparent 100%),
        repeating-linear-gradient(90deg, transparent, transparent 2px, rgba(156, 163, 175, 0.02) 2px, rgba(156, 163, 175, 0.02) 4px);
}

.hero-bg::before,
.hero-bg::after {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 10;
}

.card-shadow {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.category-pill {
    background: rgba(103, 126, 234, 0.1);
    color: #667eea;
}

.tag-cloud a {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Estilos para contenido HTML del editor */
.article-content {
    overflow: hidden;
}

.article-content img {
    max-width: 100% !important;
    height: auto !important;
    object-fit: cover;
    border-radius: 0.5rem;
}

.article-content figure,
.article-content .image-container {
    max-width: 100% !important;
    margin: 0.5rem 0 !important;
    overflow: hidden;
}

.article-content p,
.article-content h1,
.article-content h2,
.article-content h3 {
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.article-title {
    font-weight: 600;
    text-decoration: none;
    line-height: 1.4;
}

.article-meta {
    font-size: 0.75rem;
    color: #6b7280;
    margin-top: 0.5rem;
}

.article-meta span {
    margin-right: 1rem;
}

.break-words {
    word-wrap: break-word;
    word-break: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

.break-all {
    word-break: break-all;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 64px 24px;
}

/* ========== ANIMACIONES DE ENTRADA ========== */
.fade-in-up {
    opacity: 0;
    transform: translateY(40px);
    transition: all 1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.fade-in-up.animate {
    opacity: 1;
    transform: translateY(0);
}

.fade-in-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: all 1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.fade-in-left.animate {
    opacity: 1;
    transform: translateX(0);
}

.fade-in-right {
    opacity: 0;
    transform: translateX(40px);
    transition: all 1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.fade-in-right.animate {
    opacity: 1;
    transform: translateX(0);
}

.scale-in {
    opacity: 0;
    transform: scale(0.85);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.scale-in.animate {
    opacity: 1;
    transform: scale(1);
}

.slide-up {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.slide-up.animate {
    opacity: 1;
    transform: translateY(0);
}

.bounce-in {
    opacity: 0;
    transform: scale(0.3);
    transition: all 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.bounce-in.animate {
    opacity: 1;
    transform: scale(1);
}

/* Delays escalonados para efectos secuenciales */
.delay-100 {
    transition-delay: 0.1s;
}

.delay-200 {
    transition-delay: 0.2s;
}

.delay-300 {
    transition-delay: 0.3s;
}

.delay-400 {
    transition-delay: 0.4s;
}

.delay-500 {
    transition-delay: 0.5s;
}

.delay-600 {
    transition-delay: 0.6s;
}

.delay-700 {
    transition-delay: 0.7s;
}

.delay-800 {
    transition-delay: 0.8s;
}

/* Efectos hover mejorados para tarjetas */
.article-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.article-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Animación suave para imágenes */
.article-image {
    transition: transform 0.4s ease;
    overflow: hidden;
}

.article-card:hover .article-image {
    transform: scale(1.05);
}

/* Animación de aparición para sidebar */
.sidebar-item {
    opacity: 0;
    transform: translateX(20px);
    transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.sidebar-item.animate {
    opacity: 1;
    transform: translateX(0);
}

/* Estilos para que las animaciones no se ejecuten hasta que esté listo */
.preload * {
    animation-duration: 0s !important;
    animation-delay: 0s !important;
    transition-duration: 0s !important;
    transition-delay: 0s !important;
}