/* Forzamos el ancho real en OceanWP para el CPT Personal */
.single-personal #content-wrap .container,
.page-template-full-width #content-wrap .container {
    width: 100% !important;
    max-width: 95% !important; /* Dejamos un 5% de margen mínimo */
    padding-left: 0 !important;
    padding-right: 0 !important;
}

#primary {
    padding: 0 !important;
    margin: 0 !important;
}

/* 3. Ajuste opcional para tus tarjetas (.ds-item) */
.ds-item {
    width: 100%; /* Ahora sí ocupará todo el ancho del contenedor expandido */
    max-width: none !important;
    margin-left: auto;
    margin-right: auto;
}



.ds-v2-results-wrapper {
    display: flex;
    flex-direction: column;
    gap: 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* Tarjeta individual (Card) */
.ds-item {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    transition: transform 0.2s ease;
}

.ds-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* Cabecera: Badge y Año */
.ds-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.ds-badge {
    background-color: #e0f2fe;
    color: #0369a1;
    font-size: 1.2rem;
    font-weight: 600;
    padding: 5px 12px;
    border-radius: 4px;
    text-transform: capitalize;
}

.ds-year {
    color: #94a3b8;
    font-size: 600;
}

/* Título */
.ds-item h4 {
    margin: 0 0 12px 0;
    font-size: 1.6rem !important;
    line-height: 1.3;
    font-weight: 700;
}

.ds-item h4 a {
    color: #1e293b;
    text-decoration: none;
}

.ds-item h4 a:hover {
    color: #2563eb;
    text-decoration: underline;
}

/* Autores */
.ds-authors {
    font-size: 1.3rem;
    color: #64748b;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Abstract */
.ds-abstract {
    font-size: 1.4rem;
    color: #475569;
    line-height: 1.7;
    margin-bottom: 20px;
}

/* Enlace "Ver más" / "Ver menos" del abstract */
.ds-toggle-abstract {
    white-space: nowrap;
    font-weight: 600;
    text-decoration: none;
}

/* Footer: Derechos de autor */
.ds-footer {
    border-top: 1px solid #f1f5f9;
    padding-top: 15px;
    margin-top: 15px;
}

.ds-rights {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.2rem;
    font-weight: 500;
    color: #166534; /* Verde para destacar el acceso */
}

/* Punto indicador (Open Access) */
.icon-dot::before {
    content: "●";
    color: #22c55e;
    font-size: 1.2rem;
}


/* Contenedor de la paginación */
.ds-v2-pagination {
    margin: 40px 0;
    text-align: center;
    clear: both;
}

/* Estilo base del botón */
.ds-load-more-btn {
    background-color: #0073aa; /* Azul estándar de WordPress */
    color: #ffffff !important;
    border: none;
    padding: 12px 30px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 160px;
    outline: none;
}

/* Efecto al pasar el mouse (Hover) */
.ds-load-more-btn:hover {
    background-color: #005177;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    transform: translateY(-1px);
}

/* Efecto al hacer clic (Active) */
.ds-load-more-btn:active {
    transform: translateY(0);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* Estado Deshabilitado / Cargando */
.ds-load-more-btn:disabled {
    background-color: #a7aaad; /* Gris de WP */
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
    opacity: 0.8;
}

/* Estilo para el texto de carga inicial (el que corregimos en el wrapper) */
.ds-v2-results-wrapper > p:first-child {
    text-align: center;
    color: #646970;
    font-style: italic;
    padding: 20px;
}

.dspace-types-control {
    margin-bottom: 20px;

    .components-base-control__label {
        display: block;
        margin-bottom: 8px;
    }
}

.dspace-checkbox-list-container {
    max-height: 200px;
    overflow-y: auto;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background: #f9f9f9;

    /* Estilo opcional para que los checkboxes respiren un poco más */
    .components-checkbox-control {
        margin-bottom: 8px;
        
        &:last-child {
            margin-bottom: 0;
        }
    }
}

.dspace-no-types-message {
    font-size: 12px;
    color: #666;
    margin: 0;
}

/* Contenedor de las acciones de compartir */
.ds-share-actions {
    display: flex !important;
    gap: 15px !important; /* Espaciado fijo y consistente */
    align-items: center !important;
    margin: 0;
    padding: 0;
}

/* Enlaces de compartir */
.ds-share-link {
    margin: 0 !important;
    padding: 0 !important;
    text-decoration: none !important;
    line-height: 1 !important;
    display: flex !important;
    transition: opacity 0.2s ease;
}

.ds-share-link:hover {
    opacity: 0.7;
}

/* Iconos de redes sociales */
.ds-share-icon {
    display: block !important;
    margin: 0 !important;
    width: 22px !important; /* Considerablemente más grandes */
    height: 22px !important;
    transition: transform 0.2s ease;
}