/* ========== ESTILOS PARA EL SHORTCODE REDISEÑADO [colabwp_full] ========== */

/* Contenedor principal del shortcode rediseñado - SIN CONTENEDOR */
.colabwp-redesigned-wrapper {
    max-width: 1000px;
    margin: 30px auto;
    background: transparent;
}

/* Secciones generales */
.colabwp-section {
    padding: 40px 20px;
    margin-bottom: 40px;
}

.colabwp-section h3 {
    font-size: 28px;
    color: #2c3e50;
    margin: 0 0 30px 0;
    font-weight: 700;
    position: relative;
    padding-bottom: 15px;
}

.colabwp-section h3:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #d01261, #ff1744);
    border-radius: 2px;
}

/* ========== SECCIÓN PERSONAL ========== */
.colabwp-personal-section {
    background: transparent;
    position: relative;
}

.colabwp-personal-header {
    display: flex;
    align-items: flex-start;
    gap: 40px;
    margin-bottom: 30px;
}

.colabwp-avatar-container {
    flex-shrink: 0;
}

.colabwp-avatar {
    width: 160px;
    height: 160px;
    border-radius: 20px;
    object-fit: cover;
    border: 4px solid #fff;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease;
}

.colabwp-avatar:hover {
    transform: scale(1.05);
}

.colabwp-personal-info {
    flex: 1;
    min-width: 0;
}

.colabwp-name {
    font-size: 32px;
    font-weight: 700;
    color: #2c3e50;
    margin: 0 0 8px 0;
    line-height: 1.2;
}

.colabwp-title {
    font-size: 18px;
    color: #d01261;
    font-weight: 600;
    margin: 0 0 8px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.colabwp-position {
    font-size: 16px;
    color: #7f8c8d;
    margin: 0 0 20px 0;
    line-height: 1.4;
}

/* CONTENEDOR DE REDES SOCIALES Y BADGE - CORREGIDO */
.colabwp-social-and-badge {
    display: flex !important;
    align-items: center !important;
    gap: 20px !important;
    flex-wrap: wrap !important;
    position: static !important; /* Forzar posición estática */
}

/* Redes sociales */
.colabwp-social-links {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.colabwp-social-link {
    font-size: 24px;
    color: #d01261;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
}

.colabwp-social-link:hover {
    transform: scale(1.2);
    color: #ff1744;
}

.colabwp-social-link i {
    color: inherit;
}

/* BADGE - REPOSICIONADO CORRECTAMENTE */
.colabwp-posts-badge {
    background: linear-gradient(135deg, #d01261, #ff1744) !important;
    color: white !important;
    padding: 8px 16px !important;
    border-radius: 25px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    text-transform: lowercase !important;
    box-shadow: 0 4px 15px rgba(208, 18, 97, 0.3) !important;
    white-space: nowrap !important;
    text-decoration: none !important;
    transition: all 0.3s ease !important;
    
    /* FORZAR POSICIÓN ESTÁTICA - ELIMINAR ABSOLUTE */
    position: static !important;
    top: auto !important;
    right: auto !important;
    transform: none !important;
    margin: 0 !important;
    display: inline-block !important;
}

.colabwp-posts-badge:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(208, 18, 97, 0.4) !important;
    text-decoration: none !important;
    color: white !important;
}

/* Scroll suave */
html {
    scroll-behavior: smooth;
}

.colabwp-description {
    background: rgba(208, 18, 97, 0.05);
    padding: 25px;
    border-radius: 12px;
    margin-bottom: 30px;
    border-left: 4px solid #d01261;
}

.colabwp-description p {
    margin: 0;
    font-size: 16px;
    line-height: 1.6;
    color: #555;
    font-style: italic;
}

.colabwp-curriculum h3 {
    margin-bottom: 20px;
}

.colabwp-curriculum-content {
    font-size: 15px;
    line-height: 1.7;
    color: #666;
}

.colabwp-curriculum-content p {
    margin-bottom: 15px;
}

/* ========== SECCIÓN EMPRESA REDISEÑADA - DOS COLUMNAS ========== */
.colabwp-company-section {
    background: #fafbfc;
    border-radius: 16px;
    padding: 30px;
}

/* Mostrar el título "Datos de contacto" */
.colabwp-company-section h3 {
    display: block;
    font-size: 28px;
    color: #2c3e50;
    margin: 0 0 30px 0;
    font-weight: 700;
    position: relative;
    padding-bottom: 15px;
}

.colabwp-company-section h3:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #d01261, #ff1744);
    border-radius: 2px;
}

/* Diseño de dos columnas - DATOS PRIMERA, FOTO SEGUNDA */
.colabwp-company-header {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
    margin-bottom: 0;
}

/* Columna derecha - Foto de empresa (cambiada a order 2) */
.colabwp-company-image {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
    height: 320px;
    order: 2; /* CAMBIO: Foto segunda */
}

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

/* Columna izquierda - Logo y datos (cambiada a order 1) */
.colabwp-company-info-wrapper {
    order: 1; /* CAMBIO: Datos primero */
    display: flex;
    flex-direction: column;
    height: 320px;
}

.colabwp-company-logo {
    margin-bottom: 25px;
    text-align: left;
}

.colabwp-company-logo img {
    width: 150px;
    height: auto;
    max-height: 80px;
    object-fit: contain;
    border-radius: 8px;
    background: #fff;
    padding: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.colabwp-company-info {
    text-align: left;
    flex: 1;
}

.colabwp-company-info h4 {
    font-size: 24px;
    color: #2c3e50;
    margin: 0 0 25px 0;
    font-weight: 700;
}

.colabwp-company-info p {
    margin: 0 0 15px 0;
    font-size: 15px;
    color: #666;
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Iconos de empresa más visibles */
.colabwp-company-info i {
    color: #d01261;
    width: 20px;
    font-size: 16px;
    flex-shrink: 0;
    text-align: center;
}

.colabwp-company-info a {
    color: #d01261;
    text-decoration: none;
    transition: color 0.3s ease;
}

.colabwp-company-info a:hover {
    color: #a50d4d;
    text-decoration: underline;
}

/* ========== SECCIÓN POSTS ========== */
.colabwp-posts-section {
    padding-top: 35px;
}

/* Contenedor de posts con flexbox para ordenar elementos */
.colabwp-posts-container {
    display: flex;
    flex-direction: column;
}

.colabwp-posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 20px; /* Reducido para estar más cerca de la barra */
    order: 1; /* Posts primero */
}

.colabwp-post-item {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid rgba(208, 18, 97, 0.1);
    text-decoration: none;
    color: inherit;
    display: block;
}

.colabwp-post-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(208, 18, 97, 0.15);
    border-color: rgba(208, 18, 97, 0.3);
    text-decoration: none;
    color: inherit;
}

.colabwp-post-image {
    width: 100%;
    height: 160px;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

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

.colabwp-post-item:hover .colabwp-post-image img {
    transform: scale(1.05);
}

.colabwp-post-image.no-image {
    background: linear-gradient(135deg, #d01261, #ff1744);
    color: white;
    font-size: 18px;
    font-weight: 600;
}

.colabwp-post-content {
    padding: 18px;
}

/* Títulos de posts - tamaño exacto 18px desktop */
.colabwp-post-title {
    font-size: 18px; /* EXACTO: 18px en desktop */
    font-weight: 600;
    color: #2c3e50;
    line-height: 1.4;
    margin: 0;
    
    /* Forzar exactamente 2 líneas de altura */
    height: 2.8em; /* 1.4 line-height * 2 lines */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    
    /* Fallback para navegadores que no soporten -webkit-line-clamp */
    max-height: 2.8em;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Barra de progreso DESPUÉS de los posts */
.colabwp-progress-info {
    width: 50%; /* Usar width en lugar de max-width */
    margin: 0 auto 20px auto; /* Centrar horizontalmente */
    padding: 15px 0; /* Padding solo arriba y abajo */
    border-radius: 12px;
    text-align: center;
    font-size: 14px;
    color: #666;
    order: 2; /* Después de los posts */
    box-sizing: border-box; /* Incluir padding en el cálculo del ancho */
}

.colabwp-progress-bar {
    width: 100%;
    height: 6px;
    background: #e9ecef;
    border-radius: 3px;
    margin: 10px auto 0; /* Centrar y añadir margen superior */
    overflow: hidden;
    position: relative; /* Para posicionar correctamente el fill */
}

.colabwp-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #d01261, #ff1744);
    border-radius: 3px;
    transition: width 0.3s ease;
    position: absolute;
    left: 0;
    top: 0;
}

.colabwp-load-more-container {
    text-align: center;
    order: 3; /* Al final */
}

.colabwp-load-more-btn {
    background: linear-gradient(135deg, #d01261, #ff1744);
    color: white;
    border: none;
    padding: 14px 30px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(208, 18, 97, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.colabwp-load-more-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(208, 18, 97, 0.4);
}

.colabwp-load-more-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.colabwp-no-posts {
    text-align: center;
    color: #999;
    font-style: italic;
    padding: 40px 20px;
    background: #f8f9fa;
    border-radius: 12px;
}

/* ========== SECCIÓN CATEGORÍAS (CAMPO DE CONOCIMIENTO) ========== */
.colabwp-categories-section {
    background: #fafbfc;
    border-radius: 16px;
    padding: 30px;
}

.colabwp-categories-section h3 {
    display: block;
    font-size: 28px;
    color: #2c3e50;
    margin: 0 0 20px 0;
    font-weight: 700;
    position: relative;
    padding-bottom: 15px;
}

.colabwp-categories-section h3:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #d01261, #ff1744);
    border-radius: 2px;
}

.colabwp-categories-intro {
    font-size: 16px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 25px;
}

.colabwp-categories-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.colabwp-category-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    height: 120px;
    background: #e9ecef;
    transition: all 0.3s ease;
    cursor: pointer;
}

.colabwp-category-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(208, 18, 97, 0.2);
}

.colabwp-category-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3;
    transition: opacity 0.3s ease;
}

.colabwp-category-item:hover .colabwp-category-image {
    opacity: 0.5;
}

.colabwp-category-name {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    width: 90%;
    color: white;
    font-size: 16px;
    font-weight: 600;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    z-index: 2;
}

/* Overlay oscuro para mejorar legibilidad */
.colabwp-category-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(208, 18, 97, 0.7), rgba(255, 23, 68, 0.7));
    z-index: 1;
}

/* ========== RESPONSIVE DESIGN ========== */
@media (max-width: 768px) {
    .colabwp-redesigned-wrapper {
        margin: 20px 15px;
    }
    
    .colabwp-section {
        padding: 30px 15px;
        margin-bottom: 30px;
    }
    
    .colabwp-section h3 {
        font-size: 24px;
    }
    
    /* Sección personal responsive */
    .colabwp-personal-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 25px;
    }
    
    .colabwp-avatar-container {
        position: static;
    }
    
    .colabwp-avatar {
        width: 140px;
        height: 140px;
    }
    
    .colabwp-name {
        font-size: 26px;
        text-align: center;
    }
    
    /* Redes sociales y badge en mobile - badge debajo */
    .colabwp-social-and-badge {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    
    .colabwp-social-links {
        justify-content: center;
    }
    
    /* Empresa responsive - UNA columna, DATOS PRIMERO */
    .colabwp-company-header {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .colabwp-company-info-wrapper {
        order: 1; /* Datos primero en mobile también */
        height: auto;
        text-align: left;
    }
    
    .colabwp-company-image {
        order: 2; /* Foto segunda en mobile también */
        height: 200px;
    }
    
    .colabwp-company-logo {
        text-align: left;
    }
    
    .colabwp-company-info {
        text-align: left;
    }
    
    .colabwp-company-info p {
        justify-content: flex-start;
    }
    
    .colabwp-company-logo img {
        width: 120px;
    }
    
    .colabwp-company-info h4 {
        font-size: 20px;
    }
    
    .colabwp-company-info p {
        font-size: 14px;
    }
    
    /* Posts grid responsive */
    .colabwp-posts-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .colabwp-post-image {
        height: 140px;
    }
    
    .colabwp-post-content {
        padding: 15px;
    }
    
    /* Títulos de posts en mobile - EXACTO 12px */
    .colabwp-post-title {
        font-size: 12px !important; /* EXACTO: 12px en mobile */
        height: 2.4em; /* Ajustar altura para el nuevo tamaño */
        max-height: 2.4em;
    }
    
    .colabwp-load-more-btn {
        font-size: 14px;
        padding: 12px 25px;
    }

    /* Barra de progreso responsive */
    .colabwp-progress-info {
        width: 80%; /* Más ancho en tablet */
        padding: 12px 0;
    }

    .colabwp-categories-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .colabwp-category-item {
        height: 100px;
    }
    
    .colabwp-category-name {
        font-size: 14px;
    }


}

@media (max-width: 480px) {
    .colabwp-section {
        padding: 25px 10px;
    }
    
    .colabwp-name {
        font-size: 22px;
    }
    
    .colabwp-avatar {
        width: 120px;
        height: 120px;
    }
    
    .colabwp-posts-grid {
        gap: 12px;
    }
    
    .colabwp-post-image {
        height: 120px;
    }
    
    .colabwp-post-content {
        padding: 12px;
    }
    
    /* Títulos de posts en mobile pequeño - mantener 12px */
    .colabwp-post-title {
        font-size: 12px !important; /* EXACTO: 12px en mobile pequeño también */
        height: 2.4em;
        max-height: 2.4em;
    }
    
    .colabwp-company-image {
        height: 180px;
    }

    /* Barra de progreso en móvil pequeño */
    .colabwp-progress-info {
        width: 100%; /* Ancho completo en móvil */
        padding: 10px 15px; /* Padding lateral en móvil */
        font-size: 13px;
    }

    .colabwp-categories-section {
        padding: 25px 15px;
    }
    
    .colabwp-categories-intro {
        font-size: 14px;
    }
}

/* ========== ANIMACIONES ========== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.colabwp-post-item {
    animation: fadeInUp 0.4s ease forwards;
}

.colabwp-post-item:nth-child(1) { animation-delay: 0.1s; }
.colabwp-post-item:nth-child(2) { animation-delay: 0.2s; }
.colabwp-post-item:nth-child(3) { animation-delay: 0.3s; }
.colabwp-post-item:nth-child(4) { animation-delay: 0.1s; }
.colabwp-post-item:nth-child(5) { animation-delay: 0.2s; }
.colabwp-post-item:nth-child(6) { animation-delay: 0.3s; }

/* ========== ESTILOS ORIGINALES (mantenidos para compatibilidad) ========== */

/* Contenedor principal que engloba la ficha */
.colabwp-ficha-wrapper {
    position: relative; /* Para permitir que la etiqueta se posicione sobre la ficha */
    padding-top: 10px;
}

/* Etiqueta sobre la ficha - MISMO COLOR QUE DISTINTIVO */
.colabwp-etiqueta {
    position: absolute;
    top: 15px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #d01261, #ff1744); /* MISMO COLOR QUE DISTINTIVO */
    color: #fff;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: bold;
    box-shadow: 0 4px 15px rgba(208, 18, 97, 0.3); /* MISMA SOMBRA QUE DISTINTIVO */
    z-index: 10;
}

/* Estilos de la ficha de colaborador */
.colabwp-ficha {
    background-color: #fff;
    border: 1px solid #ddd;
    padding: 20px;
    border-radius: 8px;
    display: flex;
    flex-direction: column; /* CAMBIO A COLUMNA PARA CONTROLAR MEJOR */
    max-width: 700px;
    margin: 20px auto;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    position: relative;
}

/* SECCIÓN SUPERIOR: Foto + Info */
.colabwp-ficha-superior {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-bottom: 15px;
}

/* Imagen de perfil */
.colabwp-foto-perfil img {
    border-radius: 50%;
    width: 120px;
    height: 120px;
    object-fit: cover;
    margin-right: 30px; /* Ajuste de espacio para desktop */
}

/* Información de texto a la derecha de la imagen */
.colabwp-info {
    flex-grow: 1;
    text-align: left;
    margin-left: 30px; /* Ajuste del espacio entre la imagen y el texto */
}

.colabwp-nombre h3 {
    margin: 0;
    font-size: 22px;
    color: #333;
}

.colabwp-nombre-texto{
    margin: 0;
    font-size: 22px;
    font-weight: bolder;
    color: #333;
}

/* Posición y empresa por separado - ACTUALIZADO */
.colabwp-titulacion,
.colabwp-posicion,
.colabwp-empresa {
    font-size: 14px;
    color: #666;
    margin: 5px 0;
}

.colabwp-empresa {
    font-weight: 600;
    color: #d01261;
}

/* CONTENEDOR PARA REDES Y DISTINTIVO - EN LA MISMA LÍNEA */
.colabwp-redes-colaboradores-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-top: 15px;
}

/* Redes sociales */
.colabwp-redes-sociales {
    display: flex;
    justify-content: flex-start;
    flex-wrap: wrap;
}

.colabwp-redes-sociales a {
    font-size: 20px;
    color: #666;
    margin-right: 15px;
    text-decoration: none;
}

.colabwp-redes-sociales a:hover {
    color: #000;
}

/* Distintivo "Colaboradores del blog druni" - ALINEADO A LA DERECHA */
.colabwp-distintivo-colaboradores {
    margin-left: auto; /* Empuja el elemento a la derecha */
}

.colabwp-distintivo-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent; /* SIN FONDO */
    color: #666; 
    padding: 0; /* SIN PADDING */
    border-radius: 0; /* SIN BORDER RADIUS */
    text-decoration: none;
    font-size: 14px; /* TAMAÑO NORMAL */
    font-weight: 600;
    text-transform: none; /* SIN UPPERCASE */
    letter-spacing: normal; /* SIN LETTER SPACING */
    box-shadow: none; /* SIN SOMBRA */
    transition: color 0.3s ease; /* SOLO TRANSICIÓN DE COLOR */
}

.colabwp-distintivo-link:hover {
    transform: none; /* SIN TRANSFORM */
    box-shadow: none; /* SIN SOMBRA */
    text-decoration: none; /* SOLO UNDERLINE EN HOVER */
    color: #000; /* COLOR MÁS OSCURO EN HOVER */
}

.colabwp-distintivo-link i {
    font-size: 14px;
    color: #666; /* ICONO ROSA */
}

/* Logo de la empresa - TAMAÑO AUMENTADO PARA DESKTOP */
.colabwp-logo-empresa {
    position: absolute;
    top: 40px;
    right: 20px;
    z-index: 5;
}

.colabwp-logo-empresa img {
    max-width: 160px; /* AUMENTADO DE 120px A 150px */
    max-height: 200px; /* AUMENTADO DE 60px A 75px */
    object-fit: contain;
    display: block;
    /* SIN background, padding, border-radius, box-shadow en desktop */
}

/* Logo para mobile - OCULTO EN DESKTOP */
.colabwp-logo-empresa-mobile {
    display: none; /* Oculto en desktop */
}

.colabwp-descripcion {
    font-size: 14px;
    color: #666;
    width: 100%;
    word-wrap: break-word; /* Rompe palabras largas si es necesario */
    overflow-wrap: break-word; /* Asegura que las palabras largas se ajusten */
    white-space: normal; /* Asegura que el texto haga saltos de línea */
}

/* ----------------------- Estilos para mobile ----------------------- */
@media (max-width: 768px) {
    .colabwp-ficha {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    /* CAMBIO IMPORTANTE: Forzar columna única en móvil */
    .colabwp-ficha-superior {
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        width: 100%;
        margin-top: 15px;
    }

    /* OCULTAR LOGO EN SU POSICIÓN DESKTOP */
    .colabwp-logo-empresa {
        display: none !important;
    }

    /* MOSTRAR LOGO EN MOBILE DESPUÉS DEL NOMBRE DE LA EMPRESA */
    .colabwp-logo-empresa-mobile {
        display: block;
        margin-top: 10px;
        text-align: center;
    }

    .colabwp-logo-empresa-mobile img {
        max-width: 150px;
        max-height: 100px;
        object-fit: contain;
        /* SIN background, padding, border-radius, box-shadow en mobile */
    }
    
    /* Foto de perfil centrada y sin margen derecho */
    .colabwp-foto-perfil {
        margin: 0 auto !important;
        display: block !important;
    }

    .colabwp-foto-perfil img {
        margin-right: 0 !important;
        margin-bottom: 20px;
        margin-left: auto;
        margin-right: auto;
        display: block;
    }

    .colabwp-info {
        margin-left: 0 !important;
        text-align: center;
        width: 100%;
    }

    .colabwp-nombre h3 {
        margin-top: 15px;
    }

    .colabwp-nombre-texto{
        margin-top: 15px;
    }

    /* CONTENEDOR DE REDES Y DISTINTIVO EN MOBILE */
    .colabwp-redes-colaboradores-container {
        flex-direction: column;
        gap: 5px;
    }
    
    .colabwp-distintivo-colaboradores {
        margin-left: 0;
        margin-top: 10px;
    }
    
    .colabwp-distintivo-link {
        font-size: 13px;
        padding: 0;
    }

    .colabwp-redes-sociales {
        justify-content: center;
        margin-top: 5px;
    }

    /* Estilos para la etiqueta en móviles */
    .colabwp-etiqueta {
        font-size: 12px;
        padding: 3px 15px;
        top: 17px;
        white-space: nowrap;
    }

    .colabwp-descripcion {
        width: 100%;
        word-wrap: break-word;
        overflow-wrap: break-word;
        white-space: normal;
    }
}

/* ------------------------ Estilos del shortcode full ------------------------ */
.colabwp-full .colabwp-perfil {
    padding: 20px;
    max-width: 600px;
    margin: 20px auto;
}

.colabwp-full .colabwp-header {
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    margin-bottom: 20px;
}

.colabwp-full .colabwp-foto-perfil {
    border-radius: 12px;
    width: 180px;
    height: 240px;
    object-fit: cover;
    margin-right: 20px;
}

.colabwp-full .colabwp-texto {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    align-self: flex-end;
}

.colabwp-full .colabwp-header h2 {
    margin: 0;
    font-size: 22px;
    font-weight: bold;
    color: #333;
}

.colabwp-full .colabwp-titulacion,
.colabwp-full .colabwp-posicion {
    font-size: 14px;
    color: #666;
    margin-top: 5px;
}

.colabwp-full .colabwp-redes-sociales {
    display: flex;
    justify-content: flex-start;
    width: 100%;
    margin-left: 0;
}

.colabwp-full .colabwp-redes-sociales a {
    font-size: 20px;
    color: #666;
    margin-right: 15px;
    text-decoration: none;
}

.colabwp-full .colabwp-redes-sociales a:hover {
    color: #000;
}

/* Líneas divisorias entre secciones */
.colabwp-full .separador {
    border-bottom: 1px solid #ddd;
    margin: 20px 0;
}

/* Sección de empresa */
.colabwp-full .colabwp-empresa {
    margin-top: 20px;
}

.colabwp-full .colabwp-logo-empresa {
    max-width: 150px;
    margin-bottom: 10px;
}

.colabwp-full .colabwp-empresa p {
    margin: 5px 0;
    font-size: 14px;
}

/* Imagen de la empresa */
.colabwp-full .colabwp-foto-empresa {
    width: 100%;
    height: auto;
    margin-top: 20px;
    border-radius: 8px;
}

.colabwp-full .colabwp-foto-empresa img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

/* Sección de posts */
.colabwp-full .colabwp-posts {
    margin-top: 20px;
}

.colabwp-full .colabwp-posts li {
    margin-bottom: 5px;
}

.colabwp-full .colabwp-posts li a {
    color: #0073aa;
    text-decoration: none;
}

.colabwp-full .colabwp-posts li a:hover {
    text-decoration: underline;
}

/* Sección de Curriculum */
.colabwp-full .colabwp-curriculum h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: #333;
}

.colabwp-full .colabwp-curriculum {
    font-size: 14px;
    color: #666;
}

/* Separadores entre secciones */
.colabwp-full .separador {
    border-bottom: 1px solid #ddd;
    margin: 20px 0;
}

/* Estilo base para los enlaces de los posts */
.colabwp-full .colabwp-posts li {
    display: inline-block;
    margin: 5px;
}

.colabwp-full .colabwp-posts li a {
    display: inline-block;
    padding: 10px 15px;
    border: 2px solid #d01261; /* Color del borde */
    border-radius: 20px; /* Esquinas redondeadas */
    font-size: 14px;
    color: #d01261; /* Color del texto */
    text-decoration: none;
    transition: all 0.3s ease-in-out;
}

/* Hover con sombra */
.colabwp-full .colabwp-posts li a:hover {
    box-shadow: 0 4px 15px rgba(208, 18, 97, 0.5);
    background-color: rgba(208, 18, 97, 0.1);
    color: #d01261;
}

/* Contenedor principal de la lista de colaboradores (DISEÑO ORIGINAL) */
.colabwp-lista {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.colabwp-item {
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 20px;
    background-color: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s ease;
    text-align: center;
}

.colabwp-item:hover {
    box-shadow: 0 4px 15px rgba(208, 18, 97, 0.2);
}

/* Estilo para la imagen de perfil */
.colabwp-foto-perfil {
    border-radius: 50%;
    width: 120px; /* Tamaño igual de ancho */
    height: 120px; /* Tamaño igual de alto */
    object-fit: cover;
    margin-bottom: 15px;
    display: inline-block;
    
}

/* Estilo para el nombre enlazado */
.colabwp-item h3 a {
    color: #d01261;
    text-decoration: none;
    font-size: 20px;
    font-weight: bold;
    transition: color 0.3s ease;
}

.colabwp-item h3 a:hover {
    color: #000;
}

/* Estilos responsivos para móviles */
@media (max-width: 768px) {
    .colabwp-lista {
        grid-template-columns: 1fr;
    }

    /* Redes sociales en una nueva línea debajo de la imagen en mobile */
    .colabwp-full .colabwp-redes-sociales {
        justify-content: center;
        width: 100%;
        margin-top: 20px; /* Espacio entre la foto y las redes sociales */
        display: flex;
        text-align: center;
        flex-wrap: wrap; /* Permitir que las redes sociales ocupen todo el ancho */
        order: 1; /* Asegura que las redes sociales vayan debajo de la imagen */
    }
}

/* ======================== SHORTCODE MEJORADO colabwp_all - CORREGIDO ======================== */

/* Contenedor principal de la lista mejorada */
.colabwp-lista-mejorada {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    padding: 20px 0;
    max-width: 1200px;
    margin: 0 auto;
}

/* Card individual del colaborador */
.colabwp-card {
    position: relative;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    border: 1px solid rgba(208, 18, 97, 0.1);
}

.colabwp-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(208, 18, 97, 0.15);
    border-color: rgba(208, 18, 97, 0.3);
}

/* Link que envuelve toda la card */
.colabwp-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
    height: 100%;
}

.colabwp-card-link:hover {
    text-decoration: none;
    color: inherit;
}

/* Badge con número de posts - CORREGIDO */
.colabwp-card-posts-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(135deg, #d01261, #ff1744);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(208, 18, 97, 0.3);
    text-transform: lowercase;
}

/* Contenedor de la imagen */
.colabwp-card-image {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.colabwp-card .colabwp-foto-perfil {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid white;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease;
}

.colabwp-card:hover .colabwp-foto-perfil {
    transform: scale(1.05);
}

/* Contenido de la card */
.colabwp-card-content {
    padding: 25px 20px 20px;
    text-align: center;
}

/* Nombre del colaborador */
.colabwp-card-name {
    font-size: 20px;
    font-weight: 700;
    color: #2c3e50;
    margin: 0 0 8px 0;
    line-height: 1.3;
    transition: color 0.3s ease;
}

.colabwp-card:hover .colabwp-card-name {
    color: #d01261;
}

/* Título/Titulación */
.colabwp-card-title {
    font-size: 14px;
    color: #d01261;
    font-weight: 600;
    margin: 0 0 6px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ÁREA DE CONOCIMIENTO - NUEVA SECCIÓN */
.colabwp-card-expertise {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 12px;
    min-height: 30px; /* Para mantener espacio consistente incluso sin tags */
    justify-content: center; /* Centrar las categorías */
    align-items: center; /* Centrar verticalmente cuando no hay tags */
}

.colabwp-expertise-tag {
    display: inline-block;
    padding: 4px 10px;
    background: rgba(208, 18, 97, 0.08);
    color: #d01261;
    border: 1px solid rgba(208, 18, 97, 0.15);
    border-radius: 15px;
    font-size: 11px;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.colabwp-card:hover .colabwp-expertise-tag {
    background: rgba(208, 18, 97, 0.12);
    border-color: rgba(208, 18, 97, 0.25);
}

.colabwp-expertise-more {
    display: inline-block;
    padding: 4px 10px;
    background: #f0f0f0;
    color: #666;
    border: 1px solid #e0e0e0;
    border-radius: 15px;
    font-size: 11px;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
}

/* Por defecto, ocultar el indicador móvil en desktop */
.colabwp-mobile-indicator {
    display: none !important;
}
/* Título/Titulación */
.colabwp-card-title {
    font-size: 14px;
    color: #d01261;
    font-weight: 600;
    margin: 0 0 6px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}


/* Posición - NUEVO ESTILO SEPARADO */
.colabwp-card-position {
    font-size: 14px;
    color: #7f8c8d;
    margin: 0 0 4px 0;
    line-height: 1.4;
    font-weight: 500;
}

/* Empresa - ESTILO SEPARADO (sin "|") */
.colabwp-card-company {
    font-size: 14px;
    color: #95a5a6;
    margin: 0 0 12px 0;
    line-height: 1.4;
    font-style: italic;
}

/* Descripción corta */
.colabwp-card-description {
    font-size: 13px;
    color: #95a5a6;
    line-height: 1.5;
    margin: 0;
    max-height: 40px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* Efectos de hover adicionales */
.colabwp-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #d01261, #ff1744, #d01261);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.colabwp-card:hover::before {
    transform: scaleX(1);
}

/* ========== FILTRO DE CATEGORÍAS PARA SHORTCODE ALL ========== */
/* Wrapper para alinear el filtro con las cards */
.colabwp-filter-wrapper {
    max-width: 1200px;
    margin: 0 auto 40px auto;
    padding: 0 0px;
}

.colabwp-filter-container {
    padding: 30px;
    background: #f8f9fa;
    border-radius: 16px;
    border: 1px solid #e9ecef;
}

.colabwp-filter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 15px;
}

.colabwp-filter-title {
    margin: 0;
    font-size: 22px;
    color: #2c3e50;
    font-weight: 600;
}

.colabwp-filter-reset {
    background: transparent;
    color: #d01261;
    border: 2px solid #d01261;
    padding: 8px 20px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.colabwp-filter-reset:hover {
    background: #d01261;
    color: white;
}

.colabwp-filter-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.colabwp-filter-tag {
    display: inline-block;
    padding: 10px 20px;
    background: white;
    color: #666;
    border: 2px solid #e9ecef;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

/* Ocultar filtros extras por defecto */
.colabwp-filter-hidden {
    display: none;
}

.colabwp-filter-tag:hover {
    border-color: #d01261;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(208, 18, 97, 0.15);
    background: linear-gradient(135deg, #d01261, #ff1744);
}

.colabwp-filter-tag.active {
    background: linear-gradient(135deg, #d01261, #ff1744);
    color: white;
    border-color: transparent;
    box-shadow: 0 4px 15px rgba(208, 18, 97, 0.3);
}

.colabwp-filter-tag.active:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(208, 18, 97, 0.4);
}

/* Botón mostrar más */
.colabwp-filter-more {
    display: inline-block;
    padding: 10px 20px;
    background: #f0f0f0;
    color: #666;
    border: 2px solid #e0e0e0;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.colabwp-filter-more:hover {
    background: #e0e0e0;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Mensaje de no resultados */
.colabwp-no-results {
    text-align: center;
    padding: 60px 20px;
    background: #f8f9fa;
    border-radius: 16px;
    margin-top: 40px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.colabwp-no-results p {
    margin: 0;
    font-size: 18px;
    color: #666;
}

/* Responsive para tablets */
@media (max-width: 768px) {
    .colabwp-lista-mejorada {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 20px;
        padding: 15px;
    }
    
    .colabwp-card-image {
        height: 180px;
    }
    
    .colabwp-card .colabwp-foto-perfil {
        width: 100px;
        height: 100px;
    }
    
    .colabwp-card-content {
        padding: 20px 15px 15px;
    }
    
    .colabwp-card-name {
        font-size: 18px;
    }

    /* Ajustar tamaño de tags en tablet */
    .colabwp-expertise-tag,
    .colabwp-expertise-more {
        font-size: 10px;
        padding: 3px 8px;
    }

     .colabwp-filter-wrapper {
        padding: 0 15px;
        margin-bottom: 30px;
    }
    
    .colabwp-filter-container {
        padding: 20px;
    }
    
    .colabwp-filter-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .colabwp-filter-title {
        font-size: 18px;
    }
    
    .colabwp-filter-tags {
        gap: 8px;
    }
    
    .colabwp-filter-tag,
    .colabwp-filter-more {
        padding: 8px 16px;
        font-size: 13px;
    }
    
    .colabwp-filter-reset {
        padding: 6px 16px;
        font-size: 13px;
        width: 100%;
        text-align: center;
    }
}

/* Responsive para móviles */
@media (max-width: 480px) {
    .colabwp-lista-mejorada {
        grid-template-columns: 1fr;
        gap: 15px;
        padding: 10px;
    }
    
    .colabwp-card-posts-badge {
        top: 10px;
        right: 10px;
        padding: 4px 10px;
        font-size: 11px;
    }

    /* Ajustar área de expertise en móvil */
    .colabwp-card-expertise {
        gap: 4px;
        margin-bottom: 10px;
        min-height: 28px; /* Ajustar altura mínima en móvil */
    }
    
    .colabwp-expertise-tag,
    .colabwp-expertise-more {
        font-size: 9px;
        padding: 3px 6px;
    }
    
    /* OCULTAR EL TERCER TAG EN MÓVIL */
    .colabwp-expertise-tag.colabwp-third-tag {
        display: none !important;
    }
    
    /* OCULTAR EL INDICADOR DE DESKTOP */
    .colabwp-desktop-indicator {
        display: none !important;
    }
    
    /* MOSTRAR EL INDICADOR DE MÓVIL */
    .colabwp-mobile-indicator {
        display: inline-block !important;
    }

    .colabwp-filter-wrapper {
        padding: 0 10px;
    }
    
    .colabwp-filter-container {
        padding: 15px;
    }
    
    .colabwp-filter-tags {
        gap: 6px;
    }
    
    .colabwp-filter-tag,
    .colabwp-filter-more {
        padding: 6px 12px;
        font-size: 12px;
    }
}

/* Animación de entrada para las cards */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.colabwp-card {
    animation: fadeInUp 0.6s ease forwards;
}

/* Retraso en la animación para crear efecto cascada */
.colabwp-card:nth-child(1) { animation-delay: 0.1s; }
.colabwp-card:nth-child(2) { animation-delay: 0.2s; }
.colabwp-card:nth-child(3) { animation-delay: 0.3s; }
.colabwp-card:nth-child(4) { animation-delay: 0.4s; }
.colabwp-card:nth-child(5) { animation-delay: 0.5s; }
.colabwp-card:nth-child(6) { animation-delay: 0.6s; }

/* ========== CARRUSEL DE COLABORADORES ========== */
/* Añadir estos estilos al final del archivo colabwp-styles.css */

.colabwp-carousel-wrapper {
    position: relative;
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 40px; /* Espacio para las flechas */
    background: transparent; /* Sin fondo */
}

.colabwp-carousel-container {
    position: relative;
    /* IMPORTANTE: NO usar overflow: hidden aquí para no cortar las flechas */
}

.colabwp-carousel-track {
    overflow: hidden; /* El overflow solo en el track */
    position: relative;
    margin: 0 auto;
    width: 100%;
}

.colabwp-carousel-inner {
    display: flex;
    transition: transform 0.4s ease;
    gap: 25px;
}

.colabwp-carousel-item {
    flex: 0 0 calc(33.333% - 17px); /* 3 cards en desktop con gap */
    min-width: 0;
}

/* Navegación del carrusel - Desktop */
.colabwp-carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: linear-gradient(135deg, #d01261, #ff1744);
    color: white;
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 18px;
    transition: all 0.3s ease;
    z-index: 10;
    box-shadow: 0 4px 15px rgba(208, 18, 97, 0.3);
    opacity: 1;
    visibility: visible;
}

/* Ocultar flechas cuando no son necesarias */
.colabwp-carousel-nav.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

/* Flechas superpuestas - ajustadas para estar en relación al container */
.colabwp-carousel-prev {
    left: -20px; /* Relativo al padding del wrapper */
}

.colabwp-carousel-next {
    right: -20px; /* Relativo al padding del wrapper */
}

.colabwp-carousel-nav:hover {
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 20px rgba(208, 18, 97, 0.4);
}

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

.colabwp-carousel-nav:disabled:hover {
    transform: translateY(-50%);
}

/* Dots/Bullets para mobile */
.colabwp-carousel-dots {
    display: none; /* Oculto por defecto en desktop */
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
    padding-bottom: 10px;
}

.colabwp-carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #e9ecef;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    padding: 0;
}

.colabwp-carousel-dot.active {
    background: linear-gradient(135deg, #d01261, #ff1744);
    width: 30px;
    border-radius: 5px;
}

.colabwp-carousel-dot:hover:not(.active) {
    background: #d0d0d0;
}

/* CTA Button del carrusel */
.colabwp-carousel-cta-wrapper {
    text-align: center;
    margin-top: 40px;
}

.colabwp-carousel-cta {
    display: inline-block;
    background: linear-gradient(135deg, #d01261, #ff1744);
    color: white;
    padding: 16px 40px;
    border-radius: 50px;
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(208, 18, 97, 0.3);
}

.colabwp-carousel-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(208, 18, 97, 0.4);
    color: white;
    text-decoration: none;
}

/* Responsive del carrusel */
@media (max-width: 992px) {
    .colabwp-carousel-wrapper {
        padding: 0 30px; /* Reducir padding en tablet */
    }
    
    .colabwp-carousel-item {
        flex: 0 0 calc(50% - 12.5px); /* 2 cards en tablet */
    }
    
    .colabwp-carousel-prev {
        left: -15px;
    }
    
    .colabwp-carousel-next {
        right: -15px;
    }
}

/* Mobile: Ocultar flechas y mostrar dots */
@media (max-width: 768px) {
    .colabwp-carousel-wrapper {
        padding: 0 20px;
    }
    
    .colabwp-carousel-container {
        margin-bottom: 0; /* Reducir margen porque los dots van abajo */
    }
    
    .colabwp-carousel-item {
        flex: 0 0 calc(50% - 12.5px); /* 2 cards en mobile */
    }
    
    /* Ocultar flechas en mobile */
    .colabwp-carousel-nav {
        display: none !important;
    }
    
    /* Mostrar dots en mobile */
    .colabwp-carousel-dots {
        display: flex;
    }
    
    .colabwp-carousel-inner {
        gap: 15px;
    }
    
    .colabwp-carousel-cta {
        padding: 14px 30px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .colabwp-carousel-wrapper {
        padding: 0 15px;
    }
    
    .colabwp-carousel-item {
        flex: 0 0 100%; /* 1 card en mobile pequeño */
    }
    
    /* Dots más pequeños en mobile pequeño */
    .colabwp-carousel-dot {
        width: 8px;
        height: 8px;
    }
    
    .colabwp-carousel-dot.active {
        width: 24px;
    }
}