/* ======================================================== */
/* CANAL K Professional CSS Framework */
/* ======================================================== */
/* Sergi serrano (c) 2025 - WeBlackbug */
/* ======================================================== */
/* Desactivar brillo en el modal de edición de comentario */
#editCommentModal .glass-input,
#editCommentModal .glass-input:hover,
#editCommentModal .glass-input:focus {
    box-shadow: none !important;
}

#editCommentModal #edit-comment-text:focus {
    border-color: rgba(102, 126, 234, 0.3);
    background: rgba(255, 255, 255, 0.12);
    outline: none;
}

/* Desactivar brillo/transform en botones del modal de edición */
#editCommentModal .btn-primary-professional::before {
    display: none !important;
}

#editCommentModal .btn-primary-professional:hover,
#editCommentModal .btn-outline-light:hover {
    box-shadow: none !important;
    transform: none !important;
}

/* Desactivar brillo/transform en botones del modal de denunciar comentario */
#reportCommentModal .btn-primary-professional::before,
#reportCommentModalLite .btn-primary-professional::before {
    display: none !important;
}

#reportCommentModal .btn-primary-professional:hover,
#reportCommentModal .btn-outline-light:hover,
#reportCommentModalLite .btn-primary-professional:hover,
#reportCommentModalLite .btn-outline-light:hover {
    box-shadow: none !important;
    transform: none !important;
    filter: none !important;
}

/* Nueva disposición vertical: categoría, fecha, autor, contenido, reacciones */
.post-date {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
    margin-top: 6px;
}

.post-author {
    margin-top: 8px;
}

.post-reactions {
    display: flex;
    align-items: center;
}

/* CANAL K Professional CSS Framework */
@import url('toast.css');

:root {
    /* Color System Professional */
    --primary-50: #eff6ff;
    --primary-100: #dbeafe;
    --primary-200: #bfdbfe;
    --primary-300: #93c5fd;
    --primary-400: #60a5fa;
    --primary-500: #3b82f6;
    --primary-600: #2563eb;
    --primary-700: #1d4ed8;
    --primary-800: #1e40af;
    --primary-900: #1e3a8a;

    --secondary-50: #fdf4ff;
    --secondary-100: #fae8ff;
    --secondary-200: #f5d0fe;
    --secondary-300: #f0abfc;
    --secondary-400: #e879f9;
    --secondary-500: #d946ef;
    --secondary-600: #c026d3;
    --secondary-700: #a21caf;
    --secondary-800: #86198f;
    --secondary-900: #701a75;

    /* Professional Gradients */
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-secondary: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-success: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --gradient-dark: linear-gradient(135deg, #2c3e50 0%, #000428 100%);
    --gradient-neon: linear-gradient(45deg, #ff006e 0%, #8338ec 25%, #3a86ff 50%, #06ffa5 75%, #ffbe0b 100%);

    /* Glass Morphism */
    --glass-bg: rgba(255, 255, 255, 0.08);
    --glass-border: rgba(255, 255, 255, 0.15);
    --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);

    /* Advanced Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    --shadow-neon: 0 0 20px rgba(102, 126, 234, 0.6);

    /* Typography Scale */
    --text-xs: 0.75rem;
    --text-sm: 0.875rem;
    --text-base: 1rem;
    --text-lg: 1.125rem;
    --text-xl: 1.25rem;
    --text-2xl: 1.5rem;
    --text-3xl: 1.875rem;
    --text-4xl: 2.25rem;
    --text-5xl: 3rem;
    --text-6xl: 3.75rem;
    --text-7xl: 4.5rem;
    --text-8xl: 6rem;
    --text-9xl: 8rem;

    /* Animation Timing */
    --timing-fast: 150ms;
    --timing-normal: 300ms;
    --timing-slow: 500ms;
    --timing-extra-slow: 1000ms;

    /* Easing Functions */
    --ease-in: cubic-bezier(0.4, 0, 1, 1);
    --ease-out: cubic-bezier(0, 0, 0.2, 1);
    --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
    --ease-bounce: cubic-bezier(0.68, -0.55, 0.265, 1.55);
    --ease-elastic: cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Global Reset Professional */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

*::before,
*::after {
    box-sizing: border-box;
}

/* Professional Body Setup */
html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body, 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif);
    line-height: 1.6;
    color: #1f2937;
    background: #0f172a;
    overflow-x: hidden;
    position: relative;
}

/* Professional Background System */
.background-system {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

.bg-layer-1 {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #334155 100%);
}

.bg-layer-2 {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 80%, rgba(120, 119, 198, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 119, 198, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(120, 219, 255, 0.1) 0%, transparent 50%);
    animation: bgShift 20s ease-in-out infinite;
}

.bg-layer-3 {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(circle at 25% 25%, rgba(255, 255, 255, 0.02) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(255, 255, 255, 0.02) 0%, transparent 50%);
}

@keyframes bgShift {

    0%,
    100% {
        transform: translateX(0) translateY(0) scale(1);
    }

    33% {
        transform: translateX(-10px) translateY(-5px) scale(1.02);
    }

    66% {
        transform: translateX(5px) translateY(10px) scale(0.98);
    }
}

/* Professional Loading System */
.loading-system {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loading-system.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-professional {
    position: relative;
    width: 120px;
    height: 120px;
}

.loader-ring {
    position: absolute;
    border: 2px solid transparent;
    border-radius: 50%;
    animation: rotate 2s linear infinite;
}

.loader-ring:nth-child(1) {
    width: 120px;
    height: 120px;
    border-top: 2px solid #667eea;
    animation-delay: -0.45s;
}

.loader-ring:nth-child(2) {
    top: 10px;
    left: 10px;
    width: 100px;
    height: 100px;
    border-right: 2px solid #f093fb;
    animation-delay: -0.3s;
}

.loader-ring:nth-child(3) {
    top: 20px;
    left: 20px;
    width: 80px;
    height: 80px;
    border-bottom: 2px solid #4facfe;
    animation-delay: -0.15s;
}

.loader-ring:nth-child(4) {
    top: 30px;
    left: 30px;
    width: 60px;
    height: 60px;
    border-left: 2px solid #00f2fe;
}

@keyframes rotate {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.loader-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-family: 'Orbitron', monospace;
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 2px;
}

/* Professional Navigation */
.navbar-professional {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: var(--glass-bg);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    z-index: 1000;
    transition: all var(--timing-normal) var(--ease-out);
    padding: 0;
}

.navbar-professional.scrolled {
    background: rgba(15, 23, 42, 0.95);
    -webkit-backdrop-filter: blur(30px);
    backdrop-filter: blur(30px);
    box-shadow: var(--shadow-lg);
}

.navbar-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

.navbar-brand-professional {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: white;
    font-family: 'Orbitron', monospace;
    font-weight: 700;
    font-size: var(--text-2xl);
    transition: all var(--timing-normal) var(--ease-out);
}

.navbar-brand-professional:hover {
    color: white;
    transform: translateY(-2px);
    text-shadow: 0 0 20px rgba(102, 126, 234, 0.8);
}

.brand-icon {
    width: 40px;
    height: 40px;
    background: var(--gradient-primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    box-shadow: var(--shadow);
    transition: all var(--timing-normal) var(--ease-bounce);
}

.navbar-brand-professional:hover .brand-icon {
    transform: rotate(360deg) scale(1.1);
    box-shadow: var(--shadow-neon);
}

.navbar-nav-professional {
    display: flex;
    align-items: center;
    gap: 2rem;
    list-style: none;
    margin: 0;
}

.nav-link-professional {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-weight: 500;
    font-size: var(--text-base);
    position: relative;
    padding: 8px 16px;
    border-radius: 8px;
    transition: all var(--timing-normal) var(--ease-out);
}

.nav-link-professional::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: all var(--timing-normal) var(--ease-out);
    transform: translateX(-50%);
}

.nav-link-professional:hover {
    color: white;
    background: var(--glass-bg);
    transform: translateY(-2px);
}

.nav-link-professional:hover::before {
    width: 100%;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* ===== Campana de Revisiones Pendientes ===== */
.reviews-bell-btn {
    transition: all 0.3s ease;
    position: relative;
    background: transparent !important;
    border: none;
    color: #e6e9ff;
    padding: 6px 10px;
    border-radius: 999px;
}

.reviews-bell-btn:hover {
    transform: scale(1.05);
    box-shadow: none;
}

.reviews-bell-icon {
    transition: transform 0.3s ease;
    display: inline-block;
}

/* Asegurar visibilidad y color estable en hover */
.reviews-bell-btn:hover,
.reviews-bell-btn:focus {
    color: #e6e9ff;
}

/* Evitar que ondas pseudo-elementos tapen el ícono */
.reviews-bell-icon {
    position: relative;
    z-index: 1;
}

/* Animación de vibración cuando hay contenido pendiente (vibración, pausa, vibración, pausa) */
.reviews-bell-icon.vibrating {
    animation: bellVibrateSeq 2.4s ease-in-out infinite;
}

/* Halo en forma de onda en lugar de caja */
.reviews-bell-btn.has-pending::before,
.reviews-bell-btn.has-pending::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    border: 2px solid rgba(102, 126, 234, 0.55);
    /* azul-violeta sutil */
    opacity: 0.7;
    pointer-events: none;
    animation: bellRipple 2.4s ease-out infinite;
}

.reviews-bell-btn.has-pending::after {
    animation-delay: 1.2s;
    /* segunda onda desfasada */
}

.reviews-bell-btn.has-pending .reviews-bell-icon {
    color: #ffffff;
    text-shadow: 0 0 8px rgba(102, 126, 234, 0.6);
}

@keyframes bellVibrateSeq {
    0% {
        transform: rotate(0deg) translateX(0);
    }

    4% {
        transform: rotate(-14deg) translateX(-1px);
    }

    8% {
        transform: rotate(14deg) translateX(1px);
    }

    12% {
        transform: rotate(0deg) translateX(0);
    }

    38% {
        transform: rotate(0deg) translateX(0);
    }

    /* pausa */
    42% {
        transform: rotate(-12deg) translateX(-1px);
    }

    46% {
        transform: rotate(12deg) translateX(1px);
    }

    50% {
        transform: rotate(0deg) translateX(0);
    }

    100% {
        transform: rotate(0deg) translateX(0);
    }

    /* pausa larga */
}

@keyframes bellRipple {
    0% {
        transform: translate(-50%, -50%) scale(0.8);
        opacity: 0.6;
    }

    70% {
        transform: translate(-50%, -50%) scale(1.7);
        opacity: 0;
    }

    100% {
        opacity: 0;
    }
}

/* ===== Reacciones resumen en tarjetas ===== */
.blog-post-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.blog-footer-left {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
}

.reactions-summary {
    display: inline-flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 6px;
    color: #e6e9ff;
    opacity: 0.95;
    margin-top: 0;
    /* Caja redondeada (plana, sin relieve) */
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--glass-border);
    box-shadow: none;
    white-space: nowrap;
    transition: border-color 180ms var(--ease-out), box-shadow 180ms var(--ease-out), background 180ms var(--ease-out);
}

.reactions-summary .reaction-item i {
    color: #a5b4fc;
}

/* Asegurar visibilidad clara de los iconos y separación */
.reactions-summary .reaction-item {
    display: inline-flex;
    align-items: center;
    vertical-align: middle;
    white-space: nowrap;
    gap: 6px;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 8px;
    border: none;
    background: transparent;
    cursor: pointer;
}

.reactions-summary .reaction-item.likes {}

.reactions-summary .reaction-item.dislikes {}

.reactions-summary .reaction-item.comments {}

.reactions-summary:hover {
    border-color: #1e3a8a;
    /* azul marino */
    box-shadow:
        0 0 0 2px rgba(30, 58, 138, 0.35) inset,
        0 0 16px rgba(30, 58, 138, 0.55),
        0 0 6px rgba(59, 130, 246, 0.35);
}

.footer-logo {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    border: 1px solid var(--glass-border);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

/* (Eliminado el contenedor externo de reacciones para integrarlo en la tarjeta) */

.reactions-summary i {
    font-size: 1rem;
    line-height: 1;
    display: inline-block;
    position: relative;
    top: 1px;
}

.reactions-summary .likes i {
    color: #22c55e;
}

.reactions-summary .dislikes i {
    color: #ef4444;
}

.reactions-summary .reaction-item.active {
    filter: brightness(1.2);
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.15);
}

.blog-footer-left {
    margin-top: 4px;
}

/* Ajuste fino de alineación vertical entre pulgares y comentario */
.reactions-summary .reaction-item.likes i,
.reactions-summary .reaction-item.dislikes i {
    top: 1px;
}

.reactions-summary .reaction-item.comments i {
    top: -1px;
}

/* Reducir la separación extra aplicada por utilidades como .ms-3 dentro del resumen */
.reactions-summary .ms-3 {
    margin-left: 8px !important;
}

/* Unificar altura de línea de los contadores para evitar desniveles */
.reactions-summary .likes-number,
.reactions-summary .dislikes-number,
.reactions-summary .comments-number {
    line-height: 1;
    display: inline-block;
}

/* Compactar específicamente en las tarjetas del index */
.blog-post-card .reactions-summary {
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    gap: 10px;
}

.blog-post-card .reactions-summary .reaction-item {
    padding: 0;
    gap: 4px;
    font-weight: 600;
}

.blog-post-card .reactions-summary i {
    font-size: 0.95rem;
}

.blog-post-card .reactions-summary .likes-number,
.blog-post-card .reactions-summary .dislikes-number {
    font-size: 0.9rem;
}

/* User Status Box - Caja de usuario logueado */
.user-status-box {
    position: relative;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    padding: 8px 16px;
    min-width: 200px;
    max-width: 240px;
    cursor: pointer;
    transition: all 0.3s ease;
    overflow: hidden;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.user-status-box:hover {
    border-color: rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.06);
    transform: none;
    box-shadow: none;
}

.user-status-content {
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
    z-index: 2;
}

.user-avatar-container {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid rgba(102, 126, 234, 0.4);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3), 0 2px 6px rgba(102, 126, 234, 0.4);
    transition: all 0.3s ease;
}

.user-status-box:hover .user-avatar-container {
    border-color: rgba(102, 126, 234, 0.7);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4), 0 3px 8px rgba(102, 126, 234, 0.5);
    animation: subtle-shake 0.5s ease-in-out;
}

@keyframes subtle-shake {

    0%,
    100% {
        transform: translate(0, 0) rotate(0deg);
    }

    10% {
        transform: translate(-1px, -1px) rotate(-0.5deg);
    }

    20% {
        transform: translate(1px, 1px) rotate(0.5deg);
    }

    30% {
        transform: translate(-1px, 1px) rotate(-0.5deg);
    }

    40% {
        transform: translate(1px, -1px) rotate(0.5deg);
    }

    50% {
        transform: translate(-1px, -1px) rotate(-0.5deg);
    }

    60% {
        transform: translate(1px, 1px) rotate(0.5deg);
    }

    70% {
        transform: translate(-1px, 1px) rotate(-0.5deg);
    }

    80% {
        transform: translate(1px, -1px) rotate(0.5deg);
    }

    90% {
        transform: translate(-1px, -1px) rotate(-0.5deg);
    }
}

.user-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.user-status-info {
    flex: 1;
    min-width: 0;
}

.user-status-name {
    font-size: 15px;
    font-weight: 600;
    color: #ffffff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 4px;
    line-height: 1.3;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5), 0 1px 2px rgba(0, 0, 0, 0.3);
}

.user-status-privilege {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.75);
    font-weight: 500;
}

.user-status-privilege i {
    color: #667eea;
    font-size: 12px;
}

.user-status-privilege i.fa-crown {
    color: #ffd700;
}

.user-status-glow {
    position: absolute;
    top: 0;
    left: -150%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent 0%,
            rgba(102, 126, 234, 0.4) 20%,
            rgba(118, 75, 162, 0.6) 50%,
            rgba(102, 126, 234, 0.4) 80%,
            transparent 100%);
    transition: left 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
    pointer-events: none;
    box-shadow: 0 0 30px rgba(102, 126, 234, 0.5);
    transform: skewX(-15deg);
}

.user-status-box:hover .user-status-glow {
    left: 150%;
}

.user-status-box:not(:hover) .user-status-glow {
    left: -150%;
    transition: left 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Ajustes para dropdown */
.user-status-box {
    position: relative;
}

.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute !important;
    top: calc(100% + 8px) !important;
    right: 0 !important;
    left: auto !important;
    margin-top: 0 !important;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    background: rgba(15, 23, 42, 0.98);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    padding: 8px 0;
    min-width: 220px;
    display: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px) scale(0.95);
    pointer-events: none;
    /* Transición básica, las animaciones personalizadas tienen prioridad */
    transition: opacity 0.2s ease, visibility 0.2s ease;
    z-index: 1050;
    /* Asegurar que el menú no se corte por overflow del navbar */
    overflow: visible;
}

/* Asegurar que el navbar no corte el menú dropdown */
.navbar-professional,
.navbar-professional .container,
.navbar-professional .navbar-collapse {
    overflow: visible !important;
}

.dropdown.show .dropdown-menu {
    display: block !important;
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
    pointer-events: all;
}

/* También mostrar con hover para mejor experiencia */
.dropdown:hover .dropdown-menu {
    display: block !important;
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
    pointer-events: all;
}

.dropdown-item {
    padding: 10px 20px;
    color: rgba(255, 255, 255, 0.9);
    transition: all 0.2s ease;
    border: none;
    background: transparent;
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
}

.dropdown-item:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    padding-left: 24px;
    text-shadow: 0 0 8px rgba(102, 126, 234, 0.8),
        0 0 12px rgba(118, 75, 162, 0.6),
        0 0 16px rgba(102, 126, 234, 0.4);
}

.dropdown-item i {
    width: 18px;
    text-align: center;
}

.btn-professional {
    padding: 12px 24px;
    border-radius: 12px;
    font-weight: 600;
    font-size: var(--text-sm);
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all var(--timing-normal) var(--ease-out);
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary-professional {
    background: var(--gradient-primary);
    color: white;
    box-shadow: var(--shadow);
}

.btn-primary-professional::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left var(--timing-slow) var(--ease-out);
}

.btn-primary-professional:hover::before {
    left: 100%;
}

.btn-primary-professional:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-xl);
}

.btn-outline-professional {
    background: transparent;
    color: rgba(255, 255, 255, 0.9);
    border: 2px solid var(--glass-border);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

.btn-outline-professional:hover {
    background: var(--glass-bg);
    border-color: rgba(102, 126, 234, 0.5);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* Professional Hero Section */
.hero-professional {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding: 120px 0 80px;
}

.hero-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    width: 100%;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-text {
    z-index: 2;
}

.hero-badge-container {
    position: relative;
    display: inline-block;
    margin-bottom: 2rem;
}

.hero-badge-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 10;
    border-radius: inherit;
    overflow: visible;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    padding: 8px 20px;
    color: rgba(255, 255, 255, 0.9);
    font-size: var(--text-sm);
    font-weight: 500;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    /* animation: float 3s ease-in-out infinite; <--- Removed general application */
    transition: all 0.3s ease;
    position: relative;
    overflow: visible;
    white-space: normal;
    word-wrap: break-word;
    line-height: 1.4;
    z-index: 5;
}

/* Apply float ONLY if no Animate.css file is active */
.hero-badge:not(.animate__animated) {
    animation: float 3s ease-in-out infinite;
}

/* Cuando hay una animación de animate.css activa, la regla anterior ya no aplica. 
   Eliminamos la regla .hero-badge[data-animation]:not([data-animation="none"]) { animation-name: none; } 
   porque su especificidad (0-3-0) bloqueaba a animate.css (0-2-0). 
*/

/* Soporte para delay entre loops de animación */
.hero-badge[data-animation-delay] {
    animation-iteration-count: infinite;
    animation-fill-mode: both;
}

.hero-badge img {
    width: 20px;
    height: 20px;
    object-fit: cover;
    border-radius: 50%;
    margin-right: 6px;
}

/* Soporte para diferentes formas */
.hero-badge.rounded-pill {
    border-radius: 50px;
}

.hero-badge.rounded-lg {
    border-radius: 12px;
}

.hero-badge.rounded-md {
    border-radius: 8px;
}

.hero-badge.rounded-sm {
    border-radius: 4px;
}

.hero-badge.rounded-0 {
    border-radius: 0;
}

/* Formas avanzadas con arcos */
.hero-badge.arc-top {
    border-radius: 0 0 50px 50px;
    border-top: none;
}

.hero-badge.arc-bottom {
    border-radius: 50px 50px 0 0;
    border-bottom: none;
}

.hero-badge.arc-both {
    border-radius: 50px;
    clip-path: polygon(20px 0%, calc(100% - 20px) 0%, 100% 20px, 100% calc(100% - 20px), calc(100% - 20px) 100%, 20px 100%, 0% calc(100% - 20px), 0% 20px);
}

.hero-badge.diamond {
    transform: rotate(45deg);
    border-radius: 8px;
}

.hero-badge.diamond>* {
    transform: rotate(-45deg);
}

.hero-badge.hexagon {
    clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%);
    border-radius: 0;
}

.hero-badge.octagon {
    clip-path: polygon(30% 0%, 70% 0%, 100% 30%, 100% 70%, 70% 100%, 30% 100%, 0% 70%, 0% 30%);
    border-radius: 0;
}

/* Cuando tiene imagen de fondo */
.hero-badge[style*="background-image"] {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Asegurar que el texto sea visible sobre imágenes */
.hero-badge[style*="background-image"]::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 0;
    border-radius: inherit;
}

.hero-badge[style*="background-image"]>* {
    position: relative;
    z-index: 1;
}

/* Asegurar que las partículas se vean correctamente */
.hero-badge-container canvas {
    border-radius: inherit;
}

/* Mejoras para texto multilínea */
.hero-badge {
    text-align: center;
    white-space: pre-line;
    word-break: break-word;
    overflow-wrap: break-word;
}

.hero-badge br {
    display: block;
    content: "";
    margin: 0.2em 0;
    line-height: 1.2;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }
}

.hero-title {
    font-size: var(--text-6xl);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #ffffff 0%, #e0e7ff 50%, #c7d2fe 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: titleGlow 2s ease-in-out infinite alternate;
}

@keyframes titleGlow {
    0% {
        filter: brightness(1);
    }

    100% {
        filter: brightness(1.2);
    }
}

.hero-subtitle {
    font-size: var(--text-xl);
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    margin-bottom: 2rem;
    max-width: 500px;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: flex-start;
}

.hero-visual {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.code-terminal {
    background: rgba(0, 0, 0, 0.8);
    border-radius: 16px;
    padding: 24px;
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-xl);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    font-family: 'JetBrains Mono', monospace;
    font-size: 14px;
    line-height: 1.6;
    color: #e2e8f0;
    position: relative;
    overflow: hidden;
    max-width: 500px;
    width: 100%;
}

.terminal-header {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.terminal-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.dot-red {
    background: #ff5f56;
}

.dot-yellow {
    background: #ffbd2e;
}

.dot-green {
    background: #27ca3f;
}

.code-line {
    opacity: 0;
    animation: typeIn 0.5s ease-out forwards;
}

.code-line:nth-child(1) {
    animation-delay: 0.5s;
}

.code-line:nth-child(2) {
    animation-delay: 1s;
}

.code-line:nth-child(3) {
    animation-delay: 1.5s;
}

.code-line:nth-child(4) {
    animation-delay: 2s;
}

.code-line:nth-child(5) {
    animation-delay: 2.5s;
}

@keyframes typeIn {
    0% {
        opacity: 0;
        transform: translateX(-20px);
    }

    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

.keyword {
    color: #ff79c6;
}

.function {
    color: #50fa7b;
}

.string {
    color: #f1fa8c;
}

.comment {
    color: #6272a4;
}

/* Professional Stats Section */
.stats-professional {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 3rem 2rem;
    margin: 4rem 0;
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    position: relative;
    overflow: hidden;
}

.stats-professional::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--gradient-neon);
    animation: shimmer 2s linear infinite;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(100%);
    }
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.stat-item {
    text-align: center;
    padding: 1rem;
}

.stat-number {
    font-size: var(--text-4xl);
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: block;
    animation: countUp 2s ease-out;
}

.stat-label {
    color: rgba(255, 255, 255, 0.7);
    font-size: var(--text-sm);
    font-weight: 500;
    margin-top: 0.5rem;
}

@keyframes countUp {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Blog Professional Styles */
.blog-professional {
    position: relative;
    background: rgba(0, 0, 0, 0.02);
    padding: 6rem 0;
}

.section-title {
    font-size: var(--text-4xl);
    font-weight: 800;
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: var(--text-lg);
    color: rgba(255, 255, 255, 0.7);
    max-width: 600px;
    margin: 0 auto;
}

.blog-controls {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 2rem;
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
}

.search-container {
    position: relative;
}

.search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.5);
    z-index: 2;
}

.search-input {
    width: 100%;
    background: var(--glass-bg);
    border: 2px solid var(--glass-border);
    border-radius: 12px;
    color: white;
    padding: 16px 16px 16px 48px;
    font-size: var(--text-base);
    transition: all var(--timing-normal) var(--ease-out);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

.search-input:focus {
    outline: none;
    border-color: var(--primary-400);
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.3);
    background: rgba(255, 255, 255, 0.1);
}

.search-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.filter-select {
    width: 100%;
    background: var(--glass-bg);
    border: 2px solid var(--glass-border);
    border-radius: 12px;
    color: white;
    padding: 16px;
    font-size: var(--text-base);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    cursor: pointer;
}

.filter-select:focus {
    outline: none;
    border-color: var(--primary-400);
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.3);
}

.filter-select option {
    background: #1e293b;
    color: white;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(var(--card-min, 350px), 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

/* Ocultar sección extra por defecto; se muestra vía JS cuando hay más tarjetas */
#more-posts-section {
    display: none;
}

/* Grid ancho completo para continuar tarjetas después del sidebar */
.blog-grid-wide {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

@media (min-width: 1400px) {
    .blog-grid-wide {
        grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    }
}

.blog-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    overflow: hidden;
    transition: transform var(--timing-normal) var(--ease-out),
        border-color var(--timing-normal) var(--ease-out),
        box-shadow var(--timing-slow) var(--ease-out);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    position: relative;
    cursor: pointer;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-5px);
    border-color: rgba(102, 126, 234, 0.5);
    box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.45),
        0 12px 28px rgba(0, 0, 0, 0.25),
        0 0 18px rgba(102, 126, 234, 0.35);
}

.blog-media-container {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: linear-gradient(45deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
}

.blog-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.blog-card:hover .blog-image {
    transform: scale(1.02);
}

.youtube-embed {
    position: relative;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.youtube-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.youtube-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: rgba(255, 0, 0, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    transition: all 0.3s ease;
}

.youtube-play-btn:hover {
    transform: translate(-50%, -50%) scale(1.1);
}

.blog-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.blog-meta-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    font-size: 0.8rem;
}

.blog-category {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #ffffff;
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

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

.blog-title {
    color: white;
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.3;
    transition: color 0.3s ease;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-card:hover .blog-title {
    color: #667eea;
}

.blog-text {
    flex-grow: 1;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.blog-text p {
    margin-bottom: 0.75rem;
}

.blog-text .inline-code {
    background: rgba(102, 126, 234, 0.2);
    color: #667eea;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85em;
}

.blog-text .code-block {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 1rem;
    margin: 1rem 0;
    overflow-x: auto;
}

.blog-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1rem;
    margin-top: auto;
}

.blog-author {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 1rem;
}

.author-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

.author-name {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    font-weight: 500;
}

.blog-actions {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    flex-wrap: wrap;
}

.action-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.8);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
}

.action-btn:hover {
    background: rgba(102, 126, 234, 0.2);
    border-color: #667eea;
    color: white;
}

.read-more-btn {
    background: linear-gradient(45deg, #667eea, #764ba2);
    border: none;
    color: white;
    font-weight: 600;
}

.blog-card:hover .blog-image {
    transform: scale(1.08) translateZ(0);
}

.blog-content {
    padding: 1.5rem;
}

.blog-category {
    margin-bottom: 1rem;
}

.blog-category .cat-square {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    background: var(--cat-color, #667eea);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.blog-category .cat-square i {
    font-size: 0.95rem;
    line-height: 1;
}

.blog-category .cat-name {
    opacity: 0.9;
}

/* Category header at top: icon + name, no box; simple separator line */
.blog-post-card .post-category {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 0 10px 0;
    /* solo espacio inferior */
    margin-bottom: 22px;
    /* más alto de separación */
    border-bottom: 1px solid var(--glass-border);
    /* línea simple de separación */
    background: transparent;
    /* sin caja */
    color: #ffffff;
}

.blog-post-card .post-category .cat-square {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--cat-color, #667eea);
    /* fondo asignado */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    /* icono centrado */
    color: #ffffff;
    /* icono en blanco */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35), 0 0 0 2px rgba(255, 255, 255, 0.08);
    /* sombreado del círculo */
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.blog-post-card .post-category .cat-square i {
    font-size: 1.05rem;
    line-height: 1;
}

.blog-post-card .post-category .cat-name {
    opacity: 1;
    font-weight: 700;
    letter-spacing: .2px;
}

.blog-title {
    color: white;
    font-size: var(--text-xl);
    font-weight: 700;
    margin-bottom: 0.5rem;
    line-height: 1.3;
    transition: color var(--timing-normal) var(--ease-out);
}

.blog-card:hover .blog-title {
    color: var(--primary-300);
}

.blog-excerpt {
    color: rgba(255, 255, 255, 0.7);
    font-size: var(--text-sm);
    line-height: 1.6;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    line-clamp: 3;
    overflow: hidden;
}

.blog-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--glass-border);
}

.blog-author {
    display: flex;
    align-items: center;
    gap: 8px;
}

.author-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

.author-info {
    display: flex;
    flex-direction: column;
}

.author-name {
    color: white;
    font-size: var(--text-sm);
    font-weight: 600;
}

.blog-date {
    color: rgba(255, 255, 255, 0.5);
    font-size: var(--text-xs);
}

.blog-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.action-btn {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    font-size: var(--text-sm);
    cursor: pointer;
    transition: all var(--timing-normal) var(--ease-out);
    display: flex;
    align-items: center;
    gap: 4px;
}

.action-btn:hover {
    color: var(--primary-400);
    transform: scale(1.1);
}

.action-btn.liked {
    color: #ff6b6b;
}

.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: var(--primary-400);
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Authentication Modal Styles */
.auth-modal-content {
    background: rgba(15, 23, 42, 0.95) !important;
    border: 1px solid var(--glass-border) !important;
}

.auth-modal-header {
    padding: 2rem 2rem 1rem !important;
}

.auth-modal-icon {
    color: var(--primary-400) !important;
}

.auth-modal-body {
    padding: 1rem 2rem 2rem !important;
}

/* Desactivar efecto de iluminación en botones dentro del modal de auth */
.auth-modal-content .btn-primary-professional::before,
.auth-modal-content .btn-outline-professional::before {
    display: none !important;
}

.auth-modal-content .btn-primary-professional:hover,
.auth-modal-content .btn-outline-professional:hover {
    box-shadow: none !important;
    transform: none !important;
}

.auth-divider {
    height: 1px;
    background: var(--glass-border);
}

.auth-form {
    display: none;
}

.auth-form.active {
    display: block;
}

.auth-link {
    color: var(--primary-400) !important;
}

.glass-input {
    background: var(--glass-bg) !important;
    border: 2px solid var(--glass-border) !important;
    border-radius: 12px !important;
    color: white !important;
    padding: 12px 16px !important;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    transition: all var(--timing-normal) var(--ease-out);
    will-change: transform, box-shadow, border-color;
}

.glass-input:hover {
    border-color: var(--primary-400) !important;
    box-shadow: 0 0 18px rgba(102, 126, 234, 0.35) !important;
    transform: scale(1.015);
}

.glass-input:focus {
    background: rgba(255, 255, 255, 0.1) !important;
    border-color: var(--primary-400) !important;
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.3) !important;
    color: white !important;
}

.glass-input::placeholder {
    color: rgba(255, 255, 255, 0.6) !important;
}

/* Social Login Buttons Professional */
.social-login-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin: 2rem 0;
}

.google-prominent-btn {
    width: 100%;
    justify-content: center;
    background: #fff;
    color: #3c4043;
    font-size: 1.1rem;
    font-weight: 600;
    border: 1px solid #dadce0;
    padding: 12px 24px;
    margin-bottom: 0.5rem;
    position: relative;
    overflow: hidden;
    transition: all 0.2s ease-in-out;
}

.google-prominent-btn:hover {
    background: #f8faff;
    box-shadow: 0 1px 3px rgba(60, 64, 67, 0.3), 0 4px 8px 3px rgba(60, 64, 67, 0.15);
    transform: translateY(-1px);
    color: #202124;
}

.google-prominent-btn i {
    color: #4285f4;
    /* Google Blue */
    font-size: 1.25rem;
}

.google-prominent-btn::before {
    display: none;
    /* Disable the sweep effect for this specific button to keep it clean */
}

.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 16px 20px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: var(--text-sm);
    transition: all var(--timing-normal) var(--ease-out);
    position: relative;
    overflow: hidden;
    border: 2px solid transparent;
}

.social-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left var(--timing-slow) var(--ease-out);
}

.social-btn:hover::before {
    left: 100%;
}

.social-btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.social-google {
    background: #fff;
    color: #333;
    border-color: #ddd;
}

.social-google:hover {
    background: #f8f9fa;
    color: #333;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.social-github {
    background: #24292e;
    color: white;
    border-color: #444;
}

.social-github:hover {
    background: #2f363d;
    color: white;
    box-shadow: 0 10px 30px rgba(36, 41, 46, 0.4);
}

.social-facebook {
    background: #1877f2;
    color: white;
    border-color: #166fe5;
}

.social-facebook:hover {
    background: #166fe5;
    color: white;
    box-shadow: 0 10px 30px rgba(24, 119, 242, 0.4);
}

.social-instagram {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    color: white;
    border-color: #e6683c;
}

.social-instagram:hover {
    filter: brightness(1.1);
    color: white;
    box-shadow: 0 10px 30px rgba(225, 48, 108, 0.4);
}

.social-twitter {
    background: #1da1f2;
    color: white;
    border-color: #1a91da;
}

.social-twitter:hover {
    background: #1a91da;
    color: white;
    box-shadow: 0 10px 30px rgba(29, 161, 242, 0.4);
}

/* Notification Styles moved to toast.css */

/* Responsive Design Professional */
@media (max-width: 1024px) {
    .navbar-container {
        padding: 0 1rem;
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }

    .hero-title {
        font-size: var(--text-5xl);
    }

    .navbar-nav-professional {
        display: none;
    }
}

/* Empty results (index.html): force magnifier icon visible on dark background */
#blog .glass-card .fa-search {
    color: #ffffff !important;
}

/* Blog sidebar search box */
.blog-search-box {
    position: relative;
    transform: translateZ(0);
    transition: transform 200ms var(--ease-out), box-shadow 200ms var(--ease-out), border-color 200ms var(--ease-out);
}

/* Espaciado configurable entre widgets del sidebar */
aside .glass-card+.glass-card {
    margin-top: var(--sidebar-gap, 16px);
}

/* Forzar alineación a la derecha del stack del sidebar y unificar espaciado */
aside.col-lg-4 {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    margin-left: var(--sidebar-left, 0px);
    margin-right: var(--sidebar-right, 0px);
}

aside.col-lg-4 .glass-card {
    margin-top: 0 !important;
    margin-bottom: var(--sidebar-gap, 16px) !important;
}

aside.col-lg-4 .glass-card:last-child {
    margin-bottom: 0 !important;
}

.blog-search-box .form-control {
    background: var(--glass-bg);
    border: 2px solid var(--glass-border);
    color: #fff;
    padding-left: 42px;
    padding-right: 44px;
    /* espacio para el botón X */
    border-radius: 12px;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    transition: border-color 200ms var(--ease-out), box-shadow 200ms var(--ease-out), transform 200ms var(--ease-out);
}

.blog-search-box .form-control::placeholder {
    color: rgba(255, 255, 255, 0.65);
}

.blog-search-box .search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    width: 18px;
    height: 18px;
    transform: translateY(-50%);
    transition: transform 600ms var(--ease-in-out);
    pointer-events: none;
}

/* Botón para limpiar el texto (X) */
.blog-search-box .clear-search {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.10);
    color: #ffffff;
    cursor: pointer;
    transition: background 160ms var(--ease-out), transform 120ms var(--ease-out);
}

.blog-search-box .clear-search:hover {
    background: rgba(255, 255, 255, 0.18);
}

.blog-search-box .clear-search:active {
    transform: translateY(-50%) scale(0.96);
}

.blog-search-box:hover .search-icon,
.blog-search-box:focus-within .search-icon {
    transform: translateY(-50%) rotate(360deg);
}

.blog-search-box:hover,
.blog-search-box:focus-within {
    transform: scale(1.02);
}

.blog-search-box:hover .form-control,
.blog-search-box:focus-within .form-control {
    border-color: var(--primary-400);
    box-shadow: 0 0 20px rgba(102, 126, 234, 0.35);
}

@media (max-width: 768px) {
    .hero-container {
        padding: 0 1rem;
    }

    .hero-title {
        font-size: var(--text-4xl);
    }

    .hero-subtitle {
        font-size: var(--text-lg);
    }

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

    .social-login-grid {
        grid-template-columns: 1fr;
    }

    /* Notification responsive moved to toast.css */

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

    .blog-controls .row {
        gap: 1rem;
    }

    .blog-controls .col-md-6 {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .navbar-container {
        height: 70px;
    }

    .hero-professional {
        padding: 100px 0 60px;
    }

    .hero-title {
        font-size: var(--text-3xl);
    }

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

/* Utility Classes Professional */
.text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.glass-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    box-shadow: var(--shadow);
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s var(--ease-out);
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

.pulse-glow {
    animation: pulseGlow 2s ease-in-out infinite;
}

@keyframes pulseGlow {

    0%,
    100% {
        box-shadow: 0 0 20px rgba(102, 126, 234, 0.3);
    }

    50% {
        box-shadow: 0 0 40px rgba(102, 126, 234, 0.6);
    }
}

/* Enhanced Blog Content Styles */
.blog-media-container {
    position: relative;
    margin-bottom: 1rem;
    border-radius: 12px;
    overflow: hidden;
}

.blog-video {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 12px;
}

.blog-code-snippet {
    background: #1e293b;
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 1rem;
    margin: 1rem 0;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.875rem;
    color: #e2e8f0;
    overflow: hidden;
    position: relative;
}

.blog-code-snippet::before {
    content: attr(data-language);
    position: absolute;
    top: 8px;
    right: 12px;
    background: var(--primary-600);
    color: white;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    text-transform: uppercase;
}

.blog-code-snippet pre {
    margin: 0;
    color: inherit;
    background: none;
    padding: 0;
    border: none;
}

.blog-code-snippet .code-keyword {
    color: #ff79c6;
}

.blog-code-snippet .code-string {
    color: #f1fa8c;
}

.blog-code-snippet .code-comment {
    color: #6272a4;
    font-style: italic;
}

.blog-code-snippet .code-function {
    color: #50fa7b;
}

.blog-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 0.5rem;
    margin: 1rem 0;
}

.blog-gallery img {
    width: 100%;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    transition: transform 0.3s ease;
    cursor: pointer;
}

.blog-gallery img:hover {
    transform: scale(1.05);
}

.blog-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.blog-tag {
    background: rgba(102, 126, 234, 0.2);
    color: var(--primary-300);
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
    border: 1px solid rgba(102, 126, 234, 0.3);
}

/* Professional Footer */
.footer-professional {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    color: white;
    padding: 4rem 0 2rem;
    margin-top: 6rem;
    position: relative;
    overflow: hidden;
}

.footer-professional::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gradient-neon);
    animation: shimmer 3s linear infinite;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-section h4 {
    color: white;
    font-weight: 700;
    margin-bottom: 1.5rem;
    font-size: var(--text-lg);
    position: relative;
}

.footer-section h4::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 50px;
    height: 2px;
    background: var(--gradient-primary);
    border-radius: 1px;
}

.footer-description {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

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

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all var(--timing-normal) var(--ease-out);
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-links a:hover {
    color: var(--primary-300);
    transform: translateX(5px);
}

.footer-social {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.footer-social-link {
    width: 45px;
    height: 45px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all var(--timing-normal) var(--ease-out);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

.footer-social-link:hover {
    background: var(--primary-600);
    color: white;
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.footer-newsletter {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 2rem;
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
}

.footer-newsletter h4 {
    margin-bottom: 1rem;
}

.footer-newsletter p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 1.5rem;
}

.newsletter-form {
    display: flex;
    gap: 0.5rem;
}

.newsletter-input {
    flex: 1;
    background: var(--glass-bg);
    border: 2px solid var(--glass-border);
    border-radius: 10px;
    color: white;
    padding: 12px 16px;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

.newsletter-input:focus {
    outline: none;
    border-color: var(--primary-400);
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.3);
}

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

.newsletter-btn {
    background: var(--gradient-primary);
    border: none;
    color: white;
    padding: 12px 20px;
    border-radius: 10px;
    font-weight: 600;
    transition: all var(--timing-normal) var(--ease-out);
    cursor: pointer;
}

.newsletter-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    text-align: center;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
}

.footer-tech-stack {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.tech-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.875rem;
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .newsletter-form {
        flex-direction: column;
    }

    .footer-tech-stack {
        gap: 1rem;
    }
}

/* ===== CONFIGURACIONES MODAL ===== */
.settings-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    transition: all 0.3s ease;
}

.settings-card:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.settings-card h6 {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 10px;
    margin-bottom: 15px;
}

.settings-card .form-control {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    border-radius: 8px;
}

.settings-card .form-control:focus {
    background: rgba(0, 0, 0, 0.4);
    border-color: #667eea;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
    color: #fff;
}

.settings-card .form-control[readonly] {
    background: rgba(0, 0, 0, 0.2);
    cursor: not-allowed;
}

.settings-card .badge {
    font-size: 0.75rem;
    padding: 5px 10px;
    border-radius: 12px;
}

#settingsModal .modal-content {
    background: rgba(0, 0, 0, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
}

#settingsModal .modal-header,
#settingsModal .modal-footer {
    border-color: rgba(255, 255, 255, 0.1);
}

#settingsModal .btn-close-white {
    filter: brightness(0) invert(1);
}

/* ===== BLOG POSTS STYLES (Single Column Layout) ===== */
.blog-post-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    overflow: hidden;
    transition: transform var(--timing-normal) var(--ease-out),
        border-color var(--timing-normal) var(--ease-out),
        box-shadow var(--timing-slow) var(--ease-out);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    position: relative;
    margin-bottom: 2rem;
    display: flex;
    flex-direction: column;
}

.blog-post-card:hover {
    transform: translateY(-5px);
    border-color: rgba(102, 126, 234, 0.5);
    box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.45),
        0 16px 34px rgba(0, 0, 0, 0.25),
        0 0 20px rgba(102, 126, 234, 0.35);
}

.blog-post-card .blog-media-container {
    position: relative;
    width: 100%;
    height: 300px;
    overflow: hidden;
    background: linear-gradient(45deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
}

.blog-post-card .blog-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 50%;
    transition: transform 0.3s ease, object-position 0.3s ease;
}

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

.blog-post-card .youtube-embed {
    position: relative;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.blog-post-card .youtube-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog-post-card .youtube-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70px;
    height: 70px;
    background: rgba(255, 0, 0, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 28px;
    transition: all 0.3s ease;
}

.blog-post-card .youtube-play-btn:hover {
    transform: translate(-50%, -50%) scale(1.1);
    background: #ff0000;
}

.blog-post-content {
    padding: 2rem;
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* Slice navigation controls (appear on hover) */
.blog-post-card .blog-media-container .slice-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.4);
    background: rgba(0, 0, 0, 0.35);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s ease, background 0.2s ease, border-color 0.2s ease;
    cursor: pointer;
}

.blog-post-card .blog-media-container .slice-prev {
    left: 8px;
}

.blog-post-card .blog-media-container .slice-next {
    right: 8px;
}

.blog-post-card .blog-media-container:hover .slice-nav {
    opacity: 1;
}

.blog-post-card .blog-media-container .slice-nav:hover {
    background: rgba(0, 0, 0, 0.55);
    border-color: rgba(255, 255, 255, 0.6);
}

/* Nueva meta debajo de categoría */
.blog-meta-under {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 6px 0 10px;
}

.blog-meta-date {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
    white-space: nowrap;
}

.blog-post-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.blog-post-header .blog-category {
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

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

.blog-post-title {
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 12px 0 10px;
    line-height: 1.3;
    transition: color 0.3s ease;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.55);
}

.blog-post-card:hover .blog-post-title {
    color: #667eea;
}

.blog-post-excerpt {
    flex-grow: 1;
    color: rgba(255, 255, 255, 0.85);
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 1rem;
}

.blog-post-excerpt p {
    margin-bottom: 1rem;
}

.blog-post-excerpt p:last-child {
    margin-bottom: 0;
}

.blog-post-excerpt h3 {
    color: rgba(255, 255, 255, 0.95);
    font-size: 1.3rem;
    margin: 1.5rem 0 1rem 0;
    font-weight: 600;
}

.blog-post-excerpt ul,
.blog-post-excerpt ol {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.blog-post-excerpt li {
    margin-bottom: 0.5rem;
    color: rgba(255, 255, 255, 0.8);
}

.blog-post-excerpt strong {
    color: #667eea;
    font-weight: 600;
}

.blog-post-excerpt .inline-code {
    background: rgba(102, 126, 234, 0.2);
    color: #667eea;
    padding: 3px 8px;
    border-radius: 6px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9em;
    font-weight: 500;
}

.blog-post-excerpt .code-block {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1.5rem;
    margin: 1.5rem 0;
    overflow-x: auto;
    position: relative;
}

.blog-post-excerpt .code-block code {
    color: #a9b7c6;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
    line-height: 1.6;
}

.blog-post-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1rem;
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.blog-author-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.blog-author-info .author-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(102, 126, 234, 0.3);
}

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

.author-name {
    color: white;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 2px;
}

.author-role {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
}

.blog-post-actions {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    flex-wrap: wrap;
}

.blog-post-actions .action-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.8);
    padding: 8px 16px;
    border-radius: 25px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.blog-post-actions .action-btn:hover {
    background: rgba(102, 126, 234, 0.2);
    border-color: #667eea;
    color: white;
    transform: translateY(-1px);
}

.blog-post-actions .read-more-btn {
    background: linear-gradient(45deg, #667eea, #764ba2);
    border: none;
    color: white;
    font-weight: 600;
}

.blog-post-actions .read-more-btn:hover {
    background: linear-gradient(45deg, #764ba2, #667eea);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.blog-post-actions .like-btn.liked {
    background: rgba(220, 53, 69, 0.2);
    border-color: #dc3545;
    color: #dc3545;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    .blog-post-card .row {
        flex-direction: column;
    }

    .blog-post-card .blog-media-container {
        height: 200px;
    }

    .blog-post-content {
        padding: 1.5rem;
    }

    .blog-post-title {
        font-size: 1.4rem;
    }

    .blog-post-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .blog-post-actions {
        width: 100%;
        justify-content: space-between;
    }
}

/* Calendar Widget Styles */
.calendar-widget {
    background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.1), rgba(var(--secondary-rgb), 0.05));
    border: 1px solid rgba(var(--primary-rgb), 0.2);
}

.calendar-container {
    padding: 0;
}

.calendar-header {
    background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.3), rgba(var(--accent-rgb), 0.2));
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.calendar-header h6 {
    margin: 0;
    color: white;
    font-weight: 600;
    font-size: 1.1rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.calendar-nav-btn {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

.calendar-nav-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(var(--primary-rgb), 0.4);
}

.calendar-nav-btn:active {
    transform: scale(0.95);
}

.calendar-grid {
    font-size: 0.9rem;
}

.calendar-days-header {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 3px;
    margin-bottom: 10px;
    padding: 0 5px;
}

.calendar-day-name {
    text-align: center;
    font-weight: 700;
    color: #ffffff;
    padding: 8px 4px;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: rgba(var(--primary-rgb), 0.1);
    border-radius: 6px;
}

/* Sunday styling: subtle reddish border */
.calendar-days-header .calendar-day-name:nth-child(7) {
    border: 1px solid rgba(220, 53, 69, 0.45);
}

.calendar-days .calendar-day:nth-child(7n) {
    border-color: rgba(220, 53, 69, 0.35);
}

.calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 3px;
    padding: 0 5px;
}

.calendar-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.85rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

/* Festivos nacionales: borde rojizo sutil */
.calendar-day.holiday {
    border-color: rgba(220, 53, 69, 0.6) !important;
}

/* Etiqueta de festivo bajo el número del día (visible en hover) */
.calendar-day .holiday-label {
    position: absolute;
    bottom: 4px;
    left: 50%;
    transform: translate(-50%, 4px);
    max-width: calc(100% - 10px);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: center;
    font-size: 10px;
    line-height: 1.1;
    color: rgba(255, 255, 255, 0.9);
    background: rgba(220, 53, 69, 0.18);
    border: 1px solid rgba(220, 53, 69, 0.45);
    border-radius: 6px;
    padding: 2px 6px;
    opacity: 0;
    transition: opacity 160ms var(--ease-out), transform 160ms var(--ease-out);
    pointer-events: none;
}

.calendar-day.holiday:hover .holiday-label {
    opacity: 1;
    transform: translate(-50%, 0);
}

.calendar-day::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, transparent, rgba(var(--primary-rgb), 0.1));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.calendar-day:hover::before {
    opacity: 1;
}

.calendar-day:hover {
    background: rgba(var(--primary-rgb), 0.25);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(var(--primary-rgb), 0.3);
    color: white;
    border-color: rgba(var(--primary-rgb), 0.4);
}

.calendar-day.empty {
    background: transparent;
    cursor: default;
    border: none;
}

.calendar-day.empty:hover {
    transform: none;
    box-shadow: none;
}

.calendar-day.today {
    background: rgba(102, 126, 234, 0.25) !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    border: 2px solid rgba(102, 126, 234, 0.9) !important;
    box-shadow:
        0 0 0 2px rgba(102, 126, 234, 0.3),
        0 0 20px rgba(102, 126, 234, 0.6),
        0 4px 15px rgba(102, 126, 234, 0.4),
        inset 0 0 20px rgba(102, 126, 234, 0.2) !important;
    position: relative;
    z-index: 5;
    transform: scale(1.02);
}

.calendar-day.today::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.8), rgba(118, 75, 162, 0.8));
    border-radius: inherit;
    z-index: -1;
    opacity: 1;
    animation: todayGlow 2s ease-in-out infinite;
}

@keyframes todayGlow {

    0%,
    100% {
        box-shadow: 0 0 15px rgba(102, 126, 234, 0.6), 0 0 30px rgba(102, 126, 234, 0.4);
    }

    50% {
        box-shadow: 0 0 25px rgba(102, 126, 234, 0.8), 0 0 50px rgba(102, 126, 234, 0.6);
    }
}

.calendar-day.today::after {
    content: 'HOY';
    position: absolute;
    bottom: 2px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 8px;
    font-weight: 800;
    color: rgba(102, 126, 234, 1);
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.8);
    letter-spacing: 0.5px;
    opacity: 0.95;
}

.calendar-day.today:hover {
    transform: scale(1.05) !important;
    box-shadow:
        0 0 0 2px rgba(102, 126, 234, 0.4),
        0 0 30px rgba(102, 126, 234, 0.8),
        0 6px 25px rgba(102, 126, 234, 0.5),
        inset 0 0 25px rgba(102, 126, 234, 0.3) !important;
}

.calendar-day.has-entry {
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.4), rgba(76, 175, 80, 0.2));
    border: 1px solid rgba(76, 175, 80, 0.6);
    color: white;
}

.calendar-day.has-entry::after {
    content: '';
    position: absolute;
    top: 3px;
    right: 3px;
    width: 6px;
    height: 6px;
    background: #4CAF50;
    border-radius: 50%;
    box-shadow: 0 0 6px rgba(76, 175, 80, 0.8);
}

.calendar-day.selected {
    background: linear-gradient(135deg, var(--accent-color), var(--primary-color));
    color: white;
    box-shadow: 0 6px 20px rgba(var(--primary-rgb), 0.6);
    border-color: var(--accent-color);
    transform: scale(1.05);
}

.calendar-day.selected::before {
    opacity: 1;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), transparent);
}

.calendar-actions {
    padding: 0 5px;
}

.calendar-actions .btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.85rem;
    padding: 8px 12px;
    transition: all 0.3s ease;
}

.calendar-actions .btn:hover {
    background: rgba(var(--primary-rgb), 0.3);
    border-color: rgba(var(--primary-rgb), 0.4);
    color: white;
    transform: translateY(-1px);
}


/* Sidebar Widgets */
.sidebar-widget {
    background: rgba(255, 255, 255, 0.05);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 2rem;
    overflow: hidden;
}

.widget-header {
    background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.2), rgba(var(--secondary-rgb), 0.2));
    padding: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.widget-title {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: white;
}

.widget-content {
    padding: 1rem;
}

/* Categories Widget */
.category-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    transition: all 0.3s ease;
    color: rgba(255, 255, 255, 0.8);
}

.category-item:hover {
    background: rgba(var(--primary-rgb), 0.2);
    border-color: rgba(var(--primary-rgb), 0.3);
    color: white;
    transform: translateX(5px);
}

.category-item .badge {
    background: var(--primary-color) !important;
}

/* Burbuja circular para icono de categoría en el widget */
.category-item .cat-bubble {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--cat-color, #667eea);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35), 0 0 0 2px rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.category-item .cat-bubble i {
    font-size: 0.9rem;
    line-height: 1;
}

/* Recent Posts Widget */
.recent-post-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    transition: all 0.3s ease;
    color: rgba(255, 255, 255, 0.8);
}

.recent-post-item:hover {
    background: rgba(var(--accent-rgb), 0.2);
    border-color: rgba(var(--accent-rgb), 0.3);
    color: white;
    transform: translateX(5px);
}

.recent-post-item h6 {
    color: white;
    font-size: 0.9rem;
    margin-bottom: 0.3rem;
}

.recent-post-item small {
    font-size: 0.75rem;
}

/* Newsletter Widget */
.newsletter-widget .btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border: none;
    width: 100%;
    padding: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.newsletter-widget .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(var(--primary-rgb), 0.4);
}

.newsletter-widget .form-control {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    margin-bottom: 1rem;
}

.newsletter-widget .form-control::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.newsletter-widget .form-control:focus {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(var(--primary-rgb), 0.25);
    color: white;
}

/* Navigation Controls */
.navigation-controls {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.nav-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.nav-btn:hover {
    background: rgba(var(--primary-rgb), 0.3);
    transform: scale(1.1);
}

.nav-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.nav-counter {
    background: rgba(255, 255, 255, 0.1);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 25px;
    padding: 8px 15px;
    color: white;
    font-size: 0.85rem;
    text-align: center;
    white-space: nowrap;
}

/* Mobile Responsive */
@media (max-width: 991.98px) {
    .navigation-controls {
        position: static;
        transform: none;
        flex-direction: row;
        justify-content: center;
        margin: 2rem 0;
        order: 1;
    }

    .sidebar-widget {
        margin-bottom: 1.5rem;
    }

    .calendar-day {
        font-size: 0.7rem;
    }

    .calendar-day-name {
        font-size: 0.65rem;
        padding: 6px 2px;
    }
}

@media (max-width: 767.98px) {
    .navigation-controls {
        margin: 1rem 0;
    }

    .nav-btn {
        width: 40px;
        height: 40px;
    }

    .sidebar-widget {
        margin-bottom: 1rem;
    }

    .widget-content {
        padding: 0.75rem;
    }

    .calendar-days-header,
    .calendar-days {
        gap: 1px;
    }
}

/* ===== Calendar Hover Preview ===== */
.calendar-preview {
    position: fixed;
    left: 0;
    top: 0;
    transform: scale(0.98);
    opacity: 0;
    pointer-events: none;
    z-index: 2000;
    transition: opacity 120ms var(--ease-out), transform 160ms var(--ease-out);
}

.calendar-preview.visible {
    opacity: 1;
}

.calendar-preview-inner {
    width: 320px;
    max-width: 80vw;
    background: rgba(17, 24, 39, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.12);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    border-radius: 14px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.05) inset;
    overflow: hidden;
}

.calendar-preview .preview-media {
    position: relative;
    width: 100%;
    height: 180px;
    overflow: hidden;
    background: linear-gradient(45deg, rgba(102, 126, 234, 0.12), rgba(118, 75, 162, 0.12));
}

.calendar-preview .preview-image,
.calendar-preview .preview-youtube img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.calendar-preview .preview-youtube .preview-play {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 54px;
    height: 54px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 0, 0, 0.9);
    color: #fff;
    box-shadow: 0 8px 20px rgba(255, 0, 0, 0.4);
}

.calendar-preview .preview-title {
    display: block;
    padding: 8px 14px 4px;
    margin: 0;
    color: #ffffff;
    font-weight: 700;
    font-size: 0.95rem;
}

.calendar-preview .preview-text {
    padding: 12px 14px;
}

.calendar-preview .preview-text p {
    margin: 0;
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.9rem;
    line-height: 1.5;
}

.calendar-preview .preview-meta {
    padding: 8px 14px 12px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.8rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.calendar-preview .preview-counter {
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
}

/* ===== Calendar Preview Slide (múltiples entradas) ===== */
.calendar-preview-slide {
    position: relative;
    overflow: hidden;
}

.preview-slide-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
    min-height: 180px;
}

.preview-slide-track {
    display: flex;
    width: 100%;
    will-change: transform;
    /* Efecto rápido-frenado: empieza muy rápido y frena suavemente al final */
    transition: transform 0.6s cubic-bezier(0.68, 0, 0.32, 1);
}

.preview-slide-item {
    flex: 0 0 100%;
    width: 100%;
    min-width: 100%;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
}

/* ===== REACCIONES (LIKES/DISLIKES) ===== */
.reactions-group {
    display: flex;
    gap: 8px;
    align-items: center;
}

.reaction-btn {
    border: 2px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.7);
    padding: 6px 14px;
    border-radius: 20px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.reaction-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.reaction-btn.active {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.9), rgba(118, 75, 162, 0.9));
    border-color: rgba(102, 126, 234, 1);
    color: #ffffff;
    box-shadow: 0 0 20px rgba(102, 126, 234, 0.5);
}

.reaction-btn.active[data-tipo="like"] {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.9), rgba(21, 128, 61, 0.9));
    border-color: rgba(34, 197, 94, 1);
    box-shadow: 0 0 20px rgba(34, 197, 94, 0.5);
}

.reaction-btn.active[data-tipo="dislike"] {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.9), rgba(185, 28, 28, 0.9));
    border-color: rgba(239, 68, 68, 1);
    box-shadow: 0 0 20px rgba(239, 68, 68, 0.5);
}

.reaction-btn i {
    font-size: 0.9rem;
    transition: transform 0.2s ease;
}

.reaction-btn:hover i {
    transform: scale(1.1);
}

.reaction-btn.active i {
    animation: reactionPulse 0.4s ease;
}

@keyframes reactionPulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.3) rotate(5deg);
    }

    100% {
        transform: scale(1);
    }
}

/* ===== COMENTARIOS ESTILO REDES SOCIALES ===== */
.comments {
    margin-top: 32px;
}

/* Reducir/eliminar glow en inputs de comentarios */
#comment-form .glass-input:hover,
#comment-form .glass-input:focus,
.comments .glass-input:hover,
.comments .glass-input:focus {
    box-shadow: none !important;
}

.comments h5 {
    color: #ffffff;
    font-weight: 700;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.comments-empty {
    padding: 40px 20px;
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
}

.comments-empty i {
    font-size: 3rem;
    opacity: 0.4;
}

#comment-form {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    padding: 16px;
    margin-bottom: 24px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

#comment-text {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    color: #ffffff;
    padding: 12px 16px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

#comment-text:focus {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(102, 126, 234, 0.3);
    box-shadow: none !important;
    outline: none;
}

#comment-text::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.comment-item {
    display: flex;
    gap: 12px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    margin-bottom: 12px;
    transition: all 0.3s ease;
    animation: commentFadeIn 0.4s ease;
}

/* Separación visual entre comentario padre y réplicas */
.comment-replies {
    margin-left: 22px;
    padding-left: 14px;
    border-left: 2px solid rgba(255, 255, 255, 0.12);
    margin-top: 10px;
    position: relative;
}

.comment-replies.collapsed {
    display: none;
}

.comment-replies-toggle {
    margin: 6px 0 0 0;
}

.comment-replies .comment-item {
    margin-top: 10px;
    position: relative;
}

/* Línea conectora continua (ya apoyada por border-left) + nodo por réplica */
.comment-replies .comment-item::before {
    content: '';
    position: absolute;
    left: -19px;
    /* sobre la línea vertical */
    top: 22px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #667eea;
    /* primary */
    box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.25), 0 0 10px rgba(102, 126, 234, 0.35);
}

/* Niveles profundos: variar ligeramente color del conector y nodo */
.comment-replies .comment-replies {
    border-left-color: rgba(118, 75, 162, 0.25);
}

.comment-replies .comment-replies .comment-item::before {
    background: #764ba2;
    box-shadow: 0 0 0 2px rgba(118, 75, 162, 0.25), 0 0 10px rgba(118, 75, 162, 0.35);
}

.comment-replies .comment-replies .comment-replies {
    border-left-color: rgba(59, 130, 246, 0.25);
}

.comment-replies .comment-replies .comment-replies .comment-item::before {
    background: #3b82f6;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.25), 0 0 10px rgba(59, 130, 246, 0.35);
}

@keyframes commentFadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

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

.comment-item:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.12);
    transform: translateX(4px);
}

.comment-avatar {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid rgba(102, 126, 234, 0.3);
    transition: all 0.3s ease;
}

.comment-item:hover .comment-avatar {
    border-color: rgba(102, 126, 234, 0.6);
    transform: scale(1.05);
}

.comment-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.comment-content {
    flex: 1;
    min-width: 0;
}

.comment-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.comment-author {
    font-weight: 600;
    color: #ffffff;
    font-size: 0.95rem;
}

.comment-date {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
}

.comment-badge {
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

.badge-warning {
    background: rgba(251, 191, 36, 0.2);
    color: #fbbf24;
    border: 1px solid rgba(251, 191, 36, 0.3);
}

.badge-info {
    background: rgba(59, 130, 246, 0.2);
    color: #3b82f6;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.comment-text {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    margin-bottom: 10px;
    word-wrap: break-word;
}

.comment-actions {
    position: absolute;
    top: 10px;
    right: 10px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.85);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px) scale(0.96);
    transition: opacity 160ms var(--ease-out), transform 160ms var(--ease-out), visibility 0s linear 160ms;
    pointer-events: none;
    z-index: 5;
}

.comment-item {
    position: relative;
}

.comment-item:hover .comment-actions,
.comment-item:focus-within .comment-actions {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
    pointer-events: auto;
    transition-delay: 0s;
}

.comment-actions::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.18), rgba(118, 75, 162, 0.12));
    filter: blur(8px);
    z-index: -1;
}

.btn-comment-action {
    will-change: transform, color, background;
}

.btn-comment-action:hover {
    transform: translateY(-1px) scale(1.05);
}

.btn-comment-action:active {
    transform: translateY(0) scale(0.98);
}

/* Reducir tamaño dentro del pill para caber mejor */
.comment-actions .btn-comment-action {
    font-size: 0.8rem;
    padding: 4px 8px;
}

.comment-actions .btn-comment-action i {
    font-size: 0.85rem;
}

.comment-reactions .btn-comment-action {
    padding: 2px 8px;
    border-radius: 8px;
}

.reply-box textarea {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #fff;
}

.reply-box textarea:focus {
    box-shadow: none !important;
    border-color: rgba(102, 126, 234, 0.3);
}

.btn-comment-action {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
    padding: 4px 8px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.btn-comment-action:hover {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.9);
}

.btn-comment-action i {
    font-size: 0.8rem;
}

.btn-approve:hover {
    background: rgba(34, 197, 94, 0.2);
    color: #22c55e;
}

.btn-reject:hover {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
}

#comment-hint {
    margin-top: 8px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
}

/* Bloques de texto personalizados */
.pro-text-block-wrapper {
    margin-bottom: 1.5rem;
}

.pro-text-block {
    background: rgba(15, 23, 42, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    color: #f8fafc;
    font-weight: 600;
    line-height: 1.6;
    padding: 20px;
    box-shadow: 0 25px 60px rgba(2, 6, 23, 0.35);
    transition: all .3s ease;
}

.pro-text-block.pro-text-inline {
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
}

.pro-text-block.animate__animated {
    --animate-duration: 1.1s;
}

.pro-text-block--croquis {
    background: transparent;
    border: 2px dashed rgba(168, 85, 247, 0.8);
    box-shadow: none;
    color: #e6e9ff;
}

/* ===== Color Picker ===== */
.color-picker-container {
    position: relative;
    margin-top: 8px;
}

/* Quitar efecto luz/shimmer en botones Ver publicaciones / Editor (home y navbar) */
.hero-actions .btn-primary-professional::before,
.hero-actions .btn-outline-professional::before,
.nav-actions .btn-primary-professional::before,
.nav-actions .btn-outline-professional::before {
    display: none !important;
}

.hero-actions .btn-primary-professional:hover,
.hero-actions .btn-outline-professional:hover,
.nav-actions .btn-primary-professional:hover,
.nav-actions .btn-outline-professional:hover {
    box-shadow: none !important;
    transform: none !important;
}

/* Hero primary and outline buttons: border glow + slight zoom on hover */
.hero-actions .btn-primary-professional,
.hero-actions .btn-outline-professional {
    transition: transform var(--timing-normal) var(--ease-out), box-shadow var(--timing-normal) var(--ease-out), border-color var(--timing-normal) var(--ease-out);
}

.hero-actions .btn-primary-professional:hover {
    transform: scale(1.03) !important;
    filter: brightness(1.08);
    box-shadow: 0 0 26px rgba(102, 126, 234, 0.55) !important;
}

.hero-actions .btn-outline-professional:hover {
    transform: scale(1.03) !important;
    background: rgba(255, 255, 255, 0.12) !important;
    /* iluminado, no oscuro */
    border-color: rgba(102, 126, 234, 0.7) !important;
    color: #ffffff !important;
    box-shadow: 0 0 26px rgba(102, 126, 234, 0.55) !important;
}

/* Embellecer texto del botón "Ver publicaciones" */
.hero-actions .btn-primary-professional {
    display: inline-flex;
    align-items: center;
    line-height: 1;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.45);
    letter-spacing: 0.2px;
}

.hero-actions .btn-primary-professional i {
    transform: translateY(0.5px);
}

/* Botón circular Añadir Entrada al lado de Editor */
.hero-actions .hero-add-entry {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    position: relative;
}

.hero-actions .hero-add-entry .add-circle {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.08);
    border: 2px solid rgba(255, 255, 255, 0.25);
    color: #ffffff;
    font-weight: 800;
    font-size: 0;
    /* ocultar el carácter '+' del HTML */
    line-height: 0;
    transition: transform 600ms var(--ease-in-out), box-shadow var(--timing-normal) var(--ease-out), border-color var(--timing-normal) var(--ease-out);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    transform-origin: 50% 50%;
    will-change: transform;
    position: relative;
    /* Cruz centrada mediante gradientes de fondo */
    background-image: linear-gradient(#ffffff, #ffffff), linear-gradient(#ffffff, #ffffff);
    background-size: 2px 26px, 26px 2px;
    /* vertical, horizontal */
    background-repeat: no-repeat;
    background-position: center center, center center;
}

.hero-actions .hero-add-entry:hover .add-circle,
.hero-actions .hero-add-entry:focus .add-circle {
    transform: rotate(360deg) scale(1.05);
    border-color: rgba(102, 126, 234, 0.7);
    box-shadow: 0 0 18px rgba(102, 126, 234, 0.45);
}

/* Ondas/pulso invitando a hacer clic */
.hero-actions .hero-add-entry .add-circle::before,
.hero-actions .hero-add-entry .add-circle::after {
    content: '';
    position: absolute;
    inset: -4px;
    /* un poco más grande que el círculo */
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(102, 126, 234, 0.35);
    animation: addCirclePulse 2.2s ease-out infinite;
    pointer-events: none;
}

.hero-actions .hero-add-entry .add-circle::after {
    animation-delay: 1.1s;
    /* onda escalonada */
}

@keyframes addCirclePulse {
    0% {
        box-shadow: 0 0 0 0 rgba(102, 126, 234, 0.35);
        opacity: 1;
    }

    70% {
        box-shadow: 0 0 0 16px rgba(102, 126, 234, 0.0);
        opacity: 0.4;
    }

    100% {
        box-shadow: 0 0 0 24px rgba(102, 126, 234, 0.0);
        opacity: 0;
    }
}

.hero-actions .hero-add-entry:hover .add-circle::before,
.hero-actions .hero-add-entry:hover .add-circle::after {
    animation-duration: 1.6s;
    /* más activo al hover */
}

.hero-actions .hero-add-entry .add-label {
    position: absolute;
    bottom: -36px;
    left: 50%;
    transform: translateX(-50%) translateY(6px);
    white-space: nowrap;
    background: rgba(15, 23, 42, 0.95);
    color: #ffffff;
    font-weight: 600;
    font-size: 12px;
    padding: 6px 10px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 180ms var(--ease-out), transform 180ms var(--ease-out), visibility 0s linear 180ms;
    pointer-events: none;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
}

.hero-actions .hero-add-entry:hover .add-label,
.hero-actions .hero-add-entry:focus .add-label {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
    transition-delay: 0s;
}

/* Mejorar visibilidad del separador en menú user (modo oscuro) */
.dropdown-menu.dropdown-menu-dark .dropdown-divider {
    border-top: 1px solid rgba(255, 255, 255, 0.25) !important;
    opacity: 1 !important;
    margin: 6px 0 !important;
}

.color-picker-scroll {
    overflow-x: auto;
    overflow-y: hidden;
    max-width: 100%;
    padding: 8px 0;
    scrollbar-width: thin;
    scrollbar-color: rgba(102, 126, 234, 0.5) transparent;
}

.color-picker-scroll::-webkit-scrollbar {
    height: 6px;
}

.color-picker-scroll::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
}

.color-picker-scroll::-webkit-scrollbar-thumb {
    background: rgba(102, 126, 234, 0.5);
    border-radius: 3px;
}

.color-picker-scroll::-webkit-scrollbar-thumb:hover {
    background: rgba(102, 126, 234, 0.7);
}

.color-picker-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
    min-width: max-content;
    padding: 4px;
}

.color-picker-item {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 2px solid transparent;
    position: relative;
    flex-shrink: 0;
}

.color-picker-item:hover {
    transform: scale(1.15);
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    z-index: 10;
}

.color-picker-item.selected {
    border-color: #ffffff;
    border-width: 3px;
    box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.5), 0 4px 12px rgba(0, 0, 0, 0.4);
    transform: scale(1.2);
}

.color-picker-item.selected::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-weight: bold;
    font-size: 14px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.selected-color-preview {
    margin-top: 12px;
    border-radius: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* ===== Color Picker Professional Enhanced ===== */
.color-picker-scroll {
    overflow-y: auto !important;
    max-height: 450px !important;
}

/* Evitar compresión del picker en modales/auth: permitir scroll horizontal y respetar ancho de contenido */
.auth-modal-body .color-picker-scroll,
.modal-body .color-picker-scroll {
    overflow-x: auto !important;
}

.auth-modal-body .color-picker-grid,
.modal-body .color-picker-grid {
    min-width: max-content !important;
}

/* Wrapper con efecto hover global */
.color-picker-wrapper {
    position: relative;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.color-picker-wrapper.color-hover-active {
    background: rgba(15, 23, 42, 0.2);
    border-radius: 16px;
    /* Evitar cambios de layout en hover */
    padding: 12px;
    margin: 0;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.color-picker-wrapper.color-hover-active::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--hover-color-rgba-15, rgba(102, 126, 234, 0.12)), var(--hover-color-rgba-8, rgba(102, 126, 234, 0.04)));
    border-radius: 16px;
    pointer-events: none;
    z-index: -1;
}

/* Modal body con efecto hover */
.auth-modal-body.color-hover-active,
.modal-body.color-hover-active {
    background: linear-gradient(135deg,
            rgba(15, 23, 42, 0.98) 0%,
            var(--hover-color-rgba-8, rgba(102, 126, 234, 0.08)) 50%,
            rgba(15, 23, 42, 0.98) 100%) !important;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Desactivar efecto de luz/gradient solo en el modal de edición de perfil */
.edit-profile-modal .auth-modal-body.color-hover-active,
.edit-profile-modal .modal-body.color-hover-active {
    background: transparent !important;
}

.edit-profile-modal .color-picker-wrapper.color-hover-active {
    background: transparent !important;
    border: none !important;
}

.edit-profile-modal .color-picker-wrapper.color-hover-active::before {
    display: none !important;
}

/* Quitar shimmer/hover fuerte de botones dentro del modal Editar Perfil */
.edit-profile-modal .btn-primary-professional::before,
.edit-profile-modal .btn-outline-professional::before {
    display: none !important;
}

.edit-profile-modal .btn-primary-professional:hover,
.edit-profile-modal .btn-outline-professional:hover {
    box-shadow: none !important;
    transform: none !important;
}

/* Categorías de colores */
.color-category-row {
    margin-bottom: 28px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.color-category-row:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.color-category-header {
    margin-bottom: 14px;
    padding-left: 6px;
}

.color-category-title {
    font-size: 15px;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 6px 0;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.color-category-title::before {
    content: '';
    width: 5px;
    height: 18px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 3px;
}

.color-category-desc {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.65);
    margin: 0;
    font-style: italic;
    padding-left: 15px;
}

.color-category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(42px, 1fr));
    gap: 12px;
    padding: 10px 0;
    max-width: 100%;
    grid-auto-rows: 42px;
    /* fija la altura de las filas */
    align-items: center;
    /* centra los items y reduce salto */
}

/* Mejorar estilos de items */
.color-picker-item {
    width: 42px !important;
    height: 42px !important;
    border-radius: 12px !important;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.25) !important;
    overflow: hidden;
    transform-origin: center center;
    will-change: transform;
    contain: layout paint;
    /* aísla el efecto */
}

.color-picker-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.25) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.color-picker-item:hover {
    transform: scale(1.18) translateY(-2px) rotateZ(3deg) !important;
    border-color: rgba(255, 255, 255, 0.9) !important;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4), 0 0 0 4px var(--hover-color, rgba(102, 126, 234, 0.4)) !important;
    z-index: 100 !important;
}

.color-picker-item:hover::before {
    opacity: 1;
}

.color-picker-item.selected {
    border-width: 3px !important;
    box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.5),
        0 10px 25px rgba(0, 0, 0, 0.4),
        0 0 25px var(--hover-color, rgba(102, 126, 234, 0.6)) !important;
    transform: scale(1.2) !important;
    animation: colorPulse 2s ease-in-out infinite;
}

@keyframes colorPulse {

    0%,
    100% {
        box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.5),
            0 10px 25px rgba(0, 0, 0, 0.4),
            0 0 25px var(--hover-color, rgba(102, 126, 234, 0.6));
    }

    50% {
        box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.8),
            0 12px 30px rgba(0, 0, 0, 0.5),
            0 0 35px var(--hover-color, rgba(102, 126, 234, 0.8));
    }
}

.color-picker-item.selected::after {
    font-size: 18px !important;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.9) !important;
}

/* Tooltip con código de color */
.color-tooltip {
    position: fixed;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px) scale(0.9);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    pointer-events: none;
    z-index: 10001;
    background: rgba(15, 23, 42, 0.96);
    -webkit-backdrop-filter: blur(25px);
    backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 14px;
    padding: 14px 18px;
    box-shadow: 0 12px 45px rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    gap: 14px;
    white-space: nowrap;
}

.color-tooltip.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
    animation: tooltipAppear 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes tooltipAppear {
    0% {
        opacity: 0;
        transform: translateY(-15px) scale(0.85);
    }

    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.color-tooltip-preview {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    border: 3px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
    animation: tooltipPreviewPulse 1.5s ease-in-out infinite;
    flex-shrink: 0;
}

@keyframes tooltipPreviewPulse {

    0%,
    100% {
        transform: scale(1) rotateZ(0deg);
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
    }

    50% {
        transform: scale(1.08) rotateZ(5deg);
        box-shadow: 0 7px 20px rgba(0, 0, 0, 0.5);
    }
}

.color-tooltip-code {
    font-family: 'JetBrains Mono', 'Courier New', monospace;
    font-size: 15px;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 1px;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.4);
}

.selected-color-preview:hover {
    transform: scale(1.15);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

/* ===== Icon Picker ===== */
.icon-picker-grid {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    padding: 12px;
}

.icon-picker-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
}

.icon-picker-icons {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(44px, 1fr));
    gap: 8px;
    max-height: 240px;
    overflow-y: auto;
    padding-right: 6px;
    /* espacio para scrollbar */
}

.icon-option {
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.04);
    color: #fff;
}

.icon-option i {
    font-size: 18px;
}

.icon-option .iconify {
    font-size: 18px;
}

.icon-option .icon-label {
    font-family: 'JetBrains Mono', 'Courier New', monospace;
    font-size: 12px;
    font-weight: 700;
    color: #fff;
}

/* Botón X de limpieza para textarea del modal de edición */
.edit-textarea-wrapper {
    position: relative;
}

.edit-textarea-wrapper .clear-text-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 28px;
    height: 28px;
    display: none;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.2);
    color: rgba(255, 255, 255, 0.9);
    cursor: pointer;
}

.edit-textarea-wrapper .clear-text-btn.visible {
    display: inline-flex;
}

.edit-textarea-wrapper .clear-text-btn:hover {
    background: rgba(255, 255, 255, 0.08);
}

.icon-option.active,
.icon-option:hover {
    background: rgba(102, 126, 234, 0.2);
    border-color: rgba(102, 126, 234, 0.6);
}

/* === Paper style for full entry view === */
#post-content.glass,
#post-content {
    background: #ffffff !important;
    color: #111827 !important;
    /* gray-900 */
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08), 0 4px 12px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.06);
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
}

#post-content h1,
#post-content h2,
#post-content h3,
#post-content h4,
#post-content h5,
#post-content h6 {
    color: #0f172a;
    /* slate-900 */
}

#post-content p,
#post-content li,
#post-content ol,
#post-content ul,
#post-content table,
#post-content blockquote {
    color: #111827;
    /* gray-900 */
}

#post-content a {
    color: #1d4ed8;
    /* blue-700 */
    text-decoration: underline;
}

#post-content a:hover {
    color: #1e40af;
}

#post-content code,
#post-content pre {
    background: #f8fafc;
    /* slate-50 */
    color: #0f172a;
    /* slate-900 */
    border: 1px solid #e5e7eb;
    /* gray-200 */
    border-radius: 8px;
}

#post-content pre {
    padding: 12px 14px;
    overflow: auto;
}

#post-content code {
    padding: 2px 6px;
}

#post-content blockquote {
    background: #f9fafb;
    /* gray-50 */
    border-left: 4px solid #e5e7eb;
    /* gray-200 */
    padding: 12px 16px;
    border-radius: 6px;
}

#post-content img {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
    max-width: 100%;
    height: auto;
}

#post-content .drop-cap::first-letter {
    color: #111827;
    /* ensure drop cap stays dark */
}

/* Subtle divider between paragraphs */
#post-content p+p {
    margin-top: 1em;
}

/* =============== Maintenance Overlay =============== */
.maintenance-overlay {
    --maint-color1: #1a73e8;
    --maint-color2: #ff007a;
    --maint-bg-opacity: 0.85;
    --maint-bg: none;
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: rgba(3, 7, 30, var(--maint-bg-opacity)), var(--maint-bg);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
    pointer-events: auto;
    /* Difuminar fuertemente el contenido del fondo para que apenas se lea */
    -webkit-backdrop-filter: blur(14px) saturate(0.85);
    backdrop-filter: blur(14px) saturate(0.85);
}

.maintenance-overlay.demo {
    position: absolute;
    inset: 8px;
    border-radius: 12px;
}

.maintenance-overlay.unlocked {
    /* Cuando el master desbloquea con Ctrl+F12, dejamos pasar los clics pero mantenemos visible el mensaje */
    pointer-events: none;
    /* Hacer la pantalla ~80% legible: menos blur y menos oscurecimiento */
    -webkit-backdrop-filter: blur(1px) saturate(1);
    backdrop-filter: blur(1px) saturate(1);
}

.maintenance-overlay.unlocked::before,
.maintenance-overlay.unlocked::after {
    /* Atenuar efectos decorativos para mejorar legibilidad */
    opacity: 0.10;
}

.maintenance-overlay.modal-on {
    /* Mientras el modal esté abierto, permitir interactuar con el modal por encima */
    pointer-events: none;
}

.maintenance-overlay::before,
.maintenance-overlay::after {
    content: "";
    position: absolute;
    width: 120vmax;
    height: 120vmax;
    background: radial-gradient(circle at 30% 30%, var(--maint-color1), transparent 60%),
        radial-gradient(circle at 70% 70%, var(--maint-color2), transparent 60%);
    opacity: 0.25;
}

.maintenance-overlay::before {
    animation: maint-rotate 28s linear infinite;
}

.maintenance-overlay::after {
    animation: maint-rotate 38s linear reverse infinite;
}

@keyframes maint-rotate {
    from {
        transform: rotate(0deg) scale(1);
    }

    to {
        transform: rotate(360deg) scale(1.1);
    }
}

/* Rotozoom background (tiled, rotating and zooming copies of the image) */
.maintenance-overlay.rz-active {
    background: rgba(3, 7, 30, var(--maint-bg-opacity));
}

.maintenance-overlay.rz-active::before,
.maintenance-overlay.rz-active::after {
    content: "";
    position: absolute;
    inset: -10%;
    background-image: var(--maint-bg);
    background-repeat: repeat;
    background-position: center;
    opacity: 0.28;
    filter: saturate(1.05) brightness(1.05);
}

.maintenance-overlay.rz-active::before {
    animation: rzBgA 22s linear infinite;
    opacity: 0.22;
}

.maintenance-overlay.rz-active::after {
    animation: rzBgB 32s linear reverse infinite;
    opacity: 0.32;
}

.modal-backdrop {
    z-index: 2100 !important;
}

.modal {
    z-index: 2110 !important;
}

/* Modal de acceso master: sin brillos ni gradientes en botones */
#masterUnlockModal .btn-primary-professional,
#masterUnlockModal .btn-outline-professional {
    background: #0d6efd !important;
    border: 1px solid #0d6efd !important;
    box-shadow: none !important;
}

#masterUnlockModal .btn-primary-professional::before,
#masterUnlockModal .btn-outline-professional::before {
    display: none !important;
}

/* Estilo del modal MASTER: borde con luz intensa → menos intensa */
#masterUnlockModal .modal-content {
    position: relative;
    border: 1px solid transparent;
    border-radius: .5rem;
    background:
        linear-gradient(#0f172a, #0f172a) padding-box,
        linear-gradient(135deg, rgba(13, 110, 253, 0.95), rgba(102, 126, 234, 0.45)) border-box;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

/* Inputs: hover/focus reactivo en el modal MASTER */
#masterUnlockModal .form-control {
    background-color: #0b1220;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.12);
    transition: border-color .2s ease, box-shadow .2s ease, transform .12s ease;
}

#masterUnlockModal .form-control::placeholder {
    color: rgba(255, 255, 255, 0.55);
}

#masterUnlockModal .form-control:hover {
    border-color: rgba(255, 255, 255, 0.35);
}

#masterUnlockModal .form-control:focus {
    background-color: #0b1220;
    color: #ffffff;
    border-color: #0d6efd;
    box-shadow: 0 0 0 .25rem rgba(13, 110, 253, 0.25);
}

/* Botón: hover/active/focus reactivo en el modal MASTER */
#masterUnlockModal .btn-primary {
    background-color: #0d6efd;
    border-color: #0d6efd;
    transition: transform .12s ease, box-shadow .2s ease, filter .2s ease;
}

#masterUnlockModal .btn-primary:hover {
    filter: brightness(1.08);
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(13, 110, 253, 0.28), 0 0 0 .25rem rgba(13, 110, 253, 0.18);
}

#masterUnlockModal .btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 4px 14px rgba(13, 110, 253, 0.22);
}

#masterUnlockModal .btn-primary:focus-visible {
    box-shadow: 0 0 0 .25rem rgba(13, 110, 253, 0.35);
}

@keyframes rzBgA {
    0% {
        transform: rotate(0deg) scale(1);
        background-size: 220px 220px;
        background-position: 0% 0%;
    }

    50% {
        transform: rotate(180deg) scale(1.06);
        background-size: 160px 160px;
        background-position: 25% 25%;
    }

    100% {
        transform: rotate(360deg) scale(1);
        background-size: 220px 220px;
        background-position: 0% 0%;
    }
}

@keyframes rzBgB {
    0% {
        transform: rotate(0deg) scale(1);
        background-size: 180px 180px;
        background-position: 100% 0%;
    }

    50% {
        transform: rotate(180deg) scale(1.08);
        background-size: 140px 140px;
        background-position: 75% 50%;
    }

    100% {
        transform: rotate(360deg) scale(1);
        background-size: 180px 180px;
        background-position: 100% 0%;
    }
}

.maintenance-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 24px;
    max-width: 920px;
}

.maintenance-title {
    font-size: clamp(28px, 5vw, 54px);
    margin-bottom: 8px;
    font-weight: 800;
    letter-spacing: 0.5px;
}

.maintenance-message {
    font-size: clamp(16px, 2.2vw, 22px);
    opacity: 0.95;
}

/* Neon effect */
.maintenance-content.neon .maintenance-title {
    text-shadow: 0 0 8px var(--maint-color1), 0 0 18px var(--maint-color2);
    animation: neonPulse 2.4s ease-in-out infinite;
}

@keyframes neonPulse {

    0%,
    100% {
        text-shadow: 0 0 6px var(--maint-color1), 0 0 12px var(--maint-color2);
    }

    50% {
        text-shadow: 0 0 14px var(--maint-color1), 0 0 28px var(--maint-color2);
    }
}

/* Scrolling text */
.maintenance-content.scroll .maintenance-title {
    /* Reemplazar efecto de “luz corriendo” por rebote suave */
    color: #ffffff;
    text-shadow: none;
    display: inline-block;
    animation: bounceY 2.4s ease-in-out infinite;
}

@keyframes bounceY {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }
}

/* Nuevo alias explícito para efecto “bounce” */
.maintenance-content.bounce .maintenance-title {
    display: inline-block;
    animation: bounceY 2.4s ease-in-out infinite;
}

/* Rotozoom-like text motion */
.maintenance-content.rotozoom .maintenance-title {
    animation: rzText 12s linear infinite;
    display: inline-block;
    transform-origin: center center;
}

@keyframes rzText {
    0% {
        transform: rotate(0deg) scale(1);
    }

    50% {
        transform: rotate(180deg) scale(1.06);
    }

    100% {
        transform: rotate(360deg) scale(1);
    }
}

/* ===== Many additional effects (title-focused) ===== */
.maintenance-content.fade .maintenance-title {
    animation: effFade 4s ease-in-out infinite;
}

@keyframes effFade {

    0%,
    100% {
        opacity: .25
    }

    50% {
        opacity: 1
    }
}

.maintenance-content.zoom-in .maintenance-title {
    animation: effZoomIn 3.5s ease-in-out infinite;
}

@keyframes effZoomIn {
    0% {
        transform: scale(.9)
    }

    50% {
        transform: scale(1.08)
    }

    100% {
        transform: scale(.9)
    }
}

.maintenance-content.zoom-out .maintenance-title {
    animation: effZoomOut 3.5s ease-in-out infinite;
}

@keyframes effZoomOut {
    0% {
        transform: scale(1.1)
    }

    50% {
        transform: scale(.92)
    }

    100% {
        transform: scale(1.1)
    }
}

.maintenance-content.zoom-in-out .maintenance-title {
    animation: effZoomInOut 5s ease-in-out infinite;
}

@keyframes effZoomInOut {
    0% {
        transform: scale(.95)
    }

    25% {
        transform: scale(1.05)
    }

    50% {
        transform: scale(.92)
    }

    75% {
        transform: scale(1.06)
    }

    100% {
        transform: scale(.95)
    }
}

.maintenance-content.spiral .maintenance-title {
    animation: effSpiral 6s linear infinite;
    display: inline-block;
}

@keyframes effSpiral {
    0% {
        transform: rotate(0) scale(1)
    }

    50% {
        transform: rotate(180deg) scale(1.08)
    }

    100% {
        transform: rotate(360deg) scale(1)
    }
}

.maintenance-content.spin .maintenance-title {
    animation: effSpin 8s linear infinite;
    display: inline-block;
}

@keyframes effSpin {
    from {
        transform: rotate(0)
    }

    to {
        transform: rotate(360deg)
    }
}

.maintenance-content.float .maintenance-title {
    animation: effFloat 4s ease-in-out infinite;
    display: inline-block;
}

@keyframes effFloat {

    0%,
    100% {
        transform: translateY(0)
    }

    50% {
        transform: translateY(-8px)
    }
}

.maintenance-content.bounce .maintenance-title {
    animation: effBounce 2.2s ease-in-out infinite;
    display: inline-block;
}

@keyframes effBounce {

    0%,
    100% {
        transform: translateY(0)
    }

    50% {
        transform: translateY(-14px)
    }
}

.maintenance-content.flip-x .maintenance-title {
    animation: effFlipX 4s ease-in-out infinite;
    display: inline-block;
    transform-style: preserve-3d;
}

@keyframes effFlipX {
    0% {
        transform: rotateX(0)
    }

    50% {
        transform: rotateX(180deg)
    }

    100% {
        transform: rotateX(360deg)
    }
}

.maintenance-content.flip-y .maintenance-title {
    animation: effFlipY 4s ease-in-out infinite;
    display: inline-block;
    transform-style: preserve-3d;
}

@keyframes effFlipY {
    0% {
        transform: rotateY(0)
    }

    50% {
        transform: rotateY(180deg)
    }

    100% {
        transform: rotateY(360deg)
    }
}

.maintenance-content.slide-up .maintenance-title {
    animation: effSlideUp 3s ease-in-out infinite;
    display: inline-block;
}

@keyframes effSlideUp {
    0% {
        transform: translateY(12px);
        opacity: .5
    }

    50% {
        transform: translateY(-6px);
        opacity: 1
    }

    100% {
        transform: translateY(12px);
        opacity: .5
    }
}

.maintenance-content.slide-down .maintenance-title {
    animation: effSlideDown 3s ease-in-out infinite;
    display: inline-block;
}

@keyframes effSlideDown {
    0% {
        transform: translateY(-12px);
        opacity: .5
    }

    50% {
        transform: translateY(6px);
        opacity: 1
    }

    100% {
        transform: translateY(-12px);
        opacity: .5
    }
}

.maintenance-content.slide-left .maintenance-title {
    animation: effSlideLeft 5s ease-in-out infinite;
    display: inline-block;
}

@keyframes effSlideLeft {
    0% {
        transform: translateX(10px)
    }

    50% {
        transform: translateX(-10px)
    }

    100% {
        transform: translateX(10px)
    }
}

.maintenance-content.slide-right .maintenance-title {
    animation: effSlideRight 5s ease-in-out infinite;
    display: inline-block;
}

@keyframes effSlideRight {
    0% {
        transform: translateX(-10px)
    }

    50% {
        transform: translateX(10px)
    }

    100% {
        transform: translateX(-10px)
    }
}

.maintenance-content.blur-in .maintenance-title {
    animation: effBlurIn 3.2s ease-in-out infinite;
}

@keyframes effBlurIn {
    0% {
        filter: blur(4px);
        opacity: .4
    }

    50% {
        filter: blur(0);
        opacity: 1
    }

    100% {
        filter: blur(4px);
        opacity: .4
    }
}

.maintenance-content.blur-out .maintenance-title {
    animation: effBlurOut 3.2s ease-in-out infinite;
}

@keyframes effBlurOut {
    0% {
        filter: blur(0);
        opacity: 1
    }

    50% {
        filter: blur(5px);
        opacity: .4
    }

    100% {
        filter: blur(0);
        opacity: 1
    }
}

.maintenance-content.glow .maintenance-title {
    animation: effGlow 2.6s ease-in-out infinite;
}

@keyframes effGlow {

    0%,
    100% {
        text-shadow: 0 0 8px var(--maint-color1)
    }

    50% {
        text-shadow: 0 0 18px var(--maint-color2)
    }
}

.maintenance-content.wave .maintenance-title {
    animation: effWave 2.8s ease-in-out infinite;
    display: inline-block;
    transform-origin: bottom center;
}

@keyframes effWave {

    0%,
    100% {
        transform: rotate(-2deg)
    }

    50% {
        transform: rotate(2deg)
    }
}

.maintenance-content.shake .maintenance-title {
    animation: effShake 1.2s ease-in-out infinite;
    display: inline-block;
}

@keyframes effShake {

    0%,
    100% {
        transform: translateX(0)
    }

    25% {
        transform: translateX(-4px)
    }

    75% {
        transform: translateX(4px)
    }
}

.maintenance-content.skew .maintenance-title {
    animation: effSkew 2.8s ease-in-out infinite;
    display: inline-block;
    transform-origin: center;
}

@keyframes effSkew {

    0%,
    100% {
        transform: skewX(0)
    }

    50% {
        transform: skewX(6deg)
    }
}

.maintenance-content.tilt .maintenance-title {
    animation: effTilt 3s ease-in-out infinite;
    display: inline-block;
}

@keyframes effTilt {

    0%,
    100% {
        transform: rotate(-1.5deg)
    }

    50% {
        transform: rotate(1.5deg)
    }
}

.maintenance-content.pan .maintenance-title {
    animation: effPan 8s linear infinite;
    display: inline-block;
}

@keyframes effPan {
    0% {
        transform: translateX(-5%)
    }

    50% {
        transform: translateX(5%)
    }

    100% {
        transform: translateX(-5%)
    }
}

.maintenance-content.pulse .maintenance-title {
    animation: effPulse 2.2s ease-in-out infinite;
}

@keyframes effPulse {

    0%,
    100% {
        transform: scale(1)
    }

    50% {
        transform: scale(1.06)
    }
}

.maintenance-content.rise .maintenance-title {
    animation: effRise 3s ease-in-out infinite;
}

@keyframes effRise {
    0% {
        transform: translateY(10px);
        opacity: .5
    }

    50% {
        transform: translateY(0);
        opacity: 1
    }

    100% {
        transform: translateY(10px);
        opacity: .5
    }
}

.maintenance-content.fall .maintenance-title {
    animation: effFall 3s ease-in-out infinite;
}

@keyframes effFall {
    0% {
        transform: translateY(-10px);
        opacity: .5
    }

    50% {
        transform: translateY(0);
        opacity: 1
    }

    100% {
        transform: translateY(-10px);
        opacity: .5
    }
}

.maintenance-content.swing .maintenance-title {
    animation: effSwing 3s ease-in-out infinite;
    transform-origin: top center;
    display: inline-block;
}

@keyframes effSwing {
    0% {
        transform: rotate(-4deg)
    }

    50% {
        transform: rotate(4deg)
    }

    100% {
        transform: rotate(-4deg)
    }
}

.maintenance-content.rubber .maintenance-title {
    animation: effRubber 2.5s ease-in-out infinite;
    display: inline-block;
}

@keyframes effRubber {
    0% {
        transform: scale(1)
    }

    30% {
        transform: scaleX(1.25) scaleY(0.75)
    }

    40% {
        transform: scaleX(0.75) scaleY(1.25)
    }

    50% {
        transform: scaleX(1.15) scaleY(0.85)
    }

    65% {
        transform: scaleX(.95) scaleY(1.05)
    }

    75% {
        transform: scaleX(1.05) scaleY(.95)
    }

    100% {
        transform: scale(1)
    }
}

.maintenance-content.jelly .maintenance-title {
    animation: effJelly 2.5s ease-in-out infinite;
    display: inline-block;
}

@keyframes effJelly {
    0% {
        transform: scale(1)
    }

    30% {
        transform: scale(1.2, .8)
    }

    40% {
        transform: scale(.8, 1.2)
    }

    50% {
        transform: scale(1.1, .9)
    }

    65% {
        transform: scale(.95, 1.05)
    }

    75% {
        transform: scale(1.02, .98)
    }

    100% {
        transform: scale(1)
    }
}

.maintenance-content.blink .maintenance-title {
    animation: effBlink 1.6s steps(2, jump-none) infinite;
}

@keyframes effBlink {
    50% {
        opacity: .2
    }
}

.maintenance-content.flash .maintenance-title {
    animation: effFlash 1.8s ease-in-out infinite;
}

@keyframes effFlash {

    0%,
    100% {
        opacity: 1
    }

    50% {
        opacity: .35
    }
}

/* ======================================================== */
/* Pagination Styling (Professional)                        */
/* ======================================================== */
#blog-pagination {
    margin-top: 3rem;
    margin-bottom: 3rem;
    position: relative;
    z-index: 10;
    animation: fadeInUpPag 0.6s ease-out backwards;
    animation-delay: 0.2s;
}

#blog-pagination .pagination {
    gap: 10px;
    align-items: center;
    justify-content: center;
}

#blog-pagination .page-item .page-link {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.65);
    border-radius: 12px;
    padding: 0.7rem 1.1rem;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    min-width: 46px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

#blog-pagination .page-item:not(.active):not(.disabled) .page-link:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2), 0 0 0 1px rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.25);
}

#blog-pagination .page-item.active .page-link {
    background: var(--gradient-primary);
    border-color: transparent;
    color: #ffffff;
    box-shadow: 0 8px 25px rgba(118, 75, 162, 0.5);
    transform: scale(1.1);
    z-index: 2;
}

#blog-pagination .page-item.disabled .page-link {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.02);
    color: rgba(255, 255, 255, 0.15);
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

#blog-pagination .page-item:first-child .page-link,
#blog-pagination .page-item:last-child .page-link {
    border-radius: 50%;
    /* Rounded for arrows */
    width: 46px;
    padding: 0;
}

#blog-pagination .page-link span {
    font-size: 1.2em;
    line-height: 1;
    display: block;
    margin-top: -2px;
    /* Visual correction */
}

@keyframes fadeInUpPag {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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