/* WIDGET CATEGORÍAS DESKTOP - VERSIÓN FINAL */
.cat-desktop-widget {
    width: 100%;
    font-family: 'General Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    margin: 0 auto;
    padding: 0;
    box-sizing: border-box;
    background: white;
    min-height: 550px;
}

/* PESTAÑAS - CON SCROLL HORIZONTAL */
.cat-desktop-tabs {
    display: flex;
    justify-content: flex-start;
    gap: 1px;
    padding: 30px 60px 25px;
    margin-bottom: 25px;
    overflow-x: auto;
    white-space: nowrap;
    flex-wrap: nowrap;
    border-bottom: 1px solid #f0f0f0;
    scrollbar-width: none;
    min-height: 40px; /* Altura fija */
}

.cat-desktop-tabs::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
}

/* BOTÓN PESTAÑA */
.cat-desktop-tab {
    padding: 6px 12px;
    background: #ebe7df;
    border: 1px solid #eee;
    color: #000;
    cursor: pointer;
    font-size: 11px;
    font-weight: 400;
    white-space: nowrap;
    flex-shrink: 0;
    transition: all 0.2s ease;
    font-family: 'General Sans', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    -webkit-tap-highlight-color: transparent;
    margin: 0;
    line-height: 1.2;
    min-width: auto;
}

/* HOVER O ACTIVA */
.cat-desktop-tab:hover,
.cat-desktop-tab.active {
    background: #000;
    color: #fff;
    border-color: #000;
}

/* CONTENIDO */
.cat-desktop-content {
    display: none;
    width: 100%;
    position: relative;
}

.cat-desktop-content.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* CONTENEDOR PRINCIPAL */
.cat-desktop-posts-container {
    position: relative;
    width: 100%;
    padding: 0 60px;
    box-sizing: border-box;
    min-height: 400px;
    display: flex;
    align-items: center;
}

/* VENTANA VISIBLE - CONTENEDOR CON OVERFLOW */
.cat-desktop-window {
    width: 100%;
    overflow: hidden;
    position: relative;
}

/* FILA DE POSTS - SE MUEVE HORIZONTALMENTE */
.cat-desktop-posts-row {
    display: flex;
    gap: 30px;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
}

/* POST INDIVIDUAL - ANCHO CONTROLADO POR JS */
.cat-desktop-post {
    flex-shrink: 0;
    text-decoration: none !important;
    color: inherit;
    display: block;
    -webkit-tap-highlight-color: transparent;
    box-sizing: border-box;
}

/* PLACEHOLDER PARA POSTS QUE FALTAN (para mantener 3 siempre) */
.cat-desktop-post-placeholder {
    flex-shrink: 0;
    visibility: hidden;
    pointer-events: none;
    height: 0;
    min-height: 0;
}

/* CONTENEDOR DE POST */
.cat-desktop-post-content-wrapper {
    width: 100%;
    background: transparent;
    overflow: hidden;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
}

/* IMAGEN - FORMATO 4:5 EXACTO */
.cat-desktop-image {
    width: 100%;
    height: 0;
    padding-bottom: 125%; /* 5:4 ratio */
    overflow: hidden;
    background: #f8f8f8;
    position: relative;
    flex-shrink: 0;
    margin-bottom: 12px;
}

.cat-desktop-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.6s ease;
}

.cat-desktop-post:hover .cat-desktop-image img {
    transform: scale(1.03);
}

/* TÍTULO */
.cat-desktop-post-title {
    margin: 0;
    font-size: 13px;
    line-height: 1.4;
    font-weight: 400;
    color: #000;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    text-overflow: ellipsis;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    font-family: 'General Sans', sans-serif;
    text-align: left;
    min-height: 2.6em;
}

/* AUTOR */
.cat-desktop-post-meta {
    margin-top: 6px;
}

.cat-desktop-author {
    font-weight: 400;
    font-size: 10px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    font-family: 'General Sans', sans-serif;
}

/* FLECHAS */
.cat-desktop-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: white;
    border: 1px solid #eee;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 20;
    -webkit-tap-highlight-color: transparent;
    opacity: 0.9;
    transition: all 0.2s ease;
    padding: 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.cat-desktop-nav:hover {
    opacity: 1;
    background: #000;
    border-color: #000;
}

.cat-desktop-nav:hover svg {
    fill: white;
    stroke: white;
}

.cat-desktop-nav svg {
    width: 20px;
    height: 20px;
    fill: #000;
    stroke: #000;
    stroke-width: 1px;
}

.cat-desktop-nav.prev {
    left: 10px;
}

.cat-desktop-nav.next {
    right: 10px;
}

.cat-desktop-nav.disabled {
    opacity: 0.2;
    cursor: not-allowed;
    pointer-events: none;
    background: #f5f5f5;
}

/* DOTS */
.cat-desktop-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: 30px 0 20px;
    margin-top: 10px;
}

.cat-desktop-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #ddd;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cat-desktop-dot.active {
    background: #000;
    transform: scale(1.2);
}

.cat-desktop-dot:hover {
    background: #888;
}

/* MENSAJES */
.cat-desktop-empty-category {
    text-align: center;
    padding: 80px 20px;
    color: #ccc;
    font-size: 13px;
    background: transparent;
    text-transform: uppercase;
    font-family: 'General Sans', sans-serif;
    letter-spacing: 0.8px;
    font-weight: 400;
}

/* NO RESPONSIVE - SOLO DESKTOP */
@media (max-width: 768px) {
    .cat-desktop-widget {
        display: none !important;
    }
}

/* FUENTE */
@import url('https://fonts.googleapis.com/css2?family=General+Sans:wght@400;500;600&display=swap');